/src/libreoffice/include/svx/deflt3d.hxx
Line | Count | Source |
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_SVX_DEFLT3D_HXX |
21 | | #define INCLUDED_SVX_DEFLT3D_HXX |
22 | | |
23 | | #include <config_options.h> |
24 | | #include <basegfx/point/b3dpoint.hxx> |
25 | | #include <basegfx/vector/b3dvector.hxx> |
26 | | #include <svx/svxdllapi.h> |
27 | | |
28 | | /************************************************************************* |
29 | | |* |
30 | | |* Class for managing the 3D default attributes |
31 | | |* |
32 | | \************************************************************************/ |
33 | | |
34 | | class SAL_WARN_UNUSED UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) E3dDefaultAttributes |
35 | | { |
36 | | private: |
37 | | // Cube object |
38 | | basegfx::B3DPoint m_aDefaultCubePos; |
39 | | basegfx::B3DVector m_aDefaultCubeSize; |
40 | | bool m_bDefaultCubePosIsCenter; |
41 | | |
42 | | // Sphere object |
43 | | basegfx::B3DPoint m_aDefaultSphereCenter; |
44 | | basegfx::B3DVector m_aDefaultSphereSize; |
45 | | |
46 | | // Lathe object |
47 | | bool m_bDefaultLatheSmoothed; |
48 | | bool m_bDefaultLatheSmoothFrontBack; |
49 | | bool m_bDefaultLatheCharacterMode; |
50 | | bool m_bDefaultLatheCloseFront; |
51 | | bool m_bDefaultLatheCloseBack; |
52 | | |
53 | | // Extrude object |
54 | | bool m_bDefaultExtrudeSmoothed; |
55 | | bool m_bDefaultExtrudeSmoothFrontBack; |
56 | | bool m_bDefaultExtrudeCharacterMode; |
57 | | bool m_bDefaultExtrudeCloseFront; |
58 | | bool m_bDefaultExtrudeCloseBack; |
59 | | |
60 | | public: |
61 | | // Constructor |
62 | | E3dDefaultAttributes(); |
63 | | |
64 | | // Reset to defaults |
65 | | void Reset(); |
66 | | |
67 | | // Cube object |
68 | 0 | const basegfx::B3DPoint& GetDefaultCubePos() const { return m_aDefaultCubePos; } |
69 | 0 | const basegfx::B3DVector& GetDefaultCubeSize() const { return m_aDefaultCubeSize; } |
70 | 0 | bool GetDefaultCubePosIsCenter() const { return m_bDefaultCubePosIsCenter; } |
71 | | |
72 | | // Sphere object |
73 | 0 | const basegfx::B3DPoint& GetDefaultSphereCenter() const { return m_aDefaultSphereCenter; } |
74 | 0 | const basegfx::B3DVector& GetDefaultSphereSize() const { return m_aDefaultSphereSize; } |
75 | | |
76 | | // Lathe object |
77 | 0 | bool GetDefaultLatheSmoothed() const { return m_bDefaultLatheSmoothed; } |
78 | 0 | bool GetDefaultLatheSmoothFrontBack() const { return m_bDefaultLatheSmoothFrontBack; } |
79 | 0 | bool GetDefaultLatheCharacterMode() const { return m_bDefaultLatheCharacterMode; } |
80 | 3.44k | void SetDefaultLatheCharacterMode(const bool bNew) { m_bDefaultLatheCharacterMode = bNew; } |
81 | 0 | bool GetDefaultLatheCloseFront() const { return m_bDefaultLatheCloseFront; } |
82 | 0 | bool GetDefaultLatheCloseBack() const { return m_bDefaultLatheCloseBack; } |
83 | | |
84 | | // Extrude object |
85 | 13.2k | bool GetDefaultExtrudeSmoothed() const { return m_bDefaultExtrudeSmoothed; } |
86 | 13.2k | bool GetDefaultExtrudeSmoothFrontBack() const { return m_bDefaultExtrudeSmoothFrontBack; } |
87 | 13.2k | bool GetDefaultExtrudeCharacterMode() const { return m_bDefaultExtrudeCharacterMode; } |
88 | 3.44k | void SetDefaultExtrudeCharacterMode(const bool bNew) { m_bDefaultExtrudeCharacterMode = bNew; } |
89 | 13.2k | bool GetDefaultExtrudeCloseFront() const { return m_bDefaultExtrudeCloseFront; } |
90 | 0 | void SetDefaultExtrudeCloseFront(const bool bNew) { m_bDefaultExtrudeCloseFront = bNew; } |
91 | 13.2k | bool GetDefaultExtrudeCloseBack() const { return m_bDefaultExtrudeCloseBack; } |
92 | 0 | void SetDefaultExtrudeCloseBack(const bool bNew) { m_bDefaultExtrudeCloseBack = bNew; } |
93 | | }; |
94 | | |
95 | | #endif // INCLUDED_SVX_DEFLT3D_HXX |
96 | | |
97 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |