1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 interface BaseTextSelection
35 ExecMethod = Execute ;
36 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
39 SID_DELETE // status(final|play)
41 ExecMethod = ExecDelete ;
42 StateMethod = GetState ;
44 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
47 FN_BACKSPACE // status(final|play)
49 ExecMethod = ExecDelete ;
50 StateMethod = GetState ;
52 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
55 FN_SHIFT_BACKSPACE // status()
57 ExecMethod = ExecDelete ;
58 StateMethod = NoState ;
59 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
62 SID_UNDO // status(final|play)
64 ExecMethod = ExecUndo ;
65 StateMethod = StateUndo ;
68 SID_GETUNDOSTRINGS // status(final|play)
70 StateMethod = StateUndo ;
73 SID_REDO // status(final|play)
75 ExecMethod = ExecUndo ;
76 StateMethod = StateUndo ;
79 SID_GETREDOSTRINGS // status(final|play)
81 StateMethod = StateUndo ;
84 SID_REPEAT // status()
86 ExecMethod = ExecUndo ;
87 StateMethod = StateUndo ;
88 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
91 SID_CUT // status(final|play)
93 ExecMethod = ExecClpbrd ;
94 StateMethod = StateClpbrd ;
95 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
98 SID_COPY // status(final|play)
100 ExecMethod = ExecClpbrd ;
101 StateMethod = StateClpbrd ;
104 SID_PASTE // status(final|play)
106 ExecMethod = ExecClpbrd ;
107 StateMethod = StateClpbrd ;
108 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
111 SID_CLIPBOARD_FORMAT_ITEMS // status(final|play)
113 StateMethod = StateClpbrd ;
114 ExecMethod = ExecClpbrd ;
115 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
118 SID_PASTE_UNFORMATTED // status(final|play)
120 ExecMethod = ExecClpbrd ;
121 StateMethod = StateClpbrd ;
122 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
125 SID_PASTE_SPECIAL // status(final|play)
127 ExecMethod = ExecClpbrd ;
128 StateMethod = StateClpbrd ;
129 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
132 FN_REPAGINATE // status(final|play)
134 ExecMethod = Execute ;
135 StateMethod = NoState ;
140 ExecMethod = ExecField ;
141 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
144 FN_UPDATE_FIELDS // status(final|play)
146 ExecMethod = Execute ;
147 StateMethod = NoState ;
150 FN_UPDATE_CHARTS // status(final|play)
152 ExecMethod = Execute ;
153 StateMethod = GetState ;
155 FN_UPDATE_ALL // status(final|play)
157 ExecMethod = Execute ;
158 StateMethod = NoState ;
161 FN_UPDATE_INPUTFIELDS // status(final|play)
163 ExecMethod = Execute ;
164 StateMethod = NoState ;
167 FN_FRAME_TO_ANCHOR // status()
169 /*OS: Datentypen unvertraeglich ?? */
170 ExecMethod = Execute ;
171 StateMethod = NoState ;
174 FN_GOTO_NEXT_OBJ // status(final|play)
176 ExecMethod = Execute ;
177 StateMethod = NoState ;
180 FN_GOTO_PREV_OBJ // status(final|play)
182 ExecMethod = Execute ;
183 StateMethod = NoState ;
186 FN_GOTO_NEXT_MARK // status(final|play)
188 ExecMethod = Execute ;
189 StateMethod = NoState ;
192 FN_GOTO_PREV_MARK // status(final|play)
194 ExecMethod = Execute ;
195 StateMethod = NoState ;
198 FN_PREV_BOOKMARK // status(final|play)
200 ExecMethod = Execute ;
201 StateMethod = NoState ;
204 FN_NEXT_BOOKMARK // status(final|play)
206 ExecMethod = Execute ;
207 StateMethod = NoState ;
210 SID_GALLERY_FORMATS // status()
213 ExecMethod = Execute ;
216 SID_GALLERY_ENABLE_ADDCOPY
219 StateMethod = GetState;
220 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
223 SID_BACKGROUND_COLOR // status()
225 ExecMethod = ExecBckCol ;
226 StateMethod = GetBckColState ;
227 Cachable , AutoUpdate ;
228 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
231 FN_EDIT_REGION // status(final|play)
233 ExecMethod = EditRegionDialog ;
234 StateMethod = GetState ;
237 FN_INSERT_REGION // status()
239 ExecMethod = InsertRegionDialog;
240 StateMethod = GetState;
241 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
244 FN_FORMAT_PAGE_DLG // status(final|play)
246 ExecMethod = ExecDlg ;
247 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
250 FN_FORMAT_TITLEPAGE_DLG // status(final|play)
252 ExecMethod = ExecDlg ;
253 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
256 FN_FORMAT_PAGE_COLUMN_DLG // status(final|play)
258 ExecMethod = ExecDlg ;
259 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
262 FN_CONVERT_TABLE_TO_TEXT
264 ExecMethod = Execute ;
265 StateMethod = GetState ;
266 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
269 FN_CONVERT_TEXT_TO_TABLE
271 ExecMethod = Execute ;
272 StateMethod = GetState ;
273 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
275 FN_CONVERT_TEXT_TABLE // status(final|play)
277 ExecMethod = Execute ;
278 StateMethod = GetState ;
279 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
281 FN_FORMAT_BORDER_DLG // status(final|play)
283 ExecMethod = ExecDlg ;
284 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
287 SID_ATTR_BORDER_INNER // status()
289 StateMethod = GetBorderState ;
290 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
293 SID_ATTR_BORDER_OUTER // status()
295 ExecMethod = Execute ;
296 StateMethod = GetBorderState ;
297 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
300 SID_BORDER_REDUCED_MODE
302 StateMethod = GetBorderState ;
303 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
306 FN_FORMAT_BACKGROUND_DLG // status(final|play)
308 ExecMethod = ExecDlg ;
309 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
312 SfxBoolItem StyleWatercanMode SID_STYLE_WATERCAN // status()
314 SfxUInt16Item WatercanStyleModeOnOff
316 SfxStringItem Param SID_STYLE_WATERCAN ,
317 SfxUInt16Item Family SID_STYLE_FAMILY
319 ExecMethod = Execute ;
320 StateMethod = StateStyle ;
322 GroupId = GID_TEMPLATE ;
323 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
326 SID_STYLE_UPDATE_BY_EXAMPLE // status()
328 ExecMethod = Execute ;
329 StateMethod = StateStyle ;
332 SID_STYLE_NEW_BY_EXAMPLE // status(fina|play)
334 ExecMethod = Execute ;
335 StateMethod = StateStyle ;
336 FastCall = TRUE; // fuer Macroausfuehrung!
338 SID_STYLE_APPLY // status(fina|play)
340 ExecMethod = Execute ;
341 StateMethod = StateStyle ;
342 FastCall = TRUE;// fuer Macroausfuehrung!
343 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
346 SID_STYLE_FAMILY1 // status(fina|play)
348 StateMethod = StateStyle ;
351 SID_STYLE_FAMILY2 // status(fina|play)
353 StateMethod = StateStyle ;
356 SID_STYLE_FAMILY3 // status(fina|play)
358 StateMethod = StateStyle ;
361 SID_STYLE_FAMILY4 // status(fina|play)
363 StateMethod = StateStyle ;
366 SID_STYLE_FAMILY5 // status(fina|play)
368 StateMethod = StateStyle ;
371 //OS: Selection.Escape gibt es zusaetzlich zu Window.Escape
373 FN_ESCAPE // status(final|play|rec)
375 ExecMethod = Execute ;
380 ExecMethod = Execute ;
381 StateMethod = GetState ;
387 ExecMethod = Execute ;
388 StateMethod = GetState ;
389 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
391 // Methode fuer Rahmen und Objekte
394 ExecMethod = Execute ;
395 StateMethod = GetState ;
396 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
399 FN_TOOL_ANCHOR_PARAGRAPH
401 ExecMethod = Execute ;
402 StateMethod = GetState ;
403 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
408 ExecMethod = Execute ;
409 StateMethod = GetState ;
410 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
413 FN_TOOL_ANCHOR_AT_CHAR
415 ExecMethod = Execute ;
416 StateMethod = GetState ;
417 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
422 ExecMethod = Execute ;
423 StateMethod = GetState ;
424 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
427 FN_UPDATE_ALL_LINKS // status()
429 ExecMethod = Execute ;
430 StateMethod = GetState ;
433 // from here on Export = FALSE
435 FN_FRAME_WRAP // status()
437 ExecMethod = Execute ;
438 StateMethod = GetState ;
439 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
443 FN_FRAME_WRAP_IDEAL // status()
445 ExecMethod = Execute ;
446 StateMethod = GetState ;
447 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
451 FN_FRAME_NOWRAP // status()
453 ExecMethod = Execute ;
454 StateMethod = GetState ;
455 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
459 FN_FRAME_WRAPTHRU // status()
461 ExecMethod = Execute ;
462 StateMethod = GetState ;
463 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
467 FN_FRAME_WRAPTHRU_TRANSP // status()
469 ExecMethod = Execute ;
470 StateMethod = GetState ;
471 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
475 FN_FRAME_WRAP_CONTOUR // status()
477 ExecMethod = Execute ;
478 StateMethod = GetState ;
479 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
483 FN_WRAP_ANCHOR_ONLY // status()
485 ExecMethod = Execute ;
486 StateMethod = GetState ;
487 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
491 FN_FRAME_WRAP_LEFT // status()
493 ExecMethod = Execute ;
494 StateMethod = GetState ;
495 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
499 FN_FRAME_WRAP_RIGHT // status()
501 ExecMethod = Execute ;
502 StateMethod = GetState ;
503 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
511 ExecMethod = ExecuteGallery;
512 StateMethod = GetGalleryState;
513 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
516 SID_ATTR_BORDER_SHADOW // status(final|play)
518 ExecMethod = Execute ;
519 StateMethod = GetState ;
520 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
523 FN_XFORMS_DESIGN_MODE
525 ExecMethod = Execute;
526 StateMethod = GetState;