fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / inc / drawingml / shape3dproperties.hxx
blobd3e491b29eba5039f8724481aba30e2d2605581f
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_OOX_DRAWINGML_SHAPE3DPROPERTIES_HXX
21 #define INCLUDED_OOX_DRAWINGML_SHAPE3DPROPERTIES_HXX
23 #include <map>
24 #include <com/sun/star/graphic/XGraphic.hpp>
25 #include <com/sun/star/geometry/IntegerRectangle2D.hpp>
26 #include <oox/core/xmlfilterbase.hxx>
27 #include <oox/drawingml/color.hxx>
28 #include <oox/helper/helper.hxx>
30 namespace oox { class PropertyMap; }
31 namespace oox { class PropertySet; }
32 namespace oox { namespace core { class ModelObjectContainer; } }
34 namespace oox {
35 namespace drawingml {
39 struct RotationProperties
41 OptValue< sal_Int32 > mnLatitude;
42 OptValue< sal_Int32 > mnLongitude;
43 OptValue< sal_Int32 > mnRevolution;
46 struct BevelProperties
48 OptValue< sal_Int32 > mnPreset;
49 OptValue< sal_Int32 > mnWidth;
50 OptValue< sal_Int32 > mnHeight;
53 struct Shape3DProperties
55 OptValue< sal_Int32 > mnPreset;
56 OptValue< float > mfFieldOfVision;
57 OptValue< float > mfZoom;
58 OptValue< sal_Int32 > mnLightRigDirection;
59 OptValue< sal_Int32 > mnLightRigType;
60 RotationProperties maCameraRotation;
61 RotationProperties maLightRigRotation;
63 OptValue< sal_Int32 > mnExtrusionH;
64 OptValue< sal_Int32 > mnContourW;
65 OptValue< sal_Int32 > mnShapeZ;
66 OptValue< sal_Int32 > mnMaterial;
67 Color maExtrusionColor;
68 Color maContourColor;
70 OptValue< BevelProperties > maTopBevelProperties;
71 OptValue< BevelProperties > maBottomBevelProperties;
73 /** Overwrites all members that are explicitly set in rSourceProps. */
74 void assignUsed( const Shape3DProperties& rSourceProps );
76 static OUString getCameraPrstName( sal_Int32 nElement );
77 static OUString getLightRigName( sal_Int32 nElement );
78 static OUString getLightRigDirName( sal_Int32 nElement );
79 static OUString getBevelPresetTypeString( sal_Int32 nType );
80 static OUString getPresetMaterialTypeString( sal_Int32 nType );
82 css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes();
83 css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes();
84 css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes(
85 const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr = API_RGB_TRANSPARENT );
86 static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps );
87 static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes(
88 const Color& rColor, const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr );
93 } // namespace drawingml
94 } // namespace oox
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */