update dev300-m58
[ooovba.git] / svx / source / engine3d / deflt3d.cxx
blob920b98efe45058abd1c50edbe0369c282afcb532
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: deflt3d.cxx,v $
10 * $Revision: 1.11.18.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_svx.hxx"
34 #include <svx/deflt3d.hxx>
35 #include <svx/cube3d.hxx>
36 #include <svx/svxids.hrc>
37 #include <svx/colritem.hxx>
38 #include <svx/e3ditem.hxx>
40 /*************************************************************************
42 |* Klasse zum verwalten der 3D-Default Attribute
44 \************************************************************************/
46 // Konstruktor
47 E3dDefaultAttributes::E3dDefaultAttributes()
49 Reset();
52 void E3dDefaultAttributes::Reset()
54 // Compound-Objekt
55 bDefaultCreateNormals = TRUE;
56 bDefaultCreateTexture = TRUE;
58 // Cube-Objekt
59 aDefaultCubePos = basegfx::B3DPoint(-500.0, -500.0, -500.0);
60 aDefaultCubeSize = basegfx::B3DVector(1000.0, 1000.0, 1000.0);
61 nDefaultCubeSideFlags = CUBE_FULL;
62 bDefaultCubePosIsCenter = FALSE;
64 // Sphere-Objekt
65 aDefaultSphereCenter = basegfx::B3DPoint(0.0, 0.0, 0.0);
66 aDefaultSphereSize = basegfx::B3DPoint(1000.0, 1000.0, 1000.0);
68 // Lathe-Objekt
69 nDefaultLatheEndAngle = 3600;
70 bDefaultLatheSmoothed = TRUE;
71 bDefaultLatheSmoothFrontBack = FALSE;
72 bDefaultLatheCharacterMode = FALSE;
73 bDefaultLatheCloseFront = TRUE;
74 bDefaultLatheCloseBack = TRUE;
76 // Extrude-Objekt
77 bDefaultExtrudeSmoothed = TRUE;
78 bDefaultExtrudeSmoothFrontBack = FALSE;
79 bDefaultExtrudeCharacterMode = FALSE;
80 bDefaultExtrudeCloseFront = TRUE;
81 bDefaultExtrudeCloseBack = TRUE;
84 // eof