lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / svx / deflt3d.hxx
blob8a482e37ab2c8cb9a7d14efa0272868d8d8639e6
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 <basegfx/point/b3dpoint.hxx>
24 #include <basegfx/vector/b3dvector.hxx>
25 #include <svx/svxdllapi.h>
27 /*************************************************************************
29 |* Class for managing the 3D default attributes
31 \************************************************************************/
33 class SAL_WARN_UNUSED SVX_DLLPUBLIC E3dDefaultAttributes
35 private:
36 // Cube object
37 basegfx::B3DPoint aDefaultCubePos;
38 basegfx::B3DVector aDefaultCubeSize;
39 bool bDefaultCubePosIsCenter;
41 // Sphere object
42 basegfx::B3DPoint aDefaultSphereCenter;
43 basegfx::B3DVector aDefaultSphereSize;
45 // Lathe object
46 bool bDefaultLatheSmoothed;
47 bool bDefaultLatheSmoothFrontBack;
48 bool bDefaultLatheCharacterMode;
49 bool bDefaultLatheCloseFront;
50 bool bDefaultLatheCloseBack;
52 // Extrude object
53 bool bDefaultExtrudeSmoothed;
54 bool bDefaultExtrudeSmoothFrontBack;
55 bool bDefaultExtrudeCharacterMode;
56 bool bDefaultExtrudeCloseFront;
57 bool bDefaultExtrudeCloseBack;
59 public:
60 // Constructor
61 E3dDefaultAttributes();
63 // Reset to defaults
64 void Reset();
66 // Cube object
67 const basegfx::B3DPoint& GetDefaultCubePos() const { return aDefaultCubePos; }
68 const basegfx::B3DVector& GetDefaultCubeSize() const { return aDefaultCubeSize; }
69 bool GetDefaultCubePosIsCenter() const { return bDefaultCubePosIsCenter; }
71 // Sphere object
72 const basegfx::B3DPoint& GetDefaultSphereCenter() const { return aDefaultSphereCenter; }
73 const basegfx::B3DVector& GetDefaultSphereSize() const { return aDefaultSphereSize; }
75 // Lathe object
76 bool GetDefaultLatheSmoothed() const { return bDefaultLatheSmoothed; }
77 bool GetDefaultLatheSmoothFrontBack() const { return bDefaultLatheSmoothFrontBack; }
78 bool GetDefaultLatheCharacterMode() const { return bDefaultLatheCharacterMode; }
79 void SetDefaultLatheCharacterMode(const bool bNew) { bDefaultLatheCharacterMode = bNew; }
80 bool GetDefaultLatheCloseFront() const { return bDefaultLatheCloseFront; }
81 bool GetDefaultLatheCloseBack() const { return bDefaultLatheCloseBack; }
83 // Extrude object
84 bool GetDefaultExtrudeSmoothed() const { return bDefaultExtrudeSmoothed; }
85 bool GetDefaultExtrudeSmoothFrontBack() const { return bDefaultExtrudeSmoothFrontBack; }
86 bool GetDefaultExtrudeCharacterMode() const { return bDefaultExtrudeCharacterMode; }
87 void SetDefaultExtrudeCharacterMode(const bool bNew) { bDefaultExtrudeCharacterMode = bNew; }
88 bool GetDefaultExtrudeCloseFront() const { return bDefaultExtrudeCloseFront; }
89 void SetDefaultExtrudeCloseFront(const bool bNew) { bDefaultExtrudeCloseFront = bNew; }
90 bool GetDefaultExtrudeCloseBack() const { return bDefaultExtrudeCloseBack; }
91 void SetDefaultExtrudeCloseBack(const bool bNew) { bDefaultExtrudeCloseBack = bNew; }
94 #endif // INCLUDED_SVX_DEFLT3D_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */