summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-03-15 13:34:42 +0100
committerEike Rathke <erack@redhat.com>2016-03-15 13:49:12 +0100
commit4d857425e0a149f88d3036bdb19b72c7f267efa4 (patch)
tree9b07b79c492675ebcde63d8cfa933a334e186bf5 /include
parentb78fa03d34734925167112d8ceb6a8b53d6d7735 (diff)
define ODFSVER_LATEST at a central place
It's already enough to have to adapt the SvtSaveOptions::GetODFSaneDefaultVersion() mapping for new ODFDefaultVersion values, get rid of the SvXMLExport::getSaneDefaultVersion() place. In the hope that DO NOT USE is taken seriously.. Change-Id: I1eeae698249f68cc375b22cc4cc799107bc14e41
Diffstat (limited to 'include')
-rw-r--r--include/unotools/saveopt.hxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/unotools/saveopt.hxx b/include/unotools/saveopt.hxx
index c9d793dfe134..556777375d95 100644
--- a/include/unotools/saveopt.hxx
+++ b/include/unotools/saveopt.hxx
@@ -74,14 +74,18 @@ public:
/// Enums that allow a sane comparison of versions, without LATEST.
enum ODFSaneDefaultVersion
{
- ODFSVER_EXTENDED = 1, // bit designating extensions are allowed
- ODFSVER_010 = 2, // ODF 1.0
- ODFSVER_011 = 4, // ODF 1.1
- ODFSVER_012 = 6, // ODF 1.2
- ODFSVER_012_EXT_COMPAT = 9, // ODF 1.2 extended, but with compatibility fallbacks
- ODFSVER_012_EXTENDED = 11, // ODF 1.2 extended
- ODFSVER_013 = 12, // ODF 1.3
- ODFSVER_013_EXTENDED = 13 // ODF 1.3 extended
+ ODFSVER_EXTENDED = 1, ///< bit designating extensions are allowed
+ ODFSVER_010 = 2, ///< ODF 1.0
+ ODFSVER_011 = 4, ///< ODF 1.1
+ ODFSVER_012 = 6, ///< ODF 1.2
+ ODFSVER_012_EXT_COMPAT = 9, ///< ODF 1.2 extended, but with compatibility fallbacks
+ ODFSVER_012_EXTENDED = 11, ///< ODF 1.2 extended
+ ODFSVER_013 = 12, ///< ODF 1.3
+ ODFSVER_013_EXTENDED = 13, ///< ODF 1.3 extended
+
+ // The latest defined standard. Adapt when a new one is published.
+ ODFSVER_LATEST = ODFSVER_012, ///< @internal DO NOT USE in comparisons
+ ODFSVER_LATEST_EXTENDED = ODFSVER_LATEST | ODFSVER_EXTENDED ///< @internal DO NOT USE in comparisons
};
SvtSaveOptions();