LibreOffice Module xmloff (master)  1
txtprmap.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_XMLOFF_TXTPRMAP_HXX
20 #define INCLUDED_XMLOFF_TXTPRMAP_HXX
21 
22 #include <xmloff/contextid.hxx>
23 #include <xmloff/xmlprmap.hxx>
24 
25 #define CTF_CHARHEIGHT (XML_TEXT_CTF_START + 1)
26 #define CTF_CHARHEIGHT_REL (XML_TEXT_CTF_START + 2)
27 #define CTF_PARALEFTMARGIN (XML_TEXT_CTF_START + 3)
28 #define CTF_PARALEFTMARGIN_REL (XML_TEXT_CTF_START + 4)
29 #define CTF_PARARIGHTMARGIN (XML_TEXT_CTF_START + 5)
30 #define CTF_PARARIGHTMARGIN_REL (XML_TEXT_CTF_START + 6)
31 #define CTF_PARAFIRSTLINE (XML_TEXT_CTF_START + 7)
32 #define CTF_PARAFIRSTLINE_REL (XML_TEXT_CTF_START + 8)
33 #define CTF_PARATOPMARGIN (XML_TEXT_CTF_START + 9)
34 #define CTF_PARATOPMARGIN_REL (XML_TEXT_CTF_START + 10)
35 #define CTF_PARABOTTOMMARGIN (XML_TEXT_CTF_START + 11)
36 #define CTF_PARABOTTOMMARGIN_REL (XML_TEXT_CTF_START + 12)
37 #define CTF_ALLBORDERWIDTH (XML_TEXT_CTF_START + 13)
38 #define CTF_LEFTBORDERWIDTH (XML_TEXT_CTF_START + 14)
39 #define CTF_RIGHTBORDERWIDTH (XML_TEXT_CTF_START + 15)
40 #define CTF_TOPBORDERWIDTH (XML_TEXT_CTF_START + 16)
41 #define CTF_BOTTOMBORDERWIDTH (XML_TEXT_CTF_START + 17)
42 #define CTF_ALLBORDERDISTANCE (XML_TEXT_CTF_START + 18)
43 #define CTF_LEFTBORDERDISTANCE (XML_TEXT_CTF_START + 19)
44 #define CTF_RIGHTBORDERDISTANCE (XML_TEXT_CTF_START + 20)
45 #define CTF_TOPBORDERDISTANCE (XML_TEXT_CTF_START + 21)
46 #define CTF_BOTTOMBORDERDISTANCE (XML_TEXT_CTF_START + 22)
47 #define CTF_ALLBORDER (XML_TEXT_CTF_START + 23)
48 #define CTF_LEFTBORDER (XML_TEXT_CTF_START + 24)
49 #define CTF_RIGHTBORDER (XML_TEXT_CTF_START + 25)
50 #define CTF_TOPBORDER (XML_TEXT_CTF_START + 26)
51 #define CTF_BOTTOMBORDER (XML_TEXT_CTF_START + 27)
52 #define CTF_DROPCAPWHOLEWORD (XML_TEXT_CTF_START + 28)
53 #define CTF_DROPCAPFORMAT (XML_TEXT_CTF_START + 29)
54 #define CTF_DROPCAPCHARSTYLE (XML_TEXT_CTF_START + 30)
55 #define CTF_TABSTOP (XML_TEXT_CTF_START + 31)
56 #define CTF_NUMBERINGSTYLENAME (XML_TEXT_CTF_START + 32)
57 #define CTF_OLDTEXTBACKGROUND (XML_TEXT_CTF_START + 33)
58 #define CTF_FONTFAMILYNAME (XML_TEXT_CTF_START + 34)
59 #define CTF_FONTSTYLENAME (XML_TEXT_CTF_START + 35)
60 #define CTF_FONTFAMILY (XML_TEXT_CTF_START + 36)
61 #define CTF_FONTPITCH (XML_TEXT_CTF_START + 37)
62 #define CTF_FONTCHARSET (XML_TEXT_CTF_START + 38)
63 #define CTF_TEXTWRITINGMODE (XML_TEXT_CTF_START + 39)
64 #define CTF_SYNCHEIGHT_MIN (XML_TEXT_CTF_START + 40)
65 #define CTF_FRAMEHEIGHT_ABS (XML_TEXT_CTF_START + 41)
66 #define CTF_FRAMEHEIGHT_REL (XML_TEXT_CTF_START + 42)
67 #define CTF_FRAMEHEIGHT_MIN_ABS (XML_TEXT_CTF_START + 43)
68 #define CTF_FRAMEHEIGHT_MIN_REL (XML_TEXT_CTF_START + 44)
69 #define CTF_SIZETYPE (XML_TEXT_CTF_START + 45)
70 #define CTF_SYNCHEIGHT (XML_TEXT_CTF_START + 46)
71 #define CTF_WRAP (XML_TEXT_CTF_START + 47)
72 #define CTF_WRAP_CONTOUR (XML_TEXT_CTF_START + 48)
73 #define CTF_WRAP_CONTOUR_MODE (XML_TEXT_CTF_START + 49)
74 #define CTF_WRAP_PARAGRAPH_ONLY (XML_TEXT_CTF_START + 50)
75 #define CTF_ANCHORTYPE (XML_TEXT_CTF_START + 51)
76 #define CTF_ANCHORPAGENUMBER (XML_TEXT_CTF_START + 52)
77 #define CTF_TEXTCOLUMNS (XML_TEXT_CTF_START + 53)
78 #define CTF_HORIZONTALPOS (XML_TEXT_CTF_START + 54)
79 #define CTF_HORIZONTALPOS_MIRRORED (XML_TEXT_CTF_START + 55)
80 #define CTF_HORIZONTALREL (XML_TEXT_CTF_START + 56)
81 #define CTF_HORIZONTALREL_FRAME (XML_TEXT_CTF_START + 57)
82 #define CTF_HORIZONTALMIRROR (XML_TEXT_CTF_START + 58)
83 #define CTF_VERTICALPOS (XML_TEXT_CTF_START + 59)
84 #define CTF_VERTICALREL (XML_TEXT_CTF_START + 60)
85 #define CTF_VERTICALREL_PAGE (XML_TEXT_CTF_START + 61)
86 #define CTF_VERTICALREL_FRAME (XML_TEXT_CTF_START + 62)
87 #define CTF_VERTICALREL_ASCHAR (XML_TEXT_CTF_START + 63)
88 #define CTF_PAGEDESCNAME (XML_TEXT_CTF_START + 64)
89 #define CTF_BACKGROUND_URL (XML_TEXT_CTF_START + 66)
90 #define CTF_BACKGROUND_POS (XML_TEXT_CTF_START + 67)
91 #define CTF_BACKGROUND_FILTER (XML_TEXT_CTF_START + 68)
92 #define CTF_CHARHEIGHT_DIFF (XML_TEXT_CTF_START + 69)
93 #define CTF_FONTNAME (XML_TEXT_CTF_START + 70)
94 #define CTF_FONTNAME_CJK (XML_TEXT_CTF_START + 71)
95 #define CTF_FONTFAMILYNAME_CJK (XML_TEXT_CTF_START + 72)
96 #define CTF_FONTSTYLENAME_CJK (XML_TEXT_CTF_START + 73)
97 #define CTF_FONTFAMILY_CJK (XML_TEXT_CTF_START + 74)
98 #define CTF_FONTPITCH_CJK (XML_TEXT_CTF_START + 75)
99 #define CTF_FONTCHARSET_CJK (XML_TEXT_CTF_START + 76)
100 #define CTF_CHARHEIGHT_CJK (XML_TEXT_CTF_START + 77)
101 #define CTF_CHARHEIGHT_REL_CJK (XML_TEXT_CTF_START + 78)
102 #define CTF_CHARHEIGHT_DIFF_CJK (XML_TEXT_CTF_START + 79)
103 #define CTF_FONTNAME_CTL (XML_TEXT_CTF_START + 80)
104 #define CTF_FONTFAMILYNAME_CTL (XML_TEXT_CTF_START + 81)
105 #define CTF_FONTSTYLENAME_CTL (XML_TEXT_CTF_START + 82)
106 #define CTF_FONTFAMILY_CTL (XML_TEXT_CTF_START + 83)
107 #define CTF_FONTPITCH_CTL (XML_TEXT_CTF_START + 84)
108 #define CTF_FONTCHARSET_CTL (XML_TEXT_CTF_START + 85)
109 #define CTF_CHARHEIGHT_CTL (XML_TEXT_CTF_START + 86)
110 #define CTF_CHARHEIGHT_REL_CTL (XML_TEXT_CTF_START + 87)
111 #define CTF_CHARHEIGHT_DIFF_CTL (XML_TEXT_CTF_START + 88)
112 #define CTF_UNDERLINE (XML_TEXT_CTF_START + 89)
113 #define CTF_UNDERLINE_COLOR (XML_TEXT_CTF_START + 90)
114 #define CTF_UNDERLINE_HASCOLOR (XML_TEXT_CTF_START + 91)
115 #define CTF_SECTION_FOOTNOTE_END (XML_TEXT_CTF_START + 92)
116 #define CTF_SECTION_FOOTNOTE_NUM_RESTART (XML_TEXT_CTF_START + 93)
117 #define CTF_SECTION_FOOTNOTE_NUM_RESTART_AT (XML_TEXT_CTF_START + 94)
118 #define CTF_SECTION_FOOTNOTE_NUM_TYPE (XML_TEXT_CTF_START + 95)
119 #define CTF_SECTION_FOOTNOTE_NUM_PREFIX (XML_TEXT_CTF_START + 96)
120 #define CTF_SECTION_FOOTNOTE_NUM_SUFFIX (XML_TEXT_CTF_START + 97)
121 #define CTF_SECTION_FOOTNOTE_NUM_OWN (XML_TEXT_CTF_START + 98)
122 #define CTF_SECTION_ENDNOTE_END (XML_TEXT_CTF_START + 99)
123 #define CTF_SECTION_ENDNOTE_NUM_RESTART (XML_TEXT_CTF_START + 100)
124 #define CTF_SECTION_ENDNOTE_NUM_RESTART_AT (XML_TEXT_CTF_START + 101)
125 #define CTF_SECTION_ENDNOTE_NUM_TYPE (XML_TEXT_CTF_START + 102)
126 #define CTF_SECTION_ENDNOTE_NUM_PREFIX (XML_TEXT_CTF_START + 103)
127 #define CTF_SECTION_ENDNOTE_NUM_SUFFIX (XML_TEXT_CTF_START + 104)
128 #define CTF_SECTION_ENDNOTE_NUM_OWN (XML_TEXT_CTF_START + 105)
129 #define CTF_PAGE_FOOTNOTE (XML_TEXT_CTF_START + 106)
130 #define CTF_FRAME_DISPLAY_SCROLLBAR (XML_TEXT_CTF_START + 107)
131 #define CTF_FRAME_DISPLAY_BORDER (XML_TEXT_CTF_START + 108)
132 #define CTF_FRAME_MARGIN_HORI (XML_TEXT_CTF_START + 109)
133 #define CTF_FRAME_MARGIN_VERT (XML_TEXT_CTF_START + 110)
134 #define CTF_COMBINED_CHARACTERS_FIELD (XML_TEXT_CTF_START + 111)
135 #define CTF_OLE_VIS_AREA_TOP (XML_TEXT_CTF_START + 112)
136 #define CTF_OLE_VIS_AREA_LEFT (XML_TEXT_CTF_START + 113)
137 #define CTF_OLE_VIS_AREA_WIDTH (XML_TEXT_CTF_START + 114)
138 #define CTF_OLE_VIS_AREA_HEIGHT (XML_TEXT_CTF_START + 115)
139 #define CTF_OLE_DRAW_ASPECT (XML_TEXT_CTF_START + 116)
140 #define CTF_HYPERLINK_URL (XML_TEXT_CTF_START + 117)
141 #define CTF_CHAR_STYLE_NAME (XML_TEXT_CTF_START + 118)
142 #define CTF_VERTICALPOS_ATCHAR (XML_TEXT_CTF_START + 119)
143 #define CTF_BACKGROUND_TRANSPARENCY (XML_TEXT_CTF_START + 120)
144 #define CTF_BACKGROUND_TRANSPARENT (XML_TEXT_CTF_START + 121)
145 #define CTF_KEEP_TOGETHER (XML_TEXT_CTF_START + 122)
146 #define CTF_FRAMEWIDTH_ABS (XML_TEXT_CTF_START + 123)
147 #define CTF_FRAMEWIDTH_MIN_ABS (XML_TEXT_CTF_START + 124)
148 #define CTF_FRAMEWIDTH_MIN_REL (XML_TEXT_CTF_START + 125)
149 #define CTF_FRAMEWIDTH_REL (XML_TEXT_CTF_START + 126)
150 #define CTF_FRAMEWIDTH_TYPE (XML_TEXT_CTF_START + 127)
151 #define CTF_BORDER_MODEL (XML_TEXT_CTF_START + 128)
152 /* Define CTF ids for positioning properties of
153  shapes, because on export to OpenOffice.org file format these have to
154  be handled special, if shape isn't anchored as-character. (#i28749#)
155 */
156 #define CTF_SHAPE_HORIZONTALPOS (XML_TEXT_CTF_START + 129)
157 #define CTF_SHAPE_HORIZONTALPOS_MIRRORED (XML_TEXT_CTF_START + 130)
158 #define CTF_SHAPE_HORIZONTALREL (XML_TEXT_CTF_START + 131)
159 #define CTF_SHAPE_HORIZONTALREL_FRAME (XML_TEXT_CTF_START + 132)
160 #define CTF_SHAPE_HORIZONTALMIRROR (XML_TEXT_CTF_START + 133)
161 #define CTF_SHAPE_VERTICALPOS (XML_TEXT_CTF_START + 134)
162 #define CTF_SHAPE_VERTICALPOS_ATCHAR (XML_TEXT_CTF_START + 135)
163 #define CTF_SHAPE_VERTICALREL (XML_TEXT_CTF_START + 136)
164 #define CTF_SHAPE_VERTICALREL_PAGE (XML_TEXT_CTF_START + 137)
165 #define CTF_SHAPE_VERTICALREL_FRAME (XML_TEXT_CTF_START + 138)
166 #define CTF_PARA_ADJUSTLAST (XML_TEXT_CTF_START + 139)
167 #define CTF_DEFAULT_OUTLINE_LEVEL (XML_TEXT_CTF_START + 140)
168 #define CTF_OLD_FLOW_WITH_TEXT (XML_TEXT_CTF_START + 141)
169 #define CTF_ISNUMBERING (XML_TEXT_CTF_START + 142)
170 #define CTF_TEXT_DISPLAY (XML_TEXT_CTF_START + 143)
171 #define CTF_TEXT_CLIP (XML_TEXT_CTF_START + 144)
172 #define CTF_TEXT_CLIP11 (XML_TEXT_CTF_START + 145)
173 #define CTF_PARAMARGINALL (XML_TEXT_CTF_START + 146)
174 #define CTF_PARAMARGINALL_REL (XML_TEXT_CTF_START + 147)
175 #define CTF_MARGINALL (XML_TEXT_CTF_START + 148)
176 #define CTF_MARGINLEFT (XML_TEXT_CTF_START + 149)
177 #define CTF_MARGINRIGHT (XML_TEXT_CTF_START + 150)
178 #define CTF_MARGINTOP (XML_TEXT_CTF_START + 151)
179 #define CTF_MARGINBOTTOM (XML_TEXT_CTF_START + 152)
180 /* CTF ids for character border to avoid interference between
181  paragraph and character attributes */
182 #define CTF_CHARALLBORDERWIDTH (XML_TEXT_CTF_START + 153)
183 #define CTF_CHARLEFTBORDERWIDTH (XML_TEXT_CTF_START + 154)
184 #define CTF_CHARRIGHTBORDERWIDTH (XML_TEXT_CTF_START + 155)
185 #define CTF_CHARTOPBORDERWIDTH (XML_TEXT_CTF_START + 156)
186 #define CTF_CHARBOTTOMBORDERWIDTH (XML_TEXT_CTF_START + 157)
187 #define CTF_CHARALLBORDERDISTANCE (XML_TEXT_CTF_START + 158)
188 #define CTF_CHARLEFTBORDERDISTANCE (XML_TEXT_CTF_START + 159)
189 #define CTF_CHARRIGHTBORDERDISTANCE (XML_TEXT_CTF_START + 160)
190 #define CTF_CHARTOPBORDERDISTANCE (XML_TEXT_CTF_START + 161)
191 #define CTF_CHARBOTTOMBORDERDISTANCE (XML_TEXT_CTF_START + 162)
192 #define CTF_CHARALLBORDER (XML_TEXT_CTF_START + 163)
193 #define CTF_CHARLEFTBORDER (XML_TEXT_CTF_START + 164)
194 #define CTF_CHARRIGHTBORDER (XML_TEXT_CTF_START + 165)
195 #define CTF_CHARTOPBORDER (XML_TEXT_CTF_START + 166)
196 #define CTF_CHARBOTTOMBORDER (XML_TEXT_CTF_START + 167)
197 #define CTF_RELWIDTHREL (XML_TEXT_CTF_START + 168)
198 #define CTF_RELHEIGHTREL (XML_TEXT_CTF_START + 169)
199 #define CTF_CHAR_BACKGROUND (XML_TEXT_CTF_START + 170)
200 #define CTF_CHAR_BACKGROUND_TRANSPARENCY (XML_TEXT_CTF_START + 171)
201 #define CTF_CHAR_HIGHLIGHT (XML_TEXT_CTF_START + 172)
202 #define CTF_FILLSTYLE (XML_TEXT_CTF_START + 173)
203 #define CTF_FILLCOLOR (XML_TEXT_CTF_START + 174)
204 #define CTF_PAGENUMBEROFFSET (XML_TEXT_CTF_START + 175)
205 
206 
207 enum class TextPropMap {
208  TEXT = 0,
209  PARA = 1,
210  FRAME = 2,
211  AUTO_FRAME = 3,
212  SECTION = 4,
213  SHAPE = 5,
214  RUBY = 6,
215  SHAPE_PARA = 7,
217  TABLE_DEFAULTS = 9,
218  TABLE_ROW_DEFAULTS = 10,
219  CELL = 11
220 };
221 
223 {
224 public:
225  XMLTextPropertySetMapper( TextPropMap nType, bool bForExport );
226  virtual ~XMLTextPropertySetMapper() override;
227 
228  static const XMLPropertyMapEntry* getPropertyMapForType( TextPropMap _nType );
229 };
230 
231 #endif
232 
233 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define CELL(col, row)
Represents a property with its API-name, its XML-name and the type of its value.
Definition: maptype.hxx:31
TextPropMap
Definition: txtprmap.hxx:207
QPRO_FUNC_TYPE nType
#define XMLOFF_DLLPUBLIC
Definition: dllapi.h:29