crashtesting: fix crash seen on loading forum-mso-de-98993.xlsx
[LibreOffice.git] / include / svx / deflt3d.hxx
blobf3312afd5fd859ced413215be1cc40d10e747a3c
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_SVX_DEFLT3D_HXX
21 #define INCLUDED_SVX_DEFLT3D_HXX
23 #include <config_options.h>
24 #include <basegfx/point/b3dpoint.hxx>
25 #include <basegfx/vector/b3dvector.hxx>
26 #include <svx/svxdllapi.h>
28 /*************************************************************************
30 |* Class for managing the 3D default attributes
32 \************************************************************************/
34 class SAL_WARN_UNUSED UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) E3dDefaultAttributes
36 private:
37 // Cube object
38 basegfx::B3DPoint aDefaultCubePos;
39 basegfx::B3DVector aDefaultCubeSize;
40 bool bDefaultCubePosIsCenter;
42 // Sphere object
43 basegfx::B3DPoint aDefaultSphereCenter;
44 basegfx::B3DVector aDefaultSphereSize;
46 // Lathe object
47 bool bDefaultLatheSmoothed;
48 bool bDefaultLatheSmoothFrontBack;
49 bool bDefaultLatheCharacterMode;
50 bool bDefaultLatheCloseFront;
51 bool bDefaultLatheCloseBack;
53 // Extrude object
54 bool bDefaultExtrudeSmoothed;
55 bool bDefaultExtrudeSmoothFrontBack;
56 bool bDefaultExtrudeCharacterMode;
57 bool bDefaultExtrudeCloseFront;
58 bool bDefaultExtrudeCloseBack;
60 public:
61 // Constructor
62 E3dDefaultAttributes();
64 // Reset to defaults
65 void Reset();
67 // Cube object
68 const basegfx::B3DPoint& GetDefaultCubePos() const { return aDefaultCubePos; }
69 const basegfx::B3DVector& GetDefaultCubeSize() const { return aDefaultCubeSize; }
70 bool GetDefaultCubePosIsCenter() const { return bDefaultCubePosIsCenter; }
72 // Sphere object
73 const basegfx::B3DPoint& GetDefaultSphereCenter() const { return aDefaultSphereCenter; }
74 const basegfx::B3DVector& GetDefaultSphereSize() const { return aDefaultSphereSize; }
76 // Lathe object
77 bool GetDefaultLatheSmoothed() const { return bDefaultLatheSmoothed; }
78 bool GetDefaultLatheSmoothFrontBack() const { return bDefaultLatheSmoothFrontBack; }
79 bool GetDefaultLatheCharacterMode() const { return bDefaultLatheCharacterMode; }
80 void SetDefaultLatheCharacterMode(const bool bNew) { bDefaultLatheCharacterMode = bNew; }
81 bool GetDefaultLatheCloseFront() const { return bDefaultLatheCloseFront; }
82 bool GetDefaultLatheCloseBack() const { return bDefaultLatheCloseBack; }
84 // Extrude object
85 bool GetDefaultExtrudeSmoothed() const { return bDefaultExtrudeSmoothed; }
86 bool GetDefaultExtrudeSmoothFrontBack() const { return bDefaultExtrudeSmoothFrontBack; }
87 bool GetDefaultExtrudeCharacterMode() const { return bDefaultExtrudeCharacterMode; }
88 void SetDefaultExtrudeCharacterMode(const bool bNew) { bDefaultExtrudeCharacterMode = bNew; }
89 bool GetDefaultExtrudeCloseFront() const { return bDefaultExtrudeCloseFront; }
90 void SetDefaultExtrudeCloseFront(const bool bNew) { bDefaultExtrudeCloseFront = bNew; }
91 bool GetDefaultExtrudeCloseBack() const { return bDefaultExtrudeCloseBack; }
92 void SetDefaultExtrudeCloseBack(const bool bNew) { bDefaultExtrudeCloseBack = bNew; }
95 #endif // INCLUDED_SVX_DEFLT3D_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */