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/.
10 #ifndef INCLUDED_SC_OOX_XLS_REVISIONFRAGMENT_HXX
11 #define INCLUDED_SC_OOX_XLS_REVISIONFRAGMENT_HXX
13 #include "excelhandlers.hxx"
18 namespace oox
{ namespace xls
{
20 class RevisionHeadersFragment
: public WorkbookFragmentBase
23 std::unique_ptr
<Impl
> mpImpl
;
26 explicit RevisionHeadersFragment(
27 const WorkbookHelper
& rHelper
, const OUString
& rFragmentPath
);
29 virtual ~RevisionHeadersFragment() override
;
32 virtual oox::core::ContextHandlerRef
onCreateContext(
33 sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
35 virtual void onStartElement( const AttributeList
& rAttribs
) override
;
36 virtual void onCharacters( const OUString
& rChars
) override
;
37 virtual void onEndElement() override
;
39 virtual void finalizeImport() override
;
42 void importHeader( const AttributeList
& rAttribs
);
45 class RevisionLogFragment
: public WorkbookFragmentBase
48 std::unique_ptr
<Impl
> mpImpl
;
51 explicit RevisionLogFragment(
52 const WorkbookHelper
& rHelper
, const OUString
& rFragmentPath
, ScChangeTrack
& rChangeTrack
);
54 virtual ~RevisionLogFragment() override
;
57 virtual oox::core::ContextHandlerRef
onCreateContext(
58 sal_Int32 nElement
, const AttributeList
& rAttribs
) override
;
60 virtual void onStartElement( const AttributeList
& rAttribs
) override
;
61 virtual void onCharacters( const OUString
& rChars
) override
;
62 virtual void onEndElement() override
;
64 virtual void finalizeImport() override
;
67 void importCommon( const AttributeList
& rAttribs
);
68 void importRcc( const AttributeList
& rAttribs
);
69 void importRrc( const AttributeList
& rAttribs
);
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */