summaryrefslogtreecommitdiffstats
path: root/include/oox/export/ThemeExport.hxx
blob: c220d2d3037d84c9fa8e32568bdca90c7e372510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#pragma once

#include <sal/config.h>
#include <oox/dllapi.h>
#include <oox/core/xmlfilterbase.hxx>
#include <oox/export/utils.hxx>

namespace model
{
class Theme;
class FontScheme;
class FormatScheme;
class EffectStyle;
class LineStyle;
class FillStyle;
class BlipFill;
class PatternFill;
class GradientFill;
class SolidFill;
class ComplexColor;
struct Transformation;
}

namespace oox
{
class OOX_DLLPUBLIC ThemeExport
{
private:
    oox::core::XmlFilterBase* mpFilterBase;
    oox::drawingml::DocumentType meDocumentType;
    sax_fastparser::FSHelperPtr mpFS;

public:
    ThemeExport(oox::core::XmlFilterBase* pFilterBase, oox::drawingml::DocumentType eDocumentType);

    void write(OUString const& rPath, model::Theme const& rTheme);

private:
    bool writeColorSet(model::Theme const& rTheme);
    bool writeFontScheme(model::FontScheme const& rFontScheme);
    bool writeFormatScheme(model::FormatScheme const& rFormatScheme);

    void writeEffectStyle(model::EffectStyle const& rEffectStyle);
    void writeLineStyle(model::LineStyle const& rLineStyle);
    void writeBackgroundFillStyle(model::FillStyle const& rFillStyle);
    void writeFillStyle(model::FillStyle const& rFillStyle);
    void writeBlipFill(model::BlipFill const& rBlipFill);
    void writeBlip(model::BlipFill const& rBlipFill);
    void writePatternFill(model::PatternFill const& rPatternFill);
    void writeGradientFill(model::GradientFill const& rGradientFill);
    void writeSolidFill(model::SolidFill const& rSolidFill);
    void writeComplexColor(model::ComplexColor const& rComplexColor);
    void writeColorPlaceholder(model::ComplexColor const& rComplexColor);
    void writeColorSystem(model::ComplexColor const& rComplexColor);
    void writeColorTheme(model::ComplexColor const& rComplexColor);
    void writeColorHSL(model::ComplexColor const& rComplexColor);
    void writeColorCRGB(model::ComplexColor const& rComplexColor);
    void writeColorRGB(model::ComplexColor const& rComplexColor);
    void writeColorTransformations(std::vector<model::Transformation> const& rTransformations);
};

} // end namespace oox

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */