LibreOffice Module sc (master) 1
revisionfragment.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#pragma once
11
12#include "excelhandlers.hxx"
13#include <memory>
14
15class ScChangeTrack;
16
17namespace oox::xls {
18
20{
21 struct Impl;
22 std::unique_ptr<Impl> mpImpl;
23
24public:
26 const WorkbookHelper& rHelper, const OUString& rFragmentPath );
27
28 virtual ~RevisionHeadersFragment() override;
29
30protected:
32 sal_Int32 nElement, const AttributeList& rAttribs ) override;
33
34 virtual void onStartElement( const AttributeList& rAttribs ) override;
35 virtual void onCharacters( const OUString& rChars ) override;
36 virtual void onEndElement() override;
37
38 virtual void finalizeImport() override;
39
40private:
41 void importHeader( const AttributeList& rAttribs );
42};
43
45{
46 struct Impl;
47 std::unique_ptr<Impl> mpImpl;
48
49public:
50 explicit RevisionLogFragment(
51 const WorkbookHelper& rHelper, const OUString& rFragmentPath, ScChangeTrack& rChangeTrack );
52
53 virtual ~RevisionLogFragment() override;
54
55protected:
57 sal_Int32 nElement, const AttributeList& rAttribs ) override;
58
59 virtual void onStartElement( const AttributeList& rAttribs ) override;
60 virtual void onCharacters( const OUString& rChars ) override;
61 virtual void onEndElement() override;
62
63 virtual void finalizeImport() override;
64
65private:
66 void importCommon( const AttributeList& rAttribs );
67 void importRcc( const AttributeList& rAttribs );
68 void importRrc( const AttributeList& rAttribs );
69
70 void pushRevision();
71};
72
73}
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
76
void importHeader(const AttributeList &rAttribs)
RevisionHeadersFragment(const WorkbookHelper &rHelper, const OUString &rFragmentPath)
virtual void onCharacters(const OUString &rChars) override
virtual void onEndElement() override
virtual void onStartElement(const AttributeList &rAttribs) override
virtual void finalizeImport() override
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~RevisionLogFragment() override
void importCommon(const AttributeList &rAttribs)
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void finalizeImport() override
std::unique_ptr< Impl > mpImpl
void importRcc(const AttributeList &rAttribs)
RevisionLogFragment(const WorkbookHelper &rHelper, const OUString &rFragmentPath, ScChangeTrack &rChangeTrack)
virtual void onEndElement() override
virtual void onCharacters(const OUString &rChars) override
void importRrc(const AttributeList &rAttribs)
virtual void onStartElement(const AttributeList &rAttribs) override
Fragment handler derived from the WorkbookHelper helper class.
Helper class to provide access to global workbook data.