diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-22 19:22:55 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-22 19:29:40 +0000 |
commit | de6f1651326da9cc44b137779e5d3131cab5133e (patch) | |
tree | d732cca97601ddb4ee2624e01c37ad20d5d8ba95 /xmloff | |
parent | dd8c23522f9123bdf02c366e2abb7b1439028848 (diff) |
introduce SvXMLExport::getSaneDefaultVersion()
Change-Id: I1b73b4850e78f4ec0823894b93b8bc1cbadf0d0d
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index c751b7ca707a..e6ef5df90a6b 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -2428,6 +2428,15 @@ SvtSaveOptions::ODFDefaultVersion SvXMLExport::getDefaultVersion() const return SvtSaveOptions::ODFVER_012; } +SvtSaveOptions::ODFSaneDefaultVersion SvXMLExport::getSaneDefaultVersion() const +{ + if( mpImpl ) + return mpImpl->maSaveOptions.GetODFSaneDefaultVersion(); + + // fatal error, use current version as default + return SvtSaveOptions::ODFSVER_012; +} + OUString SvXMLExport::GetStreamName() const { return mpImpl->mStreamName; |