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 
26 
27 namespace oox::drawingml {
28 
29 
31 class SolidFillContext final : public ColorContext
32 {
33 public:
34  explicit SolidFillContext(
35  ::oox::core::ContextHandler2Helper const & rParent,
36  FillProperties& rFillProps );
37 };
38 
39 
42 {
43 public:
44  explicit GradientFillContext(
45  ::oox::core::ContextHandler2Helper const & rParent,
46  const ::oox::AttributeList& rAttribs,
47  GradientFillProperties& rGradientProps );
48 
51  sal_Int32 nElement,
52  const ::oox::AttributeList& rAttribs ) override;
53 
54 private:
56 };
57 
60 {
61 public:
62  explicit PatternFillContext(
63  ::oox::core::ContextHandler2Helper const & rParent,
64  const ::oox::AttributeList& rAttribs,
65  PatternFillProperties& rPatternProps );
66 
69  sal_Int32 nElement,
70  const ::oox::AttributeList& rAttribs ) override;
71 
72 private:
74 };
75 
76 
80 {
81 public:
82  explicit ArtisticEffectContext(
83  ::oox::core::ContextHandler2Helper const & rParent,
84  ArtisticEffectProperties& rEffect );
85  virtual ~ArtisticEffectContext() override;
86 
89  sal_Int32 nElement,
90  const ::oox::AttributeList& rAttribs ) override;
91 
92 private:
94 };
95 
96 
100 {
101 public:
102  explicit BlipExtensionContext(
103  ::oox::core::ContextHandler2Helper const & rParent,
104  BlipFillProperties& rBlipProps );
105  virtual ~BlipExtensionContext() override;
106 
109  sal_Int32 nElement,
110  const ::oox::AttributeList& rAttribs ) override;
111 
112 private:
114 };
115 
116 
120 {
121 public:
122  explicit DuotoneContext(
123  ::oox::core::ContextHandler2Helper const & rParent,
124  BlipFillProperties& rBlipProps );
125  virtual ~DuotoneContext() override;
126 
129  sal_Int32 nElement,
130  const ::oox::AttributeList& rAttribs ) override;
131 
132 private:
135 };
136 
137 
141 {
142 public:
143  explicit ColorChangeContext(
144  ::oox::core::ContextHandler2Helper const & rParent,
145  const ::oox::AttributeList& rAttribs,
146  BlipFillProperties& rBlipProps );
147  virtual ~ColorChangeContext() override;
148 
151  sal_Int32 nElement,
152  const ::oox::AttributeList& rAttribs ) override;
153 
154 private:
157 };
158 
162 {
163 public:
164  explicit BlipContext(
165  ::oox::core::ContextHandler2Helper const & rParent,
166  const ::oox::AttributeList& rAttribs,
167  BlipFillProperties& rBlipProps );
168 
171  sal_Int32 nElement,
172  const ::oox::AttributeList& rAttribs ) override;
173 
174 private:
176 };
177 
180 {
181 public:
182  explicit BlipFillContext(
183  ::oox::core::ContextHandler2Helper const & rParent,
184  const ::oox::AttributeList& rAttribs,
185  BlipFillProperties& rBlipProps );
186 
189  sal_Int32 nElement,
190  const ::oox::AttributeList& rAttribs ) override;
191 
192 private:
194 };
195 
199 {
200 public:
201  explicit FillPropertiesContext(
202  ::oox::core::ContextHandler2Helper const & rParent,
203  FillProperties& rFillProps );
204 
207  sal_Int32 nElement,
208  const ::oox::AttributeList& rAttribs ) override;
209 
212  ::oox::core::ContextHandler2Helper const & rParent,
213  sal_Int32 nElement,
214  const ::oox::AttributeList& rAttribs,
215  FillProperties& rFillProps );
216 
217 private:
219 };
220 
229 {
230 public:
232  ::oox::core::ContextHandler2Helper const & rParent,
233  Color& rColor );
234  virtual ~SimpleFillPropertiesContext() override;
235 
236 private:
238 };
239 
240 } // namespace oox::drawingml
241 
242 #endif
243 
244 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Context handler that imports the a:clrChange element containing the colors of a bitmap color change t...
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:blipFill element.
PatternFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, PatternFillProperties &rPatternProps)
Context handler that imports the a:extLst element inside a:blip and its children a:ext, which can contain transformations to the bitmap.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
BlipFillProperties & mrBlipProps
Context handler that imports the a:solidFill element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
ArtisticEffectProperties & maEffect
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
FillPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, FillProperties &rFillProps)
BlipFillProperties & mrBlipProps
virtual ~ColorChangeContext() override
ColorChangeContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps)
ArtisticEffectContext(::oox::core::ContextHandler2Helper const &rParent, ArtisticEffectProperties &rEffect)
Context handler that imports the a:gradFill element.
SolidFillContext(::oox::core::ContextHandler2Helper const &rParent, FillProperties &rFillProps)
DuotoneContext(::oox::core::ContextHandler2Helper const &rParent, BlipFillProperties &rBlipProps)
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, a:hslClr, a:sysClr, a:schemeClr, a:prstClr).
GradientFillProperties & mrGradientProps
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:duotone element containing the colors of a bitmap duotone transfor...
PatternFillProperties & mrPatternProps
virtual ~DuotoneContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
BlipFillProperties & mrBlipProps
Context handler for elements that contain a fill property element (a:noFill, a:solidFill, a:gradFill, a:pattFill, a:blipFill, a:grpFill).
::rtl::Reference< ContextHandler > ContextHandlerRef
Context handler for elements that contain a fill property element (a:noFill, a:solidFill, a:gradFill, a:pattFill, a:blipFill, a:grpFill).
SimpleFillPropertiesContext(::oox::core::ContextHandler2Helper const &rParent, Color &rColor)
::oox::core::ContextHandlerRef createFillContext(::oox::core::ContextHandler2Helper const &rParent, sal_Int32 nElement, const ::oox::AttributeList &rAttribs, FillProperties &rFillProps)
BlipFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps)
Context handler that imports a14:imgProps, a14:imgLayer, a14:imgEffect containers and the a14:artisti...
BlipExtensionContext(::oox::core::ContextHandler2Helper const &rParent, BlipFillProperties &rBlipProps)
Context handler that imports the a:blip element containing the fill bitmap and bitmap color transform...
BlipContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, BlipFillProperties &rBlipProps)
Helper class that provides a context stack.
GradientFillContext(::oox::core::ContextHandler2Helper const &rParent, const ::oox::AttributeList &rAttribs, GradientFillProperties &rGradientProps)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const ::oox::AttributeList &rAttribs) override
Context handler that imports the a:pattFill element.