1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #include "excelhandlers.hxx"
19 class RevisionHeadersFragment
: public WorkbookFragmentBase
22 std::unique_ptr
<Impl
> mpImpl
;
25 explicit RevisionHeadersFragment(
26 const WorkbookHelper
& rHelper
, const OUString
& rFragmentPath
);
28 virtual ~RevisionHeadersFragment() override
;
31 virtual oox::core::ContextHandlerRef
onCreateContext(
32 sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
34 virtual void onStartElement( const AttributeList
& rAttribs
) override
;
35 virtual void onCharacters( const OUString
& rChars
) override
;
36 virtual void onEndElement() override
;
38 virtual void finalizeImport() override
;
41 void importHeader( const AttributeList
& rAttribs
);
44 class RevisionLogFragment
: public WorkbookFragmentBase
47 std::unique_ptr
<Impl
> mpImpl
;
50 explicit RevisionLogFragment(
51 const WorkbookHelper
& rHelper
, const OUString
& rFragmentPath
, ScChangeTrack
& rChangeTrack
);
53 virtual ~RevisionLogFragment() override
;
56 virtual oox::core::ContextHandlerRef
onCreateContext(
57 sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
59 virtual void onStartElement( const AttributeList
& rAttribs
) override
;
60 virtual void onCharacters( const OUString
& rChars
) override
;
61 virtual void onEndElement() override
;
63 virtual void finalizeImport() override
;
66 void importCommon( const AttributeList
& rAttribs
);
67 void importRcc( const AttributeList
& rAttribs
);
68 void importRrc( const AttributeList
& rAttribs
);
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */