diff options
author | Rosemary Sebastian <rosemaryseb8@gmail.com> | 2016-05-24 17:52:41 +0530 |
---|---|---|
committer | Rosemary Sebastian <rosemaryseb8@gmail.com> | 2016-06-02 06:47:36 +0000 |
commit | 2aa542764ff6816b14d500945666f72a4b3f7881 (patch) | |
tree | 0067c6a6101b66c48a3334ec897cc7e0eb1eaa3e /include | |
parent | vcl: save one heap alloc (diff) | |
download | core-2aa542764ff6816b14d500945666f72a4b3f7881.tar.gz core-2aa542764ff6816b14d500945666f72a4b3f7881.zip |
Create undo.xml for change-tracking
Change-Id: I41a6de97b5c377e9a5c528c920d5c6e0195b7a10
Reviewed-on: https://gerrit.libreoffice.org/25404
Reviewed-by: Rosemary Sebastian <rosemaryseb8@gmail.com>
Tested-by: Rosemary Sebastian <rosemaryseb8@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/xmlexp.hxx | 7 | ||||
-rw-r--r-- | include/xmloff/xmltoken.hxx | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx index 41e8ddd8d417..c8adc646db13 100644 --- a/include/xmloff/xmlexp.hxx +++ b/include/xmloff/xmlexp.hxx @@ -100,12 +100,13 @@ enum class SvXMLExportFlags { NODOCTYPE = 0x0200, PRETTY = 0x0400, SAVEBACKWARDCOMPATIBLE = 0x0800, + UNDO = 0x1000, OASIS = 0x8000, ALL = 0x0fff }; namespace o3tl { - template<> struct typed_flags<SvXMLExportFlags> : is_typed_flags<SvXMLExportFlags, 0x8fff> {}; + template<> struct typed_flags<SvXMLExportFlags> : is_typed_flags<SvXMLExportFlags, 0x9fff> {}; } class XMLOFF_DLLPUBLIC SvXMLExport : public ::cppu::WeakImplHelper6< @@ -178,6 +179,7 @@ private: SAL_DLLPRIVATE void ImplExportMasterStyles(); // <office:master-styles> SAL_DLLPRIVATE void ImplExportContent(); // <office:body> + SAL_DLLPRIVATE void ImplExportUndo(); // <office:undo> virtual void SetBodyAttributes(); void GetViewSettingsAndViews(css::uno::Sequence<css::beans::PropertyValue>& rProps); @@ -217,6 +219,9 @@ protected: /// Override this method to export the content of <office:body>. virtual void ExportContent_() = 0; + /// Export the content of <office:undo> in writer. + virtual void ExportUndo_(); + OUString GetSourceShellID() const; OUString GetDestinationShellID() const; diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx index ccbb8cf08e41..4ddc061d552d 100644 --- a/include/xmloff/xmltoken.hxx +++ b/include/xmloff/xmltoken.hxx @@ -644,6 +644,7 @@ namespace xmloff { namespace token { XML_DOCUMENT_SETTINGS, XML_DOCUMENT_STATISTIC, XML_DOCUMENT_STYLES, + XML_DOCUMENT_UNDO, XML_DOMAIN, XML_DOT, XML_DOTS1, @@ -1922,6 +1923,7 @@ namespace xmloff { namespace token { XML_SINGLE, XML_SMALL_WAVE, XML_WAVE, + XML_UNDO, XML_UNFORMATTED_TEXT, XML_UNION, XML_UNIT, |