fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / source / drawingml / effectproperties.hxx
blob4256b8d776d338724d7461837bc0ed7ad0548f39
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_OOX_DRAWINGML_EFFECTPROPERTIES_HXX
11 #define INCLUDED_OOX_DRAWINGML_EFFECTPROPERTIES_HXX
13 #include <map>
14 #include <oox/drawingml/color.hxx>
15 #include <oox/helper/propertymap.hxx>
17 #include <boost/ptr_container/ptr_vector.hpp>
19 namespace oox {
20 namespace drawingml {
22 struct EffectShadowProperties
24 OptValue< sal_Int64 > moShadowDist;
25 OptValue< sal_Int64 > moShadowDir;
26 OptValue< sal_Int64 > moShadowAlpha;
27 Color moShadowColor;
29 /** Overwrites all members that are explicitly set in rSourceProps. */
30 void assignUsed( const EffectShadowProperties& rSourceProps );
33 struct Effect
35 OUString msName;
36 std::map< OUString, css::uno::Any > maAttribs;
37 Color moColor;
39 css::beans::PropertyValue getEffect();
42 struct EffectProperties
44 EffectShadowProperties maShadow;
46 /** Stores all effect properties, including those not supported by core yet */
47 boost::ptr_vector< Effect > maEffects;
49 /** Overwrites all members that are explicitly set in rSourceProps. */
50 void assignUsed( const EffectProperties& rSourceProps );
52 /** Writes the properties to the passed property map. */
53 void pushToPropMap(
54 PropertyMap& rPropMap,
55 const GraphicHelper& rGraphicHelper ) const;
58 } // namespace drawingml
59 } // namespace oox
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */