2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 interface BaseTextEditView
21 FN_REFRESH_VIEW // status(final|play)
23 ExecMethod = Execute ;
25 FN_PAGEUP // status(final|play)
27 ExecMethod = Execute ;
28 StateMethod = GetState ;
30 FN_PAGEUP_SEL // status()
32 ExecMethod = Execute ;
33 StateMethod = GetState ;
35 SID_UNDO // status(final|play)
37 ExecMethod = Execute ;
38 StateMethod = GetState ;
42 ExecMethod = ExecFormatPaintbrush ;
43 StateMethod = StateFormatPaintbrush ;
44 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
46 SID_CLEARHISTORY // status(final|play)
48 ExecMethod = Execute ;
49 StateMethod = GetState ;
51 SID_CREATE_SW_DRAWVIEW
55 FN_PAGEDOWN // status(final|play)
57 ExecMethod = Execute ;
58 StateMethod = GetState ;
60 FN_PAGEDOWN_SEL // status()
62 ExecMethod = Execute ;
63 StateMethod = GetState ;
65 FN_GOTO_PAGE // status(final|play)
67 ExecMethod = Execute ;
68 StateMethod = NoState ;
72 ExecMethod = Execute ;
73 StateMethod = GetState ;
78 StateMethod = NoState ;
88 FN_SET_PAGE_STYLE // status(final|play)
90 ExecMethod = ExecColl ;
94 ExecMethod = ExecDraw ;
95 StateMethod = GetDrawState ;
99 ExecMethod = ExecViewOptions ;
100 StateMethod = StateViewOptions ;
104 ExecMethod = ExecViewOptions ;
105 StateMethod = StateViewOptions ;
109 ExecMethod = Execute;
110 StateMethod = GetState ;
111 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
113 FN_REDLINE_ON // status()
115 ExecMethod = Execute;
116 StateMethod = GetState ;
117 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
119 FN_REDLINE_SHOW // status()
121 ExecMethod = Execute;
122 StateMethod = GetState ;
123 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
125 FN_REDLINE_ACCEPT // status(play)
127 ExecMethod = Execute ;
128 StateMethod = GetState ;
129 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
131 FN_REDLINE_ACCEPT_DIRECT
133 ExecMethod = Execute ;
134 StateMethod = GetState ;
135 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
137 FN_REDLINE_REJECT_DIRECT
139 ExecMethod = Execute ;
140 StateMethod = GetState ;
141 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
143 FN_REDLINE_NEXT_CHANGE
145 ExecMethod = Execute ;
146 StateMethod = GetState ;
147 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
149 FN_REDLINE_PREV_CHANGE
151 ExecMethod = Execute ;
152 StateMethod = GetState ;
153 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
155 FN_REDLINE_ACCEPT_TONEXT
157 ExecMethod = Execute;
158 StateMethod = GetState;
159 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
161 FN_REDLINE_REJECT_TONEXT
163 ExecMethod = Execute;
164 StateMethod = GetState;
165 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
168 SID_DOCUMENT_COMPARE // status(play)
170 ExecMethod = Execute ;
171 StateMethod = GetState ;
172 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
174 SID_DOCUMENT_MERGE // status(play)
176 ExecMethod = Execute ;
177 StateMethod = GetState ;
178 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
180 FN_ESCAPE // status(final|play|rec)
182 ExecMethod = Execute ;
184 FN_FAX // status(final|play)
186 ExecMethod = ExecutePrint ;
188 SID_PRINTDOC // status(final|play)
190 ExecMethod = ExecutePrint ;
191 StateMethod = GetState ;
193 SID_PRINTDOCDIRECT // status(final|play)
195 ExecMethod = ExecutePrint ;
196 StateMethod = GetState ;
200 ExecMethod = ExecTabWin ;
201 StateMethod = StateTabWin ;
202 GroupId = SfxGroupId::Edit ;
203 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
207 ExecMethod = ExecTabWin ;
208 StateMethod = StateTabWin ;
209 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
211 SID_ATTR_LONG_LRSPACE // status()
213 ExecMethod = ExecTabWin ;
214 StateMethod = StateTabWin ;
215 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
217 SID_ATTR_LONG_ULSPACE // status()
219 ExecMethod = ExecTabWin ;
220 StateMethod = StateTabWin ;
221 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
223 SID_ATTR_PARA_LRSPACE // status()
225 ExecMethod = ExecTabWin ;
226 StateMethod = StateTabWin ;
227 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
229 SID_ATTR_PARA_LEFTSPACE
231 StateMethod = StateTabWin ;
232 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
234 SID_ATTR_PARA_RIGHTSPACE
236 StateMethod = StateTabWin ;
237 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
239 SID_ATTR_PARA_FIRSTLINESPACE
241 StateMethod = StateTabWin ;
242 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
244 SID_ATTR_PARA_LRSPACE_VERTICAL // status()
246 ExecMethod = ExecTabWin ;
247 StateMethod = StateTabWin ;
248 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
250 SID_RULER_CHANGE_STATE
252 ExecMethod = ExecTabWin ;
254 SID_RULER_BORDERS // status()
256 ExecMethod = ExecTabWin ;
257 StateMethod = StateTabWin ;
258 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
260 SID_RULER_BORDERS_VERTICAL // status()
262 ExecMethod = ExecTabWin ;
263 StateMethod = StateTabWin ;
264 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
266 SID_RULER_BORDER_DISTANCE // status()
268 StateMethod = StateTabWin ;
269 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
271 SID_RULER_PAGE_POS // status()
273 ExecMethod = NoExec ;
274 StateMethod = StateTabWin ;
275 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
277 SID_RULER_TEXT_RIGHT_TO_LEFT
279 StateMethod = StateTabWin ;
280 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
282 SID_RULER_LR_MIN_MAX // status()
284 StateMethod = StateTabWin ;
285 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
287 SID_RULER_PROTECT // status()
289 StateMethod = StateTabWin ;
290 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
292 SID_RULER_ROWS // status()
294 ExecMethod = ExecTabWin ;
295 StateMethod = StateTabWin ;
296 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
298 SID_RULER_ROWS_VERTICAL // status()
300 ExecMethod = ExecTabWin ;
301 StateMethod = StateTabWin ;
302 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
304 SID_TABLE_CHANGE_CURRENT_BORDER_POSITION
306 ExecMethod = ExecTabWin;
308 FN_EDIT_LINK_DLG // status(final|play)
310 ExecMethod = Execute ;
311 StateMethod = GetState ;
312 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
314 FN_SPELL_GRAMMAR_DIALOG
316 ExecMethod = Execute ;
317 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
321 ExecMethod = Execute ;
322 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
324 FN_LINE_NUMBERING_DLG // status()
326 ExecMethod = Execute;
328 FN_UPDATE_TOX // status()
330 ExecMethod = Execute ;
331 StateMethod = GetState ;
332 MenuConfig , AccelConfig , ToolBoxConfig ;
335 FN_UPDATE_CUR_TOX // status()
337 ExecMethod = Execute ;
338 StateMethod = GetState ;
340 FN_EDIT_CURRENT_TOX // status()
342 ExecMethod = Execute ;
343 StateMethod = GetState ;
347 ExecMethod = Execute ;
348 StateMethod = GetState ;
352 ExecMethod = Execute ;
353 StateMethod = GetState ;
354 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
357 //From here the statusbar
358 FN_STAT_PAGE // status()
360 ExecMethod = ExecuteStatusLine ;
361 StateMethod = StateStatusLine ;
363 FN_STAT_WORDCOUNT // status()
365 ExecMethod = ExecuteStatusLine ;
366 StateMethod = StateStatusLine ;
368 FN_STAT_BOOKMARK // status()
370 ExecMethod = ExecuteStatusLine ;
372 FN_STAT_TEMPLATE // status(final|play)
374 ExecMethod = ExecuteStatusLine ;
375 StateMethod = StateStatusLine ;
377 FN_STAT_SELMODE // status(final|play)
379 //Current Selectionmode: 0 == Normal, 2 == Add, 1 == Enhance
380 ExecMethod = ExecuteStatusLine ;
381 StateMethod = StateStatusLine ;
383 FN_SET_ADD_MODE // status()
385 ExecMethod = ExecuteStatusLine ;
386 StateMethod = NoState ;
388 FN_SET_EXT_MODE // status()
390 ExecMethod = ExecuteStatusLine ;
391 StateMethod = NoState ;
393 SID_ATTR_ZOOM // status(final|play)
395 ExecMethod = ExecuteStatusLine ;
396 StateMethod = StateStatusLine ;
398 SID_ATTR_VIEWLAYOUT // status()
400 ExecMethod = ExecuteStatusLine ;
401 StateMethod = StateStatusLine ;
403 SID_ATTR_ZOOMSLIDER // status()
405 ExecMethod = ExecuteStatusLine ;
406 StateMethod = StateStatusLine ;
408 SID_ATTR_INSERT // status(final|play|rec)
410 ExecMethod = ExecuteStatusLine ;
411 StateMethod = StateStatusLine ;
413 SID_ATTR_SIZE // status()
415 ExecMethod = ExecuteStatusLine ;
416 StateMethod = StateStatusLine ;
418 SID_ATTR_POSITION // status()
420 StateMethod = StateStatusLine ;
422 SID_TABLE_CELL // status()
424 StateMethod = StateStatusLine ;
427 //End of the statusbar
429 SID_ATTR_BORDER_SHADOW // status()
431 ExecMethod = Execute ;
432 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
435 // Properties Page Format
436 SID_ATTR_PAGE // status()
438 ExecMethod = Execute ;
439 StateMethod = GetState ;
441 SID_ATTR_PAGE_ORIENTATION // status()
443 StateMethod = GetState ;
445 SID_ATTR_PAGE_SIZE // status(final|play)
447 ExecMethod = Execute ;
448 StateMethod = GetState ;
451 SID_ATTR_PAGE_MAXSIZE // status()
454 ExecMethod = Execute ;
456 SID_ATTR_PAGE_PAPERBIN // status(final|play)
458 ExecMethod = Execute ;
459 StateMethod = GetState ;
462 SID_ATTR_PARA_ULSPACE
464 ExecMethod = ExecTabWin ;
465 StateMethod = StateTabWin ;
468 SID_ATTR_PARA_ABOVESPACE
470 StateMethod = StateTabWin ;
473 SID_ATTR_PARA_BELOWSPACE
475 StateMethod = StateTabWin ;
478 SID_PARASPACE_INCREASE
480 ExecMethod = ExecTabWin;
481 StateMethod = StateTabWin;
482 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
485 SID_PARASPACE_DECREASE
487 ExecMethod = ExecTabWin;
488 StateMethod = StateTabWin;
489 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
494 ExecMethod = ExecTabWin ;
495 StateMethod = StateTabWin ;
499 ExecMethod = ExecTabWin ;
500 StateMethod = StateTabWin ;
502 SID_ATTR_PAGE_FILLSTYLE
504 ExecMethod = ExecTabWin ;
505 StateMethod = StateTabWin ;
507 SID_ATTR_PAGE_HEADER_LRMARGIN
509 ExecMethod = ExecTabWin ;
510 StateMethod = StateTabWin ;
514 ExecMethod = ExecTabWin ;
515 StateMethod = StateTabWin ;
517 SID_ATTR_PAGE_HEADER_SPACING
519 ExecMethod = ExecTabWin ;
520 StateMethod = StateTabWin ;
522 SID_ATTR_PAGE_GRADIENT
524 ExecMethod = ExecTabWin ;
525 StateMethod = StateTabWin ;
527 SID_ATTR_PAGE_HEADER_LAYOUT
529 ExecMethod = ExecTabWin ;
530 StateMethod = StateTabWin ;
534 ExecMethod = ExecTabWin ;
535 StateMethod = StateTabWin ;
539 ExecMethod = ExecTabWin ;
540 StateMethod = StateTabWin ;
542 SID_ATTR_PAGE_FOOTER_LRMARGIN
544 ExecMethod = ExecTabWin ;
545 StateMethod = StateTabWin ;
547 SID_ATTR_PAGE_FOOTER_SPACING
549 ExecMethod = ExecTabWin ;
550 StateMethod = StateTabWin ;
552 SID_ATTR_PAGE_FOOTER_LAYOUT
554 ExecMethod = ExecTabWin ;
555 StateMethod = StateTabWin ;
559 ExecMethod = ExecTabWin ;
560 StateMethod = StateTabWin ;
564 ExecMethod = ExecTabWin ;
565 StateMethod = StateTabWin ;
566 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
568 SID_ATTR_PAGE_ULSPACE
570 ExecMethod = ExecTabWin ;
571 StateMethod = StateTabWin ;
572 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
574 SID_ATTR_PAGE_LRSPACE
576 ExecMethod = ExecTabWin ;
577 StateMethod = StateTabWin ;
578 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
582 StateMethod = StateTabWin ;
583 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
586 SID_THESAURUS // status(final|play)
588 ExecMethod = ExecLingu ;
589 StateMethod = GetState ;
590 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
592 SID_HANGUL_HANJA_CONVERSION // status(final|play)
594 ExecMethod = ExecLingu ;
595 StateMethod = GetState ;
596 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
598 SID_CHINESE_CONVERSION
600 ExecMethod = ExecLingu ;
601 StateMethod = GetState ;
602 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
605 /* search and replace */
607 SID_SEARCH_ITEM // status()
609 ExecMethod = ExecSearch ;
610 StateMethod = StateSearch ;
613 FN_REPEAT_SEARCH // status(final|play)
615 ExecMethod = ExecSearch ;
617 FID_SEARCH_NOW // status()
619 ExecMethod = ExecSearch ;
621 SID_SEARCH_OPTIONS // status()
623 StateMethod = StateSearch ;
625 FID_SEARCH_SEARCHSET // status()
627 ExecMethod = ExecSearch ;
629 FID_SEARCH_REPLACESET // status()
631 ExecMethod = ExecSearch ;
632 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
634 SID_ATTR_TABSTOP // status()
636 ExecMethod = ExecTabWin ;
637 StateMethod = StateTabWin ;
638 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
640 SID_ATTR_TABSTOP_VERTICAL // status()
642 ExecMethod = ExecTabWin ;
643 StateMethod = StateTabWin ;
644 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
646 SID_TABSTOP_ADD_OR_CHANGE // status()
648 ExecMethod = ExecTabWin;
650 SID_PARAGRAPH_CHANGE_STATE // status()
652 ExecMethod = ExecTabWin;
654 // from here Export = FALSE;
655 FID_SEARCH_ON // status()
657 ExecMethod = ExecSearch ;
660 FID_SEARCH_OFF // status()
662 ExecMethod = ExecSearch ;
672 ExecMethod = Execute ;
673 StateMethod = GetState ;
675 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
679 ExecMethod = Execute ;
680 StateMethod = GetState ;
682 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
684 SID_ATTR_CHAR_CJK_LANGUAGE
686 ExecMethod = Execute ;
687 StateMethod = GetState ;
689 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
691 SID_ATTR_CHAR_CTL_LANGUAGE
693 ExecMethod = Execute ;
694 StateMethod = GetState ;
696 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
701 ExecMethod = Execute ;
702 StateMethod = NoState ;
705 FN_SYNC_LABELS // status(play)
707 ExecMethod = Execute ;
710 FN_MAILMERGE_SENDMAIL_CHILDWINDOW
712 ExecMethod = Execute ;
713 StateMethod = GetState;
716 SID_ATTR_BRUSH // status()
718 ExecMethod = Execute ;
719 StateMethod = GetState ;
720 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
724 ExecMethod = Execute ;
728 ExecMethod = Execute ;
729 StateMethod = GetState ;
731 SID_VIEW_DATA_SOURCE_BROWSER // status()
733 ExecMethod = Execute ;
734 StateMethod = GetState;
736 SID_READONLY_MODE // ole : no, status : no
738 StateMethod = GetState ;
740 SID_IMAGE_ORIENTATION
742 StateMethod = GetState ;
744 FN_INSERT_FIELD_DATA_ONLY // status(final|play)
746 ExecMethod = Execute ;
747 StateMethod = GetState ;
749 FN_QRY_MERGE // status()
751 ExecMethod = Execute ;
752 DisableFlags="SfxDisableFlags::SwOnMailboxEditor";
756 ExecMethod = Execute ;
757 StateMethod = GetState ;
759 SID_ALIGN_ANY_HCENTER
761 ExecMethod = Execute ;
762 StateMethod = GetState ;
766 ExecMethod = Execute ;
767 StateMethod = GetState ;
769 SID_ALIGN_ANY_JUSTIFIED
771 ExecMethod = Execute ;
772 StateMethod = GetState ;
776 ExecMethod = Execute ;
777 StateMethod = GetState ;
779 SID_ALIGN_ANY_VCENTER
781 ExecMethod = Execute ;
782 StateMethod = GetState ;
786 ExecMethod = Execute ;
787 StateMethod = GetState ;
789 SID_RESTORE_EDITING_VIEW
791 ExecMethod = Execute ;
792 StateMethod = GetState ;
794 SID_INSERT_GRAPHIC // status(final|play)
796 ExecMethod = Execute ;
797 StateMethod = GetState ;
798 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
802 ExecMethod = ExecViewOptions ;
803 StateMethod = StateViewOptions ;
807 //Will be summarized to Property ViewSettings
810 ExecMethod = ExecViewOptions ;
811 StateMethod = StateViewOptions ;
815 FN_VIEW_HIDE_WHITESPACE
817 ExecMethod = ExecViewOptions ;
818 StateMethod = StateViewOptions ;
824 ExecMethod = ExecViewOptions ;
825 StateMethod = StateViewOptions ;
829 SID_TOGGLE_RESOLVED_NOTES
831 ExecMethod = ExecViewOptions ;
832 StateMethod = StateViewOptions ;
836 // Everything from here can be removed (Export = FALSE;), if the previous works
839 ExecMethod = ExecViewOptions ;
840 StateMethod = StateViewOptions ;
842 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
845 FN_VIEW_BOUNDS // status()
847 ExecMethod = ExecViewOptions ;
848 StateMethod = StateViewOptions ;
852 FN_VIEW_GRAPHIC // status()
854 ExecMethod = ExecViewOptions ;
855 StateMethod = StateViewOptions ;
858 FN_VIEW_FIELDS // status()
860 ExecMethod = ExecViewOptions ;
861 StateMethod = StateViewOptions ;
865 FN_VIEW_FIELDNAME // status()
867 ExecMethod = ExecViewOptions ;
868 StateMethod = StateViewOptions ;
872 FN_VIEW_MARKS // status()
874 ExecMethod = ExecViewOptions ;
875 StateMethod = StateViewOptions ;
879 FN_VIEW_META_CHARS // status()
881 ExecMethod = ExecViewOptions ;
882 StateMethod = StateViewOptions ;
886 FN_VIEW_TABLEGRID // status()
888 ExecMethod = ExecViewOptions ;
889 StateMethod = StateViewOptions ;
894 ExecMethod = ExecViewOptions;
895 StateMethod = StateViewOptions ;
899 ExecMethod = ExecViewOptions;
900 StateMethod = StateViewOptions ;
904 ExecMethod = ExecViewOptions;
905 StateMethod = StateViewOptions ;
908 FN_VLINEAL // status()
910 ExecMethod = ExecViewOptions ;
911 StateMethod = StateViewOptions ;
913 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
916 FN_HSCROLLBAR // status()
918 ExecMethod = ExecViewOptions ;
919 StateMethod = StateViewOptions ;
923 FN_VSCROLLBAR // status()
925 ExecMethod = ExecViewOptions ;
926 StateMethod = StateViewOptions ;
930 FN_SHADOWCURSOR // status(final|play)
932 ExecMethod = ExecViewOptions ;
933 StateMethod = StateViewOptions ;
934 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
936 SID_TRACK_CHANGES_BAR
938 ExecMethod = ExecViewOptions ;
939 StateMethod = StateViewOptions ;
942 FN_SHOW_INLINETOOLTIPS
944 ExecMethod = ExecViewOptions ;
945 StateMethod = StateViewOptions ;
947 MenuConfig , AccelConfig , ToolBoxConfig ;
950 FN_USE_HEADERFOOTERMENU
952 ExecMethod = ExecViewOptions ;
953 StateMethod = StateViewOptions ;
955 MenuConfig , AccelConfig , ToolBoxConfig ;