1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
/************************************************************************/
/* */
/* Headers/Footers tool: */
/* */
/************************************************************************/
# ifndef TED_HEADER_FOOTER_TOOL_H
# define TED_HEADER_FOOTER_TOOL_H
/************************************************************************/
/* */
/* A Header/Footer Tool. I.E. The header footer page on the 'Format */
/* Tool' */
/* */
/************************************************************************/
typedef struct HeaderFooterPageResources
{
char * hfprSectionHeaderText;
char * hfprTitlepgText;
char * hfprDocumentHeaderText;
char * hfprFacingpText;
char * hfprChangeDocText;
char * hfprRevertDocText;
char * hfprPagesHeaderText;
char * hfprPagesOptionTexts[PAGES__COUNT];
char * hfprDeleteHeaderText;
char * hfprEditHeaderText;
char * hfprDeleteFooterText;
char * hfprEditFooterText;
} HeaderFooterPageResources;
typedef struct HeaderFooterTool
{
EditApplication * hftApplication;
AppInspector * hftInspector;
const HeaderFooterPageResources * hftPageResources;
int hftSectionNumber;
DocumentProperties hftDocPropertiesChosen;
DocumentProperties hftDocPropertiesSet;
SectionProperties hftSectPropertiesChosen;
SectionProperties hftSectPropertiesSet;
int hftPagesChosen;
unsigned char hftPagesOptionsEnabled[PAGES__COUNT];
APP_WIDGET hftSectionFrame;
APP_WIDGET hftSectionPaned;
APP_WIDGET hftTitlepgToggle;
APP_WIDGET hftDocumentFrame;
APP_WIDGET hftDocumentPaned;
APP_WIDGET hftFacingpToggle;
APP_WIDGET hftRevertDocButton;
APP_WIDGET hftChangeDocButton;
APP_WIDGET hftPagesFrame;
APP_WIDGET hftPagesPaned;
AppOptionmenu hftPagesOptionmenu;
APP_WIDGET hftPagesItems[PAGES__COUNT];
APP_WIDGET hftDeleteHeaderButton;
APP_WIDGET hftEditHeaderButton;
APP_WIDGET hftDeleteFooterButton;
APP_WIDGET hftEditFooterButton;
} HeaderFooterTool;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void tedFormatToolRefreshHeaderFooterTool(
HeaderFooterTool * hft,
int * pEnabled,
InspectorSubject * is,
const DocumentSelection * ds,
const SelectionGeometry * sg,
const DocumentProperties * dp );
extern void tedFormatToolGetHeaderFooterResourceTable( EditApplication * ea,
HeaderFooterPageResources * hfpr,
InspectorSubjectResources * isr );
# endif /* TED_HEADER_FOOTER_TOOL_H */
|