Avoid potential negative array index access to cached text.
[LibreOffice.git] / basctl / sdi / baside.sdi
blob9e7229ca97128681f1153d70f27b3a39c6972d69
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  */
19 interface BasicIDEView
23 shell basctl_Shell
25     import BasicIDEView;
28     // Current, according to current window:
30     SID_SHOWLINES
31     [
32         StateMethod = GetState;
33         ExecMethod  = ExecuteCurrent;
34     ]
36     SID_BASICIDE_HIDECURPAGE
37     [
38         ExecMethod  = ExecuteCurrent;
39         StateMethod = GetState;
40     ]
42     SID_BASICIDE_DELETECURRENT
43     [
44         ExecMethod  = ExecuteCurrent;
45         StateMethod = GetState;
46     ]
48     SID_BASICIDE_RENAMECURRENT
49     [
50         ExecMethod  = ExecuteCurrent;
51         StateMethod = GetState;
52     ]
54     SID_SELECTALL
55     [
56         ExecMethod  = ExecuteCurrent;
57         StateMethod = GetState;
58     ]
60     SID_CUT
61     [
62         ExecMethod  = ExecuteCurrent;
63         StateMethod = GetState;
64     ]
66     SID_COPY
67     [
68         ExecMethod  = ExecuteCurrent;
69         StateMethod = GetState;
70     ]
72     SID_PASTE
73     [
74         ExecMethod  = ExecuteCurrent;
75         StateMethod = GetState;
76     ]
78     SID_UNDO
79     [
80         ExecMethod  = ExecuteCurrent;
81         StateMethod = GetState;
82     ]
84     SID_REDO
85     [
86         ExecMethod  = ExecuteCurrent;
87         StateMethod = GetState;
88     ]
90     SID_DELETE
91     [
92         ExecMethod  = ExecuteCurrent;
93         StateMethod = GetState;
94     ]
96     SID_BACKSPACE
97     [
98         ExecMethod  = ExecuteCurrent;
99         StateMethod = GetState;
100     ]
102     SID_GOTOLINE
103     [
104         ExecMethod  = ExecuteCurrent;
105         StateMethod = GetState;
106     ]
109     // Search in IDE Basic
111     SID_SEARCH_OPTIONS
112     [
113         ExecMethod  = ExecuteSearch;
114         StateMethod = GetState;
115     ]
117     SID_SEARCH_ITEM
118     [
119         ExecMethod  = ExecuteSearch;
120         StateMethod = GetState;
121     ]
123     FID_SEARCH_NOW
124     [
125         ExecMethod  = ExecuteSearch;
126         StateMethod = GetState;
127     ]
129     SID_BASICIDE_REPEAT_SEARCH
130     [
131         ExecMethod  = ExecuteSearch;
132         StateMethod = GetState;
133     ]
135     FID_SEARCH_ON // status()
136     [
137         ExecMethod = ExecuteSearch;
138     ]
140     FID_SEARCH_OFF
141     [
142         ExecMethod  = ExecuteCurrent;
143         StateMethod = GetState;
144     ]
147     // Global: Whatever, which window is currently active:
149     SID_BASICIDE_LIBSELECTOR
150     [
151         StateMethod = GetState;
152     ]
154     SID_BASICIDE_LIBSELECTED
155     [
156         ExecMethod  = ExecuteGlobal;
157         StateMethod = GetState;
158     ]
160     SID_BASICIDE_LIBLOADED
161     [
162         ExecMethod  = ExecuteGlobal;
163         StateMethod = GetState;
164     ]
166     SID_BASICIDE_LIBREMOVED
167     [
168         ExecMethod  = ExecuteGlobal;
169         StateMethod = GetState;
170     ]
172     SID_BASICIDE_SBXDELETED
173     [
174         ExecMethod  = ExecuteGlobal;
175         StateMethod = GetState;
176     ]
178     SID_BASICIDE_SBXINSERTED
179     [
180         ExecMethod  = ExecuteGlobal;
181         StateMethod = GetState;
182     ]
184     SID_BASICIDE_SBXRENAMED
185     [
186         ExecMethod  = ExecuteGlobal;
187         StateMethod = GetState;
188     ]
190     SID_BASICIDE_SHOWSBX
191     [
192         ExecMethod  = ExecuteGlobal;
193         StateMethod = GetState;
194     ]
196     SID_NEWWINDOW
197     [
198         ExecMethod  = ExecuteGlobal;
199         StateMethod = GetState;
200     ]
202     SID_DOCINFO
203     [
204         ExecMethod  = ExecuteGlobal;
205         StateMethod = GetState;
206     ]
208     SID_NEWDOCDIRECT
209     [
210         ExecMethod  = ExecuteGlobal;
211         StateMethod = GetState;
212     ]
214     SID_SAVEDOC
215     [
216         ExecMethod  = ExecuteGlobal;
217         StateMethod = GetState;
218     ]
220     SID_SIGNATURE
221     [
222         ExecMethod  = ExecuteGlobal;
223         StateMethod = GetState;
224     ]
226     SID_SAVEASDOC
227     [
228         ExecMethod  = ExecuteGlobal;
229         StateMethod = GetState;
230     ]
232     // From here on normal ...
233     SID_BASICIDE_CHOOSEMACRO
234     [
235         ExecMethod  = ExecuteGlobal;
236         StateMethod = GetState;
237     ]
239     SID_BASICIDE_MODULEDLG
240     [
241         ExecMethod  = ExecuteGlobal;
242         StateMethod = GetState;
243     ]
245     SID_BASICIDE_OBJCAT
246     [
247         ExecMethod  = ExecuteGlobal;
248         StateMethod = GetState;
249     ]
251     SID_BASICIDE_WATCH
252     [
253         ExecMethod  = ExecuteGlobal;
254         StateMethod = GetState;
255     ]
257     SID_BASICIDE_STACK
258     [
259         ExecMethod  = ExecuteGlobal;
260         StateMethod = GetState;
261     ]
263     SID_BASICIDE_CREATEMACRO
264     [
265         ExecMethod  = ExecuteGlobal;
266         StateMethod = GetState;
267     ]
269     SID_BASICIDE_EDITMACRO
270     [
271         ExecMethod  = ExecuteGlobal;
272         StateMethod = GetState;
273     ]
275     SID_BASICIDE_NAMECHANGEDONTAB
276     [
277         ExecMethod  = ExecuteGlobal;
278         StateMethod = GetState;
279     ]
281     SID_BASICIDE_STOREMODULESOURCE
282     [
283         ExecMethod  = ExecuteGlobal;
284         StateMethod = GetState;
285     ]
287     SID_BASICIDE_STOREALLMODULESOURCES
288     [
289         ExecMethod  = ExecuteGlobal;
290         StateMethod = GetState;
291     ]
293     SID_BASICIDE_UPDATEMODULESOURCE
294     [
295         ExecMethod  = ExecuteGlobal;
296         StateMethod = GetState;
297     ]
299     SID_BASICIDE_UPDATEALLMODULESOURCES
300     [
301         ExecMethod  = ExecuteGlobal;
302         StateMethod = GetState;
303     ]
305     SID_BASICSTOP
306     [
307         ExecMethod  = ExecuteGlobal;
308         StateMethod = GetState;
309     ]
311     SID_BASICIDE_NEWMODULE
312     [
313         ExecMethod  = ExecuteGlobal;
314         StateMethod = GetState;
315     ]
317     SID_BASICIDE_NEWDIALOG
318     [
319         ExecMethod  = ExecuteGlobal;
320         StateMethod = GetState;
321     ]
323     SID_SHOW_PROPERTYBROWSER
324     [
325         ExecMethod  = ExecuteGlobal;
326         StateMethod = GetState;
327     ]
329     SID_BASICIDE_SHOWWINDOW
330     [
331         ExecMethod  = ExecuteGlobal;
332     ]
334     SID_BASICIDE_MANAGE_LANG
335     [
336         ExecMethod  = ExecuteGlobal;
337         StateMethod = GetState;
338     ]
340     SID_BASICIDE_CURRENT_LANG
341     [
342         ExecMethod  = ExecuteGlobal;
343         StateMethod = GetState;
344     ]
346     SID_ATTR_ZOOMSLIDER
347     [
348         ExecMethod      = ExecuteGlobal;
349         StateMethod     = GetState;
350     ]
352     SID_ZOOM_IN
353     [
354         ExecMethod      = ExecuteGlobal;
355         StateMethod     = GetState;
356     ]
358     SID_ZOOM_OUT
359     [
360         ExecMethod      = ExecuteGlobal;
361         StateMethod     = GetState;
362     ]
364     SID_BASICIDE_CURRENT_ZOOM
365     [
366         StateMethod     = GetState;
367     ]
369     // Only, when BasicWindow up
371     SID_BASICRUN
372     [
373         ExecMethod  = ExecuteBasic;
374         StateMethod = GetState;
375     ]
377     SID_BASICCOMPILE
378     [
379         ExecMethod  = ExecuteBasic;
380         StateMethod = GetState;
381     ]
383     SID_BASICLOAD
384     [
385         ExecMethod  = ExecuteBasic;
386         StateMethod = GetState;
387     ]
389     SID_BASICSAVEAS
390     [
391         ExecMethod  = ExecuteBasic;
392         StateMethod = GetState;
393     ]
395     SID_BASICIDE_MATCHGROUP
396     [
397         ExecMethod  = ExecuteBasic;
398         StateMethod = GetState;
399     ]
401     SID_BASICSTEPINTO
402     [
403         ExecMethod  = ExecuteBasic;
404         StateMethod = GetState;
405     ]
407     SID_BASICSTEPOVER
408     [
409         ExecMethod  = ExecuteBasic;
410         StateMethod = GetState;
411     ]
413     SID_BASICSTEPOUT
414     [
415         ExecMethod  = ExecuteBasic;
416         StateMethod = GetState;
417     ]
419     SID_BASICIDE_TOGGLEBRKPNT
420     [
421         ExecMethod  = ExecuteBasic;
422         StateMethod = GetState;
423     ]
425     SID_BASICIDE_MANAGEBRKPNTS
426     [
427         ExecMethod  = ExecuteBasic;
428         StateMethod = GetState;
429     ]
431     SID_BASICIDE_TOGGLEBRKPNTENABLED
432     [
433         ExecMethod  = ExecuteBasic;
434         StateMethod = GetState;
435     ]
437     SID_BASICIDE_ADDWATCH
438     [
439         ExecMethod  = ExecuteBasic;
440         StateMethod = GetState;
441     ]
443     SID_BASICIDE_REMOVEWATCH
444     [
445         ExecMethod  = ExecuteBasic;
446         StateMethod = GetState;
447     ]
449     SID_BASICIDE_BRKPNTSCHANGED
450     [
451         ExecMethod  = ExecuteBasic;
452         StateMethod = GetState;
453     ]
456     // Only, when dialog window up
458     SID_CHOOSE_CONTROLS
459     [
460         StateMethod     = GetState;
461     ]
462     SID_INSERT_PUSHBUTTON
463     [
464         ExecMethod      = ExecuteDialog;
465         StateMethod     = GetState;
466     ]
467     SID_INSERT_CHECKBOX
468     [
469         ExecMethod      = ExecuteDialog;
470         StateMethod     = GetState;
471     ]
472     SID_INSERT_RADIOBUTTON
473     [
474         ExecMethod      = ExecuteDialog;
475         StateMethod     = GetState;
476     ]
477     SID_INSERT_SPINBUTTON
478     [
479         ExecMethod      = ExecuteDialog;
480         StateMethod     = GetState;
481     ]
482     SID_INSERT_FIXEDTEXT
483     [
484         ExecMethod      = ExecuteDialog;
485         StateMethod     = GetState;
486     ]
487     SID_INSERT_GROUPBOX
488     [
489         ExecMethod      = ExecuteDialog;
490         StateMethod     = GetState;
491     ]
492     SID_INSERT_LISTBOX
493     [
494         ExecMethod      = ExecuteDialog;
495         StateMethod     = GetState;
496     ]
497     SID_INSERT_COMBOBOX
498     [
499         ExecMethod      = ExecuteDialog;
500         StateMethod     = GetState;
501     ]
502     SID_INSERT_EDIT
503     [
504         ExecMethod      = ExecuteDialog;
505         StateMethod     = GetState;
506     ]
507     SID_INSERT_HSCROLLBAR
508     [
509         ExecMethod      = ExecuteDialog;
510         StateMethod     = GetState;
511     ]
512     SID_INSERT_VSCROLLBAR
513     [
514         ExecMethod      = ExecuteDialog;
515         StateMethod     = GetState;
516     ]
517     SID_INSERT_SELECT
518     [
519         ExecMethod      = ExecuteDialog;
520         StateMethod     = GetState;
521     ]
522     SID_INSERT_IMAGECONTROL
523     [
524         ExecMethod      = ExecuteDialog;
525         StateMethod     = GetState;
526     ]
527     SID_INSERT_PROGRESSBAR
528     [
529         ExecMethod      = ExecuteDialog;
530         StateMethod     = GetState;
531     ]
532     SID_INSERT_HFIXEDLINE
533     [
534         ExecMethod      = ExecuteDialog;
535         StateMethod     = GetState;
536     ]
537     SID_INSERT_VFIXEDLINE
538     [
539         ExecMethod      = ExecuteDialog;
540         StateMethod     = GetState;
541     ]
542     SID_INSERT_DATEFIELD
543     [
544         ExecMethod      = ExecuteDialog;
545         StateMethod     = GetState;
546     ]
547     SID_INSERT_TIMEFIELD
548     [
549         ExecMethod      = ExecuteDialog;
550         StateMethod     = GetState;
551     ]
552     SID_INSERT_NUMERICFIELD
553     [
554         ExecMethod      = ExecuteDialog;
555         StateMethod     = GetState;
556     ]
557     SID_INSERT_CURRENCYFIELD
558     [
559         ExecMethod      = ExecuteDialog;
560         StateMethod     = GetState;
561     ]
562     SID_INSERT_FORMATTEDFIELD
563     [
564         ExecMethod      = ExecuteDialog;
565         StateMethod     = GetState;
566     ]
567     SID_INSERT_PATTERNFIELD
568     [
569         ExecMethod      = ExecuteDialog;
570         StateMethod     = GetState;
571     ]
572     SID_INSERT_FILECONTROL
573     [
574         ExecMethod      = ExecuteDialog;
575         StateMethod     = GetState;
576     ]
577     SID_INSERT_TREECONTROL
578     [
579         ExecMethod      = ExecuteDialog;
580         StateMethod     = GetState;
581     ]
583     SID_INSERT_GRIDCONTROL
584     [
585         ExecMethod      = ExecuteDialog;
586         StateMethod     = GetState;
587     ]
589     SID_INSERT_HYPERLINKCONTROL
590     [
591         ExecMethod      = ExecuteDialog;
592         StateMethod     = GetState;
593     ]
595     SID_EXPORT_DIALOG
596     [
597         ExecMethod      = ExecuteDialog;
598         StateMethod     = GetState;
599     ]
601     SID_IMPORT_DIALOG
602     [
603         ExecMethod      = ExecuteDialog;
604         StateMethod     = GetState;
605     ]
607     SID_DIALOG_TESTMODE
608     [
609         ExecMethod      = ExecuteDialog;
610         StateMethod     = GetState;
611     ]
613     SID_BASICIDE_STAT_POS
614     [
615         StateMethod = GetState;
616     ]
618     SID_BASICIDE_STAT_DATE
619     [
620         StateMethod = GetState;
621     ]
623     SID_BASICIDE_STAT_TITLE
624     [
625         StateMethod = GetState;
626     ]
628     SID_DOC_MODIFIED
629     [
630         StateMethod = GetState;
631     ]
633     SID_ATTR_INSERT
634     [
635         StateMethod = GetState;
636     ]
638     SID_ATTR_SIZE
639     [
640         StateMethod = GetState;
641     ]
643     SID_INSERT_FORM_RADIO
644     [
645         ExecMethod      = ExecuteDialog;
646         StateMethod     = GetState;
647     ]
649     SID_INSERT_FORM_CHECK
650     [
651         ExecMethod      = ExecuteDialog;
652         StateMethod     = GetState;
653     ]
655     SID_INSERT_FORM_LIST
656     [
657         ExecMethod      = ExecuteDialog;
658         StateMethod     = GetState;
659     ]
661     SID_INSERT_FORM_COMBO
662     [
663         ExecMethod      = ExecuteDialog;
664         StateMethod     = GetState;
665     ]
667     SID_INSERT_FORM_VSCROLL
668     [
669         ExecMethod      = ExecuteDialog;
670         StateMethod     = GetState;
671     ]
673     SID_INSERT_FORM_HSCROLL
674     [
675         ExecMethod      = ExecuteDialog;
676         StateMethod     = GetState;
677     ]
679     SID_INSERT_FORM_SPIN
680     [
681         ExecMethod      = ExecuteDialog;
682         StateMethod     = GetState;
683     ]
686 interface BasicIDEDocument
690 shell basctl_DocShell
692     import BasicIDEDocument;