1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 //-------------------------------------------------------------------------
29 enum SvxCellHorJustifyEnum
31 SVX_HOR_JUSTIFY_STANDARD,
33 SVX_HOR_JUSTIFY_CENTER,
34 SVX_HOR_JUSTIFY_RIGHT,
35 SVX_HOR_JUSTIFY_BLOCK,
36 SVX_HOR_JUSTIFY_REPEAT
38 item SvxCellHorJustifyEnum SvxCellHorJustifyEnumItem;
40 enum SvxCellVerJustifyEnum
42 SVX_VER_JUSTIFY_STANDARD,
44 SVX_VER_JUSTIFY_CENTER,
45 SVX_VER_JUSTIFY_BOTTOM
47 item SvxCellVerJustifyEnum SvxCellVerJustifyEnumItem;
49 //-------------------------------------------------------------------------
51 enum SvxCellOrientationEnum
53 SVX_ORIENTATION_STANDARD,
54 SVX_ORIENTATION_TOPBOTTOM,
55 SVX_ORIENTATION_BOTTOMTOP,
56 SVX_ORIENTATION_STACKED
58 item SvxCellOrientationEnum SvxCellOrientationEnumItem;
60 enum SvxChooseControlEnum
76 SVX_SNAP_IMAGECONTROL,
82 SVX_SNAP_NUMERICFIELD,
83 SVX_SNAP_CURRENCYFIELD,
84 SVX_SNAP_FORMATTEDFIELD,
85 SVX_SNAP_PATTERNFIELD,
89 item SvxChooseControlEnum SvxChooseControlItem;
91 //-------------------------------------------------------------------------
99 SVX_SNAP_DRAW_ELLIPSE,
100 SVX_SNAP_DRAW_POLYGON_NOFILL,
101 SVX_SNAP_DRAW_BEZIER_NOFILL,
102 SVX_SNAP_DRAW_FREELINE_NOFILL,
105 SVX_SNAP_DRAW_CIRCLECUT,
107 SVX_SNAP_DRAW_TEXT_VERTICAL,
108 SVX_SNAP_DRAW_TEXT_MARQUEE,
109 SVX_SNAP_DRAW_CAPTION,
110 SVX_SNAP_DRAW_CAPTION_VERTICAL
112 item SvxDrawToolEnum SvxDrawToolEnumItem;
114 //-------------------------------------------------------------------------
116 enum SvxDrawAlignEnum
118 SVX_OBJECT_ALIGN_LEFT,
119 SVX_OBJECT_ALIGN_CENTER,
120 SVX_OBJECT_ALIGN_RIGHT,
122 SVX_OBJECT_ALIGN_MIDDLE,
123 SVX_OBJECT_ALIGN_DOWN
125 item SvxDrawAlignEnum SvxDrawAlignEnumItem;
127 //-------------------------------------------------------------------------
129 enum SvxDrawBezierEnum
140 SVX_BEZIER_ELIMINATE_POINTS
142 item SvxDrawBezierEnum SvxDrawBezierEnumItem;
150 SVX_ADJUST_BLOCKLINE,
154 struct SvxAdjustStruct
156 SvxAdjust ParagraphAdjustment MID_PARA_ADJUST;
157 SvxAdjust LastLineAdjustment MID_LAST_LINE_ADJUST;
158 BOOL ExpandSingleWord MID_EXPAND_SINGLE;
160 item SvxAdjustStruct SvxAdjustItem;
162 //-------------------------------------------------------------------------
166 SVX_CASEMAP_NOT_MAPPED,
167 SVX_CASEMAP_VERSALIEN,
170 SVX_CASEMAP_KAPITAELCHEN,
173 item SvxCaseMap SvxCaseMapItem;
175 //-------------------------------------------------------------------------
192 //-------------------------------------------------------------------------
205 //-------------------------------------------------------------------------
214 //-------------------------------------------------------------------------
218 String StyleName MID_FONT_STYLE_NAME;
219 FontPitch Pitch MID_FONT_PITCH; // INT16
220 CharSet CharSet MID_FONT_CHAR_SET; // INT16
221 FontFamily Family MID_FONT_FAMILY; // INT16
222 String FamilyName MID_FONT_FAMILY_NAME;
224 item SvxFont SvxFontItem;
226 //-------------------------------------------------------------------------
242 item FontWeight SvxWeightItem;
244 //-------------------------------------------------------------------------
254 //-------------------------------------------------------------------------
263 //-------------------------------------------------------------------------
271 item FontItalic SvxPostureItem;
273 //-------------------------------------------------------------------------
281 item SvxDbType SvxDbTypeItem;
283 //-------------------------------------------------------------------------
292 item SvxLineSpace SvxLineSpaceItem;
294 //-------------------------------------------------------------------------
296 enum SvxInterLineSpace
298 SVX_INTER_LINE_SPACE_OFF,
299 SVX_INTER_LINE_SPACE_PROP,
300 SVX_INTER_LINE_SPACE_FIX,
301 SVX_INTER_LINE_SPACE_END
303 item SvxInterLineSpace SvxInterLineSpaceItem;
305 //-------------------------------------------------------------------------
310 SVX_BREAK_COLUMN_BEFORE,
311 SVX_BREAK_COLUMN_AFTER,
312 SVX_BREAK_COLUMN_BOTH,
313 SVX_BREAK_PAGE_BEFORE,
314 SVX_BREAK_PAGE_AFTER,
318 item SvxBreak SvxBreakItem;
320 //-------------------------------------------------------------------------
337 item BrushStyle BrushStyleItem;
339 //-------------------------------------------------------------------------
343 SVX_CHARS_UPPER_LETTER,
344 SVX_CHARS_LOWER_LETTER,
352 item SvxNumType SvxNumTypeItem;
354 //-------------------------------------------------------------------------
356 enum SvxShadowLocation
361 SVX_SHADOW_BOTTOMLEFT,
362 SVX_SHADOW_BOTTOMRIGHT,
365 item SvxShadowLocation SvxShadowLocationItem;
367 //-------------------------------------------------------------------------
369 item INT16 SvxCharScaleWidthItem;
370 item INT16 SvxParaVertAlignItem;
371 item INT16 SvxCharReliefItem;
372 item BOOL SvxBlinkItem;
373 item BOOL SvxAutoKernItem;
374 item INT32 SvxColorItem;
375 item BOOL SvxContourItem;
376 item INT16 SvxFmtBreakItem; // enum
377 item BOOL SvxFmtKeepItem;
378 item BOOL SvxFmtSplitItem;
379 item INT16 SvxKerningItem;
380 item INT16 SvxLanguageItem;
381 item BOOL SvxNoHyphenItem;
382 item BOOL SvxNoLinebreakItem;
383 item BOOL SvxOpaqueItem;
384 item BYTE SvxOrphansItem;
385 item BYTE SvxPaperBinItem;
386 item String SvxPostItAuthorItem;
387 item String SvxPostItDateItem;
388 item String SvxPostItTextItem;
389 item FontItalic SvxPostureItem; // enum
390 item BOOL SvxPrintItem;
391 item UINT16 SvxPropSizeItem; // derived from UInt16Item
392 item BOOL SvxShadowedItem;
393 item SvxDrawBezierEnum SvxDrawBezierItem;
394 item SvxDrawAlignEnum SvxDrawAlignItem;
395 item SvxDrawToolEnum SvxDrawToolItem;
396 item BYTE SvxWidowsItem;
397 item BOOL SvxWordLineModeItem;
398 item SvxCellHorJustifyEnum SvxHorJustifyItem;
399 item SvxCellVerJustifyEnum SvxVerJustifyItem;
400 item SvxCellOrientationEnum SvxOrientationItem;
401 item BOOL SdrShadowItem;
402 item INT16 SdrTextFitToSizeTypeItem; // enum
403 item String SfxStringListItem; // serialized into one concatenated string
404 item double SvxDoubleItem;
405 item String OfaPtrItem; // serialized into one concatenated string
406 item String OfaRefItem;
407 item String SvxDashListItem;
408 item String SvxLineEndListItem;
409 item String SvxColorListItem;
410 item String SvxGradientListItem;
411 item String SvxHatchListItem;
412 item String SvxBitmapListItem;
413 item String SfxLockBytesItem;
414 item String SvxFontListItem;
415 item String avmedia_MediaItem;
417 item BYTE SfxGlobalNameItem;
419 //-------------------------------------------------------------------------
423 FontStrikeout Kind MID_CROSS_OUT;
425 item SvxCrossedOut SvxCrossedOutItem;
429 FontUnderline LineStyle MID_TL_STYLE;
430 BOOL HasColor MID_TL_HASCOLOR;
431 INT32 Color MID_TL_COLOR;
433 item SvxTextLine SvxTextLineItem;
437 BOOL Transparent MID_GRAPHIC_TRANSPARENT;
438 INT32 BackColor MID_BACK_COLOR;
439 String URL MID_GRAPHIC_URL;
440 String Filtername MID_GRAPHIC_FILTER;
441 INT16 Position MID_GRAPHIC_POSITION;
443 item SvxBrush SvxBrushItem;
445 //-------------------------------------------------------------------------
449 INT16 Escapement MID_ESC;
450 BYTE Height MID_ESC_HEIGHT;
451 BOOL Auto MID_AUTO_ESC;
453 item SvxEscapement SvxEscapementItem;
455 //-------------------------------------------------------------------------
459 float Height MID_FONTHEIGHT; // may be converted to INT32
460 INT16 Prop MID_FONTHEIGHT_PROP;
461 float Diff MID_FONTHEIGHT_DIFF; // may be converted to INT32
463 item SvxFontHeight SvxFontHeightItem;
465 //-------------------------------------------------------------------------
469 BOOL Hyphen MID_IS_HYPHEN;
470 INT16 MinLead MID_HYPHEN_MIN_LEAD;
471 INT16 MinTrail MID_HYPHEN_MIN_TRAIL;
472 INT16 MaxHyphens MID_HYPHEN_MAX_HYPHENS;
474 item SvxHyphenZone SvxHyphenZoneItem;
476 //-------------------------------------------------------------------------
479 INT32 LineFGColor MID_FG_COLOR;
480 INT32 LineOutWidth MID_OUTER_WIDTH;
481 INT32 LineInWidth MID_INNER_WIDTH;
482 INT32 LineDistance MID_DISTANCE;
484 item SvxLine SvxLineItem;
486 //-------------------------------------------------------------------------
490 INT32 LeftMargin MID_L_MARGIN; // % or direct
491 INT32 TextLeftMargin MID_TXT_LMARGIN
492 INT32 RightMargin MID_R_MARGIN; // % or direct
493 INT16 LeftRelMargin MID_L_REL_MARGIN;
494 INT16 RightRelMargin MID_R_REL_MARGIN;
495 INT32 FirstLineIndent MID_FIRST_LINE_INDENT; // % or direct
496 INT32 FirstLineRelIdent MID_FIRST_LINE_REL_INDENT;
497 BOOL AutoFirst MID_FIRST_AUTO;
499 item SvxLRSpace SvxLRSpaceItem;
501 //-------------------------------------------------------------------------
503 struct SvxLineSpacing
505 INT16 Mode MID_LINESPACE;
506 INT16 Height MID_HEIGHT;
508 item SvxLineSpacing SvxLineSpacingItem;
510 //-------------------------------------------------------------------------
514 BOOL Landscape MID_PAGE_ORIENTATION;
515 INT16 Layout MID_PAGE_LAYOUT;
516 INT16 NumType MID_PAGE_NUMTYPE;
518 item SvxPage SvxPageItem;
520 //-------------------------------------------------------------------------
522 struct SvxPagePosSize
524 INT32 XPos MID_X; // ???
525 INT32 YPos MID_Y; // ???
526 INT32 Width MID_WIDTH; // ???
527 INT32 Height MID_HEIGHT; // ???
529 item SvxPagePosSize SvxPagePosSizeItem;
532 //-------------------------------------------------------------------------
535 SvxShadowLocation Location MID_LOCATION;
536 INT16 Width MID_WIDTH;
537 BOOL IsTransparent MID_TRANSPARENT;
538 INT32 Color MID_BG_COLOR;
540 item SvxShadow SvxShadowItem;
543 //-------------------------------------------------------------------------
547 INT32 TopMargin MID_UP_MARGIN; // % or direct
548 INT32 BottomMargin MID_LO_MARGIN; // % or direct
549 BOOL ContextMargin MID_CTX_MARGIN;
550 INT16 TopRelMargin MID_UP_REL_MARGIN;
551 INT16 BottomRelMargin MID_LO_REL_MARGIN;
553 item SvxULSpace SvxULSpaceItem
555 //-------------------------------------------------------------------------
557 struct SvxLongLRSpace
559 INT32 Left MID_LEFT; // ???
560 INT32 Right MID_RIGHT; // ???
562 item SvxLongLRSpace SvxLongLRSpaceItem;
564 //-------------------------------------------------------------------------
566 struct SvxLongULSpace
568 INT32 Upper MID_UPPER; // ???
569 INT32 Lower MID_LOWER; // ???
571 item SvxLongULSpace SvxLongULSpaceItem;
573 //-------------------------------------------------------------------------
577 String Text MID_HLINK_TEXT;
578 String URL MID_HLINK_URL;
579 String Target MID_HLINK_TARGET;
580 String Name MID_HLINK_NAME;
581 INT32 Type MID_HLINK_TYPE;
583 item SvxHyperlink SvxHyperlinkItem;
585 //-------------------------------------------------------------------------
590 String Name MID_NAME;
592 item PageModel SvxPageModelItem;
596 BOOL Content MID_PROTECT_CONTENT;
597 BOOL Size MID_PROTECT_SIZE;
598 BOOL Position MID_PROTECT_POSITION;
600 item SvxProtect SvxProtectItem;
604 UINT16 Value MID_VALUE;
605 INT16 ValueSet MID_VALUESET;
608 item SvxZoom SvxZoomItem;
610 struct SvxRulerObject
612 INT32 StartX MID_START_X;
613 INT32 StartY MID_START_Y;
614 INT32 EndX MID_END_X;
615 INT32 EndY MID_END_Y;
616 BOOL Limited MID_LIMIT;
618 item SvxRulerObject SvxObjectItem;
620 item String LineBorder; // dummy for sequence
623 LineBorder LeftBorder MID_LEFT_BORDER;
624 INT32 LeftDistance LEFT_BORDER_DISTANCE;
625 LineBorder RightBorder MID_RIGHT_BORDER;
626 INT32 RightDistance RIGHT_BORDER_DISTANCE;
627 LineBorder TopBorder MID_TOP_BORDER;
628 INT32 TopDistance TOP_BORDER_DISTANCE;
629 LineBorder BottomBorder MID_BOTTOM_BORDER;
630 INT32 BottomDistance BOTTOM_BORDER_DISTANCE;
632 item SvxBox SvxBoxItem;
636 LineBorder Horizontal MID_HORIZONTAL;
637 LineBorder Vertical MID_VERTICAL;
638 INT16 Flags MID_FLAGS;
639 INT16 ValidFlags MID_VALIDFLAGS;
640 INT32 DefaultDistance MID_DISTANCE;
642 item SvxBoxInfo SvxBoxInfoItem;
644 item String SvxColumns; // dummy for sequence
645 struct SvxColumnDescription
647 SvxColumns Columns MID_COLUMNARRAY; // currently not implemented
649 INT32 Right MID_RIGHT;
650 INT32 Actual MID_ACTUAL;
651 BOOL Orthogonal MID_ORTHO;
652 BOOL Table MID_TABLE;
654 item SvxColumnDescription SvxColumnItem;
658 String TabStops MID_TABSTOPS; // dummy, will be represented by array of structs
659 //INT32 StandardTabStop MID_STD_TAB;
661 item SvxTabStop SvxTabStopItem;
665 INT16 Rotation MID_ROTATE;
666 BOOL FitToLine MID_FITTOLINE;
668 item SvxCharRotate SvxCharRotateItem;
670 item String SfxSetItem; // dummy
671 item INT16 SvxRotateModeItem; // enum
672 item INT16 SvxOrientationItem; // enum
676 INT32 LeftMargin MID_MARGIN_L_MARGIN;
677 INT32 RightMargin MID_MARGIN_R_MARGIN;
678 INT32 UpperMargin MID_MARGIN_UP_MARGIN;
679 INT32 LowerMargin MID_MARGIN_LO_MARGIN;
681 item SvxMargin SvxMarginItem;
683 struct SvxEmphasisMark
685 INT32 Emphasis MID_EMPHASIS;
687 item SvxEmphasisMark SvxEmphasisMarkItem;
689 item String SvxSmartTagItem; // dummy for sequence
692 item String Points; // dummy for sequence
695 INT16 CurrentZoom MID_ZOOMSLIDER_CURRENTZOOM;
696 Points SnappingPoints MID_ZOOMSLIDER_SNAPPINGPOINTS;
697 INT16 SvxMinZoom MID_ZOOMSLIDER_MINZOOM;
698 INT16 SvxMaxZoom MID_ZOOMSLIDER_MAXZOOM;
700 item ZoomSlider SvxZoomSliderItem;