xref: /trunk/main/svx/inc/svx/svdoattr.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SVDOATTR_HXX
29 #define _SVDOATTR_HXX
30 
31 #include <svx/xfillit0.hxx>
32 #include <svx/xflasit.hxx>
33 #include <svx/xlineit0.hxx>
34 #include <svx/xlnasit.hxx>
35 #include <svx/svdobj.hxx>
36 #include <svx/svdattr.hxx>
37 #include "svx/svxdllapi.h"
38 
39 //************************************************************
40 //   Vorausdeklarationen
41 //************************************************************
42 
43 class SfxPoolItem;
44 class SfxSetItem;
45 class SdrOutliner;
46 class SfxItemSet;
47 class SfxItemPool;
48 
49 //************************************************************
50 //   SdrAttrObj
51 //************************************************************
52 
53 class SVX_DLLPUBLIC SdrAttrObj : public SdrObject
54 {
55 private:
56 	friend class				SdrOutliner;
57 
58 protected:
59 	virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties();
60 
61     Rectangle					maSnapRect;
62 
63 protected:
64 	// Strichstaerke ermitteln. Keine Linie -> 0.
65 	sal_Int32 ImpGetLineWdt() const;
66 
67 	// Zuhoeren, ob sich ein StyleSheet aendert
68 	virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint);
69 
70 	SdrAttrObj();
71 	virtual ~SdrAttrObj();
72 
73 public:
74 	TYPEINFO();
75 
76 	// Feststellen, ob bFilledObj && Fuellung!=FillNone
77 	sal_Bool HasFill() const;
78 
79 	// Feststellen, ob Linie!=LineNone
80 	sal_Bool HasLine() const;
81 
82 	virtual const Rectangle& GetSnapRect() const;
83 
84 	virtual void SetModel(SdrModel* pNewModel);
85 };
86 
87 ////////////////////////////////////////////////////////////////////////////////////////////////////
88 
89 #endif //_SVDOATTR_HXX
90 
91