LibreOffice Module xmloff (master)  1
PageMasterStyleMap.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 
20 #ifndef XMLOFF_INC_PAGEMASTERSTYLEMAP_HXX
21 #define XMLOFF_INC_PAGEMASTERSTYLEMAP_HXX
22 
23 #include <xmloff/maptype.hxx>
24 #include <xmloff/xmltypes.hxx>
25 #include <xmloff/contextid.hxx>
26 
27 
28 #define XML_PM_TYPE_PAGESTYLELAYOUT (XML_PM_TYPES_START + 0)
29 #define XML_PM_TYPE_NUMFORMAT (XML_PM_TYPES_START + 1)
30 #define XML_PM_TYPE_NUMLETTERSYNC (XML_PM_TYPES_START + 2)
31 #define XML_PM_TYPE_PAPERTRAYNUMBER (XML_PM_TYPES_START + 3)
32 #define XML_PM_TYPE_PRINTORIENTATION (XML_PM_TYPES_START + 4)
33 #define XML_PM_TYPE_PRINTANNOTATIONS (XML_PM_TYPES_START + 5)
34 #define XML_PM_TYPE_PRINTCHARTS (XML_PM_TYPES_START + 6)
35 #define XML_PM_TYPE_PRINTDRAWING (XML_PM_TYPES_START + 7)
36 #define XML_PM_TYPE_PRINTFORMULAS (XML_PM_TYPES_START + 8)
37 #define XML_PM_TYPE_PRINTGRID (XML_PM_TYPES_START + 9)
38 #define XML_PM_TYPE_PRINTHEADERS (XML_PM_TYPES_START + 10)
39 #define XML_PM_TYPE_PRINTOBJECTS (XML_PM_TYPES_START + 11)
40 #define XML_PM_TYPE_PRINTZEROVALUES (XML_PM_TYPES_START + 12)
41 #define XML_PM_TYPE_PRINTPAGEORDER (XML_PM_TYPES_START + 13)
42 #define XML_PM_TYPE_FIRSTPAGENUMBER (XML_PM_TYPES_START + 14)
43 #define XML_PM_TYPE_CENTER_HORIZONTAL (XML_PM_TYPES_START + 15)
44 #define XML_PM_TYPE_CENTER_VERTICAL (XML_PM_TYPES_START + 16)
45 
46 // control flags
47 #define CTF_PM_FLAGMASK (XML_PM_CTF_START + 0x0F00)
48 #define CTF_PM_HEADERFLAG (XML_PM_CTF_START + 0x0100)
49 #define CTF_PM_FOOTERFLAG (XML_PM_CTF_START + 0x0200)
50 #define CTF_PM_PRINTMASK (XML_PM_CTF_START + 0x1000)
51 // page master
52 #define CTF_PM_BORDERALL (XML_PM_CTF_START + 0x0001)
53 #define CTF_PM_BORDERTOP (XML_PM_CTF_START + 0x0002)
54 #define CTF_PM_BORDERBOTTOM (XML_PM_CTF_START + 0x0003)
55 #define CTF_PM_BORDERLEFT (XML_PM_CTF_START + 0x0004)
56 #define CTF_PM_BORDERRIGHT (XML_PM_CTF_START + 0x0005)
57 #define CTF_PM_BORDERWIDTHALL (XML_PM_CTF_START + 0x0006)
58 #define CTF_PM_BORDERWIDTHTOP (XML_PM_CTF_START + 0x0007)
59 #define CTF_PM_BORDERWIDTHBOTTOM (XML_PM_CTF_START + 0x0008)
60 #define CTF_PM_BORDERWIDTHLEFT (XML_PM_CTF_START + 0x0009)
61 #define CTF_PM_BORDERWIDTHRIGHT (XML_PM_CTF_START + 0x000A)
62 #define CTF_PM_PADDINGALL (XML_PM_CTF_START + 0x000B)
63 #define CTF_PM_PADDINGTOP (XML_PM_CTF_START + 0x000C)
64 #define CTF_PM_PADDINGBOTTOM (XML_PM_CTF_START + 0x000D)
65 #define CTF_PM_PADDINGLEFT (XML_PM_CTF_START + 0x000E)
66 #define CTF_PM_PADDINGRIGHT (XML_PM_CTF_START + 0x000F)
67 #define CTF_PM_TEXTCOLUMNS (XML_PM_CTF_START + 0x0010)
68 #define CTF_PM_REGISTER_STYLE (XML_PM_CTF_START + 0x0011)
69 #define CTF_PM_PRINT_ANNOTATIONS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0012))
70 #define CTF_PM_PRINT_CHARTS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0013))
71 #define CTF_PM_PRINT_DRAWING (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0014))
72 #define CTF_PM_PRINT_FORMULAS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0015))
73 #define CTF_PM_PRINT_GRID (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0016))
74 #define CTF_PM_PRINT_HEADERS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0017))
75 #define CTF_PM_PRINT_OBJECTS (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0018))
76 #define CTF_PM_PRINT_ZEROVALUES (CTF_PM_PRINTMASK|(XML_PM_CTF_START + 0x0019))
77 #define CTF_PM_MARGINALL (XML_PM_CTF_START + 0x001A)
78 #define CTF_PM_MARGINTOP (XML_PM_CTF_START + 0x001B)
79 #define CTF_PM_MARGINBOTTOM (XML_PM_CTF_START + 0x001C)
80 #define CTF_PM_MARGINLEFT (XML_PM_CTF_START + 0x001D)
81 #define CTF_PM_MARGINRIGHT (XML_PM_CTF_START + 0x001E)
82 
83 #define CTF_PM_PAGEUSAGE (XML_PM_CTF_START + 0x0031)
84 #define CTF_PM_GRAPHICPOSITION (XML_PM_CTF_START + 0x0032)
85 #define CTF_PM_GRAPHICFILTER (XML_PM_CTF_START + 0x0033)
86 #define CTF_PM_GRAPHICURL (XML_PM_CTF_START + 0x0034)
87 
88 // Need own entries for PageMasterStyleMap since these get *filtered*
89 // at export time using CTF_PM_FLAGMASK and XML_PM_CTF_START as detector
90 // to find the first entry for header/footer (!), see
91 // SvXMLAutoStylePoolP_Impl::exportXML, look for XmlStyleFamily::PAGE_MASTER
92 #define CTF_PM_REPEAT_OFFSET_X (XML_PM_CTF_START + 0x0037)
93 #define CTF_PM_REPEAT_OFFSET_Y (XML_PM_CTF_START + 0x0038)
94 #define CTF_PM_FILLGRADIENTNAME (XML_PM_CTF_START + 0x0039)
95 #define CTF_PM_FILLHATCHNAME (XML_PM_CTF_START + 0x0040)
96 #define CTF_PM_FILLBITMAPNAME (XML_PM_CTF_START + 0x0041)
97 #define CTF_PM_FILLTRANSNAME (XML_PM_CTF_START + 0x0042)
98 #define CTF_PM_FILLBITMAPMODE (XML_PM_CTF_START + 0x0043)
99 #define CTF_PM_FILL (XML_PM_CTF_START + 0x0044)
100 #define CTF_PM_BACKGROUNDSIZE (XML_PM_CTF_START + 0x0045)
101 
102 #define CTF_PM_SCALETO (XML_PM_CTF_START + 0x0051) // calc specific
103 #define CTF_PM_SCALETOPAGES (XML_PM_CTF_START + 0x0052)
104 #define CTF_PM_SCALETOX (XML_PM_CTF_START + 0x0053)
105 #define CTF_PM_SCALETOY (XML_PM_CTF_START + 0x0054)
106 #define CTF_PM_STANDARD_MODE (XML_PM_CTF_START + 0x0055)
107 #define CTP_PM_GRID_BASE_WIDTH (XML_PM_CTF_START + 0x0056)
108 #define CTP_PM_GRID_SNAP_TO_CHARS (XML_PM_CTF_START + 0x0057)
109 #define CTP_PM_GRID_SNAP_TO (XML_PM_CTF_START + 0x0058)
110 // header
111 #define CTF_PM_HEADERBORDERALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERALL)
112 #define CTF_PM_HEADERBORDERTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERTOP)
113 #define CTF_PM_HEADERBORDERBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERBOTTOM)
114 #define CTF_PM_HEADERBORDERLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERLEFT)
115 #define CTF_PM_HEADERBORDERRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERRIGHT)
116 #define CTF_PM_HEADERBORDERWIDTHALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHALL)
117 #define CTF_PM_HEADERBORDERWIDTHTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHTOP)
118 #define CTF_PM_HEADERBORDERWIDTHBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
119 #define CTF_PM_HEADERBORDERWIDTHLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHLEFT)
120 #define CTF_PM_HEADERBORDERWIDTHRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHRIGHT)
121 #define CTF_PM_HEADERPADDINGALL (CTF_PM_HEADERFLAG|CTF_PM_PADDINGALL)
122 #define CTF_PM_HEADERPADDINGTOP (CTF_PM_HEADERFLAG|CTF_PM_PADDINGTOP)
123 #define CTF_PM_HEADERPADDINGBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_PADDINGBOTTOM)
124 #define CTF_PM_HEADERPADDINGLEFT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGLEFT)
125 #define CTF_PM_HEADERPADDINGRIGHT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGRIGHT)
126 #define CTF_PM_HEADERHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0031))
127 #define CTF_PM_HEADERMINHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0032))
128 #define CTF_PM_HEADERDYNAMIC (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0033))
129 #define CTF_PM_HEADERGRAPHICPOSITION (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0034))
130 #define CTF_PM_HEADERGRAPHICFILTER (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0035))
131 #define CTF_PM_HEADERGRAPHICURL (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0036))
132 #define CTF_PM_HEADERMARGINALL (CTF_PM_HEADERFLAG|CTF_PM_MARGINALL)
133 #define CTF_PM_HEADERMARGINTOP (CTF_PM_HEADERFLAG|CTF_PM_MARGINTOP)
134 #define CTF_PM_HEADERMARGINBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_MARGINBOTTOM)
135 #define CTF_PM_HEADERMARGINLEFT (CTF_PM_HEADERFLAG|CTF_PM_MARGINLEFT)
136 #define CTF_PM_HEADERMARGINRIGHT (CTF_PM_HEADERFLAG|CTF_PM_MARGINRIGHT)
137 
138 // Need own entries for PageMasterStyleMap ORed with the CTF_PM_HEADERFLAG
139 #define CTF_PM_HEADERREPEAT_OFFSET_X (CTF_PM_HEADERFLAG|CTF_PM_REPEAT_OFFSET_X)
140 #define CTF_PM_HEADERREPEAT_OFFSET_Y (CTF_PM_HEADERFLAG|CTF_PM_REPEAT_OFFSET_Y)
141 #define CTF_PM_HEADERFILLGRADIENTNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLGRADIENTNAME)
142 #define CTF_PM_HEADERFILLHATCHNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLHATCHNAME)
143 #define CTF_PM_HEADERFILLBITMAPNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLBITMAPNAME)
144 #define CTF_PM_HEADERFILLTRANSNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLTRANSNAME)
145 
146 // footer
147 #define CTF_PM_FOOTERBORDERALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERALL)
148 #define CTF_PM_FOOTERBORDERTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERTOP)
149 #define CTF_PM_FOOTERBORDERBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERBOTTOM)
150 #define CTF_PM_FOOTERBORDERLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERLEFT)
151 #define CTF_PM_FOOTERBORDERRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERRIGHT)
152 #define CTF_PM_FOOTERBORDERWIDTHALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHALL)
153 #define CTF_PM_FOOTERBORDERWIDTHTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHTOP)
154 #define CTF_PM_FOOTERBORDERWIDTHBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
155 #define CTF_PM_FOOTERBORDERWIDTHLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHLEFT)
156 #define CTF_PM_FOOTERBORDERWIDTHRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHRIGHT)
157 #define CTF_PM_FOOTERPADDINGALL (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGALL)
158 #define CTF_PM_FOOTERPADDINGTOP (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGTOP)
159 #define CTF_PM_FOOTERPADDINGBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGBOTTOM)
160 #define CTF_PM_FOOTERPADDINGLEFT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGLEFT)
161 #define CTF_PM_FOOTERPADDINGRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGRIGHT)
162 #define CTF_PM_FOOTERHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0031))
163 #define CTF_PM_FOOTERMINHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0032))
164 #define CTF_PM_FOOTERDYNAMIC (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0033))
165 #define CTF_PM_FOOTERGRAPHICPOSITION (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0034))
166 #define CTF_PM_FOOTERGRAPHICFILTER (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0035))
167 #define CTF_PM_FOOTERGRAPHICURL (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0036))
168 #define CTF_PM_FOOTERMARGINALL (CTF_PM_FOOTERFLAG|CTF_PM_MARGINALL)
169 #define CTF_PM_FOOTERMARGINTOP (CTF_PM_FOOTERFLAG|CTF_PM_MARGINTOP)
170 #define CTF_PM_FOOTERMARGINBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_MARGINBOTTOM)
171 #define CTF_PM_FOOTERMARGINLEFT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINLEFT)
172 #define CTF_PM_FOOTERMARGINRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINRIGHT)
173 
174 // Need own entries for PageMasterStyleMap ORed with the CTF_PM_FOOTERFLAG
175 #define CTF_PM_FOOTERREPEAT_OFFSET_X (CTF_PM_FOOTERFLAG|CTF_PM_REPEAT_OFFSET_X)
176 #define CTF_PM_FOOTERREPEAT_OFFSET_Y (CTF_PM_FOOTERFLAG|CTF_PM_REPEAT_OFFSET_Y)
177 #define CTF_PM_FOOTERFILLGRADIENTNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLGRADIENTNAME)
178 #define CTF_PM_FOOTERFILLHATCHNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLHATCHNAME)
179 #define CTF_PM_FOOTERFILLBITMAPNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLBITMAPNAME)
180 #define CTF_PM_FOOTERFILLTRANSNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLTRANSNAME)
181 
182 #define CTF_PM_FTN_HEIGHT (XML_PM_CTF_START + 0x0060)
183 #define CTF_PM_FTN_LINE_WEIGHT (XML_PM_CTF_START + 0x0061)
184 #define CTF_PM_FTN_LINE_COLOR (XML_PM_CTF_START + 0x0062)
185 #define CTF_PM_FTN_LINE_WIDTH (XML_PM_CTF_START + 0x0063)
186 #define CTF_PM_FTN_LINE_ADJUST (XML_PM_CTF_START + 0x0064)
187 #define CTF_PM_FTN_LINE_DISTANCE (XML_PM_CTF_START + 0x0065)
188 #define CTF_PM_FTN_DISTANCE (XML_PM_CTF_START + 0x0066)
189 #define CTF_PM_FTN_LINE_STYLE (XML_PM_CTF_START + 0x0067)
190 
193 
194 #endif
195 
196 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const XMLPropertyMapEntry g_XMLPageMasterDrawingPageStyleMap[]
const XMLPropertyMapEntry aXMLPageMasterStyleMap[]
Represents a property with its API-name, its XML-name and the type of its value.
Definition: maptype.hxx:31