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