1 #   ifndef	TED_APP_FRONT_H
2 #   define	TED_APP_FRONT_H
3 
4 #   include	<appFrame.h>
5 #   include	<docRowProperties.h>
6 #   include	<docPictureProperties.h>
7 #   include	<docDocumentProperties.h>
8 #   include	<docNoteProperties.h>
9 #   include	<docSectProperties.h>
10 #   include	<docDocumentField.h>
11 #   include	<docTocField.h>
12 #   include	<docHyperlinkField.h>
13 #   include	<docExpandedTextAttribute.h>
14 
15 struct ParagraphProperties;
16 struct TabStopList;
17 
18 /************************************************************************/
19 /*									*/
20 /*  Routine declarations.						*/
21 /*									*/
22 /************************************************************************/
23 
24 extern void tedAppReplace(	void *		voidea,
25 				const char *	word	);
26 
27 extern void tedAppAddRowToTable(	EditApplication *	ea,
28 					int			after );
29 
30 extern void tedAppAddColumnToTable(	EditApplication *	ea,
31 					int			after );
32 
33 extern void tedAppSetTableProperties(	EditApplication *	ea,
34 					int			wholeRow,
35 					int			wholeColumn,
36 					const PropertyMask *	cpSetMask,
37 					const CellProperties *	cpSet,
38 					const PropertyMask *	rpSetMask,
39 					const RowProperties *	rpSet );
40 
41 extern void tedAppSetImageProperties(
42 				EditApplication *		ea,
43 				const PropertyMask *		pipSetMask,
44 				const PictureProperties *	pip );
45 
46 extern int tedAppShiftRowsInTable(	EditApplication *	ea,
47 					int			direction );
48 
49 extern int tedAppSetHyperlink(	EditApplication *	ea,
50 				const HyperlinkField *	hf );
51 
52 extern int tedAppRemoveHyperlink(	EditApplication *	ea );
53 
54 extern int tedAppFollowLink(	APP_WIDGET		option,
55 				EditApplication *	ea,
56 				const MemoryBuffer *	fileName,
57 				const MemoryBuffer *	markName );
58 
59 extern int tedAppDeleteSelectedParagraphs(	EditApplication *	ea );
60 extern int tedAppDeleteSelectedSections(	EditApplication *	ea );
61 
62 extern int tedAppInsertParagraph(	EditApplication *	ea,
63 					int			after );
64 
65 extern int tedAppInsertSection(	EditApplication *	ea,
66 				int			after );
67 
68 extern int tedAppSetDocumentProperties(
69 				EditApplication *		ea,
70 				const PropertyMask *		dpSetMask,
71 				const DocumentProperties *	dpSet );
72 
73 extern void tedAppChangeCurrentNote(
74 				EditApplication *		ea,
75 				const PropertyMask *		npSetMask,
76 				const NoteProperties *		npSet );
77 
78 extern int tedAppChangeSectionProperties(
79 				EditApplication *		ea,
80 				const PropertyMask *		spUpdMask,
81 				const SectionProperties *	spNew );
82 
83 extern int tedAppChangeAllSectionProperties(
84 				EditApplication *		ea,
85 				const PropertyMask *		spUpdMask,
86 				const SectionProperties *	spNew,
87 				const PropertyMask *		dpSetMask,
88 				const DocumentProperties *	dpNew );
89 
90 extern int tedAppChangeParagraphProperties(
91 			EditApplication *			ea,
92 			const PropertyMask *			ppUpdMask,
93 			const struct ParagraphProperties *	ppNew );
94 
95 extern int tedAppSetParagraphTabs(
96 				EditApplication *		ea,
97 				const struct TabStopList *	tsl );
98 
99 extern int tedAppSetNewList(	EditApplication *		ea );
100 
101 extern int tedAppChangeCurrentList(
102 				EditApplication *		ea,
103 				const struct DocumentList *	dlNew );
104 
105 extern void tedAppDeleteHeaderFooter(	EditApplication *	ea,
106 					int			treeType );
107 
108 extern void tedAppEditHeaderFooter(	EditApplication *	ea,
109 					APP_WIDGET		relative,
110 					APP_WIDGET		option,
111 					int			treeType );
112 
113 extern void tedAppGotoNoteDef(		EditApplication *	ea );
114 extern void tedAppGotoNoteRef(		EditApplication *	ea );
115 extern void tedAppNextNote(		EditApplication *	ea );
116 extern void tedAppPrevNote(		EditApplication *	ea );
117 
118 extern void tedAppSelectTable(		EditApplication *	ea );
119 extern void tedAppSelectRow(		EditApplication *	ea,
120 					int			direction,
121 					int			allColumns );
122 extern void tedAppSelectWholeCell(	EditApplication *	ea,
123 					int			direction,
124 					int			allRows );
125 
126 extern void tedAppDeleteTable(		EditApplication *	ea );
127 extern void tedAppDeleteRow(		EditApplication *	ea );
128 extern void tedAppDeleteColumn(		EditApplication *	ea );
129 
130 extern int tedAppSelectCurrentFrame(	EditApplication *	ea );
131 extern int tedAppDeleteCurrentFrame(	EditApplication *	ea );
132 
133 extern int tedAppSetBookmark(	EditApplication *	ea,
134 				const MemoryBuffer *	markName );
135 
136 extern int tedAppGoToBookmark(	EditApplication *	ea,
137 				const MemoryBuffer *	markName );
138 
139 extern int tedAppRemoveBookmark(EditApplication *	ea );
140 
141 extern int tedAppFindBookmarkField(
142 				DocumentField **		pDf,
143 				EditApplication *		ea,
144 				const MemoryBuffer *		markName );
145 
146 extern void tedAppSetTocField(	EditApplication *		ea,
147 				const TocField *		tf );
148 
149 extern void tedAppDeleteTocField( EditApplication *		ea );
150 
151 extern void tedAppAddTocField(	EditApplication *		ea,
152 				const TocField *		tf );
153 
154 extern int tedAppFindNext(		void *		voidea );
155 
156 extern int tedAppFindPrev(		void *		voidea );
157 
158 extern int tedAppListFontToolSet(
159 				void *				voidea,
160 				const PropertyMask *		taSetMask,
161 				const ExpandedTextAttribute *	etaSet );
162 
163 extern int tedAppFontToolSet(	void *				voidea,
164 				const PropertyMask *		taSetMask,
165 				const ExpandedTextAttribute *	etaSet );
166 
167 extern void tedAppSetParaOutlineLevel(
168 				EditApplication *		ea,
169 				int				level );
170 
171 extern int tedAppSelectWholeSection(	EditApplication *	ea,
172 					int			direction );
173 
174 extern int tedAppSelectWholeParagraph(	EditApplication *	ea,
175 					int			direction );
176 
177 extern void tedManual(			APP_WIDGET		option,
178 					EditApplication *	ea,
179 					APP_WIDGET		relative );
180 
181 extern void tedVisibleDocumentCountChanged(
182 					EditApplication *	ea,
183 					int			from,
184 					int			to );
185 
186 #   endif	/*  TED_APP_FRONT_H	*/
187