LibreOffice Module oox (master) 1
shape3dproperties.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_OOX_DRAWINGML_SHAPE3DPROPERTIES_HXX
21#define INCLUDED_OOX_DRAWINGML_SHAPE3DPROPERTIES_HXX
22
24#include <oox/helper/helper.hxx>
25
26namespace oox { class PropertyMap; }
27namespace oox { class PropertySet; }
28namespace oox::core { class ModelObjectContainer; }
29
30namespace oox::drawingml {
31
32
34{
35 std::optional< sal_Int32 > mnLatitude;
36 std::optional< sal_Int32 > mnLongitude;
37 std::optional< sal_Int32 > mnRevolution;
38};
39
41{
42 std::optional< sal_Int32 > mnPreset;
43 std::optional< sal_Int32 > mnWidth;
44 std::optional< sal_Int32 > mnHeight;
45};
46
48{
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;
56
57 std::optional< sal_Int32 > mnExtrusionH;
58 std::optional< sal_Int32 > mnContourW;
59 std::optional< sal_Int32 > mnShapeZ;
60 std::optional< sal_Int32 > mnMaterial;
63
64 std::optional< BevelProperties > maTopBevelProperties;
65 std::optional< BevelProperties > maBottomBevelProperties;
66
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 );
72
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 );
80};
81
83{};
84
86{};
87
88} // namespace oox::drawingml
89
90#endif
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
std::map< sal_Int32, STLPropertyMapEntry > PropertyMap
std::optional< sal_Int32 > mnHeight
std::optional< sal_Int32 > mnPreset
std::optional< sal_Int32 > mnWidth
css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes()
std::optional< BevelProperties > maBottomBevelProperties
std::optional< sal_Int32 > mnLightRigDirection
std::optional< sal_Int32 > mnPreset
std::optional< sal_Int32 > mnMaterial
std::optional< sal_Int32 > mnLightRigType
static OUString getCameraPrstName(sal_Int32 nElement)
static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes(BevelProperties rProps)
static OUString getLightRigDirName(sal_Int32 nElement)
css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes(const GraphicHelper &rGraphicHelper, ::Color rPhClr)
static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes(const Color &rColor, const GraphicHelper &rGraphicHelper, ::Color rPhClr)
std::optional< sal_Int32 > mnContourW
static OUString getPresetMaterialTypeString(sal_Int32 nType)
std::optional< BevelProperties > maTopBevelProperties
std::optional< sal_Int32 > mnShapeZ
css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes()
static OUString getLightRigName(sal_Int32 nElement)
static OUString getBevelPresetTypeString(sal_Int32 nType)
std::optional< sal_Int32 > mnExtrusionH
std::optional< sal_Int32 > mnLongitude
std::optional< sal_Int32 > mnLatitude
std::optional< sal_Int32 > mnRevolution