xref: /aoo4110/main/svx/inc/svx/svdoattr.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SVDOATTR_HXX
25 #define _SVDOATTR_HXX
26 
27 #include <svx/xfillit0.hxx>
28 #include <svx/xflasit.hxx>
29 #include <svx/xlineit0.hxx>
30 #include <svx/xlnasit.hxx>
31 #include <svx/svdobj.hxx>
32 #include <svx/svdattr.hxx>
33 #include "svx/svxdllapi.h"
34 
35 //************************************************************
36 //   Vorausdeklarationen
37 //************************************************************
38 
39 class SfxPoolItem;
40 class SfxSetItem;
41 class SdrOutliner;
42 class SfxItemSet;
43 class SfxItemPool;
44 
45 //************************************************************
46 //   SdrAttrObj
47 //************************************************************
48 
49 class SVX_DLLPUBLIC SdrAttrObj : public SdrObject
50 {
51 private:
52 	friend class				SdrOutliner;
53 
54 protected:
55 	virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties();
56 
57     Rectangle					maSnapRect;
58 
59 protected:
60 	// Strichstaerke ermitteln. Keine Linie -> 0.
61 	sal_Int32 ImpGetLineWdt() const;
62 
63 	// Zuhoeren, ob sich ein StyleSheet aendert
64 	virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint);
65 
66 	SdrAttrObj();
67 	virtual ~SdrAttrObj();
68 
69 public:
70 	TYPEINFO();
71 
72 	// Feststellen, ob bFilledObj && Fuellung!=FillNone
73 	sal_Bool HasFill() const;
74 
75 	// Feststellen, ob Linie!=LineNone
76 	sal_Bool HasLine() const;
77 
78 	virtual const Rectangle& GetSnapRect() const;
79 
80 	virtual void SetModel(SdrModel* pNewModel);
81 };
82 
83 ////////////////////////////////////////////////////////////////////////////////////////////////////
84 
85 #endif //_SVDOATTR_HXX
86 
87