1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
38 basegfx::B3DPoint m_aDefaultCubePos
;
39 basegfx::B3DVector m_aDefaultCubeSize
;
40 bool m_bDefaultCubePosIsCenter
;
43 basegfx::B3DPoint m_aDefaultSphereCenter
;
44 basegfx::B3DVector m_aDefaultSphereSize
;
47 bool m_bDefaultLatheSmoothed
;
48 bool m_bDefaultLatheSmoothFrontBack
;
49 bool m_bDefaultLatheCharacterMode
;
50 bool m_bDefaultLatheCloseFront
;
51 bool m_bDefaultLatheCloseBack
;
54 bool m_bDefaultExtrudeSmoothed
;
55 bool m_bDefaultExtrudeSmoothFrontBack
;
56 bool m_bDefaultExtrudeCharacterMode
;
57 bool m_bDefaultExtrudeCloseFront
;
58 bool m_bDefaultExtrudeCloseBack
;
62 E3dDefaultAttributes();
68 const basegfx::B3DPoint
& GetDefaultCubePos() const { return m_aDefaultCubePos
; }
69 const basegfx::B3DVector
& GetDefaultCubeSize() const { return m_aDefaultCubeSize
; }
70 bool GetDefaultCubePosIsCenter() const { return m_bDefaultCubePosIsCenter
; }
73 const basegfx::B3DPoint
& GetDefaultSphereCenter() const { return m_aDefaultSphereCenter
; }
74 const basegfx::B3DVector
& GetDefaultSphereSize() const { return m_aDefaultSphereSize
; }
77 bool GetDefaultLatheSmoothed() const { return m_bDefaultLatheSmoothed
; }
78 bool GetDefaultLatheSmoothFrontBack() const { return m_bDefaultLatheSmoothFrontBack
; }
79 bool GetDefaultLatheCharacterMode() const { return m_bDefaultLatheCharacterMode
; }
80 void SetDefaultLatheCharacterMode(const bool bNew
) { m_bDefaultLatheCharacterMode
= bNew
; }
81 bool GetDefaultLatheCloseFront() const { return m_bDefaultLatheCloseFront
; }
82 bool GetDefaultLatheCloseBack() const { return m_bDefaultLatheCloseBack
; }
85 bool GetDefaultExtrudeSmoothed() const { return m_bDefaultExtrudeSmoothed
; }
86 bool GetDefaultExtrudeSmoothFrontBack() const { return m_bDefaultExtrudeSmoothFrontBack
; }
87 bool GetDefaultExtrudeCharacterMode() const { return m_bDefaultExtrudeCharacterMode
; }
88 void SetDefaultExtrudeCharacterMode(const bool bNew
) { m_bDefaultExtrudeCharacterMode
= bNew
; }
89 bool GetDefaultExtrudeCloseFront() const { return m_bDefaultExtrudeCloseFront
; }
90 void SetDefaultExtrudeCloseFront(const bool bNew
) { m_bDefaultExtrudeCloseFront
= bNew
; }
91 bool GetDefaultExtrudeCloseBack() const { return m_bDefaultExtrudeCloseBack
; }
92 void SetDefaultExtrudeCloseBack(const bool bNew
) { m_bDefaultExtrudeCloseBack
= bNew
; }
95 #endif // INCLUDED_SVX_DEFLT3D_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */