summaryrefslogtreecommitdiffstats
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-26 10:14:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-26 10:41:14 +0100
commitaaad3500b3d558836a776b162184cb0556850940 (patch)
treee5b672b7ccfeb937ea933f6d1bac5e0e7dcbc34e /include/xmloff
parentNB tabbed impress: add shortcuts and Right2Left support (diff)
downloadcore-aaad3500b3d558836a776b162184cb0556850940.tar.gz
core-aaad3500b3d558836a776b162184cb0556850940.zip
remove some unused enum values in xmloff
(*) also make it more obvious what XMLShapeExportFlags::SIZE represents Change-Id: Ie63edf0f2827f171542037b819ebe7d55e090275 Reviewed-on: https://gerrit.libreoffice.org/63948 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/shapeexport.hxx2
-rw-r--r--include/xmloff/xmlexppr.hxx7
2 files changed, 2 insertions, 7 deletions
diff --git a/include/xmloff/shapeexport.hxx b/include/xmloff/shapeexport.hxx
index def1bd936536..d9cb574deadc 100644
--- a/include/xmloff/shapeexport.hxx
+++ b/include/xmloff/shapeexport.hxx
@@ -52,7 +52,7 @@ enum class XMLShapeExportFlags {
POSITION = 0x0003,
WIDTH = 0x0004,
HEIGHT = 0x0008,
- SIZE = 0x000c,
+ SIZE = WIDTH | HEIGHT,
// when you set this flag a chart does NOT export its own data as table element
NO_CHART_DATA = 0x0010,
// When setting the flag below no ignorableWhiteSpace will be called around
diff --git a/include/xmloff/xmlexppr.hxx b/include/xmloff/xmlexppr.hxx
index b2f564e186ec..770572c3bd99 100644
--- a/include/xmloff/xmlexppr.hxx
+++ b/include/xmloff/xmlexppr.hxx
@@ -32,16 +32,11 @@
enum class SvXmlExportFlags {
NONE = 0x0000,
- DEFAULTS = 0x0001, // export also default items
- DEEP = 0x0002, // export also items from
- // parent item sets
- EMPTY = 0x0004, // export attribs element
- // even if its empty
IGN_WS = 0x0008
};
namespace o3tl
{
- template<> struct typed_flags<SvXmlExportFlags> : is_typed_flags<SvXmlExportFlags, 0xf> {};
+ template<> struct typed_flags<SvXmlExportFlags> : is_typed_flags<SvXmlExportFlags, 0x08> {};
}
class SvXMLUnitConverter;