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 .
21 #include <xmloff/PageMasterStyleMap.hxx>
22 #include <xmloff/xmlnmspe.hxx>
23 #include <xmloff/xmltoken.hxx>
25 using namespace ::xmloff::token
;
27 #define MAP(name,prefix,token,type,context,version) { name, sizeof(name)-1, prefix, token, type, context, version, false }
28 #define PLMAP(name,prefix,token,type,context) \
29 MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_010)
30 #define PLMAP_12(name,prefix,token,type,context) \
31 MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_012)
32 #define PLMAP_EX(name,prefix,token,type,context) \
33 MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_012_EXT_COMPAT)
34 #define HFMAP(name,prefix,token,type,context) \
35 MAP(name,prefix,token,type|XML_TYPE_PROP_HEADER_FOOTER,context, SvtSaveOptions::ODFVER_010)
37 //______________________________________________________________________________
39 const XMLPropertyMapEntry aXMLPageMasterStyleMap
[] =
42 PLMAP( "PageStyleLayout", XML_NAMESPACE_STYLE
, XML_PAGE_USAGE
, XML_PM_TYPE_PAGESTYLELAYOUT
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_PAGEUSAGE
),
43 PLMAP( "Width", XML_NAMESPACE_FO
, XML_PAGE_WIDTH
, XML_TYPE_MEASURE
, 0 ),
44 PLMAP( "Height", XML_NAMESPACE_FO
, XML_PAGE_HEIGHT
, XML_TYPE_MEASURE
, 0 ),
45 PLMAP( "NumberingType", XML_NAMESPACE_STYLE
, XML_NUM_FORMAT
, XML_PM_TYPE_NUMFORMAT
| MID_FLAG_MERGE_PROPERTY
, 0 ),
46 PLMAP( "NumberingType", XML_NAMESPACE_STYLE
, XML_NUM_LETTER_SYNC
, XML_PM_TYPE_NUMLETTERSYNC
, 0 ),
47 PLMAP( "PrinterPaperTray", XML_NAMESPACE_STYLE
, XML_PAPER_TRAY_NAME
, XML_TYPE_STRING
| MID_FLAG_PROPERTY_MAY_EXCEPT
, 0 ),
48 PLMAP( "IsLandscape", XML_NAMESPACE_STYLE
, XML_PRINT_ORIENTATION
, XML_PM_TYPE_PRINTORIENTATION
, 0 ),
49 PLMAP( "TopMargin", XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_MEASURE
, CTF_PM_MARGINALL
),
50 PLMAP( "TopMargin", XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_MEASURE
, CTF_PM_MARGINTOP
),
51 PLMAP( "BottomMargin", XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_MEASURE
, CTF_PM_MARGINBOTTOM
),
52 PLMAP( "LeftMargin", XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, CTF_PM_MARGINLEFT
),
53 PLMAP( "RightMargin", XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_MARGINRIGHT
),
54 PLMAP( "TopBorder", XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
, CTF_PM_BORDERALL
),
55 PLMAP( "TopBorder", XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, CTF_PM_BORDERTOP
),
56 PLMAP( "BottomBorder", XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, CTF_PM_BORDERBOTTOM
),
57 PLMAP( "LeftBorder", XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, CTF_PM_BORDERLEFT
),
58 PLMAP( "RightBorder", XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, CTF_PM_BORDERRIGHT
),
59 PLMAP( "TopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
, CTF_PM_BORDERWIDTHALL
),
60 PLMAP( "TopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
, CTF_PM_BORDERWIDTHTOP
),
61 PLMAP( "BottomBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
, CTF_PM_BORDERWIDTHBOTTOM
),
62 PLMAP( "LeftBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_BORDERWIDTHLEFT
),
63 PLMAP( "RightBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_BORDERWIDTHRIGHT
),
64 PLMAP( "TopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
, CTF_PM_PADDINGALL
),
65 PLMAP( "TopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
, CTF_PM_PADDINGTOP
),
66 PLMAP( "BottomBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
, CTF_PM_PADDINGBOTTOM
),
67 PLMAP( "LeftBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
, CTF_PM_PADDINGLEFT
),
68 PLMAP( "RightBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_PADDINGRIGHT
),
69 PLMAP( "ShadowFormat", XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
, 0 ),
70 PLMAP( "BackColor", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
| MID_FLAG_MULTI_PROPERTY
, 0 ),
71 PLMAP( "BackTransparent", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
| MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
72 PLMAP( "BackGraphicLocation", XML_NAMESPACE_STYLE
, XML_POSITION
, XML_TYPE_BUILDIN_CMP_ONLY
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_GRAPHICPOSITION
),
73 PLMAP( "BackGraphicFilter", XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, XML_TYPE_STRING
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_GRAPHICFILTER
),
74 PLMAP( "BackGraphicURL", XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, XML_TYPE_STRING
| MID_FLAG_ELEMENT_ITEM
, CTF_PM_GRAPHICURL
),
75 PLMAP( "PrintAnnotations", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTANNOTATIONS
| MID_FLAG_MULTI_PROPERTY
, CTF_PM_PRINT_ANNOTATIONS
),
76 PLMAP( "PrintCharts", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTCHARTS
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_CHARTS
),
77 PLMAP( "PrintDrawing", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTDRAWING
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_DRAWING
),
78 PLMAP( "PrintFormulas", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTFORMULAS
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_FORMULAS
),
79 PLMAP( "PrintGrid", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTGRID
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_GRID
),
80 PLMAP( "PrintHeaders", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTHEADERS
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_HEADERS
),
81 PLMAP( "PrintObjects", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTOBJECTS
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_OBJECTS
),
82 PLMAP( "PrintZeroValues", XML_NAMESPACE_STYLE
, XML_PRINT
, XML_PM_TYPE_PRINTZEROVALUES
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_PRINT_ZEROVALUES
),
83 PLMAP( "PrintDownFirst", XML_NAMESPACE_STYLE
, XML_PRINT_PAGE_ORDER
, XML_PM_TYPE_PRINTPAGEORDER
, 0 ),
84 PLMAP( "FirstPageNumber", XML_NAMESPACE_STYLE
, XML_FIRST_PAGE_NUMBER
, XML_PM_TYPE_FIRSTPAGENUMBER
, 0 ),
85 PLMAP( "PageScale", XML_NAMESPACE_STYLE
, XML_SCALE_TO
, XML_TYPE_PERCENT16
, CTF_PM_SCALETO
),
86 PLMAP( "ScaleToPages", XML_NAMESPACE_STYLE
, XML_SCALE_TO_PAGES
, XML_TYPE_NUMBER16
, CTF_PM_SCALETOPAGES
),
87 PLMAP( "ScaleToPagesX", XML_NAMESPACE_STYLE
, XML_SCALE_TO_X
, XML_TYPE_NUMBER16
, CTF_PM_SCALETOX
),
88 PLMAP( "ScaleToPagesY", XML_NAMESPACE_STYLE
, XML_SCALE_TO_Y
, XML_TYPE_NUMBER16
, CTF_PM_SCALETOY
),
89 PLMAP( "CenterHorizontally", XML_NAMESPACE_STYLE
, XML_TABLE_CENTERING
, XML_PM_TYPE_CENTER_HORIZONTAL
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
90 PLMAP( "CenterVertically", XML_NAMESPACE_STYLE
, XML_TABLE_CENTERING
, XML_PM_TYPE_CENTER_VERTICAL
| MID_FLAG_MULTI_PROPERTY
| MID_FLAG_MERGE_ATTRIBUTE
, 0 ),
91 PLMAP( "TextColumns", XML_NAMESPACE_STYLE
, XML_COLUMNS
, MID_FLAG_ELEMENT_ITEM
|XML_TYPE_TEXT_COLUMNS
, CTF_PM_TEXTCOLUMNS
),
92 PLMAP( "RegisterModeActive", XML_NAMESPACE_STYLE
, XML_REGISTER_TRUE
, XML_TYPE_BOOL
, 0 ),
93 PLMAP( "RegisterParagraphStyle", XML_NAMESPACE_STYLE
, XML_REGISTER_TRUTH_REF_STYLE_NAME
, XML_TYPE_STYLENAME
| MID_FLAG_SPECIAL_ITEM_IMPORT
, CTF_PM_REGISTER_STYLE
),
94 PLMAP( "WritingMode", XML_NAMESPACE_STYLE
, XML_WRITING_MODE
, XML_TYPE_TEXT_WRITING_MODE
, 0 ),
96 PLMAP( "GridColor", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_COLOR
, XML_TYPE_COLOR
, 0 ),
97 PLMAP( "GridLines", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_LINES
, XML_TYPE_NUMBER16
, 0 ),
98 PLMAP( "GridBaseHeight", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_BASE_HEIGHT
, XML_TYPE_MEASURE
, 0 ),
99 PLMAP( "GridRubyHeight", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_RUBY_HEIGHT
, XML_TYPE_MEASURE
, 0 ),
100 PLMAP( "GridMode", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_MODE
, XML_TYPE_LAYOUT_GRID_MODE
, 0 ),
101 PLMAP( "RubyBelow", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_RUBY_BELOW
, XML_TYPE_BOOL
, 0 ),
102 PLMAP( "GridPrint", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_PRINT
, XML_TYPE_BOOL
, 0 ),
103 PLMAP( "GridDisplay", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_DISPLAY
, XML_TYPE_BOOL
, 0 ),
105 //text grid enhancement for better CJK support
106 PLMAP_12( "GridBaseWidth", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_BASE_WIDTH
, XML_TYPE_MEASURE
, CTP_PM_GRID_BASE_WIDTH
),
107 PLMAP_12( "GridSnapToChars", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_SNAP_TO
, XML_TYPE_BOOL
, CTP_PM_GRID_SNAP_TO
),
108 // fdo#44073: layout-grid-snap-to-characters does not exist in ODF:
109 // write this in extended mode purely for backward compatibility so old
110 // OOo/LO versions that don't understand layout-grid-snap-to read it
111 PLMAP_EX( "GridSnapToChars", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_SNAP_TO_CHARS
, XML_TYPE_BOOL
, CTP_PM_GRID_SNAP_TO_CHARS
),
112 //export as a default attribute
113 PLMAP_12( "StandardPageMode", XML_NAMESPACE_STYLE
, XML_LAYOUT_GRID_STANDARD_MODE
, XML_TYPE_BOOL
|MID_FLAG_DEFAULT_ITEM_EXPORT
, CTF_PM_STANDARD_MODE
),
115 PLMAP( "UserDefinedAttributes", XML_NAMESPACE_TEXT
, XML_XMLNS
, XML_TYPE_ATTRIBUTE_CONTAINER
| MID_FLAG_SPECIAL_ITEM
, 0 ),
118 PLMAP( "FootnoteHeight", XML_NAMESPACE_STYLE
, XML_FOOTNOTE_MAX_HEIGHT
, XML_TYPE_MEASURE
, CTF_PM_FTN_HEIGHT
),
119 PLMAP( "FootnoteLineAdjust", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_TEXT_HORIZONTAL_ADJUST
|MID_FLAG_SPECIAL_ITEM
, CTF_PM_FTN_LINE_ADJUST
),
120 PLMAP( "FootnoteLineColor", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_COLOR
|MID_FLAG_SPECIAL_ITEM
, CTF_PM_FTN_LINE_COLOR
),
121 PLMAP( "FootnoteLineDistance", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_MEASURE
|MID_FLAG_SPECIAL_ITEM
,CTF_PM_FTN_DISTANCE
),
122 PLMAP( "FootnoteLineRelativeWidth", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_PERCENT8
|MID_FLAG_SPECIAL_ITEM
, CTF_PM_FTN_LINE_WIDTH
),
123 PLMAP( "FootnoteLineTextDistance", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_MEASURE
|MID_FLAG_SPECIAL_ITEM
, CTF_PM_FTN_LINE_DISTANCE
),
124 PLMAP( "FootnoteLineWeight", XML_NAMESPACE_STYLE
, XML_FOOTNOTE_SEP
, XML_TYPE_MEASURE16
|MID_FLAG_ELEMENT_ITEM
, CTF_PM_FTN_LINE_WEIGHT
),
125 PLMAP( "FootnoteLineStyle", XML_NAMESPACE_STYLE
, XML_EMPTY
, XML_TYPE_STRING
|MID_FLAG_ELEMENT_ITEM
, CTF_PM_FTN_LINE_STYLE
),
128 HFMAP( "HeaderHeight", XML_NAMESPACE_SVG
, XML_HEIGHT
, XML_TYPE_MEASURE
, CTF_PM_HEADERHEIGHT
),
129 HFMAP( "HeaderHeight", XML_NAMESPACE_FO
, XML_MIN_HEIGHT
, XML_TYPE_MEASURE
, CTF_PM_HEADERMINHEIGHT
),
130 HFMAP( "HeaderIsDynamicHeight", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_BOOL
, CTF_PM_HEADERDYNAMIC
),
131 HFMAP( "HeaderLeftMargin", XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_MEASURE
, CTF_PM_HEADERMARGINALL
),
132 HFMAP( "HeaderLeftMargin", XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, CTF_PM_HEADERMARGINLEFT
),
133 HFMAP( "HeaderRightMargin", XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_HEADERMARGINRIGHT
),
134 HFMAP( "HeaderBodyDistance", XML_NAMESPACE_FO
, XML_MARGIN_BOTTOM
, XML_TYPE_MEASURE
, CTF_PM_HEADERMARGINBOTTOM
),
135 HFMAP( "HeaderTopBorder", XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
, CTF_PM_HEADERBORDERALL
),
136 HFMAP( "HeaderTopBorder", XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, CTF_PM_HEADERBORDERTOP
),
137 HFMAP( "HeaderBottomBorder", XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, CTF_PM_HEADERBORDERBOTTOM
),
138 HFMAP( "HeaderLeftBorder", XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, CTF_PM_HEADERBORDERLEFT
),
139 HFMAP( "HeaderRightBorder", XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, CTF_PM_HEADERBORDERRIGHT
),
140 HFMAP( "HeaderTopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
, CTF_PM_HEADERBORDERWIDTHALL
),
141 HFMAP( "HeaderTopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
, CTF_PM_HEADERBORDERWIDTHTOP
),
142 HFMAP( "HeaderBottomBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
, CTF_PM_HEADERBORDERWIDTHBOTTOM
),
143 HFMAP( "HeaderLeftBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_HEADERBORDERWIDTHLEFT
),
144 HFMAP( "HeaderRightBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_HEADERBORDERWIDTHRIGHT
),
145 HFMAP( "HeaderTopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
, CTF_PM_HEADERPADDINGALL
),
146 HFMAP( "HeaderTopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
, CTF_PM_HEADERPADDINGTOP
),
147 HFMAP( "HeaderBottomBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
, CTF_PM_HEADERPADDINGBOTTOM
),
148 HFMAP( "HeaderLeftBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
, CTF_PM_HEADERPADDINGLEFT
),
149 HFMAP( "HeaderRightBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_HEADERPADDINGRIGHT
),
150 HFMAP( "HeaderShadowFormat", XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
, CTF_PM_HEADERFLAG
),
151 HFMAP( "HeaderBackColor", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
| MID_FLAG_MULTI_PROPERTY
, CTF_PM_HEADERFLAG
),
152 HFMAP( "HeaderBackTransparent", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_HEADERFLAG
),
153 HFMAP( "HeaderBackGraphicLocation", XML_NAMESPACE_STYLE
, XML_POSITION
, XML_TYPE_BUILDIN_CMP_ONLY
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_HEADERGRAPHICPOSITION
),
154 HFMAP( "HeaderBackGraphicFilter", XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, XML_TYPE_STRING
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_HEADERGRAPHICFILTER
),
155 HFMAP( "HeaderBackGraphicURL", XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, XML_TYPE_STRING
| MID_FLAG_ELEMENT_ITEM
, CTF_PM_HEADERGRAPHICURL
),
156 HFMAP( "HeaderDynamicSpacing", XML_NAMESPACE_STYLE
, XML_DYNAMIC_SPACING
, XML_TYPE_BOOL
, CTF_PM_HEADERFLAG
),
159 HFMAP( "FooterHeight", XML_NAMESPACE_SVG
, XML_HEIGHT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERHEIGHT
),
160 HFMAP( "FooterHeight", XML_NAMESPACE_FO
, XML_MIN_HEIGHT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERMINHEIGHT
),
161 HFMAP( "FooterIsDynamicHeight", XML_NAMESPACE_STYLE
, XML__EMPTY
, XML_TYPE_BOOL
, CTF_PM_FOOTERDYNAMIC
),
162 HFMAP( "FooterLeftMargin", XML_NAMESPACE_FO
, XML_MARGIN
, XML_TYPE_MEASURE
, CTF_PM_FOOTERMARGINALL
),
163 HFMAP( "FooterLeftMargin", XML_NAMESPACE_FO
, XML_MARGIN_LEFT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERMARGINLEFT
),
164 HFMAP( "FooterRightMargin", XML_NAMESPACE_FO
, XML_MARGIN_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERMARGINRIGHT
),
165 HFMAP( "FooterBodyDistance", XML_NAMESPACE_FO
, XML_MARGIN_TOP
, XML_TYPE_MEASURE
, CTF_PM_FOOTERMARGINTOP
),
166 HFMAP( "FooterTopBorder", XML_NAMESPACE_FO
, XML_BORDER
, XML_TYPE_BORDER
, CTF_PM_FOOTERBORDERALL
),
167 HFMAP( "FooterTopBorder", XML_NAMESPACE_FO
, XML_BORDER_TOP
, XML_TYPE_BORDER
, CTF_PM_FOOTERBORDERTOP
),
168 HFMAP( "FooterBottomBorder", XML_NAMESPACE_FO
, XML_BORDER_BOTTOM
, XML_TYPE_BORDER
, CTF_PM_FOOTERBORDERBOTTOM
),
169 HFMAP( "FooterLeftBorder", XML_NAMESPACE_FO
, XML_BORDER_LEFT
, XML_TYPE_BORDER
, CTF_PM_FOOTERBORDERLEFT
),
170 HFMAP( "FooterRightBorder", XML_NAMESPACE_FO
, XML_BORDER_RIGHT
, XML_TYPE_BORDER
, CTF_PM_FOOTERBORDERRIGHT
),
171 HFMAP( "FooterTopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH
, XML_TYPE_BORDER_WIDTH
, CTF_PM_FOOTERBORDERWIDTHALL
),
172 HFMAP( "FooterTopBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_TOP
, XML_TYPE_BORDER_WIDTH
, CTF_PM_FOOTERBORDERWIDTHTOP
),
173 HFMAP( "FooterBottomBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_BOTTOM
, XML_TYPE_BORDER_WIDTH
, CTF_PM_FOOTERBORDERWIDTHBOTTOM
),
174 HFMAP( "FooterLeftBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_LEFT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_FOOTERBORDERWIDTHLEFT
),
175 HFMAP( "FooterRightBorder", XML_NAMESPACE_STYLE
, XML_BORDER_LINE_WIDTH_RIGHT
, XML_TYPE_BORDER_WIDTH
, CTF_PM_FOOTERBORDERWIDTHRIGHT
),
176 HFMAP( "FooterTopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING
, XML_TYPE_MEASURE
, CTF_PM_FOOTERPADDINGALL
),
177 HFMAP( "FooterTopBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_TOP
, XML_TYPE_MEASURE
, CTF_PM_FOOTERPADDINGTOP
),
178 HFMAP( "FooterBottomBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_BOTTOM
, XML_TYPE_MEASURE
, CTF_PM_FOOTERPADDINGBOTTOM
),
179 HFMAP( "FooterLeftBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_LEFT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERPADDINGLEFT
),
180 HFMAP( "FooterRightBorderDistance", XML_NAMESPACE_FO
, XML_PADDING_RIGHT
, XML_TYPE_MEASURE
, CTF_PM_FOOTERPADDINGRIGHT
),
181 HFMAP( "FooterShadowFormat", XML_NAMESPACE_STYLE
, XML_SHADOW
, XML_TYPE_TEXT_SHADOW
, CTF_PM_FOOTERFLAG
),
182 HFMAP( "FooterBackColor", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_COLORTRANSPARENT
| MID_FLAG_MULTI_PROPERTY
, CTF_PM_FOOTERFLAG
),
183 HFMAP( "FooterBackTransparent", XML_NAMESPACE_FO
, XML_BACKGROUND_COLOR
, XML_TYPE_ISTRANSPARENT
| MID_FLAG_MERGE_ATTRIBUTE
, CTF_PM_FOOTERFLAG
),
184 HFMAP( "FooterBackGraphicLocation", XML_NAMESPACE_STYLE
, XML_POSITION
, XML_TYPE_BUILDIN_CMP_ONLY
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_FOOTERGRAPHICPOSITION
),
185 HFMAP( "FooterBackGraphicFilter", XML_NAMESPACE_STYLE
, XML_FILTER_NAME
, XML_TYPE_STRING
| MID_FLAG_SPECIAL_ITEM
, CTF_PM_FOOTERGRAPHICFILTER
),
186 HFMAP( "FooterBackGraphicURL", XML_NAMESPACE_STYLE
, XML_BACKGROUND_IMAGE
, XML_TYPE_STRING
| MID_FLAG_ELEMENT_ITEM
, CTF_PM_FOOTERGRAPHICURL
),
187 HFMAP( "FooterDynamicSpacing", XML_NAMESPACE_STYLE
, XML_DYNAMIC_SPACING
, XML_TYPE_BOOL
, CTF_PM_FOOTERFLAG
),
189 { 0L, 0, 0, XML_EMPTY
, 0, 0, SvtSaveOptions::ODFVER_010
, false }
192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */