1 /************************************************************************* 2 * 3 * OpenOffice.org - a multi-platform office productivity suite 4 * 5 * $RCSfile: fillattribute.hxx,v $ 6 * 7 * $Revision: 1.3 $ 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_FILLHATCHATTRIBUTE_HXX 37 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLHATCHATTRIBUTE_HXX 38 39 #include <drawinglayer/drawinglayerdllapi.h> 40 ////////////////////////////////////////////////////////////////////////////// 41 // predefines 42 43 namespace basegfx { 44 class BColor; 45 } 46 47 namespace drawinglayer { namespace attribute { 48 class ImpFillHatchAttribute; 49 }} 50 51 ////////////////////////////////////////////////////////////////////////////// 52 // declarations 53 54 namespace drawinglayer 55 { 56 namespace attribute 57 { 58 enum HatchStyle 59 { 60 HATCHSTYLE_SINGLE, 61 HATCHSTYLE_DOUBLE, 62 HATCHSTYLE_TRIPLE 63 }; 64 } // end of namespace attribute 65 } // end of namespace drawinglayer 66 67 ////////////////////////////////////////////////////////////////////////////// 68 69 namespace drawinglayer 70 { 71 namespace attribute 72 { 73 class DRAWINGLAYER_DLLPUBLIC FillHatchAttribute 74 { 75 private: 76 ImpFillHatchAttribute* mpFillHatchAttribute; 77 78 public: 79 /// constructors/assignmentoperator/destructor 80 FillHatchAttribute( 81 HatchStyle eStyle, 82 double fDistance, 83 double fAngle, 84 const basegfx::BColor& rColor, 85 bool bFillBackground); 86 FillHatchAttribute(); 87 FillHatchAttribute(const FillHatchAttribute& rCandidate); 88 FillHatchAttribute& operator=(const FillHatchAttribute& rCandidate); 89 ~FillHatchAttribute(); 90 91 // checks if the incarnation is default constructed 92 bool isDefault() const; 93 94 // compare operator 95 bool operator==(const FillHatchAttribute& rCandidate) const; 96 97 // data read access 98 HatchStyle getStyle() const; 99 double getDistance() const; 100 double getAngle() const; 101 const basegfx::BColor& getColor() const; 102 bool isFillBackground() const; 103 }; 104 } // end of namespace attribute 105 } // end of namespace drawinglayer 106 107 ////////////////////////////////////////////////////////////////////////////// 108 109 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLHATCHATTRIBUTE_HXX 110 111 // eof 112