1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27//------------------------------------------------------------------------- 28 29enum SvxAdjust 30{ 31 SVX_ADJUST_LEFT, 32 SVX_ADJUST_RIGHT, 33 SVX_ADJUST_BLOCK, 34 SVX_ADJUST_CENTER, 35 SVX_ADJUST_BLOCKLINE, 36 SVX_ADJUST_END 37}; 38item SvxAdjust SvxAdjustItem; 39 40//------------------------------------------------------------------------- 41 42enum SvxCaseMap 43{ 44 SVX_CASEMAP_NOT_MAPPED, 45 SVX_CASEMAP_VERSALIEN, 46 SVX_CASEMAP_GEMEINE, 47 SVX_CASEMAP_TITEL, 48 SVX_CASEMAP_KAPITAELCHEN, 49 SVX_CASEMAP_END 50}; 51item SvxCaseMap SvxCaseMapItem; 52 53//------------------------------------------------------------------------- 54 55enum CharSet 56{ 57 CHARSET_DONTKNOW, 58 CHARSET_ANSI, 59 CHARSET_MAC, 60 CHARSET_IBMPC_437, 61 CHARSET_IBMPC_850, 62 CHARSET_IBMPC_860, 63 CHARSET_IBMPC_861, 64 CHARSET_IBMPC_863, 65 CHARSET_IBMPC_865, 66 CHARSET_SYSTEM, 67 CHARSET_SYMBOL 68}; 69item CharSet CharSetItem; 70 71//------------------------------------------------------------------------- 72 73enum FontFamily 74{ 75 FAMILY_DONTKNOW, 76 FAMILY_DECORATIVE, 77 FAMILY_MODERN, 78 FAMILY_ROMAN, 79 FAMILY_SCRIPT, 80 FAMILY_SWISS, 81 FAMILY_SYSTEM 82}; 83item FontFamily FontFamilyItem; 84 85//------------------------------------------------------------------------- 86 87enum FontPitch 88{ 89 PITCH_DONTKNOW, 90 PITCH_FIXED, 91 PITCH_VARIABLE 92}; 93item FontPitch FontPitchItem; 94 95//------------------------------------------------------------------------- 96 97enum FontAlign 98{ 99 ALIGN_TOP, 100 ALIGN_BASELINE, 101 ALIGN_BOTTOM 102}; 103item FontAlign FontAlignItem; 104 105//------------------------------------------------------------------------- 106 107enum FontWeight 108{ 109 WEIGHT_DONTKNOW, 110 WEIGHT_THIN, 111 WEIGHT_ULTRALIGHT, 112 WEIGHT_LIGHT, 113 WEIGHT_SEMILIGHT, 114 WEIGHT_NORMAL, 115 WEIGHT_MEDIUM, 116 WEIGHT_SEMIBOLD, 117 WEIGHT_BOLD, 118 WEIGHT_ULTRABOLD, 119 WEIGHT_BLACK 120}; 121item FontWeight FontWeightItem; 122 123//------------------------------------------------------------------------- 124 125enum FontUnderline 126{ 127 UNDERLINE_NONE, 128 UNDERLINE_SINGLE, 129 UNDERLINE_DOUBLE, 130 UNDERLINE_DOTTED 131}; 132item FontUnderline FontUnderlineItem; 133 134//------------------------------------------------------------------------- 135 136enum FontStrikeout 137{ 138 STRIKEOUT_NONE, 139 STRIKEOUT_SINGLE, 140 STRIKEOUT_DOUBLE 141}; 142item FontStrikeout FontStrikeoutItem; 143 144//------------------------------------------------------------------------- 145 146enum FontItalic 147{ 148 ITALIC_NONE, 149 ITALIC_OBLIQUE, 150 ITALIC_NORMAL 151}; 152item FontItalic FontItalicItem; 153 154//------------------------------------------------------------------------- 155 156enum SvxDbType 157{ 158 DBTYPE_STARBASE, 159 DBTYPE_ODBC, 160 DBTYPE_WATCOM 161}; 162item SvxDbType SvxDbTypeItem; 163 164//------------------------------------------------------------------------- 165 166enum SvxLineSpace 167{ 168 SVX_LINE_SPACE_AUTO, 169 SVX_LINE_SPACE_MAX, 170 SVX_LINE_SPACE_MIN, 171 SVX_LINE_SPACE_END 172}; 173item SvxLineSpace SvxLineSpaceItem; 174 175//------------------------------------------------------------------------- 176 177enum SvxInterLineSpace 178{ 179 SVX_INTER_LINE_SPACE_OFF, 180 SVX_INTER_LINE_SPACE_PROP, 181 SVX_INTER_LINE_SPACE_FIX, 182 SVX_INTER_LINE_SPACE_END 183}; 184item SvxInterLineSpace SvxInterLineSpaceItem; 185 186//------------------------------------------------------------------------- 187 188enum SvxBreak 189{ 190 SVX_BREAK_NONE, 191 SVX_BREAK_COLUMN_BEFORE, 192 SVX_BREAK_COLUMN_AFTER, 193 SVX_BREAK_COLUMN_BOTH, 194 SVX_BREAK_PAGE_BEFORE, 195 SVX_BREAK_PAGE_AFTER, 196 SVX_BREAK_PAGE_BOTH, 197 SVX_BREAK_END 198}; 199item SvxBreak SvxBreakItem; 200 201//------------------------------------------------------------------------- 202 203enum BrushStyle 204{ 205 BRUSH_NULL, 206 BRUSH_SOLID, 207 BRUSH_HORZ, 208 BRUSH_VERT, 209 BRUSH_CROSS, 210 BRUSH_DIAGCROSS, 211 BRUSH_UPDIAG, 212 BRUSH_DOWNDIAG, 213 BRUSH_25, 214 BRUSH_50, 215 BRUSH_75, 216 BRUSH_BITMAP 217}; 218item BrushStyle BrushStyleItem; 219 220//------------------------------------------------------------------------- 221 222enum SvxNumType 223{ 224 SVX_CHARS_UPPER_LETTER, 225 SVX_CHARS_LOWER_LETTER, 226 SVX_ROMAN_UPPER, 227 SVX_ROMAN_LOWER, 228 SVX_ARABIC, 229 SVX_NUMBER_NONE, 230 SVX_CHAR_SPECIAL, 231 SVX_PAGEDESC 232}; 233item SvxNumType SvxNumTypeItem; 234 235//------------------------------------------------------------------------- 236 237enum SvxShadowLocation 238{ 239 SVX_SHADOW_NONE, 240 SVX_SHADOW_TOPLEFT, 241 SVX_SHADOW_TOPRIGHT, 242 SVX_SHADOW_BOTTOMLEFT, 243 SVX_SHADOW_BOTTOMRIGHT, 244 SVX_SHADOW_END 245}; 246item SvxShadowLocation SvxShadowLocationItem; 247 248//------------------------------------------------------------------------- 249 250struct SvxBrush 251{ 252 BrushStyle Style MID_BRUSHSTYLE; 253 BOOL Transparent MID_TRANSPARENT; 254 UINT32 BackColor MID_BG_COLOR; 255 UINT32 FillColor MID_FG_COLOR; 256}; 257item SvxBrush SvxBrushItem; 258 259//------------------------------------------------------------------------- 260 261struct SvxCharSetColor 262{ 263 CharSet CharSet MID_CHARSET; 264 UINT32 Color MID_FG_COLOR; 265}; 266item SvxCharSetColor SvxCharSetColorItem; 267 268//------------------------------------------------------------------------- 269 270item BOOL SvxAutoKernItem; 271item UINT32 SvxColorItem; 272item BOOL SvxContourItem; 273item FontStrikeout SvxCrossedOutItem; 274 275//------------------------------------------------------------------------- 276 277struct SvxEscapement 278{ 279 INT16 Esc MID_ESCAPEMENT; 280 BYTE Prop MID_PROPORTIONAL; 281}; 282item SvxEscapement SvxEscapementItem; 283 284//------------------------------------------------------------------------- 285 286struct SvxFmtBreak 287{ 288 BOOL Auto MID_AUTOBREAK; 289 UINT16 Break MID_BREAKxxx; 290} 291item SvxFmtBreak SvxFmtBreakItem; 292 293//------------------------------------------------------------------------- 294 295item BOOL SvxFmtKeepItem; 296item BOOL SvxFmtSplitItem; 297 298struct SvxFontHeight 299{ 300 UINT32 Height MID_HEIGHT; 301 BYTE Prop MID_PROPORTIONAL; 302}; 303item SvxFontHeight SvxFontHeightItem; 304 305//------------------------------------------------------------------------- 306 307struct SvxFont 308{ 309 String StyleName MID_FONTSTYLE; 310 FontPitch Pitch MID_FONTPICTH; 311 CharSet CharSet MID_CHARSET; 312 FontFamily Family MID_FONTFAMILY; 313 String FamilyName MID_FONTFAMILYNAME; 314}; 315item SvxFont SvxFontItem; 316 317//------------------------------------------------------------------------- 318 319struct SvxHyphenZone 320{ 321 BOOL Hyphen MID_HYPHEN; 322 BOOL PageEnd MID_PAGEEND; 323 BYTE MinLead MID_MINLEAD; 324 BYTE MinTrail MID_MINTRAIL; 325 BYTE MaxHyphens MID_MAXHYPHENS; 326}; 327item SvxHyphenZone SvxHyphenZoneItem; 328 329//------------------------------------------------------------------------- 330 331item INT16 SvxKerningItem; 332 333//------------------------------------------------------------------------- 334 335struct SvxLine 336{ 337 UINT32 Color MID_FG_COLOR; 338 UINT16 OutWidth MID_OUTER_WIDTH; 339 UINT16 InWidth MID_INNER_WIDTH; 340 UINT16 Distance MID_DISTANCE; 341}; 342item SvxLine SvxLineItem; 343 344//------------------------------------------------------------------------- 345 346struct SvxLRSpace 347{ 348 INT16 FirstLineOffset MID_FIRSTLINE_OFFSET; // % or direct 349 UINT16 LeftMargin MID_LEFT_MARGIN; // % or direct 350 UINT16 RightMargin MID_RIGHT_MARGIN; // % or direct 351}; 352item SvxLRSpace SvxLRSpaceItem; 353 354//------------------------------------------------------------------------- 355 356item UINT16 SvxLanguage; 357 358struct SvxLineSpacing 359{ 360 SvxLineSpace LineSpace MID_LINESPACE; 361 UINT16 LineHeight MID_HEIGHT; // % or direct 362 SvxInterLineSpace InterLineSpace MID_INTER_LINESPACE; 363 INT16 InterSpace MID_INTER_SPACE; 364}; 365item SvxLineSpacing SvxLineSpacingItem; 366 367//------------------------------------------------------------------------- 368 369item BOOL SvxNoHyphenItem; 370item BOOL SvxNoLinebreakItem; 371item BOOL SvxOpaqueItem; 372item BYTE SvxOrphansItem; 373 374//------------------------------------------------------------------------- 375 376struct SvxPage 377{ 378 String DescName MID_DESCNAMExxx; 379 BOOL Landscape MID_LANDSCAPE; 380 UINT16 Use MID_USExxx; 381 SvxNumType NumType MID_NUMTYPExxx; 382}; 383item SvxPage SvxPageItem; 384 385//------------------------------------------------------------------------- 386 387item String SvxPageModelItem; 388 389//------------------------------------------------------------------------- 390 391struct SvxPagePosSize 392{ 393 INT32 XPos MID_X; 394 INT32 YPos MID_Y; 395 INT32 Width MID_WIDTH; 396 INT32 Height MID_HEIGHT; 397}; 398item SvxPagePosSize SvxPagePosSizeItem; 399 400//------------------------------------------------------------------------- 401 402item BYTE SvxPaperBinItem; 403 404//------------------------------------------------------------------------- 405 406item String SvxPostItAuthorItem; 407item String SvxPostItDateItem; 408item String SvxPostItTextItem; 409item FontItalic SvxPostureItem; 410item BOOL SvxPrintItem; 411item UINT16 SvxPropSizeItem; 412 413//------------------------------------------------------------------------- 414 415struct SvxProtect 416{ 417 BOOL Content MID_CONTENT; 418 BOOL Pos MID_POS; 419 BOOL Size MID_SIZE; 420}; 421item SvxProtect SvxProtectItem; 422 423//------------------------------------------------------------------------- 424 425struct SvxSearch 426{ 427 UINT16 Command MID_COMMAND; 428 String SearchString MID_SEARCH_STRING; 429 String ReplaceString MID_REPLACE_STRING; 430 // W)ord, E)xact, B)ack, S)election, R)egExpr, P)attern 431 String Flags MID_FLAGS; 432 UINT16 Family MID_FAMILY; 433 UINT16 CellType MID_CELLTYPE; 434 BOOL RowDirection MID_ROW_DIRECTION; 435 UINT16 AppFlag MID_APPFLAG; 436}; 437item SvxSearch SvxSearchItem; 438 439//------------------------------------------------------------------------- 440 441item BOOL SvxShadowedItem; 442 443//------------------------------------------------------------------------- 444 445struct SvxShadow 446{ 447 SvxShadowLocation Location MID_LOCATION; 448 UINT16 Width MID_WIDTH; 449 BrushStyle Style MID_BRUSHSTYLE; 450 BOOL Transparent MID_TRANSPARENT; 451 UINT32 BackColor MID_BG_COLOR; 452 UINT32 FillColor MID_FG_COLOR; 453}; 454item SvxShadow SvxShadowItem; 455 456//------------------------------------------------------------------------- 457 458struct SvxSize 459{ 460 UINT32 Width MID_WIDTH; 461 UINT32 Height MID_HEIGHT; 462}; 463item SvxSize SvxSizeItem; 464 465//------------------------------------------------------------------------- 466 467struct SvxULSpace 468{ 469 UINT16 Upper MID_UPPER; // % or direct 470 UINT16 Lower MID_LOWER; // % or direct 471}; 472item SvxULSpace SvxULSpaceItem 473 474//------------------------------------------------------------------------- 475 476enum SvxChooseControlEnum 477{ 478 SVX_SNAP_PUSHBUTTON, 479 SVX_SNAP_CHECKBOX, 480 SVX_SNAP_RADIOBUTTON, 481 SVX_SNAP_SPINBUTTON, 482 SVX_SNAP_FIXEDTEXT, 483 SVX_SNAP_GROUPBOX, 484 SVX_SNAP_LISTBOX, 485 SVX_SNAP_COMBOBOX, 486 SVX_SNAP_EDIT, 487 SVX_SNAP_HSCROLLBAR, 488 SVX_SNAP_VSCROLLBAR, 489 SVX_SNAP_PREVIEW, 490 SVX_SNAP_SELECT, 491 SVX_SNAP_NOTHING 492} 493item SvxChooseControlEnum SvxChooseControlEnumItem; 494 495//------------------------------------------------------------------------- 496 497enum SvxDrawToolEnum 498{ 499 SVX_SNAP_DRAW_SELECT, 500 // 501 SVX_SNAP_DRAW_LINE, 502 SVX_SNAP_DRAW_RECT, 503 SVX_SNAP_DRAW_ELLIPSE, 504 SVX_SNAP_DRAW_POLYGON, 505 SVX_SNAP_DRAW_ARC, 506 SVX_SNAP_DRAW_PIE, 507 SVX_SNAP_DRAW_CIRCLECUT, 508 SVX_SNAP_DRAW_TEXT, 509 SVX_SNAP_DRAW_CAPTION, 510 SVX_SNAP_DRAW_NOTHING 511} 512item SvxDrawToolEnum SvxDrawToolEnumItem; 513 514//------------------------------------------------------------------------- 515 516item SvxChooseControlEnum SvxChooseControlItem; 517item SvxDrawToolEnum SvxDrawToolItem; 518item FontUnderline SvxUnderlineItem; 519item FontWeight SvxWeightItem; 520item BYTE SvxWidowsItem; 521item BOOL SvxWordLineModeItem; 522item String SvxBoxItem; //! Dummy 523 524//------------------------------------------------------------------------- 525 526enum SvxCellHorJustifyEnum 527{ 528 SVX_HOR_JUSTIFY_STANDARD, 529 SVX_HOR_JUSTIFY_LEFT, 530 SVX_HOR_JUSTIFY_CENTER, 531 SVX_HOR_JUSTIFY_RIGHT, 532 SVX_HOR_JUSTIFY_BLOCK, 533 SVX_HOR_JUSTIFY_REPEAT 534}; 535item SvxCellHorJustifyEnum SvxCellHorJustifyEnumItem; 536 537enum SvxCellVerJustifyEnum 538{ 539 SVX_VER_JUSTIFY_STANDARD, 540 SVX_VER_JUSTIFY_TOP, 541 SVX_VER_JUSTIFY_CENTER, 542 SVX_VER_JUSTIFY_BOTTOM 543}; 544item SvxCellVerJustifyEnum SvxCellVerJustifyEnumItem; 545 546//------------------------------------------------------------------------- 547 548enum SvxCellOrientationEnum 549{ 550 SVX_ORIENTATION_STANDARD, 551 SVX_ORIENTATION_TOPBOTTOM, 552 SVX_ORIENTATION_BOTTOMTOP, 553 SVX_ORIENTATION_STACKED 554}; 555item SvxCellOrientationEnum SvxCellOrientationEnumItem; 556 557//------------------------------------------------------------------------- 558 559item SvxCellHorJustifyEnum SvxHorJustifyItem; 560item SvxCellVerJustifyEnum SvxVerJustifyItem; 561item SvxCellOrientationEnum SvxOrientationItem; 562 563//------------------------------------------------------------------------- 564 565struct SvxLongLRSpace 566{ 567 INT32 Left MID_LEFT; 568 INT32 Right MID_RIGHT; 569}; 570item SvxLongLRSpace SvxLongLRSpaceItem; 571 572//------------------------------------------------------------------------- 573 574struct SvxLongULSpace 575{ 576 INT32 Upper MID_UPPER; 577 INT32 Lower MID_LOWER; 578}; 579item SvxLongULSpace SvxLongULSpaceItem; 580 581//------------------------------------------------------------------------- 582 583struct SvxZoom 584{ 585 INT32 Type MID_TYPE; 586 UINT16 ValueSet MID_VALUESET; 587 INT32 Percent MID_PERCENT; 588}; 589item SvxZoom SvxZoomItem; 590 591//------------------------------------------------------------------------- 592 593item SbxObject SvxTabStopItem; 594 595 596