diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-29 09:45:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-29 18:47:18 +0200 |
commit | beaf6001c0d020f525bb99dae4a0f6cdd16b4c99 (patch) | |
tree | 82ae5fe362e073a6f6a032b9859062d78f02a7ca /include/unotools/saveopt.hxx | |
parent | 67b157e994d9bef01f6117b53fc29e1fee538715 (diff) |
constructing SaveOptions just to read default version
can be a little expensive sometimes, since it loads a bunch of other
stuff at the same time.
So create a custom method that just loads the version
Change-Id: Ic480d95c4d64c68e57faf1b52f1d102141b7e246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118047
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools/saveopt.hxx')
-rw-r--r-- | include/unotools/saveopt.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/unotools/saveopt.hxx b/include/unotools/saveopt.hxx index d1e8f32af12b..0e16b683e914 100644 --- a/include/unotools/saveopt.hxx +++ b/include/unotools/saveopt.hxx @@ -141,8 +141,14 @@ public: ODFSaneDefaultVersion GetODFSaneDefaultVersion() const; bool IsReadOnly( EOption eOption ) const; + + /** gets a sane default from the currently configured default */ + static ODFSaneDefaultVersion GetODFSaneDefaultVersion(ODFDefaultVersion eDefaultVersion); }; +/** lighter-weight version of the same method in SvtSaveOptions */ +UNOTOOLS_DLLPUBLIC SvtSaveOptions::ODFSaneDefaultVersion GetODFSaneDefaultVersion(); + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |