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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
/************************************************************************/
/* */
/* List tool: */
/* */
/* The page on the format tool to edit list properties. */
/* */
/************************************************************************/
# ifndef TED_LIST_TOOL_H
# define TED_LIST_TOOL_H
# define LISTTOOLcountSTYLES 8
/************************************************************************/
/* */
/* Resources for the 'Bullets and Numbers' page. */
/* */
/************************************************************************/
typedef struct ListsPageResources
{
char * lprListLevel;
char * lprLevel;
char * lprStartAt;
char * lprNoRestart;
char * lprStyle;
char * lprJustify;
char * lprFollowedBy;
char * lprStyleOptionTexts[LISTTOOLcountSTYLES];
char * lprJustifyOptionTexts[DOClla_COUNT];
char * lprFollowOptionTexts[DOCllf_COUNT];
char * lprLevelFirstIndent;
char * lprLevelLeftIndent;
char * lprSelection;
char * lprSetList;
char * lprNewList;
char * lprSetLevel;
char * lprRemoveFromList;
} ListsPageResources;
/************************************************************************/
/* */
/* A lists tool, i.e. the 'Bullets and Numbers' page of the format */
/* tool. */
/* */
/************************************************************************/
typedef struct ListTool
{
EditApplication * ltApplication;
AppInspector * ltInspector;
const ListsPageResources * ltPageResources;
int ltUnitType;
DocumentList ltListPropertiesSet;
DocumentList ltListPropertiesChosen;
ListOverride ltListOverrideSet;
ListOverride ltListOverrideChosen;
int ltCurrentLevel;
int ltCurrentParagraphNumber;
int ltHerePath[DLmaxLEVELS];
int ltPrevPath[DLmaxLEVELS];
int ltFormatPath[DLmaxLEVELS];
int ltStartPath[DLmaxLEVELS];
int ltHereLevel;
int ltPrevLevel;
/**/
APP_WIDGET ltListLevelList;
APP_WIDGET ltSelectionFrame;
APP_WIDGET ltSelectionPaned;
APP_WIDGET ltListLevelFrame;
APP_WIDGET ltListLevelPaned;
APP_WIDGET ltLevelText;
APP_WIDGET ltFirstIndentText;
APP_WIDGET ltLeftIndentText;
APP_WIDGET ltStartAtText;
APP_WIDGET ltNoRestartToggle;
AppOptionmenu ltNumberStyleOptionmenu;
APP_WIDGET ltNumberStyleItems[LISTTOOLcountSTYLES];
AppOptionmenu ltJustifyOptionmenu;
APP_WIDGET ltJustifyItems[DOClla_COUNT];
AppOptionmenu ltFollowOptionmenu;
APP_WIDGET ltFollowItems[DOCllf_COUNT];
APP_WIDGET ltSetListButton;
APP_WIDGET ltNewListButton;
APP_WIDGET ltSetLevelButton;
APP_WIDGET ltRemoveFromListButton;
} ListTool;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void tedFormatToolGetListsResourceTable(
EditApplication * ea,
ListsPageResources * spr,
InspectorSubjectResources * isr );
extern void tedFormatToolRefreshListTool(
ListTool * lt,
int * pEnabled,
int * pPref,
InspectorSubject * is,
const DocumentSelection * ds,
const SelectionDescription * sd,
BufferDocument * bd );
extern void tedFormatFillListsPage( ListTool * lt,
const ListsPageResources * lpr,
InspectorSubject * is,
APP_WIDGET pageWidget,
const InspectorSubjectResources * isr );
extern void tedFormatFillListChoosers( ListTool * lt );
extern void tedFormatFinishListPage( ListTool * lt );
extern void tedFormatCleanListsTool( ListTool * lt );
# endif /* TED_LIST_TOOL_H */
|