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
|
/************************************************************************/
/* */
/* Notes tool: */
/* */
/************************************************************************/
# ifndef TED_NOTES_TOOL_H
# define TED_NOTES_TOOL_H
/************************************************************************/
/* */
/* A notes tool, i.e. the 'Notes' page of the format tool. */
/* */
/************************************************************************/
typedef struct NotesPageResources
{
char * nprCurrentNoteText;
char * nprFootnoteText;
char * nprEndnoteText;
char * nprToNoteRefText;
char * nprToNoteText;
char * nprRevertNoteText;
char * nprChangeNoteText;
char * nprFootnotesText;
char * nprEndnotesText;
char * nprFirstNumberText;
char * nprPositionText;
char * nprRestartText;
char * nprStyleText;
char * nprPositionMenuTexts[DPftnPOS__COUNT];
char * nprRestartMenuTexts[DPftnRST__COUNT];
char * nprNumberStyleMenuTexts[DPftn_NCOUNT];
} NotesPageResources;
typedef struct NotePropertiesTool
{
APP_WIDGET nptFrame;
APP_WIDGET nptPaned;
APP_WIDGET nptStartNumberText;
AppOptionmenu nptPositionOptionmenu;
APP_WIDGET nptPositionOptions[DPftnPOS__COUNT];
AppOptionmenu nptRestartOptionmenu;
APP_WIDGET nptRestartOptions[DPftnRST__COUNT];
AppOptionmenu nptStyleOptionmenu;
APP_WIDGET nptStyleOptions[DPftn_NCOUNT];
} NotePropertiesTool;
typedef struct NotesTool
{
EditApplication * ntApplication;
AppInspector * ntInspector;
const NotesPageResources * ntPageResources;
int ntNoteKindChosen;
int ntNoteKindSet;
int ntInsideNote;
DocumentProperties ntPropertiesChosen;
DocumentProperties ntPropertiesSet;
/****/
APP_WIDGET ntCurrentNoteFrame;
APP_WIDGET ntCurrentNotePaned;
APP_WIDGET ntFootnoteToggle;
APP_WIDGET ntEndnoteToggle;
APP_WIDGET ntToNoteRefButton;
APP_WIDGET ntToNoteButton;
APP_WIDGET ntRevertNoteButton;
APP_WIDGET ntChangeNoteButton;
/****/
NotePropertiesTool ntFootnotePropertiesTool;
NotePropertiesTool ntEndnotePropertiesTool;
} NotesTool;
/************************************************************************/
/* */
/* Routine Declarations. */
/* */
/************************************************************************/
extern void tedFormatToolGetNotesResourceTable( EditApplication * ea,
NotesPageResources * spr,
InspectorSubjectResources * isr );
extern void tedFormatToolRefreshNotesTool(
NotesTool * nt,
int * pEnabled,
InspectorSubject * is,
const DocumentSelection * ds,
BufferDocument * bd );
# endif /* TED_NOTES_TOOL_H */
|