1/*
2 * This file is part of the LibreOffice project.
3 *
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/.
7 *
8 * This file incorporates work covered by the following license notice:
9 *
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 .
17 */
18
19interface BaseTextSelection
20{
21    SID_ATTR_BRUSH
22    [
23        ExecMethod = Execute ;
24        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
25    ]
26
27    SID_DELETE  // status(final|play)
28    [
29        ExecMethod = ExecDelete ;
30        StateMethod = GetState ;
31        FastCall = FALSE ;
32    ]
33
34    FN_BACKSPACE  // status(final|play)
35    [
36        ExecMethod = ExecDelete ;
37        StateMethod = GetState ;
38        FastCall = FALSE ;
39    ]
40
41    FN_SHIFT_BACKSPACE // status()
42    [
43        ExecMethod = ExecDelete ;
44        StateMethod = NoState ;
45        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
46    ]
47
48    SID_UNDO // status(final|play)
49    [
50        ExecMethod = ExecUndo ;
51        StateMethod = StateUndo ;
52    ]
53
54    SID_GETUNDOSTRINGS  // status(final|play)
55    [
56        StateMethod = StateUndo ;
57    ]
58
59    SID_REDO // status(final|play)
60    [
61        ExecMethod = ExecUndo ;
62        StateMethod = StateUndo ;
63    ]
64
65    SID_GETREDOSTRINGS  // status(final|play)
66    [
67        StateMethod = StateUndo ;
68    ]
69
70    SID_REPEAT // status()
71    [
72        ExecMethod = ExecUndo ;
73        StateMethod = StateUndo ;
74        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
75    ]
76
77    SID_CUT // status(final|play)
78    [
79        ExecMethod = ExecClpbrd ;
80        StateMethod = StateClpbrd ;
81        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
82    ]
83
84    SID_COPY   // status(final|play)
85    [
86        ExecMethod = ExecClpbrd ;
87        StateMethod = StateClpbrd ;
88    ]
89
90    SID_PASTE  // status(final|play)
91    [
92        ExecMethod = ExecClpbrd ;
93        StateMethod = StateClpbrd ;
94        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
95    ]
96
97    SID_CLIPBOARD_FORMAT_ITEMS  // status(final|play)
98    [
99        StateMethod = StateClpbrd ;
100        ExecMethod = ExecClpbrd ;
101        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
102    ]
103
104    SID_PASTE_UNFORMATTED  // status(final|play)
105    [
106        ExecMethod = ExecClpbrd ;
107        StateMethod = StateClpbrd ;
108        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
109    ]
110
111    SID_PASTE_SPECIAL  // status(final|play)
112    [
113        ExecMethod = ExecClpbrd ;
114        StateMethod = StateClpbrd ;
115        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
116    ]
117
118    FN_PASTE_NESTED_TABLE  // status(final|play)
119    [
120        ExecMethod = ExecClpbrd ;
121        StateMethod = StateClpbrd ;
122        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
123    ]
124
125    FN_TABLE_PASTE_ROW_BEFORE  // status(final|play)
126    [
127        ExecMethod = ExecClpbrd ;
128        StateMethod = StateClpbrd ;
129        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
130    ]
131
132    FN_TABLE_PASTE_COL_BEFORE  // status(final|play)
133    [
134        ExecMethod = ExecClpbrd ;
135        StateMethod = StateClpbrd ;
136        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
137    ]
138
139    FN_REPAGINATE  // status(final|play)
140    [
141        ExecMethod = Execute ;
142        StateMethod = NoState ;
143    ]
144
145    FN_CHANGE_DBFIELD
146    [
147        ExecMethod = ExecField ;
148        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
149    ]
150
151    FN_UPDATE_FIELDS // status(final|play)
152    [
153        ExecMethod = Execute ;
154        StateMethod = NoState ;
155    ]
156
157    FN_UPDATE_CHARTS // status(final|play)
158    [
159        ExecMethod = Execute ;
160        StateMethod = GetState ;
161    ]
162    FN_UPDATE_ALL // status(final|play)
163    [
164        ExecMethod = Execute ;
165        StateMethod = NoState ;
166    ]
167
168    FN_UPDATE_INPUTFIELDS  // status(final|play)
169    [
170        ExecMethod = Execute ;
171        StateMethod = NoState ;
172    ]
173
174    FN_FRAME_TO_ANCHOR // status()
175    [
176        /*OS: data types incompatible?? */
177        ExecMethod = Execute ;
178        StateMethod = NoState ;
179    ]
180
181    FN_GOTO_NEXT_OBJ // status(final|play)
182    [
183        ExecMethod = Execute ;
184        StateMethod = NoState ;
185    ]
186
187    FN_GOTO_PREV_OBJ // status(final|play)
188    [
189        ExecMethod = Execute ;
190        StateMethod = NoState ;
191    ]
192
193    FN_GOTO_NEXT_MARK // status(final|play)
194    [
195        ExecMethod = Execute ;
196        StateMethod = NoState ;
197    ]
198
199    FN_GOTO_PREV_MARK  // status(final|play)
200    [
201        ExecMethod = Execute ;
202        StateMethod = NoState ;
203    ]
204
205    FN_PREV_BOOKMARK // status(final|play)
206    [
207        ExecMethod = Execute ;
208        StateMethod = NoState ;
209    ]
210
211    FN_NEXT_BOOKMARK // status(final|play)
212    [
213        ExecMethod = Execute ;
214        StateMethod = NoState ;
215    ]
216
217    SID_GALLERY_FORMATS // status()
218    [
219        ExecMethod = Execute ;
220    ]
221
222    SID_GALLERY_ENABLE_ADDCOPY
223    [
224        StateMethod = GetState;
225        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
226    ]
227
228    SID_TABLE_CELL_BACKGROUND_COLOR
229    [
230        ExecMethod = ExecBckCol ;
231        StateMethod = GetBckColState ;
232        AutoUpdate ;
233        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
234    ]
235
236    SID_BACKGROUND_COLOR // status()
237    [
238        ExecMethod = ExecBckCol ;
239        StateMethod = GetBckColState ;
240        AutoUpdate ;
241        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
242    ]
243
244    FN_EDIT_REGION // status(final|play)
245    [
246        ExecMethod = EditRegionDialog ;
247        StateMethod = GetState ;
248    ]
249
250    FN_EDIT_CURRENT_REGION // status(final|play)
251    [
252        ExecMethod = EditRegionDialog ;
253        StateMethod = GetState ;
254    ]
255
256    FN_INSERT_REGION // status()
257    [
258        ExecMethod = InsertRegionDialog;
259        StateMethod = GetState;
260        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
261    ]
262
263    FN_FORMAT_PAGE_DLG  // status(final|play)
264    [
265        ExecMethod = ExecDlg ;
266        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
267    ]
268
269    FN_FORMAT_TITLEPAGE_DLG  // status(final|play)
270    [
271        ExecMethod = ExecDlg ;
272        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
273    ]
274
275    FN_FORMAT_PAGE_COLUMN_DLG  // status(final|play)
276    [
277        ExecMethod = ExecDlg ;
278        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
279    ]
280
281    FN_FORMAT_PAGE_SETTING_DLG
282    [
283        ExecMethod = ExecDlg ;
284        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
285    ]
286
287    FN_CONVERT_TABLE_TO_TEXT
288    [
289        ExecMethod = Execute ;
290        StateMethod = GetState ;
291        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
292    ]
293
294    FN_CONVERT_TEXT_TO_TABLE
295    [
296        ExecMethod = Execute ;
297        StateMethod = GetState ;
298        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
299    ]
300    FN_CONVERT_TEXT_TABLE // status(final|play)
301    [
302        ExecMethod = Execute ;
303        StateMethod = GetState ;
304        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
305    ]
306
307    FN_FORMAT_BORDER_DLG // status(final|play)
308    [
309        ExecMethod = ExecDlg ;
310        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
311    ]
312
313    SID_ATTR_BORDER_INNER // status()
314    [
315        StateMethod = GetBorderState ;
316        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
317    ]
318
319        SID_ATTR_BORDER_OUTER // status()
320    [
321        ExecMethod = Execute ;
322        StateMethod = GetBorderState ;
323        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
324    ]
325
326    SID_BORDER_REDUCED_MODE
327    [
328        StateMethod = GetBorderState ;
329        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
330    ]
331
332    FN_FORMAT_BACKGROUND_DLG  // status(final|play)
333    [
334        ExecMethod = ExecDlg ;
335        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
336    ]
337
338    SfxBoolItem StyleWatercanMode SID_STYLE_WATERCAN // status()
339    (
340        SfxStringItem Param SID_STYLE_WATERCAN ,
341        SfxUInt16Item Family SID_STYLE_FAMILY
342    )
343    [
344        ExecMethod = Execute ;
345        StateMethod = StateStyle ;
346        NoRecord;
347        GroupId = SfxGroupId::Template ;
348        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
349    ]
350
351    SID_STYLE_UPDATE_BY_EXAMPLE // status()
352    [
353        ExecMethod = Execute ;
354        StateMethod = StateStyle ;
355    ]
356
357    SID_STYLE_NEW_BY_EXAMPLE // status(fina|play)
358    [
359        ExecMethod = Execute ;
360        StateMethod = StateStyle ;
361        FastCall = TRUE; // for macro execution!
362    ]
363    SID_STYLE_APPLY // status(fina|play)
364    [
365        ExecMethod = Execute ;
366        StateMethod = StateStyle ;
367        FastCall = TRUE;// for macro execution!
368        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
369    ]
370
371    SID_STYLE_FAMILY1 // status(fina|play)
372    [
373        StateMethod = StateStyle ;
374    ]
375
376    SID_STYLE_FAMILY2 // status(fina|play)
377    [
378        StateMethod = StateStyle ;
379    ]
380
381    SID_STYLE_FAMILY3 // status(fina|play)
382    [
383        StateMethod = StateStyle ;
384    ]
385
386    SID_STYLE_FAMILY4 // status(fina|play)
387    [
388        StateMethod = StateStyle ;
389    ]
390
391    SID_STYLE_FAMILY5 // status(fina|play)
392    [
393        StateMethod = StateStyle ;
394    ]
395
396    SID_STYLE_FAMILY6 // status(fina|play)
397    [
398        StateMethod = StateStyle ;
399    ]
400
401    SID_CLASSIFICATION_APPLY
402    [
403        ExecMethod = Execute ;
404        StateMethod = StateStyle ;
405    ]
406
407    SID_CLASSIFICATION_DIALOG
408    [
409        ExecMethod = Execute ;
410        StateMethod = StateStyle ;
411    ]
412
413    SID_PARAGRAPH_SIGN_CLASSIFY_DLG
414    [
415        ExecMethod = Execute ;
416        StateMethod = StateStyle ;
417    ]
418
419    SID_WATERMARK
420    [
421        ExecMethod = Execute ;
422        StateMethod = StateStyle ;
423    ]
424
425     //OS: Selection.Escape exists additionally to Window.Escape
426
427    FN_ESCAPE // status(final|play|rec)
428    [
429        ExecMethod = Execute ;
430    ]
431
432    SID_IMAP
433    [
434        ExecMethod = Execute ;
435        StateMethod = GetState ;
436        Toggle = FALSE;
437    ]
438
439    SID_IMAP_EXEC
440    [
441        ExecMethod = Execute ;
442        StateMethod = GetState ;
443        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
444    ]
445// Method for frames and objects
446    SID_ANCHOR_MENU
447    [
448        StateMethod = GetState ;
449        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
450    ]
451
452    FN_TOOL_ANCHOR_PARAGRAPH
453    [
454        ExecMethod = Execute ;
455        StateMethod = GetState ;
456        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
457    ]
458
459    FN_TOOL_ANCHOR_CHAR
460    [
461        ExecMethod = Execute ;
462        StateMethod = GetState ;
463        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
464    ]
465
466    FN_TOOL_ANCHOR_AT_CHAR
467    [
468        ExecMethod = Execute ;
469        StateMethod = GetState ;
470        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
471    ]
472
473    FN_TOOL_ANCHOR_FRAME
474    [
475        ExecMethod = Execute ;
476        StateMethod = GetState ;
477        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
478    ]
479
480    FN_SET_TRACKED_CHANGES_IN_TEXT
481    [
482        ExecMethod = Execute ;
483        StateMethod = GetState ;
484        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
485    ]
486
487    FN_SET_TRACKED_DELETIONS_IN_MARGIN
488    [
489        ExecMethod = Execute ;
490        StateMethod = GetState ;
491        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
492    ]
493
494    FN_SET_TRACKED_INSERTIONS_IN_MARGIN
495    [
496        ExecMethod = Execute ;
497        StateMethod = GetState ;
498        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
499    ]
500
501    FN_SHOW_TRACKED_CHANGES_MENU
502    [
503        ExecMethod = Execute ;
504        StateMethod = GetState ;
505        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
506    ]
507
508    FN_UPDATE_ALL_LINKS // status()
509    [
510        ExecMethod = Execute ;
511        StateMethod = GetState ;
512    ]
513
514    FN_FRAME_WRAP   // status()
515    [
516        ExecMethod = Execute ;
517        StateMethod = GetState ;
518        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
519    ]
520
521    FN_FRAME_WRAP_IDEAL // status()
522    [
523        ExecMethod = Execute ;
524        StateMethod = GetState ;
525        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
526    ]
527
528    FN_FRAME_NOWRAP   // status()
529    [
530        ExecMethod = Execute ;
531        StateMethod = GetState ;
532        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
533    ]
534
535    FN_FRAME_WRAPTHRU   // status()
536    [
537        ExecMethod = Execute ;
538        StateMethod = GetState ;
539        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
540    ]
541
542    FN_FRAME_WRAPTHRU_TRANSP // status()
543    [
544        ExecMethod = Execute ;
545        StateMethod = GetState ;
546        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
547    ]
548
549    FN_FRAME_WRAPTHRU_TOGGLE // status()
550    [
551        ExecMethod = Execute ;
552        StateMethod = GetState ;
553        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
554    ]
555
556    FN_FRAME_WRAP_CONTOUR // status()
557    [
558        ExecMethod = Execute ;
559        StateMethod = GetState ;
560        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
561    ]
562
563    FN_WRAP_ANCHOR_ONLY // status()
564    [
565        ExecMethod = Execute ;
566        StateMethod = GetState ;
567        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
568    ]
569
570    FN_FRAME_WRAP_LEFT // status()
571    [
572        ExecMethod = Execute ;
573        StateMethod = GetState ;
574        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
575    ]
576
577    FN_FRAME_WRAP_RIGHT // status()
578    [
579        ExecMethod = Execute ;
580        StateMethod = GetState ;
581        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
582    ]
583
584    SID_GALLERY_BG_BRUSH
585    [
586        ExecMethod = ExecuteGallery;
587        StateMethod = GetGalleryState;
588        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
589    ]
590    SID_ATTR_BORDER_SHADOW // status(final|play)
591    [
592        ExecMethod = Execute ;
593        StateMethod = GetState ;
594        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
595    ]
596
597    FN_XFORMS_DESIGN_MODE
598    [
599        ExecMethod = Execute;
600        StateMethod = GetState;
601    ]
602
603    SID_ACCESSIBILITY_CHECK
604    [
605        ExecMethod = ExecDlg;
606        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
607    ]
608}
609