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 aDefaultCubePos
;
39 basegfx::B3DVector aDefaultCubeSize
;
40 bool bDefaultCubePosIsCenter
;
43 basegfx::B3DPoint aDefaultSphereCenter
;
44 basegfx::B3DVector aDefaultSphereSize
;
47 bool bDefaultLatheSmoothed
;
48 bool bDefaultLatheSmoothFrontBack
;
49 bool bDefaultLatheCharacterMode
;
50 bool bDefaultLatheCloseFront
;
51 bool bDefaultLatheCloseBack
;
54 bool bDefaultExtrudeSmoothed
;
55 bool bDefaultExtrudeSmoothFrontBack
;
56 bool bDefaultExtrudeCharacterMode
;
57 bool bDefaultExtrudeCloseFront
;
58 bool bDefaultExtrudeCloseBack
;
62 E3dDefaultAttributes();
68 const basegfx::B3DPoint
& GetDefaultCubePos() const { return aDefaultCubePos
; }
69 const basegfx::B3DVector
& GetDefaultCubeSize() const { return aDefaultCubeSize
; }
70 bool GetDefaultCubePosIsCenter() const { return bDefaultCubePosIsCenter
; }
73 const basegfx::B3DPoint
& GetDefaultSphereCenter() const { return aDefaultSphereCenter
; }
74 const basegfx::B3DVector
& GetDefaultSphereSize() const { return aDefaultSphereSize
; }
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
; }
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: */