| 1 |
/* AbiSource Application Framework |
| 2 |
* Copyright (C) 1998 AbiSource, Inc. |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU General Public License |
| 6 |
* as published by the Free Software Foundation; either version 2 |
| 7 |
* of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU General Public License |
| 15 |
* along with this program; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 17 |
* 02110-1301 USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#ifndef XAP_DIALOG_ID_H |
| 22 |
#define XAP_DIALOG_ID_H |
| 23 |
|
| 24 |
// since the dialog framework is split between cross-application |
| 25 |
// and application-specific, we partition the DialogId space two |
| 26 |
// sets. this lets the XAP code be compiled once and linked with |
| 27 |
// each application. |
| 28 |
|
| 29 |
// we use a typedef to get unique symbols, but use XAP_Dialog_Id |
| 30 |
// (defined in ap_Types.h as the actual parameter type (this |
| 31 |
// solves some compiler oddities)). |
| 32 |
|
| 33 |
enum _XAP_Dialog_Id |
| 34 |
{ |
| 35 |
XAP_DIALOG_ID__FIRST__ = 0, /* must be first */ |
| 36 |
|
| 37 |
XAP_DIALOG_ID_MESSAGE_BOX, |
| 38 |
XAP_DIALOG_ID_FILE_OPEN, |
| 39 |
XAP_DIALOG_ID_FILE_SAVEAS, |
| 40 |
XAP_DIALOG_ID_FILE_SAVE_IMAGE, |
| 41 |
XAP_DIALOG_ID_FILE_IMPORT, |
| 42 |
XAP_DIALOG_ID_FILE_EXPORT, |
| 43 |
XAP_DIALOG_ID_INSERT_FILE, |
| 44 |
XAP_DIALOG_ID_PRINT, |
| 45 |
XAP_DIALOG_ID_PRINTPREVIEW, |
| 46 |
XAP_DIALOG_ID_PRINTTOFILE, /* the file-save-as spun as pathname-for-print-to-file */ |
| 47 |
XAP_DIALOG_ID_RECORDTOFILE, |
| 48 |
XAP_DIALOG_ID_REPLAYFROMFILE, |
| 49 |
|
| 50 |
XAP_DIALOG_ID_FONT, |
| 51 |
|
| 52 |
XAP_DIALOG_ID_WINDOWMORE, |
| 53 |
XAP_DIALOG_ID_ZOOM, |
| 54 |
XAP_DIALOG_ID_INSERT_SYMBOL, |
| 55 |
XAP_DIALOG_ID_INSERT_PICTURE, |
| 56 |
XAP_DIALOG_ID_PLUGIN_MANAGER, |
| 57 |
|
| 58 |
XAP_DIALOG_ID_ABOUT, /* about dialog */ |
| 59 |
/* ... add others here ... */ |
| 60 |
XAP_DIALOG_ID_LANGUAGE, |
| 61 |
XAP_DIALOG_ID_CLIPART, |
| 62 |
XAP_DIALOG_ID_ENCODING, |
| 63 |
XAP_DIALOG_ID_PASSWORD, |
| 64 |
XAP_DIALOG_ID_IMAGE, |
| 65 |
XAP_DIALOG_ID_INSERTMATHML, |
| 66 |
XAP_DIALOG_ID_INSERTOBJECT, |
| 67 |
|
| 68 |
XAP_DIALOG_ID_HTMLOPTIONS, |
| 69 |
|
| 70 |
#ifdef HAVE_GNOME_DIRECT_PRINT |
| 71 |
XAP_DIALOG_ID_PRINT_DIRECTLY, |
| 72 |
#else |
| 73 |
#if 0 |
| 74 |
// CANNOT DO THIS !!! |
| 75 |
// enums are sequential, so this makes everything that comes after |
| 76 |
// this start again from _ID_PRINT |
| 77 |
XAP_DIALOG_ID_PRINT_DIRECTLY = XAP_DIALOG_ID_PRINT, |
| 78 |
#else |
| 79 |
#define XAP_DIALOG_ID_PRINT_DIRECTLY XAP_DIALOG_ID_PRINT |
| 80 |
#endif |
| 81 |
#endif |
| 82 |
XAP_DIALOG_ID_LISTDOCUMENTS, |
| 83 |
XAP_DIALOG_ID_COMPAREDOCUMENTS, |
| 84 |
XAP_DIALOG_ID_MERGEDOCUMENTS, |
| 85 |
XAP_DIALOG_ID_HISTORY, |
| 86 |
XAP_DIALOG_ID_DOCCOMPARISON, |
| 87 |
|
| 88 |
XAP_DIALOG_ID__LAST__ = 1000 /* must be last */ |
| 89 |
|
| 90 |
}; |
| 91 |
|
| 92 |
#endif /* XAP_DIALOG_ID_H */ |