lok: Don't attempt to select the exact text after a failed search.
[LibreOffice.git] / svx / sdi / svxitems.sdi
blobb8d771160d06d226ebc9bcb1881e03b8e6449539
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 enum SvxCellHorJustifyEnum
21     SVX_HOR_JUSTIFY_STANDARD,
22     SVX_HOR_JUSTIFY_LEFT,
23     SVX_HOR_JUSTIFY_CENTER,
24     SVX_HOR_JUSTIFY_RIGHT,
25     SVX_HOR_JUSTIFY_BLOCK,
26     SVX_HOR_JUSTIFY_REPEAT
28 item SvxCellHorJustifyEnum SvxCellHorJustifyEnumItem;
30 enum SvxCellVerJustifyEnum
32     SVX_VER_JUSTIFY_STANDARD,
33     SVX_VER_JUSTIFY_TOP,
34     SVX_VER_JUSTIFY_CENTER,
35     SVX_VER_JUSTIFY_BOTTOM
37 item SvxCellVerJustifyEnum SvxCellVerJustifyEnumItem;
39 enum SvxCellOrientationEnum
41     SVX_ORIENTATION_STANDARD,
42     SVX_ORIENTATION_TOPBOTTOM,
43     SVX_ORIENTATION_BOTTOMTOP,
44     SVX_ORIENTATION_STACKED
46 item SvxCellOrientationEnum SvxCellOrientationEnumItem;
48 enum SvxChooseControlEnum
50     SVX_SNAP_PUSHBUTTON,
51     SVX_SNAP_CHECKBOX,
52     SVX_SNAP_RADIOBUTTON,
53     SVX_SNAP_SPINBUTTON,
54     SVX_SNAP_FIXEDTEXT,
55     SVX_SNAP_GROUPBOX,
56     SVX_SNAP_LISTBOX,
57     SVX_SNAP_COMBOBOX,
58     SVX_SNAP_EDIT,
59     SVX_SNAP_HSCROLLBAR,
60     SVX_SNAP_VSCROLLBAR,
61     SVX_SNAP_PREVIEW,
62     SVX_SNAP_SELECT,
63     SVX_SNAP_URLBUTTON,
64     SVX_SNAP_IMAGECONTROL,
65     SVX_SNAP_PROGRESSBAR,
66     SVX_SNAP_HFIXEDLINE,
67     SVX_SNAP_VFIXEDLINE,
68     SVX_SNAP_DATEFIELD,
69     SVX_SNAP_TIMEFIELD,
70     SVX_SNAP_NUMERICFIELD,
71     SVX_SNAP_CURRENCYFIELD,
72     SVX_SNAP_FORMATTEDFIELD,
73     SVX_SNAP_PATTERNFIELD,
74     SVX_SNAP_FILECONTROL,
75     SVX_SNAP_TREECONTROL
77 item SvxChooseControlEnum SvxChooseControlItem;
79 enum SvxDrawToolEnum
81     SVX_SNAP_DRAW_SELECT,
83     SVX_SNAP_DRAW_LINE,
84     SVX_SNAP_DRAW_RECT,
85     SVX_SNAP_DRAW_ELLIPSE,
86     SVX_SNAP_DRAW_POLYGON_NOFILL,
87     SVX_SNAP_DRAW_BEZIER_NOFILL,
88     SVX_SNAP_DRAW_FREELINE_NOFILL,
89     SVX_SNAP_DRAW_ARC,
90     SVX_SNAP_DRAW_PIE,
91     SVX_SNAP_DRAW_CIRCLECUT,
92     SVX_SNAP_DRAW_TEXT,
93     SVX_SNAP_DRAW_TEXT_VERTICAL,
94     SVX_SNAP_DRAW_TEXT_MARQUEE,
95     SVX_SNAP_DRAW_CAPTION,
96     SVX_SNAP_DRAW_CAPTION_VERTICAL
98 item SvxDrawToolEnum SvxDrawToolEnumItem;
100 enum SvxDrawAlignEnum
102     SVX_OBJECT_ALIGN_LEFT,
103     SVX_OBJECT_ALIGN_CENTER,
104     SVX_OBJECT_ALIGN_RIGHT,
105     SVX_OBJECT_ALIGN_UP,
106     SVX_OBJECT_ALIGN_MIDDLE,
107     SVX_OBJECT_ALIGN_DOWN
109 item SvxDrawAlignEnum SvxDrawAlignEnumItem;
111 enum SvxDrawBezierEnum
113     SVX_BEZIER_MOVE,
114     SVX_BEZIER_INSERT,
115     SVX_BEZIER_DELETE,
116     SVX_BEZIER_CUTLINE,
117     SVX_BEZIER_CONVERT,
118     SVX_BEZIER_EDGE,
119     SVX_BEZIER_SMOOTH,
120     SVX_BEZIER_SYMMTR,
121     SVX_BEZIER_CLOSE,
122     SVX_BEZIER_ELIMINATE_POINTS
124 item SvxDrawBezierEnum SvxDrawBezierEnumItem;
126 enum SvxAdjust
128     SVX_ADJUST_LEFT,
129     SVX_ADJUST_RIGHT,
130     SVX_ADJUST_BLOCK,
131     SVX_ADJUST_CENTER,
132     SVX_ADJUST_BLOCKLINE,
133     SVX_ADJUST_END
136 struct SvxAdjustStruct
138     SvxAdjust   ParagraphAdjustment MID_PARA_ADJUST;
139     SvxAdjust   LastLineAdjustment  MID_LAST_LINE_ADJUST;
140     BOOL        ExpandSingleWord    MID_EXPAND_SINGLE;
142 item SvxAdjustStruct SvxAdjustItem;
144 enum SvxCaseMap
146     SVX_CASEMAP_NOT_MAPPED,
147     SVX_CASEMAP_VERSALIEN,
148     SVX_CASEMAP_GEMEINE,
149     SVX_CASEMAP_TITEL,
150     SVX_CASEMAP_KAPITAELCHEN,
151     SVX_CASEMAP_END
153 item SvxCaseMap SvxCaseMapItem;
155 enum CharSet
157     CHARSET_DONTKNOW,
158     CHARSET_ANSI,
159     CHARSET_MAC,
160     CHARSET_IBMPC_437,
161     CHARSET_IBMPC_850,
162     CHARSET_IBMPC_860,
163     CHARSET_IBMPC_861,
164     CHARSET_IBMPC_863,
165     CHARSET_IBMPC_865,
166     CHARSET_SYSTEM,
167     CHARSET_SYMBOL
170 enum FontFamily
172     FAMILY_DONTKNOW,
173     FAMILY_DECORATIVE,
174     FAMILY_MODERN,
175     FAMILY_ROMAN,
176     FAMILY_SCRIPT,
177     FAMILY_SWISS,
178     FAMILY_SYSTEM
181 enum FontPitch
183     PITCH_DONTKNOW,
184     PITCH_FIXED,
185     PITCH_VARIABLE
188 struct SvxFont
190     String      StyleName   MID_FONT_STYLE_NAME;
191     FontPitch   Pitch       MID_FONT_PITCH;         // INT16
192     CharSet     CharSet     MID_FONT_CHAR_SET;      // INT16
193     FontFamily  Family      MID_FONT_FAMILY;        // INT16
194     String      FamilyName  MID_FONT_FAMILY_NAME;
196 item SvxFont SvxFontItem;
198 enum FontWeight
200     WEIGHT_DONTKNOW,
201     WEIGHT_THIN,
202     WEIGHT_ULTRALIGHT,
203     WEIGHT_LIGHT,
204     WEIGHT_SEMILIGHT,
205     WEIGHT_NORMAL,
206     WEIGHT_MEDIUM,
207     WEIGHT_SEMIBOLD,
208     WEIGHT_BOLD,
209     WEIGHT_ULTRABOLD,
210     WEIGHT_BLACK
212 item FontWeight SvxWeightItem;
214 enum FontUnderline
216     UNDERLINE_NONE,
217     UNDERLINE_SINGLE,
218     UNDERLINE_DOUBLE,
219     UNDERLINE_DOTTED
222 enum FontStrikeout
224     STRIKEOUT_NONE,
225     STRIKEOUT_SINGLE,
226     STRIKEOUT_DOUBLE
229 enum FontItalic
231     ITALIC_NONE,
232     ITALIC_OBLIQUE,
233     ITALIC_NORMAL
235 item FontItalic SvxPostureItem;
237 enum SvxDbType
239     DBTYPE_STARBASE,
240     DBTYPE_ODBC,
241     DBTYPE_WATCOM
243 item SvxDbType SvxDbTypeItem;
245 enum SvxLineSpace
247     SVX_LINE_SPACE_AUTO,
248     SVX_LINE_SPACE_MAX,
249     SVX_LINE_SPACE_MIN,
250     SVX_LINE_SPACE_END
252 item SvxLineSpace SvxLineSpaceItem;
254 enum SvxInterLineSpace
256     SVX_INTER_LINE_SPACE_OFF,
257     SVX_INTER_LINE_SPACE_PROP,
258     SVX_INTER_LINE_SPACE_FIX,
259     SVX_INTER_LINE_SPACE_END
261 item SvxInterLineSpace SvxInterLineSpaceItem;
263 enum SvxBreak
265     SVX_BREAK_NONE,
266     SVX_BREAK_COLUMN_BEFORE,
267     SVX_BREAK_COLUMN_AFTER,
268     SVX_BREAK_COLUMN_BOTH,
269     SVX_BREAK_PAGE_BEFORE,
270     SVX_BREAK_PAGE_AFTER,
271     SVX_BREAK_PAGE_BOTH,
272     SVX_BREAK_END
274 item SvxBreak SvxBreakItem;
276 enum BrushStyle
278     BRUSH_NULL,
279     BRUSH_SOLID,
280     BRUSH_HORZ,
281     BRUSH_VERT,
282     BRUSH_CROSS,
283     BRUSH_DIAGCROSS,
284     BRUSH_UPDIAG,
285     BRUSH_DOWNDIAG,
286     BRUSH_25,
287     BRUSH_50,
288     BRUSH_75,
289     BRUSH_BITMAP
291 item BrushStyle BrushStyleItem;
293 enum SvxNumType
295     SVX_CHARS_UPPER_LETTER,
296     SVX_CHARS_LOWER_LETTER,
297     SVX_ROMAN_UPPER,
298     SVX_ROMAN_LOWER,
299     SVX_ARABIC,
300     SVX_NUMBER_NONE,
301     SVX_CHAR_SPECIAL,
302     SVX_PAGEDESC
304 item SvxNumType SvxNumTypeItem;
306 enum SvxShadowLocation
308     SVX_SHADOW_NONE,
309     SVX_SHADOW_TOPLEFT,
310     SVX_SHADOW_TOPRIGHT,
311     SVX_SHADOW_BOTTOMLEFT,
312     SVX_SHADOW_BOTTOMRIGHT,
313     SVX_SHADOW_END
315 item SvxShadowLocation      SvxShadowLocationItem;
317 item INT16                  SvxCharScaleWidthItem;
318 item INT16                  SvxParaVertAlignItem;
319 item INT16                  SvxCharReliefItem;
320 item BOOL                   SvxBlinkItem;
321 item BOOL                   SvxAutoKernItem;
322 item INT32                  SvxColorItem;
323 item BOOL                   SvxContourItem;
324 item INT16                  SvxFormatBreakItem;  // enum
325 item BOOL                   SvxFormatKeepItem;
326 item BOOL                   SvxFormatSplitItem;
327 item INT16                  SvxKerningItem;
328 item INT16                  SvxLanguageItem;
329 item BOOL                   SvxNoHyphenItem;
330 item BOOL                   SvxNoLinebreakItem;
331 item BOOL                   SvxOpaqueItem;
332 item BYTE                   SvxOrphansItem;
333 item BYTE                   SvxPaperBinItem;
334 item String                 SvxPostItAuthorItem;
335 item String                 SvxPostItDateItem;
336 item String                 SvxPostItTextItem;
337 item FontItalic             SvxPostureItem;  // enum
338 item BOOL                   SvxPrintItem;
339 item UINT16                 SvxPropSizeItem;        // derived from UInt16Item
340 item BOOL                   SvxShadowedItem;
341 item SvxDrawBezierEnum      SvxDrawBezierItem;
342 item SvxDrawAlignEnum       SvxDrawAlignItem;
343 item SvxDrawToolEnum        SvxDrawToolItem;
344 item BYTE                   SvxWidowsItem;
345 item BOOL                   SvxWordLineModeItem;
346 item SvxCellHorJustifyEnum  SvxHorJustifyItem;
347 item SvxCellVerJustifyEnum  SvxVerJustifyItem;
348 item SvxCellOrientationEnum SvxOrientationItem;
349 item BOOL                   SdrOnOffItem;
350 item INT16                  SdrTextFitToSizeTypeItem;  // enum
351 item String                 SfxStringListItem;  // serialized into one concatenated string
352 item double                 SvxDoubleItem;
353 item String                 OfaPtrItem;  // serialized into one concatenated string
354 item String                 OfaRefItem;
355 item String                 SvxDashListItem;
356 item String                 SvxLineEndListItem;
357 item String                 SvxColorListItem;
358 item String                 SvxGradientListItem;
359 item String                 SvxHatchListItem;
360 item String                 SvxBitmapListItem;
361 item String                 SfxLockBytesItem;
362 item String                 SvxFontListItem;
363 item String                 avmedia_MediaItem;
365 item BYTE                   SfxGlobalNameItem;
367 struct SvxCrossedOut
369     FontStrikeout   Kind        MID_CROSS_OUT;
371 item SvxCrossedOut SvxCrossedOutItem;
373 struct SvxTextLine
375     FontUnderline   LineStyle   MID_TL_STYLE;
376     BOOL            HasColor    MID_TL_HASCOLOR;
377     INT32           Color       MID_TL_COLOR;
379 item SvxTextLine SvxTextLineItem;
381 struct SvxBrush
383     BOOL        Transparent     MID_GRAPHIC_TRANSPARENT;
384     INT32       BackColor       MID_BACK_COLOR;
385     String      URL             MID_GRAPHIC_URL;
386     String      Filtername      MID_GRAPHIC_FILTER;
387     INT16       Position        MID_GRAPHIC_POSITION;
389 item SvxBrush SvxBrushItem;
391 struct SvxEscapement
393     INT16       Escapement      MID_ESC;
394     BYTE        Height          MID_ESC_HEIGHT;
395     BOOL        Auto            MID_AUTO_ESC;
397 item SvxEscapement SvxEscapementItem;
399 struct SvxFontHeight
401     float       Height      MID_FONTHEIGHT;         // may be converted to INT32
402     INT16       Prop        MID_FONTHEIGHT_PROP;
403     float       Diff        MID_FONTHEIGHT_DIFF;    // may be converted to INT32
405 item SvxFontHeight SvxFontHeightItem;
407 struct SvxHyphenZone
409     BOOL        Hyphen      MID_IS_HYPHEN;
410     INT16       MinLead     MID_HYPHEN_MIN_LEAD;
411     INT16       MinTrail    MID_HYPHEN_MIN_TRAIL;
412     INT16       MaxHyphens  MID_HYPHEN_MAX_HYPHENS;
414 item SvxHyphenZone SvxHyphenZoneItem;
416 struct SvxLine
418     INT32      LineFGColor     MID_FG_COLOR;
419     INT32      LineOutWidth    MID_OUTER_WIDTH;
420     INT32      LineInWidth     MID_INNER_WIDTH;
421     INT32      LineDistance    MID_DISTANCE;
423 item SvxLine SvxLineItem;
425 struct SvxLRSpace
427     INT32       LeftMargin          MID_L_MARGIN;               // % or direct
428     INT32       TextLeftMargin      MID_TXT_LMARGIN
429     INT32       RightMargin         MID_R_MARGIN;               // % or direct
430     INT16       LeftRelMargin       MID_L_REL_MARGIN;
431     INT16       RightRelMargin      MID_R_REL_MARGIN;
432     INT32       FirstLineIndent     MID_FIRST_LINE_INDENT;      // % or direct
433     INT32       FirstLineRelIdent   MID_FIRST_LINE_REL_INDENT;
434     BOOL        AutoFirst           MID_FIRST_AUTO;
436 item SvxLRSpace SvxLRSpaceItem;
438 struct SvxLineSpacing
440     INT16               Mode        MID_LINESPACE;
441     INT16               Height      MID_HEIGHT;
443 item SvxLineSpacing SvxLineSpacingItem;
445 struct SvxPage
447     BOOL                Landscape       MID_PAGE_ORIENTATION;
448     INT16               Layout          MID_PAGE_LAYOUT;
449     INT16               NumType         MID_PAGE_NUMTYPE;
451 item SvxPage SvxPageItem;
453 struct SvxPagePosSize
455     INT32 XPos   MID_X;          // ???
456     INT32 YPos   MID_Y;          // ???
457     INT32 Width  MID_WIDTH;      // ???
458     INT32 Height MID_HEIGHT;     // ???
460 item SvxPagePosSize SvxPagePosSizeItem;
462 struct SvxShadow
464     SvxShadowLocation   Location        MID_LOCATION;
465     INT16               Width           MID_WIDTH;
466     BOOL                IsTransparent   MID_TRANSPARENT;
467     INT32               Color           MID_BG_COLOR;
469 item SvxShadow SvxShadowItem;
471 struct SvxULSpace
473     INT32               TopMargin       MID_UP_MARGIN;  // % or direct
474     INT32               BottomMargin    MID_LO_MARGIN;  // % or direct
475     BOOL                ContextMargin   MID_CTX_MARGIN;
476     INT16               TopRelMargin    MID_UP_REL_MARGIN;
477     INT16               BottomRelMargin MID_LO_REL_MARGIN;
479 item SvxULSpace SvxULSpaceItem
481 struct SvxLongLRSpace
483     INT32 Left   MID_LEFT;   // ???
484     INT32 Right  MID_RIGHT;  // ???
486 item SvxLongLRSpace SvxLongLRSpaceItem;
488 struct SvxLongULSpace
490     INT32 Upper MID_UPPER;  // ???
491     INT32 Lower MID_LOWER;  // ???
493 item SvxLongULSpace SvxLongULSpaceItem;
495 struct SvxHyperlink
497     String  Text    MID_HLINK_TEXT;
498     String  URL     MID_HLINK_URL;
499     String  Target  MID_HLINK_TARGET;
500     String  Name    MID_HLINK_NAME;
501     INT32   Type    MID_HLINK_TYPE;
503 item SvxHyperlink SvxHyperlinkItem;
505 struct PageModel
507     BOOL   Auto MID_AUTO;
508     String Name MID_NAME;
510 item PageModel SvxPageModelItem;
512 struct SvxProtect
514     BOOL Content    MID_PROTECT_CONTENT;
515     BOOL Size       MID_PROTECT_SIZE;
516     BOOL Position   MID_PROTECT_POSITION;
518 item SvxProtect SvxProtectItem;
520 struct SvxRulerObject
522     INT32   StartX  MID_START_X;
523     INT32   StartY  MID_START_Y;
524     INT32   EndX    MID_END_X;
525     INT32   EndY    MID_END_Y;
526     BOOL    Limited MID_LIMIT;
528 item SvxRulerObject SvxObjectItem;
530 item String LineBorder;                 // dummy for sequence
531 struct SvxBox
533     LineBorder LeftBorder       MID_LEFT_BORDER;
534     INT32 LeftDistance          LEFT_BORDER_DISTANCE;
535     LineBorder RightBorder      MID_RIGHT_BORDER;
536     INT32 RightDistance         RIGHT_BORDER_DISTANCE;
537     LineBorder TopBorder        MID_TOP_BORDER;
538     INT32 TopDistance           TOP_BORDER_DISTANCE;
539     LineBorder BottomBorder     MID_BOTTOM_BORDER;
540     INT32 BottomDistance        BOTTOM_BORDER_DISTANCE;
542 item SvxBox SvxBoxItem;
544 struct SvxBoxInfo
546     LineBorder Horizontal   MID_HORIZONTAL;
547     LineBorder Vertical     MID_VERTICAL;
548     INT16 Flags             MID_FLAGS;
549     INT16 ValidFlags        MID_VALIDFLAGS;
550     INT32 DefaultDistance   MID_DISTANCE;
552 item SvxBoxInfo SvxBoxInfoItem;
554 item String SvxColumns;                 // dummy for sequence
555 struct SvxColumnDescription
557     SvxColumns  Columns     MID_COLUMNARRAY;  // currently not implemented
558     INT32       Left        MID_LEFT;
559     INT32       Right       MID_RIGHT;
560     INT32       Actual      MID_ACTUAL;
561     BOOL        Orthogonal  MID_ORTHO;
562     BOOL        Table       MID_TABLE;
564 item SvxColumnDescription SvxColumnItem;
566 struct SvxTabStop
568     String  TabStops         MID_TABSTOPS; // dummy, will be represented by array of structs
569     //INT32   StandardTabStop  MID_STD_TAB;
571 item SvxTabStop SvxTabStopItem;
573 struct SvxCharRotate
575     INT16  Rotation          MID_ROTATE;
576     BOOL    FitToLine        MID_FITTOLINE;
578 item SvxCharRotate SvxCharRotateItem;
580 item String SfxSetItem;  // dummy
581 item INT16  SvxRotateModeItem;  // enum
582 item INT16  SvxOrientationItem;  // enum
584 struct SvxMargin
586     INT32 LeftMargin MID_MARGIN_L_MARGIN;
587     INT32 RightMargin MID_MARGIN_R_MARGIN;
588     INT32 UpperMargin MID_MARGIN_UP_MARGIN;
589     INT32 LowerMargin MID_MARGIN_LO_MARGIN;
591 item SvxMargin SvxMarginItem;
593 struct SvxEmphasisMark
595     INT32   Emphasis    MID_EMPHASIS;
597 item SvxEmphasisMark SvxEmphasisMarkItem;
599 item String SvxSmartTagItem; // dummy for sequence
601 item String Points; // dummy for sequence
602 struct ZoomSlider
604     INT16  CurrentZoom          MID_ZOOMSLIDER_CURRENTZOOM;
605     Points SnappingPoints       MID_ZOOMSLIDER_SNAPPINGPOINTS;
606     INT16  SvxMinZoom           MID_ZOOMSLIDER_MINZOOM;
607     INT16  SvxMaxZoom           MID_ZOOMSLIDER_MAXZOOM;
609 item ZoomSlider SvxZoomSliderItem;
611 item String SvxGalleryItem; // dummy for sequence