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: svxitems.sdi,v $
10 * $Revision: 1.32.212.1 $
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 //-------------------------------------------------------------------------
32 enum SvxCellHorJustifyEnum
34 SVX_HOR_JUSTIFY_STANDARD,
36 SVX_HOR_JUSTIFY_CENTER,
37 SVX_HOR_JUSTIFY_RIGHT,
38 SVX_HOR_JUSTIFY_BLOCK,
39 SVX_HOR_JUSTIFY_REPEAT
41 item SvxCellHorJustifyEnum SvxCellHorJustifyEnumItem;
43 enum SvxCellVerJustifyEnum
45 SVX_VER_JUSTIFY_STANDARD,
47 SVX_VER_JUSTIFY_CENTER,
48 SVX_VER_JUSTIFY_BOTTOM
50 item SvxCellVerJustifyEnum SvxCellVerJustifyEnumItem;
52 //-------------------------------------------------------------------------
54 enum SvxCellOrientationEnum
56 SVX_ORIENTATION_STANDARD,
57 SVX_ORIENTATION_TOPBOTTOM,
58 SVX_ORIENTATION_BOTTOMTOP,
59 SVX_ORIENTATION_STACKED
61 item SvxCellOrientationEnum SvxCellOrientationEnumItem;
63 enum SvxChooseControlEnum
79 SVX_SNAP_IMAGECONTROL,
85 SVX_SNAP_NUMERICFIELD,
86 SVX_SNAP_CURRENCYFIELD,
87 SVX_SNAP_FORMATTEDFIELD,
88 SVX_SNAP_PATTERNFIELD,
92 item SvxChooseControlEnum SvxChooseControlItem;
94 //-------------------------------------------------------------------------
102 SVX_SNAP_DRAW_ELLIPSE,
103 SVX_SNAP_DRAW_POLYGON_NOFILL,
104 SVX_SNAP_DRAW_BEZIER_NOFILL,
105 SVX_SNAP_DRAW_FREELINE_NOFILL,
108 SVX_SNAP_DRAW_CIRCLECUT,
110 SVX_SNAP_DRAW_TEXT_VERTICAL,
111 SVX_SNAP_DRAW_TEXT_MARQUEE,
112 SVX_SNAP_DRAW_CAPTION,
113 SVX_SNAP_DRAW_CAPTION_VERTICAL
115 item SvxDrawToolEnum SvxDrawToolEnumItem;
117 //-------------------------------------------------------------------------
119 enum SvxDrawAlignEnum
121 SVX_OBJECT_ALIGN_LEFT,
122 SVX_OBJECT_ALIGN_CENTER,
123 SVX_OBJECT_ALIGN_RIGHT,
125 SVX_OBJECT_ALIGN_MIDDLE,
126 SVX_OBJECT_ALIGN_DOWN
128 item SvxDrawAlignEnum SvxDrawAlignEnumItem;
130 //-------------------------------------------------------------------------
132 enum SvxDrawBezierEnum
143 SVX_BEZIER_ELIMINATE_POINTS
145 item SvxDrawBezierEnum SvxDrawBezierEnumItem;
153 SVX_ADJUST_BLOCKLINE,
157 struct SvxAdjustStruct
159 SvxAdjust ParagraphAdjustment MID_PARA_ADJUST;
160 SvxAdjust LastLineAdjustment MID_LAST_LINE_ADJUST;
161 BOOL ExpandSingleWord MID_EXPAND_SINGLE;
163 item SvxAdjustStruct SvxAdjustItem;
165 //-------------------------------------------------------------------------
169 SVX_CASEMAP_NOT_MAPPED,
170 SVX_CASEMAP_VERSALIEN,
173 SVX_CASEMAP_KAPITAELCHEN,
176 item SvxCaseMap SvxCaseMapItem;
178 //-------------------------------------------------------------------------
195 //-------------------------------------------------------------------------
208 //-------------------------------------------------------------------------
217 //-------------------------------------------------------------------------
221 String StyleName MID_FONT_STYLE_NAME;
222 FontPitch Pitch MID_FONT_PITCH; // INT16
223 CharSet CharSet MID_FONT_CHAR_SET; // INT16
224 FontFamily Family MID_FONT_FAMILY; // INT16
225 String FamilyName MID_FONT_FAMILY_NAME;
227 item SvxFont SvxFontItem;
229 //-------------------------------------------------------------------------
245 item FontWeight SvxWeightItem;
247 //-------------------------------------------------------------------------
257 //-------------------------------------------------------------------------
266 //-------------------------------------------------------------------------
274 item FontItalic SvxPostureItem;
276 //-------------------------------------------------------------------------
284 item SvxDbType SvxDbTypeItem;
286 //-------------------------------------------------------------------------
295 item SvxLineSpace SvxLineSpaceItem;
297 //-------------------------------------------------------------------------
299 enum SvxInterLineSpace
301 SVX_INTER_LINE_SPACE_OFF,
302 SVX_INTER_LINE_SPACE_PROP,
303 SVX_INTER_LINE_SPACE_FIX,
304 SVX_INTER_LINE_SPACE_END
306 item SvxInterLineSpace SvxInterLineSpaceItem;
308 //-------------------------------------------------------------------------
313 SVX_BREAK_COLUMN_BEFORE,
314 SVX_BREAK_COLUMN_AFTER,
315 SVX_BREAK_COLUMN_BOTH,
316 SVX_BREAK_PAGE_BEFORE,
317 SVX_BREAK_PAGE_AFTER,
321 item SvxBreak SvxBreakItem;
323 //-------------------------------------------------------------------------
340 item BrushStyle BrushStyleItem;
342 //-------------------------------------------------------------------------
346 SVX_CHARS_UPPER_LETTER,
347 SVX_CHARS_LOWER_LETTER,
355 item SvxNumType SvxNumTypeItem;
357 //-------------------------------------------------------------------------
359 enum SvxShadowLocation
364 SVX_SHADOW_BOTTOMLEFT,
365 SVX_SHADOW_BOTTOMRIGHT,
368 item SvxShadowLocation SvxShadowLocationItem;
370 //-------------------------------------------------------------------------
372 item INT16 SvxCharScaleWidthItem;
373 item INT16 SvxParaVertAlignItem;
374 item INT16 SvxCharReliefItem;
375 item BOOL SvxBlinkItem;
376 item BOOL SvxAutoKernItem;
377 item INT32 SvxColorItem;
378 item BOOL SvxContourItem;
379 item INT16 SvxFmtBreakItem; // enum
380 item BOOL SvxFmtKeepItem;
381 item BOOL SvxFmtSplitItem;
382 item INT16 SvxKerningItem;
383 item INT16 SvxLanguageItem;
384 item BOOL SvxNoHyphenItem;
385 item BOOL SvxNoLinebreakItem;
386 item BOOL SvxOpaqueItem;
387 item BYTE SvxOrphansItem;
388 item BYTE SvxPaperBinItem;
389 item String SvxPostItAuthorItem;
390 item String SvxPostItDateItem;
391 item String SvxPostItTextItem;
392 item FontItalic SvxPostureItem; // enum
393 item BOOL SvxPrintItem;
394 item UINT16 SvxPropSizeItem; // derived from UInt16Item
395 item BOOL SvxShadowedItem;
396 item SvxDrawBezierEnum SvxDrawBezierItem;
397 item SvxDrawAlignEnum SvxDrawAlignItem;
398 item SvxDrawToolEnum SvxDrawToolItem;
399 item BYTE SvxWidowsItem;
400 item BOOL SvxWordLineModeItem;
401 item SvxCellHorJustifyEnum SvxHorJustifyItem;
402 item SvxCellVerJustifyEnum SvxVerJustifyItem;
403 item SvxCellOrientationEnum SvxOrientationItem;
404 item BOOL SdrShadowItem;
405 item INT16 SdrTextFitToSizeTypeItem; // enum
406 item String SfxStringListItem; // serialized into one concatenated string
407 item double SvxDoubleItem;
408 item String OfaPtrItem; // serialized into one concatenated string
409 item String SvxDashListItem;
410 item String SvxLineEndListItem;
411 item String SvxColorTableItem;
412 item String SvxGradientListItem;
413 item String SvxHatchListItem;
414 item String SvxBitmapListItem;
415 item String SfxLockBytesItem;
416 item String SvxFontListItem;
417 item String avmedia_MediaItem;
419 item BYTE SfxGlobalNameItem;
421 //-------------------------------------------------------------------------
425 FontStrikeout Kind MID_CROSS_OUT;
427 item SvxCrossedOut SvxCrossedOutItem;
431 FontUnderline LineStyle MID_TL_STYLE;
432 BOOL HasColor MID_TL_HASCOLOR;
433 INT32 Color MID_TL_COLOR;
435 item SvxTextLine SvxTextLineItem;
439 BOOL Transparent MID_GRAPHIC_TRANSPARENT;
440 INT32 BackColor MID_BACK_COLOR;
441 String URL MID_GRAPHIC_URL;
442 String Filtername MID_GRAPHIC_FILTER;
443 INT16 Position MID_GRAPHIC_POSITION;
445 item SvxBrush SvxBrushItem;
447 //-------------------------------------------------------------------------
451 INT16 Escapement MID_ESC;
452 BYTE Height MID_ESC_HEIGHT;
453 BOOL Auto MID_AUTO_ESC;
455 item SvxEscapement SvxEscapementItem;
457 //-------------------------------------------------------------------------
461 float Height MID_FONTHEIGHT; // may be converted to INT32
462 INT16 Prop MID_FONTHEIGHT_PROP;
463 float Diff MID_FONTHEIGHT_DIFF; // may be converted to INT32
465 item SvxFontHeight SvxFontHeightItem;
467 //-------------------------------------------------------------------------
471 BOOL Hyphen MID_IS_HYPHEN;
472 INT16 MinLead MID_HYPHEN_MIN_LEAD;
473 INT16 MinTrail MID_HYPHEN_MIN_TRAIL;
474 INT16 MaxHyphens MID_HYPHEN_MAX_HYPHENS;
476 item SvxHyphenZone SvxHyphenZoneItem;
478 //-------------------------------------------------------------------------
481 INT32 LineFGColor MID_FG_COLOR;
482 INT32 LineOutWidth MID_OUTER_WIDTH;
483 INT32 LineInWidth MID_INNER_WIDTH;
484 INT32 LineDistance MID_DISTANCE;
486 item SvxLine SvxLineItem;
488 //-------------------------------------------------------------------------
492 INT32 LeftMargin MID_L_MARGIN; // % or direct
493 INT32 TextLeftMargin MID_TXT_LMARGIN
494 INT32 RightMargin MID_R_MARGIN; // % or direct
495 INT16 LeftRelMargin MID_L_REL_MARGIN;
496 INT16 RightRelMargin MID_R_REL_MARGIN;
497 INT32 FirstLineIndent MID_FIRST_LINE_INDENT; // % or direct
498 INT32 FirstLineRelIdent MID_FIRST_LINE_REL_INDENT;
499 BOOL AutoFirst MID_FIRST_AUTO;
501 item SvxLRSpace SvxLRSpaceItem;
503 //-------------------------------------------------------------------------
505 struct SvxLineSpacing
507 INT16 Mode MID_LINESPACE;
508 INT16 Height MID_HEIGHT;
510 item SvxLineSpacing SvxLineSpacingItem;
512 //-------------------------------------------------------------------------
516 BOOL Landscape MID_PAGE_ORIENTATION;
517 INT16 Layout MID_PAGE_LAYOUT;
518 INT16 NumType MID_PAGE_NUMTYPE;
520 item SvxPage SvxPageItem;
522 //-------------------------------------------------------------------------
524 struct SvxPagePosSize
526 INT32 XPos MID_X; // ???
527 INT32 YPos MID_Y; // ???
528 INT32 Width MID_WIDTH; // ???
529 INT32 Height MID_HEIGHT; // ???
531 item SvxPagePosSize SvxPagePosSizeItem;
534 //-------------------------------------------------------------------------
537 SvxShadowLocation Location MID_LOCATION;
538 INT16 Width MID_WIDTH;
539 BOOL IsTransparent MID_TRANSPARENT;
540 INT32 Color MID_BG_COLOR;
542 item SvxShadow SvxShadowItem;
545 //-------------------------------------------------------------------------
549 INT32 TopMargin MID_UP_MARGIN; // % or direct
550 INT32 BottomMargin MID_LO_MARGIN; // % or direct
551 INT16 TopRelMargin MID_UP_REL_MARGIN;
552 INT16 BottomRelMargin MID_LO_REL_MARGIN;
554 item SvxULSpace SvxULSpaceItem
556 //-------------------------------------------------------------------------
558 struct SvxLongLRSpace
560 INT32 Left MID_LEFT; // ???
561 INT32 Right MID_RIGHT; // ???
563 item SvxLongLRSpace SvxLongLRSpaceItem;
565 //-------------------------------------------------------------------------
567 struct SvxLongULSpace
569 INT32 Upper MID_UPPER; // ???
570 INT32 Lower MID_LOWER; // ???
572 item SvxLongULSpace SvxLongULSpaceItem;
574 //-------------------------------------------------------------------------
578 String Text MID_HLINK_TEXT;
579 String URL MID_HLINK_URL;
580 String Target MID_HLINK_TARGET;
581 String Name MID_HLINK_NAME;
582 INT32 Type MID_HLINK_TYPE;
584 item SvxHyperlink SvxHyperlinkItem;
586 //-------------------------------------------------------------------------
591 String Name MID_NAME;
593 item PageModel SvxPageModelItem;
597 BOOL Content MID_PROTECT_CONTENT;
598 BOOL Size MID_PROTECT_SIZE;
599 BOOL Position MID_PROTECT_POSITION;
601 item SvxProtect SvxProtectItem;
605 UINT16 Value MID_VALUE;
606 INT16 ValueSet MID_VALUESET;
609 item SvxZoom SvxZoomItem;
611 struct SvxRulerObject
613 INT32 StartX MID_START_X;
614 INT32 StartY MID_START_Y;
615 INT32 EndX MID_END_X;
616 INT32 EndY MID_END_Y;
617 BOOL Limited MID_LIMIT;
619 item SvxRulerObject SvxObjectItem;
621 item String LineBorder; // dummy for sequence
624 LineBorder LeftBorder MID_LEFT_BORDER;
625 INT32 LeftDistance LEFT_BORDER_DISTANCE;
626 LineBorder RightBorder MID_RIGHT_BORDER;
627 INT32 RightDistance RIGHT_BORDER_DISTANCE;
628 LineBorder TopBorder MID_TOP_BORDER;
629 INT32 TopDistance TOP_BORDER_DISTANCE;
630 LineBorder BottomBorder MID_BOTTOM_BORDER;
631 INT32 BottomDistance BOTTOM_BORDER_DISTANCE;
633 item SvxBox SvxBoxItem;
637 LineBorder Horizontal MID_HORIZONTAL;
638 LineBorder Vertical MID_VERTICAL;
639 INT16 Flags MID_FLAGS;
640 INT16 ValidFlags MID_VALIDFLAGS;
641 INT32 DefaultDistance MID_DISTANCE;
643 item SvxBoxInfo SvxBoxInfoItem;
645 item String SvxColumns; // dummy for sequence
646 struct SvxColumnDescription
648 SvxColumns Columns MID_COLUMNARRAY; // currently not implemented
650 INT32 Right MID_RIGHT;
651 INT32 Actual MID_ACTUAL;
652 BOOL Orthogonal MID_ORTHO;
653 BOOL Table MID_TABLE;
655 item SvxColumnDescription SvxColumnItem;
659 String TabStops MID_TABSTOPS; // dummy, will be represented by array of structs
660 //INT32 StandardTabStop MID_STD_TAB;
662 item SvxTabStop SvxTabStopItem;
666 INT16 Rotation MID_ROTATE;
667 BOOL FitToLine MID_FITTOLINE;
669 item SvxCharRotate SvxCharRotateItem;
671 item String SfxSetItem; // dummy
672 item INT16 SvxRotateModeItem; // enum
673 item INT16 SvxOrientationItem; // enum
677 INT32 LeftMargin MID_MARGIN_L_MARGIN;
678 INT32 RightMargin MID_MARGIN_R_MARGIN;
679 INT32 UpperMargin MID_MARGIN_UP_MARGIN;
680 INT32 LowerMargin MID_MARGIN_LO_MARGIN;
682 item SvxMargin SvxMarginItem;
684 struct SvxEmphasisMark
686 INT32 Emphasis MID_EMPHASIS;
688 item SvxEmphasisMark SvxEmphasisMarkItem;
690 item String SvxSmartTagItem; // dummy for sequence
693 item String Points; // dummy for sequence
696 INT16 CurrentZoom MID_ZOOMSLIDER_CURRENTZOOM;
697 Points SnappingPoints MID_ZOOMSLIDER_SNAPPINGPOINTS;
698 INT16 SvxMinZoom MID_ZOOMSLIDER_MINZOOM;
699 INT16 SvxMaxZoom MID_ZOOMSLIDER_MAXZOOM;
701 item ZoomSlider SvxZoomSliderItem;