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 SvxDashListItem;
407 item String SvxLineEndListItem;
408 item String SvxColorTableItem;
409 item String SvxGradientListItem;
410 item String SvxHatchListItem;
411 item String SvxBitmapListItem;
412 item String SfxLockBytesItem;
413 item String SvxFontListItem;
414 item String avmedia_MediaItem;
416 item BYTE SfxGlobalNameItem;
418 //-------------------------------------------------------------------------
422 FontStrikeout Kind MID_CROSS_OUT;
424 item SvxCrossedOut SvxCrossedOutItem;
428 FontUnderline LineStyle MID_TL_STYLE;
429 BOOL HasColor MID_TL_HASCOLOR;
430 INT32 Color MID_TL_COLOR;
432 item SvxTextLine SvxTextLineItem;
436 BOOL Transparent MID_GRAPHIC_TRANSPARENT;
437 INT32 BackColor MID_BACK_COLOR;
438 String URL MID_GRAPHIC_URL;
439 String Filtername MID_GRAPHIC_FILTER;
440 INT16 Position MID_GRAPHIC_POSITION;
442 item SvxBrush SvxBrushItem;
444 //-------------------------------------------------------------------------
448 INT16 Escapement MID_ESC;
449 BYTE Height MID_ESC_HEIGHT;
450 BOOL Auto MID_AUTO_ESC;
452 item SvxEscapement SvxEscapementItem;
454 //-------------------------------------------------------------------------
458 float Height MID_FONTHEIGHT; // may be converted to INT32
459 INT16 Prop MID_FONTHEIGHT_PROP;
460 float Diff MID_FONTHEIGHT_DIFF; // may be converted to INT32
462 item SvxFontHeight SvxFontHeightItem;
464 //-------------------------------------------------------------------------
468 BOOL Hyphen MID_IS_HYPHEN;
469 INT16 MinLead MID_HYPHEN_MIN_LEAD;
470 INT16 MinTrail MID_HYPHEN_MIN_TRAIL;
471 INT16 MaxHyphens MID_HYPHEN_MAX_HYPHENS;
473 item SvxHyphenZone SvxHyphenZoneItem;
475 //-------------------------------------------------------------------------
478 INT32 LineFGColor MID_FG_COLOR;
479 INT32 LineOutWidth MID_OUTER_WIDTH;
480 INT32 LineInWidth MID_INNER_WIDTH;
481 INT32 LineDistance MID_DISTANCE;
483 item SvxLine SvxLineItem;
485 //-------------------------------------------------------------------------
489 INT32 LeftMargin MID_L_MARGIN; // % or direct
490 INT32 TextLeftMargin MID_TXT_LMARGIN
491 INT32 RightMargin MID_R_MARGIN; // % or direct
492 INT16 LeftRelMargin MID_L_REL_MARGIN;
493 INT16 RightRelMargin MID_R_REL_MARGIN;
494 INT32 FirstLineIndent MID_FIRST_LINE_INDENT; // % or direct
495 INT32 FirstLineRelIdent MID_FIRST_LINE_REL_INDENT;
496 BOOL AutoFirst MID_FIRST_AUTO;
498 item SvxLRSpace SvxLRSpaceItem;
500 //-------------------------------------------------------------------------
502 struct SvxLineSpacing
504 INT16 Mode MID_LINESPACE;
505 INT16 Height MID_HEIGHT;
507 item SvxLineSpacing SvxLineSpacingItem;
509 //-------------------------------------------------------------------------
513 BOOL Landscape MID_PAGE_ORIENTATION;
514 INT16 Layout MID_PAGE_LAYOUT;
515 INT16 NumType MID_PAGE_NUMTYPE;
517 item SvxPage SvxPageItem;
519 //-------------------------------------------------------------------------
521 struct SvxPagePosSize
523 INT32 XPos MID_X; // ???
524 INT32 YPos MID_Y; // ???
525 INT32 Width MID_WIDTH; // ???
526 INT32 Height MID_HEIGHT; // ???
528 item SvxPagePosSize SvxPagePosSizeItem;
531 //-------------------------------------------------------------------------
534 SvxShadowLocation Location MID_LOCATION;
535 INT16 Width MID_WIDTH;
536 BOOL IsTransparent MID_TRANSPARENT;
537 INT32 Color MID_BG_COLOR;
539 item SvxShadow SvxShadowItem;
542 //-------------------------------------------------------------------------
546 INT32 TopMargin MID_UP_MARGIN; // % or direct
547 INT32 BottomMargin MID_LO_MARGIN; // % or direct
548 INT16 TopRelMargin MID_UP_REL_MARGIN;
549 INT16 BottomRelMargin MID_LO_REL_MARGIN;
551 item SvxULSpace SvxULSpaceItem
553 //-------------------------------------------------------------------------
555 struct SvxLongLRSpace
557 INT32 Left MID_LEFT; // ???
558 INT32 Right MID_RIGHT; // ???
560 item SvxLongLRSpace SvxLongLRSpaceItem;
562 //-------------------------------------------------------------------------
564 struct SvxLongULSpace
566 INT32 Upper MID_UPPER; // ???
567 INT32 Lower MID_LOWER; // ???
569 item SvxLongULSpace SvxLongULSpaceItem;
571 //-------------------------------------------------------------------------
575 String Text MID_HLINK_TEXT;
576 String URL MID_HLINK_URL;
577 String Target MID_HLINK_TARGET;
578 String Name MID_HLINK_NAME;
579 INT32 Type MID_HLINK_TYPE;
581 item SvxHyperlink SvxHyperlinkItem;
583 //-------------------------------------------------------------------------
588 String Name MID_NAME;
590 item PageModel SvxPageModelItem;
594 BOOL Content MID_PROTECT_CONTENT;
595 BOOL Size MID_PROTECT_SIZE;
596 BOOL Position MID_PROTECT_POSITION;
598 item SvxProtect SvxProtectItem;
602 UINT16 Value MID_VALUE;
603 INT16 ValueSet MID_VALUESET;
606 item SvxZoom SvxZoomItem;
608 struct SvxRulerObject
610 INT32 StartX MID_START_X;
611 INT32 StartY MID_START_Y;
612 INT32 EndX MID_END_X;
613 INT32 EndY MID_END_Y;
614 BOOL Limited MID_LIMIT;
616 item SvxRulerObject SvxObjectItem;
618 item String LineBorder; // dummy for sequence
621 LineBorder LeftBorder MID_LEFT_BORDER;
622 INT32 LeftDistance LEFT_BORDER_DISTANCE;
623 LineBorder RightBorder MID_RIGHT_BORDER;
624 INT32 RightDistance RIGHT_BORDER_DISTANCE;
625 LineBorder TopBorder MID_TOP_BORDER;
626 INT32 TopDistance TOP_BORDER_DISTANCE;
627 LineBorder BottomBorder MID_BOTTOM_BORDER;
628 INT32 BottomDistance BOTTOM_BORDER_DISTANCE;
630 item SvxBox SvxBoxItem;
634 LineBorder Horizontal MID_HORIZONTAL;
635 LineBorder Vertical MID_VERTICAL;
636 INT16 Flags MID_FLAGS;
637 INT16 ValidFlags MID_VALIDFLAGS;
638 INT32 DefaultDistance MID_DISTANCE;
640 item SvxBoxInfo SvxBoxInfoItem;
642 item String SvxColumns; // dummy for sequence
643 struct SvxColumnDescription
645 SvxColumns Columns MID_COLUMNARRAY; // currently not implemented
647 INT32 Right MID_RIGHT;
648 INT32 Actual MID_ACTUAL;
649 BOOL Orthogonal MID_ORTHO;
650 BOOL Table MID_TABLE;
652 item SvxColumnDescription SvxColumnItem;
656 String TabStops MID_TABSTOPS; // dummy, will be represented by array of structs
657 //INT32 StandardTabStop MID_STD_TAB;
659 item SvxTabStop SvxTabStopItem;
663 INT16 Rotation MID_ROTATE;
664 BOOL FitToLine MID_FITTOLINE;
666 item SvxCharRotate SvxCharRotateItem;
668 item String SfxSetItem; // dummy
669 item INT16 SvxRotateModeItem; // enum
670 item INT16 SvxOrientationItem; // enum
674 INT32 LeftMargin MID_MARGIN_L_MARGIN;
675 INT32 RightMargin MID_MARGIN_R_MARGIN;
676 INT32 UpperMargin MID_MARGIN_UP_MARGIN;
677 INT32 LowerMargin MID_MARGIN_LO_MARGIN;
679 item SvxMargin SvxMarginItem;
681 struct SvxEmphasisMark
683 INT32 Emphasis MID_EMPHASIS;
685 item SvxEmphasisMark SvxEmphasisMarkItem;
687 item String SvxSmartTagItem; // dummy for sequence
690 item String Points; // dummy for sequence
693 INT16 CurrentZoom MID_ZOOMSLIDER_CURRENTZOOM;
694 Points SnappingPoints MID_ZOOMSLIDER_SNAPPINGPOINTS;
695 INT16 SvxMinZoom MID_ZOOMSLIDER_MINZOOM;
696 INT16 SvxMaxZoom MID_ZOOMSLIDER_MAXZOOM;
698 item ZoomSlider SvxZoomSliderItem;