1 //========================================================================
5 // Copyright 2002-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
18 #define xObject XtObject
22 #include "SplashTypes.h"
29 //------------------------------------------------------------------------
31 #define xpdfAppName "Xpdf"
33 //------------------------------------------------------------------------
35 //------------------------------------------------------------------------
40 XPDFApp(int *argc
, char *argv
[]);
43 XPDFViewer
*open(GString
*fileName
, int page
= 1,
44 GString
*ownerPassword
= NULL
,
45 GString
*userPassword
= NULL
);
46 XPDFViewer
*openAtDest(GString
*fileName
, GString
*dest
,
47 GString
*ownerPassword
= NULL
,
48 GString
*userPassword
= NULL
);
49 XPDFViewer
*reopen(XPDFViewer
*viewer
, PDFDoc
*doc
, int page
,
51 void close(XPDFViewer
*viewer
, GBool closeLast
);
57 void setRemoteName(char *remoteName
);
58 GBool
remoteServerRunning();
59 void remoteExec(char *cmd
);
60 void remoteOpen(GString
*fileName
, int page
, GBool raise
);
61 void remoteOpenAtDest(GString
*fileName
, GString
*dest
, GBool raise
);
62 void remoteReload(GBool raise
);
66 //----- resource/option values
67 GString
*getGeometry() { return geometry
; }
68 GString
*getTitle() { return title
; }
69 GBool
getInstallCmap() { return installCmap
; }
70 int getRGBCubeSize() { return rgbCubeSize
; }
71 GBool
getReverseVideo() { return reverseVideo
; }
72 SplashColorPtr
getPaperRGB() { return paperRGB
; }
73 Gulong
getPaperPixel() { return paperPixel
; }
74 Gulong
getMattePixel(GBool fullScreenA
)
75 { return fullScreenA
? fullScreenMattePixel
: mattePixel
; }
76 GString
*getInitialZoom() { return initialZoom
; }
77 void setFullScreen(GBool fullScreenA
) { fullScreen
= fullScreenA
; }
78 GBool
getFullScreen() { return fullScreen
; }
80 XtAppContext
getAppContext() { return appContext
; }
81 Widget
getAppShell() { return appShell
; }
86 static void remoteMsgCbk(Widget widget
, XtPointer ptr
,
87 XEvent
*event
, Boolean
*cont
);
91 XtAppContext appContext
;
93 GList
*viewers
; // [XPDFViewer]
97 XPDFViewer
*remoteViewer
;
100 //----- resource/option values
106 SplashColor paperRGB
;
109 Gulong fullScreenMattePixel
;
110 GString
*initialZoom
;