LibreOffice Module svx (master) 1
deflt3d.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_SVX_DEFLT3D_HXX
21#define INCLUDED_SVX_DEFLT3D_HXX
22
23#include <config_options.h>
26#include <svx/svxdllapi.h>
27
28/*************************************************************************
29|*
30|* Class for managing the 3D default attributes
31|*
32\************************************************************************/
33
35{
36private:
37 // Cube object
38 basegfx::B3DPoint aDefaultCubePos;
39 basegfx::B3DVector aDefaultCubeSize;
40 bool bDefaultCubePosIsCenter;
41
42 // Sphere object
43 basegfx::B3DPoint aDefaultSphereCenter;
44 basegfx::B3DVector aDefaultSphereSize;
45
46 // Lathe object
47 bool bDefaultLatheSmoothed;
48 bool bDefaultLatheSmoothFrontBack;
49 bool bDefaultLatheCharacterMode;
50 bool bDefaultLatheCloseFront;
51 bool bDefaultLatheCloseBack;
52
53 // Extrude object
54 bool bDefaultExtrudeSmoothed;
55 bool bDefaultExtrudeSmoothFrontBack;
56 bool bDefaultExtrudeCharacterMode;
57 bool bDefaultExtrudeCloseFront;
58 bool bDefaultExtrudeCloseBack;
59
60public:
61 // Constructor
62 E3dDefaultAttributes();
63
64 // Reset to defaults
65 void Reset();
66
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; }
71
72 // Sphere object
73 const basegfx::B3DPoint& GetDefaultSphereCenter() const { return aDefaultSphereCenter; }
74 const basegfx::B3DVector& GetDefaultSphereSize() const { return aDefaultSphereSize; }
75
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; }
83
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; }
93};
94
95#endif // INCLUDED_SVX_DEFLT3D_HXX
96
97/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
class SAL_WARN_UNUSED UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) E3dDefaultAttributes
Definition: deflt3d.hxx:34
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
#define SAL_WARN_UNUSED