1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _viewsh.sdi,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 interface BaseTextEditView : View
37 FN_REFRESH_VIEW // status(final|play)
39 ExecMethod = Execute ;
41 FN_PAGEUP // status(final|play)
43 ExecMethod = Execute ;
44 StateMethod = GetState ;
46 FN_PAGEUP_SEL // status()
48 ExecMethod = Execute ;
49 StateMethod = GetState ;
51 SID_UNDO // status(final|play)
53 ExecMethod = Execute ;
54 StateMethod = GetState ;
56 SID_FORMATPAINTBRUSH //
58 ExecMethod = ExecFormatPaintbrush ;
59 StateMethod = StateFormatPaintbrush ;
60 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
62 SID_CLEARHISTORY // status(final|play)
64 ExecMethod = Execute ;
65 StateMethod = GetState ;
67 SID_CREATE_SW_DRAWVIEW
71 FN_PAGEDOWN // status(final|play)
73 ExecMethod = Execute ;
74 StateMethod = GetState ;
76 FN_PAGEDOWN_SEL // status()
78 ExecMethod = Execute ;
79 StateMethod = GetState ;
81 FN_NAVIGATION_PI_GOTO_PAGE // status(final|play)
83 ExecMethod = Execute ;
84 StateMethod = NoState ;
89 StateMethod = NoState ;
95 FN_SET_PAGE_STYLE // status(final|play)
97 ExecMethod = ExecColl ;
101 ExecMethod = ExecDraw ;
102 StateMethod = GetDrawState ;
106 ExecMethod = Execute;
107 StateMethod = GetState ;
108 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
110 FN_REDLINE_ON // status()
112 ExecMethod = Execute;
113 StateMethod = GetState ;
114 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
116 FN_REDLINE_SHOW // status()
118 ExecMethod = Execute;
119 StateMethod = GetState ;
120 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
122 FN_REDLINE_ACCEPT // status(play)
124 ExecMethod = Execute ;
125 StateMethod = GetState ;
126 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
128 FN_REDLINE_ACCEPT_DIRECT
130 ExecMethod = Execute ;
131 StateMethod = GetState ;
132 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
134 FN_REDLINE_REJECT_DIRECT
136 ExecMethod = Execute ;
137 StateMethod = GetState ;
138 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
141 SID_DOCUMENT_COMPARE // status(play)
143 ExecMethod = Execute ;
144 StateMethod = GetState ;
145 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
147 SID_DOCUMENT_MERGE // status(play)
149 ExecMethod = Execute ;
150 StateMethod = GetState ;
151 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
153 FN_ESCAPE // status(final|play|rec)
155 ExecMethod = Execute ;
157 FN_FAX // status(final|play)
159 ExecMethod = ExecutePrint ;
161 SID_PRINTDOC // status(final|play)
163 ExecMethod = ExecutePrint ;
164 StateMethod = GetState ;
166 SID_PRINTDOCDIRECT // status(final|play)
168 ExecMethod = ExecutePrint ;
169 StateMethod = GetState ;
173 ExecMethod = ExecTabWin ;
174 StateMethod = StateTabWin ;
176 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
180 ExecMethod = ExecTabWin ;
181 StateMethod = StateTabWin ;
182 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
184 SID_ATTR_LONG_LRSPACE // status()
186 ExecMethod = ExecTabWin ;
187 StateMethod = StateTabWin ;
188 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
190 SID_ATTR_LONG_ULSPACE // status()
192 ExecMethod = ExecTabWin ;
193 StateMethod = StateTabWin ;
194 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
196 SID_ATTR_PARA_LRSPACE // status()
198 ExecMethod = ExecTabWin ;
199 StateMethod = StateTabWin ;
200 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
202 SID_ATTR_PARA_LRSPACE_VERTICAL // status()
204 ExecMethod = ExecTabWin ;
205 StateMethod = StateTabWin ;
206 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
208 SID_RULER_BORDERS // status()
210 ExecMethod = ExecTabWin ;
211 StateMethod = StateTabWin ;
212 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
214 SID_RULER_BORDERS_VERTICAL // status()
216 ExecMethod = ExecTabWin ;
217 StateMethod = StateTabWin ;
218 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
220 SID_RULER_BORDER_DISTANCE // status()
222 StateMethod = StateTabWin ;
223 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
225 SID_RULER_PAGE_POS // status()
227 ExecMethod = NoExec ;
228 StateMethod = StateTabWin ;
229 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
231 SID_RULER_TEXT_RIGHT_TO_LEFT
233 StateMethod = StateTabWin ;
234 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
236 SID_RULER_LR_MIN_MAX // status()
238 StateMethod = StateTabWin ;
239 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
241 SID_RULER_PROTECT // status()
243 StateMethod = StateTabWin ;
244 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
246 SID_RULER_ROWS // status()
248 ExecMethod = ExecTabWin ;
249 StateMethod = StateTabWin ;
250 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
252 SID_RULER_ROWS_VERTICAL // status()
254 ExecMethod = ExecTabWin ;
255 StateMethod = StateTabWin ;
256 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
258 FN_EDIT_LINK_DLG // status(final|play)
260 ExecMethod = Execute ;
261 StateMethod = GetState ;
262 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
264 FN_SPELL_GRAMMAR_DIALOG
266 ExecMethod = Execute ;
267 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
271 ExecMethod = Execute ;
272 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
274 FN_LINE_NUMBERING_DLG // status()
276 ExecMethod = Execute;
278 FN_UPDATE_TOX // status()
280 ExecMethod = Execute ;
281 StateMethod = GetState ;
282 MenuConfig , AccelConfig , ToolBoxConfig ;
285 FN_UPDATE_CUR_TOX // status()
287 ExecMethod = Execute ;
288 StateMethod = GetState ;
290 FN_EDIT_CURRENT_TOX // status()
292 ExecMethod = Execute ;
293 StateMethod = GetState ;
297 ExecMethod = Execute ;
298 StateMethod = GetState ;
302 ExecMethod = Execute ;
303 StateMethod = GetState ;
304 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
306 //---------------------------------------------------------------------
307 //Ab hier Statusleiste
308 FN_STAT_PAGE // status()
310 ExecMethod = ExecuteStatusLine ;
311 StateMethod = StateStatusLine ;
313 FN_STAT_BOOKMARK // status()
315 ExecMethod = ExecuteStatusLine ;
317 FN_STAT_TEMPLATE // status(final|play)
319 ExecMethod = ExecuteStatusLine ;
320 StateMethod = StateStatusLine ;
322 FN_STAT_SELMODE // status(final|play)
324 //Aktueller Selektionsmode: 0 == Normal, 2 == Ergaenzen, 1 == Erweitern
325 ExecMethod = ExecuteStatusLine ;
326 StateMethod = StateStatusLine ;
328 FN_SET_ADD_MODE // status()
330 ExecMethod = ExecuteStatusLine ;
331 StateMethod = NoState ;
333 FN_SET_EXT_MODE // status()
335 ExecMethod = ExecuteStatusLine ;
336 StateMethod = NoState ;
338 SID_ATTR_ZOOM // status(final|play)
340 ExecMethod = ExecuteStatusLine ;
341 StateMethod = StateStatusLine ;
343 SID_ATTR_VIEWLAYOUT // status()
345 ExecMethod = ExecuteStatusLine ;
346 StateMethod = StateStatusLine ;
348 SID_ATTR_ZOOMSLIDER // status()
350 ExecMethod = ExecuteStatusLine ;
351 StateMethod = StateStatusLine ;
353 SID_ATTR_INSERT // status(final|play|rec)
355 ExecMethod = ExecuteStatusLine ;
356 StateMethod = StateStatusLine ;
358 SID_ATTR_SIZE // status()
360 ExecMethod = ExecuteStatusLine ;
361 StateMethod = StateStatusLine ;
363 SID_ATTR_POSITION // status()
365 StateMethod = StateStatusLine ;
367 SID_TABLE_CELL // status()
369 StateMethod = StateStatusLine ;
371 //----------------------------------------------
372 //End mit Statusleiste
373 //----------------------------------------------
374 SID_ATTR_BORDER_SHADOW // status()
376 ExecMethod = Execute ;
377 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
379 /****************************************************/
381 /* Properties Seitenformat */
383 /****************************************************/
384 SID_ATTR_PAGE // status()
386 ExecMethod = Execute ;
387 StateMethod = GetState ;
389 SID_ATTR_PAGE_SIZE // status(final|play)
391 ExecMethod = Execute ;
392 StateMethod = GetState ;
394 SID_ATTR_PAGE_MAXSIZE // status()
397 ExecMethod = Execute ;
399 SID_ATTR_PAGE_PAPERBIN // status(final|play)
401 ExecMethod = Execute ;
402 StateMethod = GetState ;
404 FN_THESAURUS_DLG // status(final|play)
406 ExecMethod = ExecLingu ;
407 StateMethod = GetState ;
408 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
410 SID_HANGUL_HANJA_CONVERSION // status(final|play)
412 ExecMethod = ExecLingu ;
413 StateMethod = GetState ;
414 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
416 SID_CHINESE_CONVERSION
418 ExecMethod = ExecLingu ;
419 StateMethod = GetState ;
420 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
427 SID_SEARCH_ITEM // status()
429 ExecMethod = ExecSearch ;
430 StateMethod = StateSearch ;
433 FN_REPEAT_SEARCH // status(final|play)
435 ExecMethod = ExecSearch ;
437 FID_SEARCH_NOW // status()
439 ExecMethod = ExecSearch ;
441 SID_SEARCH_OPTIONS // status()
443 StateMethod = StateSearch ;
445 FID_SEARCH_SEARCHSET // status()
447 ExecMethod = ExecSearch ;
449 FID_SEARCH_REPLACESET // status()
451 ExecMethod = ExecSearch ;
452 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
454 SID_ATTR_TABSTOP // status()
456 ExecMethod = ExecTabWin ;
457 StateMethod = StateTabWin ;
458 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
460 SID_ATTR_TABSTOP_VERTICAL // status()
462 ExecMethod = ExecTabWin ;
463 StateMethod = StateTabWin ;
464 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
466 // ab hier Export = FALSE;
467 FID_SEARCH_ON // status()
469 ExecMethod = ExecSearch ;
472 FID_SEARCH_OFF // status()
474 ExecMethod = ExecSearch ;
479 ExecMethod = Execute ;
480 StateMethod = GetState ;
486 ExecMethod = Execute ;
487 StateMethod = GetState ;
489 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
493 ExecMethod = Execute ;
494 StateMethod = GetState ;
496 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
498 SID_ATTR_CHAR_CJK_LANGUAGE
500 ExecMethod = Execute ;
501 StateMethod = GetState ;
503 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
505 SID_ATTR_CHAR_CTL_LANGUAGE
507 ExecMethod = Execute ;
508 StateMethod = GetState ;
510 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
516 ExecMethod = Execute ;
517 StateMethod = NoState ;
518 FastCall , Cachable ;
521 FN_SYNC_LABELS // status(play)
523 ExecMethod = Execute ;
525 FN_MAILMERGE_CHILDWINDOW
527 ExecMethod = Execute ;
528 StateMethod = GetState;
531 FN_MAILMERGE_SENDMAIL_CHILDWINDOW
533 ExecMethod = Execute ;
534 StateMethod = GetState;
537 SID_ATTR_BRUSH // status()
539 ExecMethod = Execute ;
540 StateMethod = GetState ;
541 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
545 ExecMethod = Execute ;
546 StateMethod = GetState ;
550 ExecMethod = Execute ;
551 StateMethod = GetState ;
553 SID_VIEW_DATA_SOURCE_BROWSER // status()
555 ExecMethod = Execute ;
556 StateMethod = GetState;
558 SID_READONLY_MODE // ole : no, status : no
560 StateMethod = GetState ;
562 SID_IMAGE_ORIENTATION
564 StateMethod = GetState ;
566 FN_INSERT_FIELD_DATA_ONLY // status(final|play)
568 ExecMethod = Execute ;
569 StateMethod = GetState ;
571 FN_QRY_MERGE // status()
573 ExecMethod = Execute ;
574 DisableFlags="SW_DISABLE_ON_MAILBOX_EDITOR";
578 ExecMethod = Execute ;
579 StateMethod = GetState ;
581 SID_ALIGN_ANY_HCENTER
583 ExecMethod = Execute ;
584 StateMethod = GetState ;
588 ExecMethod = Execute ;
589 StateMethod = GetState ;
591 SID_ALIGN_ANY_JUSTIFIED
593 ExecMethod = Execute ;
594 StateMethod = GetState ;
598 ExecMethod = Execute ;
599 StateMethod = GetState ;
601 SID_ALIGN_ANY_VCENTER
603 ExecMethod = Execute ;
604 StateMethod = GetState ;
608 ExecMethod = Execute ;
609 StateMethod = GetState ;
611 SID_RESTORE_EDITING_VIEW
613 ExecMethod = Execute ;
614 StateMethod = GetState ;
616 SID_INSERT_GRAPHIC // status(final|play)
618 ExecMethod = Execute ;
619 StateMethod = NoState ;
620 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
624 ExecMethod = ExecViewOptions ;
625 StateMethod = StateViewOptions ;
628 //Extra/Optionen/Ansicht
629 //Wird zusammen zum Property ViewSettings
632 ExecMethod = ExecViewOptions ;
633 StateMethod = StateViewOptions ;
639 ExecMethod = ExecViewOptions ;
640 StateMethod = StateViewOptions ;
643 // alles ab hier kann weg (Export = FALSE;), wenn die vorangehenden funktionieren
646 ExecMethod = ExecViewOptions ;
647 StateMethod = StateViewOptions ;
650 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
653 FN_VIEW_BOUNDS // status()
655 ExecMethod = ExecViewOptions ;
656 StateMethod = StateViewOptions ;
661 FN_VIEW_GRAPHIC // status()
663 ExecMethod = ExecViewOptions ;
664 StateMethod = StateViewOptions ;
667 FN_VIEW_FIELDS // status()
669 ExecMethod = ExecViewOptions ;
670 StateMethod = StateViewOptions ;
674 FN_VIEW_FIELDNAME // status()
676 ExecMethod = ExecViewOptions ;
677 StateMethod = StateViewOptions ;
682 FN_VIEW_MARKS // status()
684 ExecMethod = ExecViewOptions ;
685 StateMethod = StateViewOptions ;
690 FN_VIEW_META_CHARS // status()
692 ExecMethod = ExecViewOptions ;
693 StateMethod = StateViewOptions ;
698 FN_VIEW_TABLEGRID // status()
700 ExecMethod = ExecViewOptions ;
701 StateMethod = StateViewOptions ;
706 ExecMethod = ExecViewOptions;
707 StateMethod = StateViewOptions ;
711 ExecMethod = ExecViewOptions;
712 StateMethod = StateViewOptions ;
716 ExecMethod = ExecViewOptions;
717 StateMethod = StateViewOptions ;
720 FN_VLINEAL // status()
722 ExecMethod = ExecViewOptions ;
723 StateMethod = StateViewOptions ;
725 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
728 FN_HSCROLLBAR // status()
730 ExecMethod = ExecViewOptions ;
731 StateMethod = StateViewOptions ;
735 FN_VSCROLLBAR // status()
737 ExecMethod = ExecViewOptions ;
738 StateMethod = StateViewOptions ;
742 FN_SHADOWCURSOR // status(final|play)
744 ExecMethod = ExecViewOptions ;
745 StateMethod = StateViewOptions ;
746 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
750 interface GlobalContents
751 [ uuid = "1FD80520-F517-11d0-AC9B-008029E867C6"; ]
753 UINT16 Type FN_COLL_TYPE
755 UINT16 Position FN_COLL_TYPE
760 // Bereichsname, Index-Titel oder Leerstring
761 String Title FN_COLL_TITLE
763 UINT16 Position FN_COLL_TITLE
767 // ohne FileName wird ein TextBereich an der Position eingefuegt
768 BOOL InsertDocument FN_COLL_ADD
770 UINT16 Position FN_COLL_ADD,
771 UINT16 FileName FN_PARAM_1