xref: /trunk/main/xmloff/inc/xmloff/txtprmap.hxx (revision ecfe53c5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _XMLOFF_TEXTPRMAP_HXX_
24 #define _XMLOFF_TEXTPRMAP_HXX_
25 
26 #include <xmloff/contextid.hxx>
27 #include <xmloff/xmlprmap.hxx>
28 
29 #define CTF_CHARHEIGHT				 (XML_TEXT_CTF_START + 1)
30 #define CTF_CHARHEIGHT_REL			 (XML_TEXT_CTF_START + 2)
31 #define CTF_PARALEFTMARGIN			 (XML_TEXT_CTF_START + 3)
32 #define CTF_PARALEFTMARGIN_REL		 (XML_TEXT_CTF_START + 4)
33 #define CTF_PARARIGHTMARGIN			 (XML_TEXT_CTF_START + 5)
34 #define CTF_PARARIGHTMARGIN_REL		 (XML_TEXT_CTF_START + 6)
35 #define CTF_PARAFIRSTLINE			 (XML_TEXT_CTF_START + 7)
36 #define CTF_PARAFIRSTLINE_REL		 (XML_TEXT_CTF_START + 8)
37 #define CTF_PARATOPMARGIN			 (XML_TEXT_CTF_START + 9)
38 #define CTF_PARATOPMARGIN_REL		(XML_TEXT_CTF_START + 10)
39 #define CTF_PARABOTTOMMARGIN		(XML_TEXT_CTF_START + 11)
40 #define CTF_PARABOTTOMMARGIN_REL	(XML_TEXT_CTF_START + 12)
41 #define CTF_ALLBORDERWIDTH			(XML_TEXT_CTF_START + 13)
42 #define CTF_LEFTBORDERWIDTH			(XML_TEXT_CTF_START + 14)
43 #define CTF_RIGHTBORDERWIDTH		(XML_TEXT_CTF_START + 15)
44 #define CTF_TOPBORDERWIDTH			(XML_TEXT_CTF_START + 16)
45 #define CTF_BOTTOMBORDERWIDTH		(XML_TEXT_CTF_START + 17)
46 #define CTF_ALLBORDERDISTANCE		(XML_TEXT_CTF_START + 18)
47 #define CTF_LEFTBORDERDISTANCE		(XML_TEXT_CTF_START + 19)
48 #define CTF_RIGHTBORDERDISTANCE		(XML_TEXT_CTF_START + 20)
49 #define CTF_TOPBORDERDISTANCE		(XML_TEXT_CTF_START + 21)
50 #define CTF_BOTTOMBORDERDISTANCE	(XML_TEXT_CTF_START + 22)
51 #define CTF_ALLBORDER				(XML_TEXT_CTF_START + 23)
52 #define CTF_LEFTBORDER				(XML_TEXT_CTF_START + 24)
53 #define CTF_RIGHTBORDER				(XML_TEXT_CTF_START + 25)
54 #define CTF_TOPBORDER				(XML_TEXT_CTF_START + 26)
55 #define CTF_BOTTOMBORDER			(XML_TEXT_CTF_START + 27)
56 #define CTF_DROPCAPWHOLEWORD		(XML_TEXT_CTF_START + 28)
57 #define CTF_DROPCAPFORMAT			(XML_TEXT_CTF_START + 29)
58 #define CTF_DROPCAPCHARSTYLE		(XML_TEXT_CTF_START + 30)
59 #define CTF_TABSTOP					(XML_TEXT_CTF_START + 31)
60 #define CTF_NUMBERINGSTYLENAME		(XML_TEXT_CTF_START + 32)
61 #define CTF_OLDTEXTBACKGROUND		(XML_TEXT_CTF_START + 33)
62 #define CTF_FONTFAMILYNAME			(XML_TEXT_CTF_START + 34)
63 #define CTF_FONTSTYLENAME			(XML_TEXT_CTF_START + 35)
64 #define CTF_FONTFAMILY				(XML_TEXT_CTF_START + 36)
65 #define CTF_FONTPITCH				(XML_TEXT_CTF_START + 37)
66 #define CTF_FONTCHARSET				(XML_TEXT_CTF_START + 38)
67 #define CTF_TEXTWRITINGMODE         (XML_TEXT_CTF_START + 39)
68 #define CTF_SYNCHEIGHT_MIN			(XML_TEXT_CTF_START + 40)
69 #define CTF_FRAMEHEIGHT_ABS			(XML_TEXT_CTF_START + 41)
70 #define CTF_FRAMEHEIGHT_REL			(XML_TEXT_CTF_START + 42)
71 #define CTF_FRAMEHEIGHT_MIN_ABS		(XML_TEXT_CTF_START + 43)
72 #define CTF_FRAMEHEIGHT_MIN_REL		(XML_TEXT_CTF_START + 44)
73 #define CTF_SIZETYPE				(XML_TEXT_CTF_START + 45)
74 #define CTF_SYNCHEIGHT				(XML_TEXT_CTF_START + 46)
75 #define CTF_WRAP					(XML_TEXT_CTF_START + 47)
76 #define CTF_WRAP_CONTOUR			(XML_TEXT_CTF_START + 48)
77 #define CTF_WRAP_CONTOUR_MODE		(XML_TEXT_CTF_START + 49)
78 #define CTF_WRAP_PARAGRAPH_ONLY		(XML_TEXT_CTF_START + 50)
79 #define CTF_ANCHORTYPE 				(XML_TEXT_CTF_START + 51)
80 #define CTF_ANCHORPAGENUMBER		(XML_TEXT_CTF_START + 52)
81 #define CTF_TEXTCOLUMNS				(XML_TEXT_CTF_START + 53)
82 #define CTF_HORIZONTALPOS			(XML_TEXT_CTF_START + 54)
83 #define CTF_HORIZONTALPOS_MIRRORED	(XML_TEXT_CTF_START + 55)
84 #define CTF_HORIZONTALREL			(XML_TEXT_CTF_START + 56)
85 #define CTF_HORIZONTALREL_FRAME		(XML_TEXT_CTF_START + 57)
86 #define CTF_HORIZONTALMIRROR		(XML_TEXT_CTF_START + 58)
87 #define CTF_VERTICALPOS				(XML_TEXT_CTF_START + 59)
88 #define CTF_VERTICALREL				(XML_TEXT_CTF_START + 60)
89 #define CTF_VERTICALREL_PAGE		(XML_TEXT_CTF_START + 61)
90 #define CTF_VERTICALREL_FRAME		(XML_TEXT_CTF_START + 62)
91 #define CTF_VERTICALREL_ASCHAR		(XML_TEXT_CTF_START + 63)
92 #define CTF_PAGEDESCNAME			(XML_TEXT_CTF_START + 64)
93 #define CTF_BACKGROUND_URL			(XML_TEXT_CTF_START + 66)
94 #define CTF_BACKGROUND_POS			(XML_TEXT_CTF_START + 67)
95 #define CTF_BACKGROUND_FILTER		(XML_TEXT_CTF_START + 68)
96 #define CTF_CHARHEIGHT_DIFF			(XML_TEXT_CTF_START + 69)
97 #define CTF_FONTNAME				(XML_TEXT_CTF_START + 70)
98 #define CTF_FONTNAME_CJK			(XML_TEXT_CTF_START + 71)
99 #define CTF_FONTFAMILYNAME_CJK		(XML_TEXT_CTF_START + 72)
100 #define CTF_FONTSTYLENAME_CJK		(XML_TEXT_CTF_START + 73)
101 #define CTF_FONTFAMILY_CJK			(XML_TEXT_CTF_START + 74)
102 #define CTF_FONTPITCH_CJK			(XML_TEXT_CTF_START + 75)
103 #define CTF_FONTCHARSET_CJK			(XML_TEXT_CTF_START + 76)
104 #define CTF_CHARHEIGHT_CJK			(XML_TEXT_CTF_START + 77)
105 #define CTF_CHARHEIGHT_REL_CJK		(XML_TEXT_CTF_START + 78)
106 #define CTF_CHARHEIGHT_DIFF_CJK		(XML_TEXT_CTF_START + 79)
107 #define CTF_FONTNAME_CTL			(XML_TEXT_CTF_START + 80)
108 #define CTF_FONTFAMILYNAME_CTL		(XML_TEXT_CTF_START + 81)
109 #define CTF_FONTSTYLENAME_CTL		(XML_TEXT_CTF_START + 82)
110 #define CTF_FONTFAMILY_CTL			(XML_TEXT_CTF_START + 83)
111 #define CTF_FONTPITCH_CTL			(XML_TEXT_CTF_START + 84)
112 #define CTF_FONTCHARSET_CTL			(XML_TEXT_CTF_START + 85)
113 #define CTF_CHARHEIGHT_CTL			(XML_TEXT_CTF_START + 86)
114 #define CTF_CHARHEIGHT_REL_CTL		(XML_TEXT_CTF_START + 87)
115 #define CTF_CHARHEIGHT_DIFF_CTL		(XML_TEXT_CTF_START + 88)
116 #define CTF_UNDERLINE				(XML_TEXT_CTF_START + 89)
117 #define CTF_UNDERLINE_COLOR			(XML_TEXT_CTF_START + 90)
118 #define CTF_UNDERLINE_HASCOLOR		(XML_TEXT_CTF_START + 91)
119 #define CTF_SECTION_FOOTNOTE_END			(XML_TEXT_CTF_START +  92)
120 #define CTF_SECTION_FOOTNOTE_NUM_RESTART	(XML_TEXT_CTF_START +  93)
121 #define CTF_SECTION_FOOTNOTE_NUM_RESTART_AT	(XML_TEXT_CTF_START +  94)
122 #define CTF_SECTION_FOOTNOTE_NUM_TYPE		(XML_TEXT_CTF_START +  95)
123 #define CTF_SECTION_FOOTNOTE_NUM_PREFIX		(XML_TEXT_CTF_START +  96)
124 #define CTF_SECTION_FOOTNOTE_NUM_SUFFIX		(XML_TEXT_CTF_START +  97)
125 #define CTF_SECTION_FOOTNOTE_NUM_OWN		(XML_TEXT_CTF_START +  98)
126 #define CTF_SECTION_ENDNOTE_END				(XML_TEXT_CTF_START +  99)
127 #define CTF_SECTION_ENDNOTE_NUM_RESTART		(XML_TEXT_CTF_START + 100)
128 #define CTF_SECTION_ENDNOTE_NUM_RESTART_AT	(XML_TEXT_CTF_START + 101)
129 #define CTF_SECTION_ENDNOTE_NUM_TYPE		(XML_TEXT_CTF_START + 102)
130 #define CTF_SECTION_ENDNOTE_NUM_PREFIX		(XML_TEXT_CTF_START + 103)
131 #define CTF_SECTION_ENDNOTE_NUM_SUFFIX		(XML_TEXT_CTF_START + 104)
132 #define CTF_SECTION_ENDNOTE_NUM_OWN			(XML_TEXT_CTF_START + 105)
133 #define CTF_PAGE_FOOTNOTE					(XML_TEXT_CTF_START + 106)
134 #define CTF_FRAME_DISPLAY_SCROLLBAR			(XML_TEXT_CTF_START + 107)
135 #define CTF_FRAME_DISPLAY_BORDER			(XML_TEXT_CTF_START + 108)
136 #define CTF_FRAME_MARGIN_HORI				(XML_TEXT_CTF_START + 109)
137 #define CTF_FRAME_MARGIN_VERT				(XML_TEXT_CTF_START + 110)
138 #define CTF_COMBINED_CHARACTERS_FIELD		(XML_TEXT_CTF_START + 111)
139 #define CTF_OLE_VIS_AREA_TOP				(XML_TEXT_CTF_START + 112)
140 #define CTF_OLE_VIS_AREA_LEFT				(XML_TEXT_CTF_START + 113)
141 #define CTF_OLE_VIS_AREA_WIDTH				(XML_TEXT_CTF_START + 114)
142 #define CTF_OLE_VIS_AREA_HEIGHT				(XML_TEXT_CTF_START + 115)
143 #define CTF_OLE_DRAW_ASPECT					(XML_TEXT_CTF_START + 116)
144 #define CTF_HYPERLINK_URL					(XML_TEXT_CTF_START + 117)
145 #define CTF_CHAR_STYLE_NAME					(XML_TEXT_CTF_START + 118)
146 #define CTF_VERTICALPOS_ATCHAR				(XML_TEXT_CTF_START + 119)
147 #define CTF_BACKGROUND_TRANSPARENCY	        (XML_TEXT_CTF_START + 120)
148 #define CTF_BACKGROUND_TRANSPARENT	        (XML_TEXT_CTF_START + 121)
149 #define CTF_KEEP_TOGETHER                   (XML_TEXT_CTF_START + 122)
150 #define CTF_FRAMEWIDTH_ABS                  (XML_TEXT_CTF_START + 123)
151 #define CTF_FRAMEWIDTH_MIN_ABS              (XML_TEXT_CTF_START + 124)
152 #define CTF_FRAMEWIDTH_MIN_REL              (XML_TEXT_CTF_START + 125)
153 #define CTF_FRAMEWIDTH_REL                  (XML_TEXT_CTF_START + 126)
154 #define CTF_FRAMEWIDTH_TYPE				    (XML_TEXT_CTF_START + 127)
155 #define CTF_BORDER_MODEL				    (XML_TEXT_CTF_START + 128)
156 // --> OD 2004-08-09 #i28749# - define CTF ids for positioning properties of
157 // shapes, because on export to OpenOffice.org file format these have to
158 // be handled special, if shape isn't anchored as-character.
159 #define CTF_SHAPE_HORIZONTALPOS             (XML_TEXT_CTF_START + 129)
160 #define CTF_SHAPE_HORIZONTALPOS_MIRRORED    (XML_TEXT_CTF_START + 130)
161 #define CTF_SHAPE_HORIZONTALREL             (XML_TEXT_CTF_START + 131)
162 #define CTF_SHAPE_HORIZONTALREL_FRAME       (XML_TEXT_CTF_START + 132)
163 #define CTF_SHAPE_HORIZONTALMIRROR          (XML_TEXT_CTF_START + 133)
164 #define CTF_SHAPE_VERTICALPOS               (XML_TEXT_CTF_START + 134)
165 #define CTF_SHAPE_VERTICALPOS_ATCHAR        (XML_TEXT_CTF_START + 135)
166 #define CTF_SHAPE_VERTICALREL               (XML_TEXT_CTF_START + 136)
167 #define CTF_SHAPE_VERTICALREL_PAGE          (XML_TEXT_CTF_START + 137)
168 #define CTF_SHAPE_VERTICALREL_FRAME         (XML_TEXT_CTF_START + 138)
169 // <--
170 #define CTF_PARA_ADJUSTLAST                 (XML_TEXT_CTF_START + 139)
171 #define CTF_DEFAULT_OUTLINE_LEVEL           (XML_TEXT_CTF_START + 140)
172 #define CTF_OLD_FLOW_WITH_TEXT              (XML_TEXT_CTF_START + 141)
173 #define CTF_ISNUMBERING                     (XML_TEXT_CTF_START + 142)
174 #define CTF_TEXT_DISPLAY                    (XML_TEXT_CTF_START + 143)
175 #define CTF_TEXT_CLIP                    	(XML_TEXT_CTF_START + 144)
176 #define CTF_TEXT_CLIP11                    	(XML_TEXT_CTF_START + 145)
177 #define CTF_PARAMARGINALL                   (XML_TEXT_CTF_START + 146)
178 #define CTF_PARAMARGINALL_REL               (XML_TEXT_CTF_START + 147)
179 #define CTF_MARGINALL                       (XML_TEXT_CTF_START + 148)
180 #define CTF_MARGINLEFT                      (XML_TEXT_CTF_START + 149)
181 #define CTF_MARGINRIGHT                     (XML_TEXT_CTF_START + 150)
182 #define CTF_MARGINTOP                       (XML_TEXT_CTF_START + 151)
183 #define CTF_MARGINBOTTOM                    (XML_TEXT_CTF_START + 152)
184 
185 #define TEXT_PROP_MAP_TEXT 0
186 #define TEXT_PROP_MAP_PARA 1
187 #define TEXT_PROP_MAP_FRAME 2
188 #define TEXT_PROP_MAP_AUTO_FRAME 3
189 #define TEXT_PROP_MAP_SECTION 4
190 #define TEXT_PROP_MAP_SHAPE 5
191 #define TEXT_PROP_MAP_RUBY 6
192 #define TEXT_PROP_MAP_SHAPE_PARA 7
193 #define TEXT_PROP_MAP_TEXT_ADDITIONAL_DEFAULTS 8
194 #define TEXT_PROP_MAP_TABLE_DEFAULTS 9
195 #define TEXT_PROP_MAP_TABLE_ROW_DEFAULTS 10
196 
197 class XMLOFF_DLLPUBLIC XMLTextPropertySetMapper : public XMLPropertySetMapper
198 {
199 public:
200 	XMLTextPropertySetMapper( sal_uInt16 nType );
201 	virtual ~XMLTextPropertySetMapper();
202 
203     static const XMLPropertyMapEntry* getPropertyMapForType( sal_uInt16 _nType );
204 };
205 
206 #endif
207