Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / oox / inc / drawingml / shape3dproperties.hxx
blobe44d0468eecacff77ba64907ba6a14013727e9a6
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 {
38 struct RotationProperties
40 OptValue< sal_Int32 > mnLatitude;
41 OptValue< sal_Int32 > mnLongitude;
42 OptValue< sal_Int32 > mnRevolution;
45 struct BevelProperties
47 OptValue< sal_Int32 > mnPreset;
48 OptValue< sal_Int32 > mnWidth;
49 OptValue< sal_Int32 > mnHeight;
52 struct Shape3DProperties
54 OptValue< sal_Int32 > mnPreset;
55 OptValue< float > mfFieldOfVision;
56 OptValue< float > mfZoom;
57 OptValue< sal_Int32 > mnLightRigDirection;
58 OptValue< sal_Int32 > mnLightRigType;
59 RotationProperties maCameraRotation;
60 RotationProperties maLightRigRotation;
62 OptValue< sal_Int32 > mnExtrusionH;
63 OptValue< sal_Int32 > mnContourW;
64 OptValue< sal_Int32 > mnShapeZ;
65 OptValue< sal_Int32 > mnMaterial;
66 Color maExtrusionColor;
67 Color maContourColor;
69 OptValue< BevelProperties > maTopBevelProperties;
70 OptValue< BevelProperties > maBottomBevelProperties;
72 static OUString getCameraPrstName( sal_Int32 nElement );
73 static OUString getLightRigName( sal_Int32 nElement );
74 static OUString getLightRigDirName( sal_Int32 nElement );
75 static OUString getBevelPresetTypeString( sal_Int32 nType );
76 static OUString getPresetMaterialTypeString( sal_Int32 nType );
78 css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes();
79 css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes();
80 css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes(
81 const GraphicHelper& rGraphicHelper, ::Color rPhClr );
82 static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps );
83 static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes(
84 const Color& rColor, const GraphicHelper& rGraphicHelper, ::Color rPhClr );
88 } // namespace drawingml
89 } // namespace oox
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */