xref: /core/sd/sdi/SlideSorterController.sdi (revision 951b243f)
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
19enum FadeEffect
20{
21    FADE_EFFECT_NONE ,
22    FADE_EFFECT_FADE_FROM_LEFT ,
23    FADE_EFFECT_FADE_FROM_TOP ,
24    FADE_EFFECT_FADE_FROM_RIGHT ,
25    FADE_EFFECT_FADE_FROM_BOTTOM ,
26    FADE_EFFECT_FADE_TO_CENTER ,
27    FADE_EFFECT_FADE_FROM_CENTER ,
28    FADE_EFFECT_MOVE_FROM_LEFT ,
29    FADE_EFFECT_MOVE_FROM_TOP ,
30    FADE_EFFECT_MOVE_FROM_RIGHT ,
31    FADE_EFFECT_MOVE_FROM_BOTTOM ,
32    FADE_EFFECT_ROLL_FROM_LEFT ,
33    FADE_EFFECT_ROLL_FROM_TOP ,
34    FADE_EFFECT_ROLL_FROM_RIGHT ,
35    FADE_EFFECT_ROLL_FROM_BOTTOM ,
36    FADE_EFFECT_VERTICAL_STRIPES ,
37    FADE_EFFECT_HORIZONTAL_STRIPES ,
38    FADE_EFFECT_OPEN_VERTICAL ,
39    FADE_EFFECT_CLOSE_VERTICAL ,
40    FADE_EFFECT_OPEN_HORIZONTAL ,
41    FADE_EFFECT_CLOSE_HORIZONTAL ,
42    FADE_EFFECT_CLEAR_AWAY ,
43    FADE_EFFECT_OVERLAY
44}
45
46enum FadeSpeed
47{
48    FADE_SPEED_SLOW ,
49    FADE_SPEED_MEDIUM ,
50    FADE_SPEED_FAST
51}
52
53enum PresChange
54{
55    PresChange::Manual ,
56    PresChange::Auto ,
57    PresChange::SemiAuto
58} ;
59
60 // Items
61item UINT32 DiaTimeItem ;
62item PresChange DiaAutoItem ;
63item FadeEffect DiaEffectItem ;
64item FadeSpeed DiaSpeedItem ;
65
66
67interface SlideSorterView
68{
69    SID_INSERTPAGE
70    [
71        ExecMethod = FuTemporary ;
72        StateMethod = GetMenuState ;
73    ]
74    SID_INSERT_MASTER_PAGE
75    [
76        ExecMethod = FuTemporary ;
77        StateMethod = GetMenuState ;
78    ]
79    SID_DUPLICATE_PAGE
80    [
81        ExecMethod = FuTemporary ;
82        StateMethod = GetMenuState ;
83    ]
84    SID_DELETE_PAGE
85    [
86        ExecMethod = FuTemporary ;
87        StateMethod = GetClipboardState ;
88    ]
89    SID_DELETE_MASTER_PAGE
90    [
91        ExecMethod = FuTemporary ;
92        StateMethod = GetClipboardState ;
93    ]
94    SID_RENAMEPAGE
95    [
96        ExecMethod = FuTemporary ;
97        StateMethod = GetMenuState ;
98    ]
99    SID_RENAME_MASTER_PAGE
100    [
101        ExecMethod = FuTemporary ;
102        StateMethod = GetMenuState ;
103    ]
104    SID_DELETE
105    [
106        ExecMethod = FuTemporary ;
107        StateMethod = GetMenuState ;
108    ]
109    SID_CUT // ole : no, status : ?
110    [
111        ExecMethod = FuSupport ;
112        StateMethod = GetClipboardState ;
113    ]
114    SID_COPY // ole : no, status : ?
115    [
116        ExecMethod = FuSupport ;
117        StateMethod = GetClipboardState ;
118    ]
119    SID_PASTE // ole : no, status : ?
120    [
121        ExecMethod = FuSupport ;
122        StateMethod = GetClipboardState ;
123    ]
124    SID_PASTE_SPECIAL // ole : no, status : ?
125    [
126        ExecMethod = FuSupport ;
127        StateMethod = GetClipboardState ;
128    ]
129    SID_REHEARSE_TIMINGS // ole : no, status : ?
130    [
131        ExecMethod = FuTemporary ;
132        StateMethod = GetMenuState ;
133    ]
134    SID_PRESENTATION // ole : no, status : ?
135    [
136        ExecMethod = FuTemporary ;
137        StateMethod = GetMenuState ;
138    ]
139    SID_PRESENTATION_CURRENT_SLIDE // ole : no, status : ?
140    [
141        ExecMethod = FuTemporary ;
142        StateMethod = GetMenuState ;
143    ]
144    SID_HIDE_SLIDE // ole : no, status : ?
145    [
146        ExecMethod = FuTemporary ;
147        StateMethod = GetMenuState ;
148    ]
149    SID_SHOW_SLIDE // ole : no, status : ?
150    [
151        ExecMethod = FuTemporary ;
152        StateMethod = GetMenuState ;
153    ]
154    SID_OBJECT_SELECT // ole : no, status : ?
155    [
156        ExecMethod = FuPermanent ;
157        StateMethod = GetMenuState ;
158    ]
159    SID_ZOOM_TOOLBOX // ole : no, status : ?
160    [
161        ExecMethod = FuTemporary ;
162        StateMethod = GetMenuState ;
163    ]
164    SID_SIZE_VISAREA // ole : no, status : no
165    [
166        ExecMethod = FuTemporary ;
167        StateMethod = GetMenuState ;
168    ]
169    SID_PAGES_PER_ROW // ole : no, status : ?
170    [
171        ExecMethod = FuTemporary ;
172        StateMethod = GetAttrState ;
173    ]
174    SID_SELECTALL // ole : no, status : ?
175    [
176        ExecMethod = FuTemporary ;
177        StateMethod = GetMenuState ;
178    ]
179    SID_STATUS_PAGE // ole : no, status : ?
180    [
181        ExecMethod = ExecStatusBar ;
182        StateMethod = GetStatusBarState ;
183    ]
184    SID_STATUS_LAYOUT // ole : no, status : ?
185    [
186        ExecMethod = ExecStatusBar ;
187        StateMethod = GetStatusBarState ;
188    ]
189    SID_SCALE // ole : no, status : ?
190    [
191        ExecMethod = ExecStatusBar ;
192        StateMethod = GetStatusBarState ;
193    ]
194    SID_RELOAD // ole : no, status : ?
195    [
196        GroupId = SfxGroupId::Document ;
197        ExecMethod = ExecCtrl ;
198        StateMethod = GetCtrlState ;
199        Asynchron , AutoUpdate ,
200        MenuConfig , AccelConfig , ToolBoxConfig ;
201    ]
202    SID_SEARCH_DLG // ole : no, status : ?
203    [
204        ExecMethod = ExecCtrl ;
205        StateMethod = GetMenuState ;
206    ]
207    SID_SLIDE_TRANSITIONS_PANEL // ole : no, status : ?
208    [
209        ExecMethod = FuTemporary ;
210        StateMethod = GetMenuState ;
211    ]
212    SID_MASTER_SLIDES_PANEL // ole : no, status : ?
213    [
214        ExecMethod = FuTemporary ;
215        StateMethod = GetMenuState ;
216    ]
217    SID_PRESENTATION_DLG
218    [
219        ExecMethod = FuTemporary ;
220    ]
221    SID_REMOTE_DLG
222    [
223        ExecMethod = FuTemporary ;
224        StateMethod = GetMenuState ;
225    ]
226    SID_CUSTOMSHOW_DLG
227    [
228        ExecMethod = FuTemporary ;
229    ]
230    SID_EXPAND_PAGE // ole : no, status : play rec
231    [
232        ExecMethod = FuTemporary ;
233        StateMethod = GetMenuState ;
234    ]
235    SID_SUMMARY_PAGE // ole : no, status : ?
236    [
237        ExecMethod = FuTemporary ;
238        StateMethod = GetMenuState ;
239    ]
240    SID_OUTPUT_QUALITY_COLOR // ole : no, status : play rec
241    [
242        ExecMethod = ExecCtrl ;
243        StateMethod = GetCtrlState ;
244    ]
245    SID_OUTPUT_QUALITY_GRAYSCALE // ole : no, status : play rec
246    [
247        ExecMethod = ExecCtrl ;
248        StateMethod = GetCtrlState ;
249    ]
250    SID_OUTPUT_QUALITY_BLACKWHITE // ole : no, status : play rec
251    [
252        ExecMethod = ExecCtrl ;
253        StateMethod = GetCtrlState ;
254    ]
255    SID_OUTPUT_QUALITY_CONTRAST // ole : no, status : play rec
256    [
257        ExecMethod = ExecCtrl ;
258        StateMethod = GetCtrlState ;
259    ]
260    SID_MAIL_SCROLLBODY_PAGEDOWN // ole : no, status : ?
261    [
262        ExecMethod = ExecCtrl ;
263        StateMethod = GetCtrlState ;
264    ]
265    SID_STYLE_FAMILY
266    [
267        ExecMethod = FuSupport ;
268        StateMethod = GetMenuState ;
269    ]
270    SID_OPT_LOCALE_CHANGED // ole : no, status : ?
271    [
272        ExecMethod = ExecCtrl ;
273        StateMethod = GetCtrlState ;
274    ]
275
276    SID_GETUNDOSTRINGS // ole : no, status : ?
277    [
278        ExecMethod = FuSupport ;
279        StateMethod = GetMenuState ;
280    ]
281    SID_UNDO // ole : no, status : ?
282    [
283        ExecMethod = FuSupport ;
284        StateMethod = GetMenuState ;
285    ]
286    SID_GETREDOSTRINGS // ole : no, status : ?
287    [
288        ExecMethod = FuSupport ;
289        StateMethod = GetMenuState ;
290    ]
291    SID_REDO // ole : no, status : ?
292    [
293        ExecMethod = FuSupport ;
294        StateMethod = GetMenuState ;
295    ]
296    SID_MODIFYPAGE
297    [
298        ExecMethod = FuTemporary ;
299        StateMethod = GetMenuState ;
300    ]
301    SID_ASSIGN_LAYOUT
302    [
303        ExecMethod = FuTemporary;
304        StateMethod = GetMenuState;
305    ]
306    SID_PHOTOALBUM
307    [
308        ExecMethod = FuTemporary ;
309        StateMethod = GetMenuState ;
310    ]
311    SID_MOVE_PAGE_UP
312    [
313        ExecMethod = ExecMovePageUp ;
314        StateMethod = GetStateMovePageUp ;
315    ]
316    SID_MOVE_PAGE_DOWN
317    [
318        ExecMethod = ExecMovePageDown ;
319        StateMethod = GetStateMovePageDown ;
320    ]
321    SID_MOVE_PAGE_FIRST
322    [
323        ExecMethod = ExecMovePageFirst ;
324        StateMethod = GetStateMovePageFirst ;
325    ]
326    SID_MOVE_PAGE_LAST
327    [
328        ExecMethod = ExecMovePageLast ;
329        StateMethod = GetStateMovePageLast ;
330    ]
331}
332
333shell SlideSorterController
334{
335    import SlideSorterView;
336}
337
338shell SlideSorterViewShell
339{
340    import SlideSorterView;
341}
342