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_XMLOFF_PAGEMASTERSTYLEMAP_HXX
21 #define INCLUDED_XMLOFF_PAGEMASTERSTYLEMAP_HXX
23 #include <xmloff/maptype.hxx>
24 #include <xmloff/xmltypes.hxx>
25 #include <xmloff/contextid.hxx>
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)
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)
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)
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)
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 XML_STYLE_FAMILY_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)
100 #define CTF_PM_SCALETO (XML_PM_CTF_START + 0x0051) // calc specific
101 #define CTF_PM_SCALETOPAGES (XML_PM_CTF_START + 0x0052)
102 #define CTF_PM_SCALETOX (XML_PM_CTF_START + 0x0053)
103 #define CTF_PM_SCALETOY (XML_PM_CTF_START + 0x0054)
104 #define CTF_PM_STANDARD_MODE (XML_PM_CTF_START + 0x0055)
105 #define CTP_PM_GRID_BASE_WIDTH (XML_PM_CTF_START + 0x0056)
106 #define CTP_PM_GRID_SNAP_TO_CHARS (XML_PM_CTF_START + 0x0057)
107 #define CTP_PM_GRID_SNAP_TO (XML_PM_CTF_START + 0x0058)
109 #define CTF_PM_HEADERBORDERALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERALL)
110 #define CTF_PM_HEADERBORDERTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERTOP)
111 #define CTF_PM_HEADERBORDERBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERBOTTOM)
112 #define CTF_PM_HEADERBORDERLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERLEFT)
113 #define CTF_PM_HEADERBORDERRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERRIGHT)
114 #define CTF_PM_HEADERBORDERWIDTHALL (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHALL)
115 #define CTF_PM_HEADERBORDERWIDTHTOP (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHTOP)
116 #define CTF_PM_HEADERBORDERWIDTHBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
117 #define CTF_PM_HEADERBORDERWIDTHLEFT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHLEFT)
118 #define CTF_PM_HEADERBORDERWIDTHRIGHT (CTF_PM_HEADERFLAG|CTF_PM_BORDERWIDTHRIGHT)
119 #define CTF_PM_HEADERPADDINGALL (CTF_PM_HEADERFLAG|CTF_PM_PADDINGALL)
120 #define CTF_PM_HEADERPADDINGTOP (CTF_PM_HEADERFLAG|CTF_PM_PADDINGTOP)
121 #define CTF_PM_HEADERPADDINGBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_PADDINGBOTTOM)
122 #define CTF_PM_HEADERPADDINGLEFT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGLEFT)
123 #define CTF_PM_HEADERPADDINGRIGHT (CTF_PM_HEADERFLAG|CTF_PM_PADDINGRIGHT)
124 #define CTF_PM_HEADERHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0031))
125 #define CTF_PM_HEADERMINHEIGHT (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0032))
126 #define CTF_PM_HEADERDYNAMIC (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0033))
127 #define CTF_PM_HEADERGRAPHICPOSITION (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0034))
128 #define CTF_PM_HEADERGRAPHICFILTER (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0035))
129 #define CTF_PM_HEADERGRAPHICURL (CTF_PM_HEADERFLAG|(XML_PM_CTF_START + 0x0036))
130 #define CTF_PM_HEADERMARGINALL (CTF_PM_HEADERFLAG|CTF_PM_MARGINALL)
131 #define CTF_PM_HEADERMARGINTOP (CTF_PM_HEADERFLAG|CTF_PM_MARGINTOP)
132 #define CTF_PM_HEADERMARGINBOTTOM (CTF_PM_HEADERFLAG|CTF_PM_MARGINBOTTOM)
133 #define CTF_PM_HEADERMARGINLEFT (CTF_PM_HEADERFLAG|CTF_PM_MARGINLEFT)
134 #define CTF_PM_HEADERMARGINRIGHT (CTF_PM_HEADERFLAG|CTF_PM_MARGINRIGHT)
136 // Need own entries for PageMasterStyleMap ORed with the CTF_PM_HEADERFLAG
137 #define CTF_PM_HEADERREPEAT_OFFSET_X (CTF_PM_HEADERFLAG|CTF_PM_REPEAT_OFFSET_X)
138 #define CTF_PM_HEADERREPEAT_OFFSET_Y (CTF_PM_HEADERFLAG|CTF_PM_REPEAT_OFFSET_Y)
139 #define CTF_PM_HEADERFILLGRADIENTNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLGRADIENTNAME)
140 #define CTF_PM_HEADERFILLHATCHNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLHATCHNAME)
141 #define CTF_PM_HEADERFILLBITMAPNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLBITMAPNAME)
142 #define CTF_PM_HEADERFILLTRANSNAME (CTF_PM_HEADERFLAG|CTF_PM_FILLTRANSNAME)
145 #define CTF_PM_FOOTERBORDERALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERALL)
146 #define CTF_PM_FOOTERBORDERTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERTOP)
147 #define CTF_PM_FOOTERBORDERBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERBOTTOM)
148 #define CTF_PM_FOOTERBORDERLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERLEFT)
149 #define CTF_PM_FOOTERBORDERRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERRIGHT)
150 #define CTF_PM_FOOTERBORDERWIDTHALL (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHALL)
151 #define CTF_PM_FOOTERBORDERWIDTHTOP (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHTOP)
152 #define CTF_PM_FOOTERBORDERWIDTHBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHBOTTOM)
153 #define CTF_PM_FOOTERBORDERWIDTHLEFT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHLEFT)
154 #define CTF_PM_FOOTERBORDERWIDTHRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_BORDERWIDTHRIGHT)
155 #define CTF_PM_FOOTERPADDINGALL (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGALL)
156 #define CTF_PM_FOOTERPADDINGTOP (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGTOP)
157 #define CTF_PM_FOOTERPADDINGBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGBOTTOM)
158 #define CTF_PM_FOOTERPADDINGLEFT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGLEFT)
159 #define CTF_PM_FOOTERPADDINGRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_PADDINGRIGHT)
160 #define CTF_PM_FOOTERHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0031))
161 #define CTF_PM_FOOTERMINHEIGHT (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0032))
162 #define CTF_PM_FOOTERDYNAMIC (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0033))
163 #define CTF_PM_FOOTERGRAPHICPOSITION (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0034))
164 #define CTF_PM_FOOTERGRAPHICFILTER (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0035))
165 #define CTF_PM_FOOTERGRAPHICURL (CTF_PM_FOOTERFLAG|(XML_PM_CTF_START + 0x0036))
166 #define CTF_PM_FOOTERMARGINALL (CTF_PM_FOOTERFLAG|CTF_PM_MARGINALL)
167 #define CTF_PM_FOOTERMARGINTOP (CTF_PM_FOOTERFLAG|CTF_PM_MARGINTOP)
168 #define CTF_PM_FOOTERMARGINBOTTOM (CTF_PM_FOOTERFLAG|CTF_PM_MARGINBOTTOM)
169 #define CTF_PM_FOOTERMARGINLEFT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINLEFT)
170 #define CTF_PM_FOOTERMARGINRIGHT (CTF_PM_FOOTERFLAG|CTF_PM_MARGINRIGHT)
172 // Need own entries for PageMasterStyleMap ORed with the CTF_PM_FOOTERFLAG
173 #define CTF_PM_FOOTERREPEAT_OFFSET_X (CTF_PM_FOOTERFLAG|CTF_PM_REPEAT_OFFSET_X)
174 #define CTF_PM_FOOTERREPEAT_OFFSET_Y (CTF_PM_FOOTERFLAG|CTF_PM_REPEAT_OFFSET_Y)
175 #define CTF_PM_FOOTERFILLGRADIENTNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLGRADIENTNAME)
176 #define CTF_PM_FOOTERFILLHATCHNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLHATCHNAME)
177 #define CTF_PM_FOOTERFILLBITMAPNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLBITMAPNAME)
178 #define CTF_PM_FOOTERFILLTRANSNAME (CTF_PM_FOOTERFLAG|CTF_PM_FILLTRANSNAME)
180 #define CTF_PM_FTN_HEIGHT (XML_PM_CTF_START + 0x0060)
181 #define CTF_PM_FTN_LINE_WEIGHT (XML_PM_CTF_START + 0x0061)
182 #define CTF_PM_FTN_LINE_COLOR (XML_PM_CTF_START + 0x0062)
183 #define CTF_PM_FTN_LINE_WIDTH (XML_PM_CTF_START + 0x0063)
184 #define CTF_PM_FTN_LINE_ADJUST (XML_PM_CTF_START + 0x0064)
185 #define CTF_PM_FTN_LINE_DISTANCE (XML_PM_CTF_START + 0x0065)
186 #define CTF_PM_FTN_DISTANCE (XML_PM_CTF_START + 0x0066)
187 #define CTF_PM_FTN_LINE_STYLE (XML_PM_CTF_START + 0x0067)
189 extern const XMLPropertyMapEntry aXMLPageMasterStyleMap
[];
190 extern const XMLPropertyMapEntry aXMLPageMasterHeaderImportStyleMap
[];
191 extern const XMLPropertyMapEntry aXMLPageMasterFooterImportStyleMap
[];
195 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */