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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
/************************************************************************/
/* */
/* Page Layout page on an inspector: */
/* */
/************************************************************************/
# ifndef APP_PAGE_LAYOUT_TOOL_H
# define APP_PAGE_LAYOUT_TOOL_H
# include <appPaper.h>
# include <appPaperChooser.h>
# include <appMarginTool.h>
/************************************************************************/
/* */
/* Resources for the 'Page Layout' page. */
/* */
/************************************************************************/
typedef struct PageLayoutPageResources
{
char * plprUnitType;
char * plprPage;
char * plprCustomPageSizeText;
char * plprLandscapeText;
char * plprPortraitText;
MarginToolResources plprMarginToolResources;
char * plprPositionsText;
char * plprHeaderPositionText;
char * plprFooterPositionText;
char * plprRevertSelectionText;
char * plprChangeSelectionText;
} PageLayoutPageResources;
/************************************************************************/
/* */
/* A page layout tool, i.e. the 'Page Layout' page of the format tool. */
/* */
/************************************************************************/
typedef struct PageLayoutTool
{
EditApplication * pltApplication;
AppInspector * pltInspector;
const PageLayoutPageResources * pltPageResources;
int pltManageHeadersFooters;
int pltManageSelection;
int pltUnitType;
DocumentGeometry pltGeometrySetSelection;
DocumentGeometry pltGeometrySetDocument;
DocumentGeometry pltGeometryChosen;
APP_WIDGET pltPageDrawing;
PaperChooser pltPaperChooser;
AppMarginTool pltMarginTool;
AppDrawingData pltDrawingData;
int pltDrawingDataAllocated;
APP_WIDGET pltHeaderFooterFrame;
APP_WIDGET pltHeaderFooterInside;
APP_WIDGET pltHeaderFooterLeftColumn;
APP_WIDGET pltHeaderFooterRightColumn;
APP_WIDGET pltHeaderPositionText;
APP_WIDGET pltFooterPositionText;
APP_WIDGET pltRevertSelectionWidget;
APP_WIDGET pltChangeSelectionWidget;
APP_WIDGET pltChangeDocumentWidget;
} PageLayoutTool;
/************************************************************************/
/* */
/* Routine Declarations. */
/* */
/************************************************************************/
extern void appPageLayoutPageGetResourceTable(
EditApplication * ea,
PageLayoutPageResources * plpr,
InspectorSubjectResources * isr );
extern void appPageLayoutPageRefresh(
PageLayoutTool * plt,
int * pEnabled,
InspectorSubject * is,
const DocumentGeometry * dgSelection,
const DocumentGeometry * dgDoc );
extern void appPageLayoutPageFillPage(
PageLayoutTool * plt,
int doHdFt,
int doSelection,
const PageLayoutPageResources * plpr,
InspectorSubject * is,
APP_WIDGET pageWidget,
const InspectorSubjectResources * isr );
extern void appPageLayoutPageFillChoosers(
PageLayoutTool * plt,
const PageLayoutPageResources * plpr );
extern void appPageLayoutPageFinishPage(
PageLayoutTool * plt,
const PageLayoutPageResources * plpr );
# endif /* APP_PAGE_LAYOUT_TOOL_H */
|