|
Lines 87-92
struct XPDFAppResources {
Link Here
|
| 87 |
String matteColor; |
87 |
String matteColor; |
| 88 |
String fullScreenMatteColor; |
88 |
String fullScreenMatteColor; |
| 89 |
String initialZoom; |
89 |
String initialZoom; |
|
|
90 |
String toolbarLocale; |
| 91 |
String menuLocale; |
| 90 |
}; |
92 |
}; |
| 91 |
|
93 |
|
| 92 |
static Bool defInstallCmap = False; |
94 |
static Bool defInstallCmap = False; |
|
Lines 102-108
static XtResource xResources[] = {
Link Here
|
| 102 |
{ "paperColor", "PaperColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, paperColor), XtRString, (XtPointer)NULL }, |
104 |
{ "paperColor", "PaperColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, paperColor), XtRString, (XtPointer)NULL }, |
| 103 |
{ "matteColor", "MatteColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, matteColor), XtRString, (XtPointer)"gray50" }, |
105 |
{ "matteColor", "MatteColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, matteColor), XtRString, (XtPointer)"gray50" }, |
| 104 |
{ "fullScreenMatteColor", "FullScreenMatteColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, fullScreenMatteColor), XtRString, (XtPointer)"black" }, |
106 |
{ "fullScreenMatteColor", "FullScreenMatteColor", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, fullScreenMatteColor), XtRString, (XtPointer)"black" }, |
| 105 |
{ "initialZoom", "InitialZoom", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, initialZoom), XtRString, (XtPointer)NULL } |
107 |
{ "initialZoom", "InitialZoom", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, initialZoom), XtRString, (XtPointer)NULL }, |
|
|
108 |
{ "toolbarLocale", "ToolbarLocale", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, toolbarLocale), XtRString, (XtPointer)NULL }, |
| 109 |
{ "menuLocale", "MenuLocale", XtRString, sizeof(String), XtOffsetOf(XPDFAppResources, menuLocale), XtRString, (XtPointer)NULL } |
| 106 |
}; |
110 |
}; |
| 107 |
|
111 |
|
| 108 |
#define nXResources (sizeof(xResources) / sizeof(XtResource)) |
112 |
#define nXResources (sizeof(xResources) / sizeof(XtResource)) |
|
Lines 205-210
void XPDFApp::getResources() {
Link Here
|
| 205 |
} |
209 |
} |
| 206 |
initialZoom = resources.initialZoom ? new GooString(resources.initialZoom) |
210 |
initialZoom = resources.initialZoom ? new GooString(resources.initialZoom) |
| 207 |
: (GooString *)NULL; |
211 |
: (GooString *)NULL; |
|
|
212 |
toolbarLocale = resources.toolbarLocale ? new GooString(resources.toolbarLocale) |
| 213 |
: (GooString *)NULL; |
| 214 |
menuLocale = resources.menuLocale ? new GooString(resources.menuLocale) |
| 215 |
: (GooString *)NULL; |
| 208 |
} |
216 |
} |
| 209 |
|
217 |
|
| 210 |
XPDFApp::~XPDFApp() { |
218 |
XPDFApp::~XPDFApp() { |
|
Lines 218-223
XPDFApp::~XPDFApp() {
Link Here
|
| 218 |
if (initialZoom) { |
226 |
if (initialZoom) { |
| 219 |
delete initialZoom; |
227 |
delete initialZoom; |
| 220 |
} |
228 |
} |
|
|
229 |
if (toolbarLocale) { |
| 230 |
delete toolbarLocale; |
| 231 |
} |
| 232 |
if (menuLocale) { |
| 233 |
delete menuLocale; |
| 234 |
} |
| 221 |
} |
235 |
} |
| 222 |
|
236 |
|
| 223 |
XPDFViewer *XPDFApp::open(GooString *fileName, int page, |
237 |
XPDFViewer *XPDFApp::open(GooString *fileName, int page, |