21#include <com/sun/star/uno/Sequence.hxx>
22#include <com/sun/star/document/XDocumentRevisionListPersistence.hpp>
23#include <com/sun/star/util/RevisionTag.hpp>
24#include <com/sun/star/embed/XStorage.hpp>
35 const css::uno::Sequence < css::util::RevisionTag >&
maVersions;
38 const css::uno::Reference< css::uno::XComponentContext >& rContext,
39 const css::uno::Sequence < css::util::RevisionTag >& rVersions,
40 const OUString &rFileName,
41 css::uno::Reference< css::xml::sax::XDocumentHandler >
const &rHandler );
52 css::uno::Sequence < css::util::RevisionTag >&
maVersions;
55 const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList >& xAttrList )
override;
60 const css::uno::Reference< css::uno::XComponentContext >& rContext,
61 css::uno::Sequence < css::util::RevisionTag >& rVersions );
64 css::
uno::Sequence < css::util::RevisionTag >&
79 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL
81 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttribs)
override;
88 std::u16string_view rString,
89 css::util::DateTime& rDateTime );
94 const css::uno::Reference< css::xml::sax::XFastAttributeList > & xAttrList );
99class XMLVersionListPersistence final :
public ::cppu::WeakImplHelper< css::document::XDocumentRevisionListPersistence, css::lang::XServiceInfo >
102 virtual css::uno::Sequence< css::util::RevisionTag > SAL_CALL
load(
const css::uno::Reference< css::embed::XStorage >&
Storage )
override;
103 virtual void SAL_CALL
store(
const css::uno::Reference< css::embed::XStorage >&
Storage,
const css::uno::Sequence< css::util::RevisionTag >&
List )
override;
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
virtual ~XMLVersionContext() override
static bool ParseISODateTimeString(std::u16string_view rString, css::util::DateTime &rDateTime)
XMLVersionContext(XMLVersionListImport &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XMLVersionListContext(XMLVersionListImport &rImport)
virtual ~XMLVersionListContext() override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttribs) override
XMLVersionListImport & GetImport()
void ExportAutoStyles_() override
Override this method to export the contents of <style:auto-styles>.
void ExportMasterStyles_() override
Override this method to export the contents of <style:master-styles>.
ErrCode exportDoc(enum ::xmloff::token::XMLTokenEnum eClass=::xmloff::token::XML_TOKEN_INVALID) override
XMLVersionListExport(const css::uno::Reference< css::uno::XComponentContext > &rContext, const css::uno::Sequence< css::util::RevisionTag > &rVersions, const OUString &rFileName, css::uno::Reference< css::xml::sax::XDocumentHandler > const &rHandler)
void ExportContent_() override
Override this method to export the content of <office:body>.
const css::uno::Sequence< css::util::RevisionTag > & maVersions
virtual SvXMLImportContext * CreateFastContext(sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Sequence< css::util::RevisionTag > & maVersions
css::uno::Sequence< css::util::RevisionTag > & GetList()
virtual ~XMLVersionListImport() noexcept override
XMLVersionListImport(const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Sequence< css::util::RevisionTag > &rVersions)
virtual void SAL_CALL store(const css::uno::Reference< css::embed::XStorage > &Storage, const css::uno::Sequence< css::util::RevisionTag > &List) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OUString SAL_CALL getImplementationName() override
sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual css::uno::Sequence< css::util::RevisionTag > SAL_CALL load(const css::uno::Reference< css::embed::XStorage > &Storage) override
XMLTokenEnum
The enumeration of all XML tokens.