1 /************************************************************************* 2 * 3 * OpenOffice.org - a multi-platform office productivity suite 4 * 5 * $RCSfile: sdrattribute3d.hxx,v $ 6 * 7 * $Revision: 1.4 $ 8 * 9 * last change: $Author: aw $ $Date: 2008-05-27 14:11:16 $ 10 * 11 * The Contents of this file are made available subject to 12 * the terms of GNU Lesser General Public License Version 2.1. 13 * 14 * 15 * GNU Lesser General Public License Version 2.1 16 * ============================================= 17 * Copyright 2005 by Sun Microsystems, Inc. 18 * 901 San Antonio Road, Palo Alto, CA 94303, USA 19 * 20 * This library is free software; you can redistribute it and/or 21 * modify it under the terms of the GNU Lesser General Public 22 * License version 2.1, as published by the Free Software Foundation. 23 * 24 * This library is distributed in the hope that it will be useful, 25 * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 27 * Lesser General Public License for more details. 28 * 29 * You should have received a copy of the GNU Lesser General Public 30 * License along with this library; if not, write to the Free Software 31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 32 * MA 02111-1307 USA 33 * 34 ************************************************************************/ 35 36 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX 37 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX 38 39 #include <sal/types.h> 40 41 ////////////////////////////////////////////////////////////////////////////// 42 // predefines 43 44 namespace basegfx { 45 class BColor; 46 class B3DVector; 47 } 48 49 namespace drawinglayer { namespace attribute { 50 class ImpSdr3DLightAttribute; 51 }} 52 53 ////////////////////////////////////////////////////////////////////////////// 54 55 namespace drawinglayer 56 { 57 namespace attribute 58 { 59 class Sdr3DLightAttribute 60 { 61 private: 62 ImpSdr3DLightAttribute* mpSdr3DLightAttribute; 63 64 public: 65 // constructors/destructor 66 Sdr3DLightAttribute( 67 const basegfx::BColor& rColor, 68 const basegfx::B3DVector& rDirection, 69 bool bSpecular); 70 Sdr3DLightAttribute(const basegfx::BColor& rColor); 71 Sdr3DLightAttribute(); 72 Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate); 73 ~Sdr3DLightAttribute(); 74 75 // assignment operator 76 Sdr3DLightAttribute& operator=(const Sdr3DLightAttribute& rCandidate); 77 78 // checks if the incarnation is default constructed 79 bool isDefault() const; 80 81 // compare operator 82 bool operator==(const Sdr3DLightAttribute& rCandidate) const; 83 84 // data read access 85 const basegfx::BColor& getColor() const; 86 const basegfx::B3DVector& getDirection() const; 87 bool getSpecular() const; 88 }; 89 } // end of namespace attribute 90 } // end of namespace drawinglayer 91 92 ////////////////////////////////////////////////////////////////////////////// 93 94 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLIGHTATTRIBUTE3D_HXX 95 96 // eof 97