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 113 114
|
/************************************************************************/
/* */
/* Paragraph layout tool: */
/* */
/************************************************************************/
# ifndef TED_PARA_LAYOUT_TOOL_H
# define TED_PARA_LAYOUT_TOOL_H
# include "tedBorderTool.h"
# include "tedShadingTool.h"
# include "tedHeightTool.h"
/************************************************************************/
/* */
/* Resources for the 'Paragraph Formatting' page. */
/* */
/************************************************************************/
typedef struct ParagraphLayoutPageResources
{
char * plprParaListLevel;
char * plprParaFirstIndent;
char * plprParaLeftIndent;
char * plprParaRightIndent;
char * pprParaSpaceAbove;
char * pprParaSpaceBelow;
char * pprOnNewPage;
char * pprOnOnePage;
char * pprWidctrl;
char * pprKeepWithNext;
char * pprParaLineDistFree;
char * pprParaLineDistAtLeast;
char * pprParaLineDistExactly;
char * pprParaAlignment;
char * pprParaAlignMenuTexts[DOCia_COUNT];
} ParagraphLayoutPageResources;
/************************************************************************/
/* */
/* A paragraph tool, i.e. the 'Paragraph' page of the format tool. */
/* */
/************************************************************************/
typedef struct ParagraphLayoutTool
{
EditApplication * ptApplication;
AppInspector * ptInspector;
const ParagraphLayoutPageResources * ptPageResources;
ParagraphProperties ptPropertiesSet;
ParagraphProperties ptPropertiesChosen;
APP_WIDGET ptListLevelText;
APP_WIDGET ptFirstIndentText;
APP_WIDGET ptLeftIndentText;
APP_WIDGET ptRightIndentText;
APP_WIDGET ptOnNewPageToggle;
APP_WIDGET ptKeepOnPageToggle;
APP_WIDGET ptWidowControlToggle;
APP_WIDGET ptKeepWithNextToggle;
APP_WIDGET ptSpaceAboveToggle;
APP_WIDGET ptSpaceAboveText;
APP_WIDGET ptSpaceBelowToggle;
APP_WIDGET ptSpaceBelowText;
HeightChooser ptLineDistChooser;
AppOptionmenu ptAlignOptionmenu;
APP_WIDGET ptAlignItems[DOCia_COUNT];
} ParagraphLayoutTool;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
void tedFormatToolGetParaLayoutResourceTable(
EditApplication * ea,
ParagraphLayoutPageResources * plpr,
InspectorSubjectResources * isr );
extern void tedFormatFillParagraphLayoutChoosers(
ParagraphLayoutTool * plt,
const ParagraphLayoutPageResources * plpr );
extern void tedFormatFillParagraphLayoutPage(
ParagraphLayoutTool * plt,
const ParagraphLayoutPageResources * ppr,
InspectorSubject * is,
APP_WIDGET pgW,
const InspectorSubjectResources * isr );
extern void tedFormatToolRefreshParaLayoutTool(
ParagraphLayoutTool * plt,
int * pEnabled,
int * pPref,
InspectorSubject * is,
const DocumentSelection * bs );
extern void tedFormatCleanParaLayoutTool(
ParagraphLayoutTool * plt );
# endif /* TED_PARA_LAYOUT_TOOL_H */
|