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: annotsh.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 ************************************************************************/
31 interface Annotation : _Annotation
33 uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1"
37 FN_THESAURUS_DLG // api:
39 ExecMethod = ExecLingu ;
40 StateMethod = GetLinguState ;
41 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
44 SID_HANGUL_HANJA_CONVERSION // api:
46 ExecMethod = ExecLingu ;
47 StateMethod = GetLinguState ;
48 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
51 SID_CHINESE_CONVERSION // api:
53 ExecMethod = ExecLingu ;
54 StateMethod = GetLinguState ;
55 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
58 SID_STYLE_CATALOG // ole(no) api(play/rec)
60 StateMethod = StateDisableItems ;
61 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
66 StateMethod = StateDisableItems ;
71 StateMethod = StateDisableItems ;
76 StateMethod = StateDisableItems ;
82 StateMethod = GetState;
85 SID_HYPERLINK_SETLINK // status()
88 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
90 SID_HYPERLINK_GETLINK // status()
92 StateMethod = StateInsert ;
95 FN_INSERT_SOFT_HYPHEN // status(final|play)
98 StateMethod = NoState ;
99 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
102 FN_INSERT_HARDHYPHEN // status()
105 StateMethod = NoState ;
106 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
109 FN_INSERT_HARD_SPACE // status(final|play)
112 StateMethod = NoState ;
113 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
119 StateMethod = GetState ;
120 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
126 StateMethod = GetState ;
127 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
133 StateMethod = GetState ;
134 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
140 StateMethod = GetState ;
141 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
144 SID_ATTR_PARA_LEFT_TO_RIGHT
147 StateMethod = GetState ;
148 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
151 SID_ATTR_PARA_RIGHT_TO_LEFT
154 StateMethod = GetState ;
155 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
158 SID_TEXTDIRECTION_LEFT_TO_RIGHT
161 StateMethod = GetState ;
162 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
165 SID_TEXTDIRECTION_TOP_TO_BOTTOM
168 StateMethod = GetState ;
169 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
172 SID_VERTICALTEXT_STATE
174 StateMethod = GetState ;
175 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
180 StateMethod = GetState ;
181 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
184 SID_TRANSLITERATE_UPPER
186 ExecMethod = ExecTransliteration;
187 StateMethod = NoState ;
188 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
191 SID_TRANSLITERATE_LOWER
193 ExecMethod = ExecTransliteration;
194 StateMethod = NoState ;
195 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
198 SID_TRANSLITERATE_HALFWIDTH
200 ExecMethod = ExecTransliteration;
201 StateMethod = GetState ;
202 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
205 SID_TRANSLITERATE_FULLWIDTH
207 ExecMethod = ExecTransliteration;
208 StateMethod = GetState ;
209 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
212 SID_TRANSLITERATE_HIRAGANA
214 ExecMethod = ExecTransliteration;
215 StateMethod = GetState ;
216 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
219 SID_TRANSLITERATE_KATAGANA
221 ExecMethod = ExecTransliteration;
222 StateMethod = GetState ;
223 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
226 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
229 StateMethod = GetState ;
230 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
236 StateMethod = GetState ;
237 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
240 SID_ATTR_CHAR_LANGUAGE // status(final|play)
243 StateMethod = GetState ;
244 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
247 SID_ATTR_CHAR_KERNING // status(final|play)
250 StateMethod = GetState ;
251 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
254 SID_ATTR_CHAR_AUTOKERN // // status(final|play)
257 StateMethod = GetState ;
258 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
261 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
264 StateMethod = GetState ;
265 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
268 SID_ATTR_CHAR_SCALEWIDTH // status()
271 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
276 StateMethod = StateDisableItems ;
281 StateMethod = StateDisableItems ;
286 StateMethod = StateDisableItems ;
291 StateMethod = StateDisableItems ;
296 StateMethod = StateDisableItems ;
299 SID_STYLE_WATERCAN // status()
301 StateMethod = StateDisableItems ;
304 SID_STYLE_UPDATE_BY_EXAMPLE // status()
306 StateMethod = StateDisableItems ;
309 SID_STYLE_NEW_BY_EXAMPLE // status(fina|play)
311 StateMethod = StateDisableItems ;
314 SID_STYLE_APPLY // status(fina|play)
316 StateMethod = StateDisableItems ;
319 SID_STYLE_NEW // ole : no, status : ?
321 StateMethod = StateDisableItems ;
324 SID_STYLE_EDIT // ole : no, status : ?
326 StateMethod = StateDisableItems ;
329 SID_STYLE_DELETE // ole : no, status : ?
331 StateMethod = StateDisableItems ;
335 StateMethod = StateStatusLine ;
340 StateMethod = StateStatusLine ;
345 ExecMethod = ExecLingu ;
346 StateMethod = GetLinguState ;
347 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
352 shell SwAnnotationShell
354 import Annotation[Automation];