fix ODF validation error
that attribute was only written for backwards compatibility Change-Id: Icf06300809c55c3a20a74ee3b9d36644d6f5c2d9
This commit is contained in:
committed by
Markus Mohrhard
parent
50532e3f63
commit
e896b8ecdb
@@ -28,8 +28,6 @@ using namespace ::xmloff::token;
|
||||
MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_010)
|
||||
#define PLMAP_12(name,prefix,token,type,context) \
|
||||
MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_012)
|
||||
#define PLMAP_EX(name,prefix,token,type,context) \
|
||||
MAP(name,prefix,token,type|XML_TYPE_PROP_PAGE_LAYOUT,context, SvtSaveOptions::ODFVER_012_EXT_COMPAT)
|
||||
#define HFMAP(name,prefix,token,type,context) \
|
||||
MAP(name,prefix,token,type|XML_TYPE_PROP_HEADER_FOOTER,context, SvtSaveOptions::ODFVER_010)
|
||||
|
||||
@@ -102,10 +100,6 @@ const XMLPropertyMapEntry aXMLPageMasterStyleMap[] =
|
||||
//text grid enhancement for better CJK support
|
||||
PLMAP_12( "GridBaseWidth", XML_NAMESPACE_STYLE, XML_LAYOUT_GRID_BASE_WIDTH, XML_TYPE_MEASURE, CTP_PM_GRID_BASE_WIDTH ),
|
||||
PLMAP_12( "GridSnapToChars", XML_NAMESPACE_STYLE, XML_LAYOUT_GRID_SNAP_TO, XML_TYPE_BOOL, CTP_PM_GRID_SNAP_TO ),
|
||||
// fdo#44073: layout-grid-snap-to-characters does not exist in ODF:
|
||||
// write this in extended mode purely for backward compatibility so old
|
||||
// OOo/LO versions that don't understand layout-grid-snap-to read it
|
||||
PLMAP_EX( "GridSnapToChars", XML_NAMESPACE_STYLE, XML_LAYOUT_GRID_SNAP_TO_CHARS, XML_TYPE_BOOL, CTP_PM_GRID_SNAP_TO_CHARS ),
|
||||
//export as a default attribute
|
||||
PLMAP_12( "StandardPageMode", XML_NAMESPACE_STYLE, XML_LAYOUT_GRID_STANDARD_MODE, XML_TYPE_BOOL|MID_FLAG_DEFAULT_ITEM_EXPORT, CTF_PM_STANDARD_MODE ),
|
||||
|
||||
|
Reference in New Issue
Block a user