Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / oox / source / drawingml / effectproperties.hxx
blob146214cc919193b4f243a31ac22639fbee8081a5
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 <oox/drawingml/color.hxx>
14 #include <oox/helper/propertymap.hxx>
16 #include <memory>
17 #include <vector>
18 #include <map>
20 namespace oox {
21 namespace drawingml {
23 struct EffectShadowProperties
25 OptValue< sal_Int64 > moShadowDist;
26 OptValue< sal_Int64 > moShadowDir;
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 std::vector<std::unique_ptr<Effect>> m_Effects;
49 EffectProperties() {}
50 EffectProperties(EffectProperties const& rOther)
52 assignUsed(rOther);
55 /** Overwrites all members that are explicitly set in rSourceProps. */
56 void assignUsed( const EffectProperties& rSourceProps );
58 /** Writes the properties to the passed property map. */
59 void pushToPropMap(
60 PropertyMap& rPropMap,
61 const GraphicHelper& rGraphicHelper ) const;
64 } // namespace drawingml
65 } // namespace oox
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */