Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / oox / inc / drawingml / shape3dproperties.hxx
blob80bc01271eceaafd7b86f0aec026b18cf4e3d59b
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 std::optional< sal_Int32 > mnLatitude;
36 std::optional< sal_Int32 > mnLongitude;
37 std::optional< sal_Int32 > mnRevolution;
40 struct BevelProperties
42 std::optional< sal_Int32 > mnPreset;
43 std::optional< sal_Int32 > mnWidth;
44 std::optional< sal_Int32 > mnHeight;
47 struct Generic3DProperties
49 std::optional< sal_Int32 > mnPreset;
50 std::optional< float > mfFieldOfVision;
51 std::optional< float > mfZoom;
52 std::optional< sal_Int32 > mnLightRigDirection;
53 std::optional< sal_Int32 > mnLightRigType;
54 RotationProperties maCameraRotation;
55 RotationProperties maLightRigRotation;
57 std::optional< sal_Int32 > mnExtrusionH;
58 std::optional< sal_Int32 > mnContourW;
59 std::optional< sal_Int32 > mnShapeZ;
60 std::optional< sal_Int32 > mnMaterial;
61 Color maExtrusionColor;
62 Color maContourColor;
64 std::optional< BevelProperties > maTopBevelProperties;
65 std::optional< 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: */