• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_Dialog_Id.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 #ifndef XAP_DIALOG_ID_H
00022 #define XAP_DIALOG_ID_H
00023 
00024 // since the dialog framework is split between cross-application
00025 // and application-specific, we partition the DialogId space two
00026 // sets.  this lets the XAP code be compiled once and linked with
00027 // each application.
00028 
00029 // we use a typedef to get unique symbols, but use XAP_Dialog_Id
00030 // (defined in ap_Types.h as the actual parameter type (this
00031 // solves some compiler oddities)).
00032 
00033 enum _XAP_Dialog_Id
00034 {
00035     XAP_DIALOG_ID__FIRST__              = 0, /* must be first */
00036 
00037     XAP_DIALOG_ID_MESSAGE_BOX,
00038     XAP_DIALOG_ID_FILE_OPEN,
00039     XAP_DIALOG_ID_FILE_SAVEAS,
00040     XAP_DIALOG_ID_FILE_SAVE_IMAGE,
00041     XAP_DIALOG_ID_FILE_IMPORT,
00042     XAP_DIALOG_ID_FILE_EXPORT,
00043     XAP_DIALOG_ID_INSERT_FILE,
00044     XAP_DIALOG_ID_PRINT,
00045     XAP_DIALOG_ID_PRINTPREVIEW,
00046     XAP_DIALOG_ID_PRINTTOFILE,          /* the file-save-as spun as pathname-for-print-to-file */
00047     XAP_DIALOG_ID_RECORDTOFILE,
00048     XAP_DIALOG_ID_REPLAYFROMFILE,
00049 
00050     XAP_DIALOG_ID_FONT,
00051 
00052     XAP_DIALOG_ID_WINDOWMORE,
00053     XAP_DIALOG_ID_ZOOM,
00054     XAP_DIALOG_ID_INSERT_SYMBOL,
00055     XAP_DIALOG_ID_INSERT_PICTURE,
00056     XAP_DIALOG_ID_PLUGIN_MANAGER,
00057 
00058     XAP_DIALOG_ID_ABOUT,                /* about dialog */
00059     /* ... add others here ... */
00060     XAP_DIALOG_ID_LANGUAGE,
00061     XAP_DIALOG_ID_CLIPART,
00062     XAP_DIALOG_ID_ENCODING,
00063     XAP_DIALOG_ID_PASSWORD,
00064     XAP_DIALOG_ID_IMAGE,
00065     XAP_DIALOG_ID_INSERTMATHML,
00066     XAP_DIALOG_ID_INSERTOBJECT,
00067 
00068     XAP_DIALOG_ID_HTMLOPTIONS,
00069 
00070 #ifdef HAVE_GNOME_DIRECT_PRINT
00071     XAP_DIALOG_ID_PRINT_DIRECTLY,
00072 #else
00073 #if 0
00074     // CANNOT DO THIS !!!
00075     // enums are sequential, so this makes everything that comes after
00076     // this start again from _ID_PRINT
00077     XAP_DIALOG_ID_PRINT_DIRECTLY = XAP_DIALOG_ID_PRINT,
00078 #else
00079 #define XAP_DIALOG_ID_PRINT_DIRECTLY XAP_DIALOG_ID_PRINT
00080 #endif
00081 #endif
00082     XAP_DIALOG_ID_LISTDOCUMENTS,
00083     XAP_DIALOG_ID_COMPAREDOCUMENTS,
00084     XAP_DIALOG_ID_MERGEDOCUMENTS,
00085     XAP_DIALOG_ID_HISTORY,
00086     XAP_DIALOG_ID_DOCCOMPARISON,
00087 
00088     XAP_DIALOG_ID__LAST__               = 1000  /* must be last */
00089 
00090 };
00091 
00092 #endif /* XAP_DIALOG_ID_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1