forked from openlp/openlp
Revert pptviewer.dll changes for now, they can come later. Lets get the rest in
This commit is contained in:
parent
a026189fac
commit
23ca24cceb
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,63 +1,55 @@
|
|||||||
|
|
||||||
#define DllExport extern "C" __declspec(dllexport)
|
#define DllExport extern "C" __declspec( dllexport )
|
||||||
#define DEBUG(...) if(debug) printf(__VA_ARGS__)
|
|
||||||
|
|
||||||
enum PPTVIEWSTATE {PPT_CLOSED, PPT_STARTED, PPT_OPENED,
|
enum PPTVIEWSTATE { PPT_CLOSED, PPT_STARTED, PPT_OPENED, PPT_LOADED, PPT_CLOSING};
|
||||||
PPT_LOADED, PPT_CLOSING};
|
|
||||||
|
|
||||||
DllExport int OpenPPT(char *filename, HWND h_parent_wnd, RECT rect,
|
DllExport int OpenPPT(char *filename, HWND hParentWnd, RECT rect, char *previewpath);
|
||||||
char *preview_path);
|
|
||||||
DllExport BOOL CheckInstalled();
|
DllExport BOOL CheckInstalled();
|
||||||
DllExport void ClosePPT(int id);
|
DllExport void ClosePPT(int id);
|
||||||
DllExport int GetCurrentSlide(int id);
|
DllExport int GetCurrentSlide(int id);
|
||||||
DllExport int GetSlideCount(int id);
|
DllExport int GetSlideCount(int id);
|
||||||
DllExport void NextStep(int id);
|
DllExport void NextStep(int id);
|
||||||
DllExport void PrevStep(int id);
|
DllExport void PrevStep(int id);
|
||||||
DllExport void GotoSlide(int id, int slide_no);
|
DllExport void GotoSlide(int id, int slideno);
|
||||||
DllExport void RestartShow(int id);
|
DllExport void RestartShow(int id);
|
||||||
DllExport void Blank(int id);
|
DllExport void Blank(int id);
|
||||||
DllExport void Unblank(int id);
|
DllExport void Unblank(int id);
|
||||||
DllExport void Stop(int id);
|
DllExport void Stop(int id);
|
||||||
DllExport void Resume(int id);
|
DllExport void Resume(int id);
|
||||||
DllExport void SetDebug(BOOL on_off);
|
DllExport void SetDebug(BOOL onoff);
|
||||||
|
|
||||||
LRESULT CALLBACK CbtProc(int n_code, WPARAM w_param, LPARAM l_param);
|
LRESULT CALLBACK CbtProc(int nCode, WPARAM wParam, LPARAM lParam);
|
||||||
LRESULT CALLBACK CwpProc(int n_code, WPARAM w_param, LPARAM l_param);
|
LRESULT CALLBACK CwpProc(int nCode, WPARAM wParam, LPARAM lParam);
|
||||||
LRESULT CALLBACK GetMsgProc(int n_code, WPARAM w_param, LPARAM l_param);
|
LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam);
|
||||||
BOOL GetPPTViewerPath(char *pptviewer_path, int str_size);
|
BOOL GetPPTViewerPath(char *pptviewerpath, int strsize);
|
||||||
HBITMAP CaptureWindow (HWND h_wnd);
|
HBITMAP CaptureWindow (HWND hWnd);
|
||||||
VOID SaveBitmap (CHAR* filename, HBITMAP h_bmp);
|
VOID SaveBitmap (CHAR* filename, HBITMAP hBmp) ;
|
||||||
VOID CaptureAndSaveWindow(HWND h_wnd, CHAR* filename);
|
VOID CaptureAndSaveWindow(HWND hWnd, CHAR* filename);
|
||||||
BOOL GetPPTInfo(int id);
|
BOOL GetPPTInfo(int id);
|
||||||
BOOL SavePPTInfo(int id);
|
BOOL SavePPTInfo(int id);
|
||||||
BOOL InitPPTObject(int id, char *filename, HWND h_parent_wnd,
|
|
||||||
RECT rect, char *preview_path);
|
|
||||||
BOOL StartPPTView(int id);
|
|
||||||
|
|
||||||
void Unhook(int id);
|
void Unhook(int id);
|
||||||
|
|
||||||
#define MAX_PPTS 16
|
#define MAX_PPTOBJS 50
|
||||||
#define MAX_SLIDES 256
|
|
||||||
|
|
||||||
struct PPTVIEW
|
struct PPTVIEWOBJ
|
||||||
{
|
{
|
||||||
HHOOK hook;
|
HHOOK hook;
|
||||||
HHOOK mhook;
|
HHOOK mhook;
|
||||||
HWND h_wnd; // The main pptview window
|
HWND hWnd;
|
||||||
HWND h_wnd_input; // A child pptview window which takes windows messages
|
HWND hWnd2;
|
||||||
HWND h_parent_wnd;
|
HWND hParentWnd;
|
||||||
HANDLE h_process;
|
HANDLE hProcess;
|
||||||
HANDLE h_thread;
|
HANDLE hThread;
|
||||||
DWORD dw_process_id;
|
DWORD dwProcessId;
|
||||||
DWORD dw_thread_id;
|
DWORD dwThreadId;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
int slide_count;
|
int slideCount;
|
||||||
int current_slide;
|
int currentSlide;
|
||||||
int first_slide_steps;
|
int firstSlideSteps;
|
||||||
int steps;
|
int steps;
|
||||||
int guess; // What the current slide might be, based on the last action
|
|
||||||
char filename[MAX_PATH];
|
char filename[MAX_PATH];
|
||||||
char preview_path[MAX_PATH];
|
char previewpath[MAX_PATH];
|
||||||
int slide_no[MAX_SLIDES];
|
|
||||||
PPTVIEWSTATE state;
|
PPTVIEWSTATE state;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user