LibreOffice Module oox (master) 1
misccontexts.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_OOX_DRAWINGML_MISCCONTEXTS_HXX
21#define INCLUDED_OOX_DRAWINGML_MISCCONTEXTS_HXX
22
24
27
28namespace oox::drawingml
29{
30
32class SolidFillContext final : public ColorContext
33{
34public:
35 explicit SolidFillContext(::oox::core::ContextHandler2Helper const & rParent,
36 FillProperties& rFillProps, model::SolidFill* pSolidFill);
38};
39
40
43{
44public:
45 explicit GradientFillContext(::oox::core::ContextHandler2Helper const & rParent,
46 const ::oox::AttributeList& rAttribs, GradientFillProperties& rGradientProps,
47 model::GradientFill* pGradientFill);
48
51 sal_Int32 nElement,
52 const ::oox::AttributeList& rAttribs ) override;
53
54private:
57};
58
61{
62public:
63 explicit PatternFillContext(::oox::core::ContextHandler2Helper const& rParent,
64 const ::oox::AttributeList& rAttribs, PatternFillProperties& rPatternProps,
65 model::PatternFill* pPatternFill);
66
69 sal_Int32 nElement,
70 const ::oox::AttributeList& rAttribs ) override;
71
72private:
75};
76
77
81{
82public:
83 explicit ArtisticEffectContext(
84 ::oox::core::ContextHandler2Helper const & rParent,
85 ArtisticEffectProperties& rEffect );
86 virtual ~ArtisticEffectContext() override;
87
90 sal_Int32 nElement,
91 const ::oox::AttributeList& rAttribs ) override;
92
93private:
95};
96
97
101{
102public:
103 explicit BlipExtensionContext(
104 ::oox::core::ContextHandler2Helper const & rParent,
105 BlipFillProperties& rBlipProps );
106 virtual ~BlipExtensionContext() override;
107
110 sal_Int32 nElement,
111 const ::oox::AttributeList& rAttribs ) override;
112
113private:
115};
116
117
121{
122public:
123 explicit DuotoneContext(
124 ::oox::core::ContextHandler2Helper const & rParent,
125 BlipFillProperties& rBlipProps );
126 virtual ~DuotoneContext() override;
127
130 sal_Int32 nElement,
131 const ::oox::AttributeList& rAttribs ) override;
132
133private:
136};
137
138
142{
143public:
144 explicit ColorChangeContext(::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs,
145 BlipFillProperties& rBlipProps, model::BlipFill* pBlipFill);
146 virtual ~ColorChangeContext() override;
147
150 sal_Int32 nElement,
151 const ::oox::AttributeList& rAttribs ) override;
152
153private:
157};
158
162{
163public:
164 explicit BlipContext(::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs,
165 BlipFillProperties& rBlipProps, model::BlipFill* pBlipFill);
166
169 sal_Int32 nElement,
170 const ::oox::AttributeList& rAttribs ) override;
171
172private:
175};
176
179{
180public:
181 explicit BlipFillContext(::oox::core::ContextHandler2Helper const & rParent, const ::oox::AttributeList& rAttribs,
182 BlipFillProperties& rBlipProps, model::BlipFill* pBlipFill);
183
186 sal_Int32 nElement,
187 const ::oox::AttributeList& rAttribs ) override;
188
189private:
192};
193
197{
198public:
199 explicit FillPropertiesContext(
200 ::oox::core::ContextHandler2Helper const & rParent,
201 FillProperties& rFillProps );
202
205 sal_Int32 nElement,
206 const ::oox::AttributeList& rAttribs ) override;
207
210 ::oox::core::ContextHandler2Helper const & rParent,
211 sal_Int32 nElement,
212 const ::oox::AttributeList& rAttribs,
213 FillProperties& rFillProps,
214 model::FillStyle* pFillStyle);
215
216private:
219};
220
229{
230public:
232 ::oox::core::ContextHandler2Helper const & rParent,
233 Color& rColor );
234 virtual ~SimpleFillPropertiesContext() override;
235
236private:
238};
239
240} // namespace oox::drawingml
241
242#endif
243
244/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Context handler that imports a14:imgProps, a14:imgLayer, a14:imgEffect containers and the a14:artisti...
ArtisticEffectContext(::oox::core::ContextHandler2Helper const &rParent, ArtisticEffectProperties &rEffect)
ArtisticEffectProperties & maEffect
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:blip element containing the fill bitmap and bitmap color transform...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
model::BlipFill * mpBlipFill
BlipContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps, model::BlipFill *pBlipFill)
BlipFillProperties & mrBlipProps
Context handler that imports the a:extLst element inside a:blip and its children a:ext,...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
BlipExtensionContext(::oox::core::ContextHandler2Helper const &rParent, BlipFillProperties &rBlipProps)
Context handler that imports the a:blipFill element.
BlipFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps, model::BlipFill *pBlipFill)
BlipFillProperties & mrBlipProps
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:clrChange element containing the colors of a bitmap color change t...
ColorChangeContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps, model::BlipFill *pBlipFill)
virtual ~ColorChangeContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler for elements that contain a color value element (a:scrgbClr, a:srgbClr,...
Context handler that imports the a:duotone element containing the colors of a bitmap duotone transfor...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
DuotoneContext(::oox::core::ContextHandler2Helper const &rParent, BlipFillProperties &rBlipProps)
BlipFillProperties & mrBlipProps
virtual ~DuotoneContext() override
Context handler for elements that contain a fill property element (a:noFill, a:solidFill,...
::oox::core::ContextHandlerRef createFillContext(::oox::core::ContextHandler2Helper const &rParent, sal_Int32 nElement, const ::oox::AttributeList &rAttribs, FillProperties &rFillProps, model::FillStyle *pFillStyle)
FillPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, FillProperties &rFillProps)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:gradFill element.
GradientFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, GradientFillProperties &rGradientProps, model::GradientFill *pGradientFill)
model::GradientFill * mpGradientFill
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
GradientFillProperties & mrGradientProps
Context handler that imports the a:pattFill element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
PatternFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, PatternFillProperties &rPatternProps, model::PatternFill *pPatternFill)
model::PatternFill * mpPatternFill
PatternFillProperties & mrPatternProps
Context handler for elements that contain a fill property element (a:noFill, a:solidFill,...
SimpleFillPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, Color &rColor)
Context handler that imports the a:solidFill element.
SolidFillContext(::oox::core::ContextHandler2Helper const &rParent, FillProperties &rFillProps, model::SolidFill *pSolidFill)
::rtl::Reference< ContextHandler > ContextHandlerRef