1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVX_XDEF_HXX
21 #define INCLUDED_SVX_XDEF_HXX
24 #include <svl/typedwhich.hxx>
26 /*************************************************************************
28 |* Adding an attribute: Copy line, above which you want to add something,
29 |* change the label and add it at the end of the following line, too
31 \************************************************************************/
34 class XFillAttrSetItem
;
35 class XFillBackgroundItem
;
36 class XFillBitmapItem
;
37 class XFillBmpPosItem
;
38 class XFillBmpPosOffsetXItem
;
39 class XFillBmpPosOffsetYItem
;
40 class XFillBmpSizeLogItem
;
41 class XFillBmpSizeYItem
;
42 class XFillBmpStretchItem
;
43 class XFillBmpTileItem
;
44 class XFillBmpTileOffsetXItem
;
45 class XFillBmpTileOffsetYItem
;
47 class XFillFloatTransparenceItem
;
48 class XFillGradientItem
;
51 class XFillTransparenceItem
;
52 class XFillUseSlideBackgroundItem
;
53 class XFormTextAdjustItem
;
54 class XFormTextDistanceItem
;
55 class XFormTextHideFormItem
;
56 class XFormTextMirrorItem
;
57 class XFormTextOutlineItem
;
58 class XFormTextShadowColorItem
;
59 class XFormTextShadowItem
;
60 class XFormTextShadowTranspItem
;
61 class XFormTextShadowXValItem
;
62 class XFormTextShadowYValItem
;
63 class XFormTextStartItem
;
64 class XFormTextStyleItem
;
65 class XGradientStepCountItem
;
66 class XLineAttrSetItem
;
70 class XLineEndCenterItem
;
72 class XLineEndWidthItem
;
74 class XLineStartCenterItem
;
76 class XLineStartWidthItem
;
78 class XLineTransparenceItem
;
80 class XSecondaryFillColorItem
;
82 #define COL_DEFAULT_FONT ::Color(0xC9211E) // dark red 2
83 #define COL_DEFAULT_FRAMELINE ::Color(0x2A6099) // blue
84 #define COL_DEFAULT_HIGHLIGHT ::Color(0xFFFF00) // yellow
85 #define COL_DEFAULT_SHAPE_FILLING ::Color(0x729fcf) // light blue 2
86 #define COL_DEFAULT_SHAPE_STROKE ::Color(0x3465a4) // dark blue 1
88 constexpr sal_uInt16 XATTR_START
= 1000;
90 constexpr sal_uInt16
XATTR_LINE_FIRST (XATTR_START
); // 1000
91 constexpr TypedWhichId
<XLineStyleItem
> XATTR_LINESTYLE (XATTR_LINE_FIRST
); // 1000
92 constexpr TypedWhichId
<XLineDashItem
> XATTR_LINEDASH (XATTR_LINE_FIRST
+ 1); // 1001
93 constexpr TypedWhichId
<XLineWidthItem
> XATTR_LINEWIDTH (XATTR_LINE_FIRST
+ 2); // 1002
94 constexpr TypedWhichId
<XLineColorItem
> XATTR_LINECOLOR (XATTR_LINE_FIRST
+ 3); // 1003
95 constexpr TypedWhichId
<XLineStartItem
> XATTR_LINESTART (XATTR_LINE_FIRST
+ 4); // 1004
96 constexpr TypedWhichId
<XLineEndItem
> XATTR_LINEEND (XATTR_LINE_FIRST
+ 5); // 1005
97 constexpr TypedWhichId
<XLineStartWidthItem
> XATTR_LINESTARTWIDTH (XATTR_LINE_FIRST
+ 6); // 1006
98 constexpr TypedWhichId
<XLineEndWidthItem
> XATTR_LINEENDWIDTH (XATTR_LINE_FIRST
+ 7); // 1007
99 constexpr TypedWhichId
<XLineStartCenterItem
> XATTR_LINESTARTCENTER (XATTR_LINE_FIRST
+ 8); // 1008
100 constexpr TypedWhichId
<XLineEndCenterItem
> XATTR_LINEENDCENTER (XATTR_LINE_FIRST
+ 9); // 1009
101 constexpr TypedWhichId
<XLineTransparenceItem
> XATTR_LINETRANSPARENCE (XATTR_LINE_FIRST
+ 10); // 1010
102 constexpr TypedWhichId
<XLineJointItem
> XATTR_LINEJOINT (XATTR_LINE_FIRST
+ 11); // 1011
103 constexpr TypedWhichId
<XLineCapItem
> XATTR_LINECAP (XATTR_LINE_FIRST
+ 12); // 1012
104 constexpr sal_uInt16
XATTR_LINE_LAST (XATTR_LINECAP
); // 1012
105 constexpr TypedWhichId
<XLineAttrSetItem
> XATTRSET_LINE (XATTR_LINE_LAST
+ 1); // 1013
107 constexpr sal_uInt16
XATTR_FILL_FIRST (XATTRSET_LINE
+ 1); // 1014
108 constexpr TypedWhichId
<XFillStyleItem
> XATTR_FILLSTYLE (XATTR_FILL_FIRST
); // 1014
109 constexpr TypedWhichId
<XFillColorItem
> XATTR_FILLCOLOR (XATTR_FILL_FIRST
+ 1); // 1015
110 constexpr TypedWhichId
<XFillGradientItem
> XATTR_FILLGRADIENT (XATTR_FILL_FIRST
+ 2); // 1016
111 constexpr TypedWhichId
<XFillHatchItem
> XATTR_FILLHATCH (XATTR_FILL_FIRST
+ 3); // 1017
112 constexpr TypedWhichId
<XFillBitmapItem
> XATTR_FILLBITMAP (XATTR_FILL_FIRST
+ 4); // 1018
113 constexpr TypedWhichId
<XFillTransparenceItem
> XATTR_FILLTRANSPARENCE (XATTR_FILL_FIRST
+ 5); // 1019
114 constexpr TypedWhichId
<XGradientStepCountItem
> XATTR_GRADIENTSTEPCOUNT (XATTR_FILL_FIRST
+ 6); // 1020
115 constexpr TypedWhichId
<XFillBmpTileItem
> XATTR_FILLBMP_TILE (XATTR_FILL_FIRST
+ 7); // 1021
116 constexpr TypedWhichId
<XFillBmpPosItem
> XATTR_FILLBMP_POS (XATTR_FILL_FIRST
+ 8); // 1022
117 constexpr TypedWhichId
<SfxMetricItem
> XATTR_FILLBMP_SIZEX (XATTR_FILL_FIRST
+ 9); // 1023
118 constexpr TypedWhichId
<XFillBmpSizeYItem
> XATTR_FILLBMP_SIZEY (XATTR_FILL_FIRST
+ 10); // 1024
119 constexpr TypedWhichId
<XFillFloatTransparenceItem
> XATTR_FILLFLOATTRANSPARENCE (XATTR_FILL_FIRST
+ 11); // 1025
120 constexpr TypedWhichId
<XSecondaryFillColorItem
> XATTR_SECONDARYFILLCOLOR (XATTR_FILL_FIRST
+ 12); // 1026
121 constexpr TypedWhichId
<XFillBmpSizeLogItem
> XATTR_FILLBMP_SIZELOG (XATTR_FILL_FIRST
+ 13); // 1027
122 constexpr TypedWhichId
<XFillBmpTileOffsetXItem
> XATTR_FILLBMP_TILEOFFSETX (XATTR_FILL_FIRST
+ 14); // 1028
123 constexpr TypedWhichId
<XFillBmpTileOffsetYItem
> XATTR_FILLBMP_TILEOFFSETY (XATTR_FILL_FIRST
+ 15); // 1029
124 constexpr TypedWhichId
<XFillBmpStretchItem
> XATTR_FILLBMP_STRETCH (XATTR_FILL_FIRST
+ 16); // 1030
125 constexpr TypedWhichId
<XFillBmpPosOffsetXItem
> XATTR_FILLBMP_POSOFFSETX (XATTR_FILL_FIRST
+ 17); // 1031
126 constexpr TypedWhichId
<XFillBmpPosOffsetYItem
> XATTR_FILLBMP_POSOFFSETY (XATTR_FILL_FIRST
+ 18); // 1032
127 constexpr TypedWhichId
<XFillBackgroundItem
> XATTR_FILLBACKGROUND (XATTR_FILL_FIRST
+ 19); // 1033
128 constexpr TypedWhichId
<XFillUseSlideBackgroundItem
> XATTR_FILLUSESLIDEBACKGROUND (XATTR_FILL_FIRST
+ 20);// 1034
129 constexpr sal_uInt16
XATTR_FILL_LAST (XATTR_FILLUSESLIDEBACKGROUND
); // 1034
130 constexpr TypedWhichId
<XFillAttrSetItem
> XATTRSET_FILL (XATTR_FILL_LAST
+ 1); // 1035
132 constexpr sal_uInt16
XATTR_TEXT_FIRST (XATTRSET_FILL
+ 1); // 1036
133 constexpr TypedWhichId
<XFormTextStyleItem
> XATTR_FORMTXTSTYLE (XATTR_TEXT_FIRST
); // 1036
134 constexpr TypedWhichId
<XFormTextAdjustItem
> XATTR_FORMTXTADJUST (XATTR_TEXT_FIRST
+ 1); // 1037
135 constexpr TypedWhichId
<XFormTextDistanceItem
> XATTR_FORMTXTDISTANCE (XATTR_TEXT_FIRST
+ 2); // 1038
136 constexpr TypedWhichId
<XFormTextStartItem
> XATTR_FORMTXTSTART (XATTR_TEXT_FIRST
+ 3); // 1039
137 constexpr TypedWhichId
<XFormTextMirrorItem
> XATTR_FORMTXTMIRROR (XATTR_TEXT_FIRST
+ 4); // 1040
138 constexpr TypedWhichId
<XFormTextOutlineItem
> XATTR_FORMTXTOUTLINE (XATTR_TEXT_FIRST
+ 5); // 1041
139 constexpr TypedWhichId
<XFormTextShadowItem
> XATTR_FORMTXTSHADOW (XATTR_TEXT_FIRST
+ 6); // 1042
140 constexpr TypedWhichId
<XFormTextShadowColorItem
> XATTR_FORMTXTSHDWCOLOR (XATTR_TEXT_FIRST
+ 7); // 1043
141 constexpr TypedWhichId
<XFormTextShadowXValItem
> XATTR_FORMTXTSHDWXVAL (XATTR_TEXT_FIRST
+ 8); // 1044
142 constexpr TypedWhichId
<XFormTextShadowYValItem
> XATTR_FORMTXTSHDWYVAL (XATTR_TEXT_FIRST
+ 9); // 1045
143 constexpr TypedWhichId
<XFormTextHideFormItem
> XATTR_FORMTXTHIDEFORM (XATTR_TEXT_FIRST
+ 10); // 1046
144 constexpr TypedWhichId
<XFormTextShadowTranspItem
> XATTR_FORMTXTSHDWTRANSP (XATTR_TEXT_FIRST
+ 11); // 1047
145 constexpr sal_uInt16
XATTR_TEXT_LAST (XATTR_FORMTXTSHDWTRANSP
);// 1047
147 constexpr sal_uInt16 XATTR_END
= XATTR_TEXT_LAST
; // 1047
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */