bump product version to 7.2.5.1
[LibreOffice.git] / oox / inc / drawingml / shape3dproperties.hxx
blobc43e643aae5cbadfa3492ca16a5510e502594d90
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 <oox/drawingml/color.hxx>
24 #include <oox/helper/helper.hxx>
26 namespace oox { class PropertyMap; }
27 namespace oox { class PropertySet; }
28 namespace oox::core { class ModelObjectContainer; }
30 namespace oox::drawingml {
33 struct RotationProperties
35 OptValue< sal_Int32 > mnLatitude;
36 OptValue< sal_Int32 > mnLongitude;
37 OptValue< sal_Int32 > mnRevolution;
40 struct BevelProperties
42 OptValue< sal_Int32 > mnPreset;
43 OptValue< sal_Int32 > mnWidth;
44 OptValue< sal_Int32 > mnHeight;
47 struct Generic3DProperties
49 OptValue< sal_Int32 > mnPreset;
50 OptValue< float > mfFieldOfVision;
51 OptValue< float > mfZoom;
52 OptValue< sal_Int32 > mnLightRigDirection;
53 OptValue< sal_Int32 > mnLightRigType;
54 RotationProperties maCameraRotation;
55 RotationProperties maLightRigRotation;
57 OptValue< sal_Int32 > mnExtrusionH;
58 OptValue< sal_Int32 > mnContourW;
59 OptValue< sal_Int32 > mnShapeZ;
60 OptValue< sal_Int32 > mnMaterial;
61 Color maExtrusionColor;
62 Color maContourColor;
64 OptValue< BevelProperties > maTopBevelProperties;
65 OptValue< BevelProperties > maBottomBevelProperties;
67 static OUString getCameraPrstName( sal_Int32 nElement );
68 static OUString getLightRigName( sal_Int32 nElement );
69 static OUString getLightRigDirName( sal_Int32 nElement );
70 static OUString getBevelPresetTypeString( sal_Int32 nType );
71 static OUString getPresetMaterialTypeString( sal_Int32 nType );
73 css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes();
74 css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes();
75 css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes(
76 const GraphicHelper& rGraphicHelper, ::Color rPhClr );
77 static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps );
78 static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes(
79 const Color& rColor, const GraphicHelper& rGraphicHelper, ::Color rPhClr );
82 struct Shape3DProperties : Generic3DProperties
83 {};
85 struct Text3DProperties : Generic3DProperties
86 {};
88 } // namespace oox::drawingml
90 #endif
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */