xref: /aoo42x/main/sw/inc/frmfmt.hxx (revision 64b14621)
11d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
101d2dbeb0SAndrew Rist  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
121d2dbeb0SAndrew Rist  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
191d2dbeb0SAndrew Rist  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
221d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _FRMFMT_HXX
24cdf0e10cSrcweir #define _FRMFMT_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <com/sun/star/text/PositionLayoutDir.hpp>
27cdf0e10cSrcweir #include <cppuhelper/weakref.hxx>
28cdf0e10cSrcweir #include <tools/gen.hxx>
29cdf0e10cSrcweir #include <format.hxx>
30cdf0e10cSrcweir #include "swdllapi.h"
31cdf0e10cSrcweir 
32*64b14621SArmin Le Grand //UUUU
33*64b14621SArmin Le Grand #include <drawinglayer/attribute/fillgradientattribute.hxx>
34*64b14621SArmin Le Grand #include <drawinglayer/attribute/sdrfillattribute.hxx>
35*64b14621SArmin Le Grand #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
36*64b14621SArmin Le Grand #include <boost/shared_ptr.hpp>
37*64b14621SArmin Le Grand 
38cdf0e10cSrcweir class SwFlyFrm;
39cdf0e10cSrcweir class SwAnchoredObject;
40cdf0e10cSrcweir class Graphic;
41cdf0e10cSrcweir class Point;
42cdf0e10cSrcweir class ImageMap;
43cdf0e10cSrcweir class IMapObject;
44cdf0e10cSrcweir class SwRect;
45cdf0e10cSrcweir class SwContact;
46cdf0e10cSrcweir class SdrObject;
47cdf0e10cSrcweir 
48*64b14621SArmin Le Grand //UUUU
49*64b14621SArmin Le Grand class FillAttributes
50*64b14621SArmin Le Grand {
51*64b14621SArmin Le Grand private:
52*64b14621SArmin Le Grand     basegfx::B2DRange                                                   maLastPaintRange;
53*64b14621SArmin Le Grand     basegfx::B2DRange                                                   maLastDefineRange;
54*64b14621SArmin Le Grand     boost::shared_ptr< drawinglayer::attribute::SdrFillAttribute >      maFillAttribute;
55*64b14621SArmin Le Grand     boost::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute;
56*64b14621SArmin Le Grand     drawinglayer::primitive2d::Primitive2DSequence                      maPrimitives;
57*64b14621SArmin Le Grand 
58*64b14621SArmin Le Grand     void createPrimitive2DSequence(
59*64b14621SArmin Le Grand         const basegfx::B2DRange& rPaintRange,
60*64b14621SArmin Le Grand         const basegfx::B2DRange& rDefineRange);
61*64b14621SArmin Le Grand 
62*64b14621SArmin Le Grand protected:
63*64b14621SArmin Le Grand public:
64*64b14621SArmin Le Grand     FillAttributes();
65*64b14621SArmin Le Grand     FillAttributes(const Color& rColor);
66*64b14621SArmin Le Grand     FillAttributes(const SfxItemSet& rSet);
67*64b14621SArmin Le Grand     ~FillAttributes();
68*64b14621SArmin Le Grand 
69*64b14621SArmin Le Grand     bool isUsed() const;
70*64b14621SArmin Le Grand     bool hasSdrFillAttribute() const { return maFillAttribute.get(); }
71*64b14621SArmin Le Grand     bool hasFillGradientAttribute() const { return maFillGradientAttribute.get(); }
72*64b14621SArmin Le Grand     bool isTransparent() const;
73*64b14621SArmin Le Grand 
74*64b14621SArmin Le Grand     const drawinglayer::attribute::SdrFillAttribute& getFillAttribute() const;
75*64b14621SArmin Le Grand     const drawinglayer::attribute::FillGradientAttribute& getFillGradientAttribute() const;
76*64b14621SArmin Le Grand     const drawinglayer::primitive2d::Primitive2DSequence& getPrimitive2DSequence(
77*64b14621SArmin Le Grand         const basegfx::B2DRange& rPaintRange,
78*64b14621SArmin Le Grand         const basegfx::B2DRange& rDefineRange) const;
79*64b14621SArmin Le Grand };
80*64b14621SArmin Le Grand 
81*64b14621SArmin Le Grand typedef boost::shared_ptr< FillAttributes > FillAttributesPtr;
82*64b14621SArmin Le Grand 
83cdf0e10cSrcweir class SW_DLLPUBLIC SwFrmFmt: public SwFmt
84cdf0e10cSrcweir {
85cdf0e10cSrcweir 	friend class SwDoc;
86cdf0e10cSrcweir 	friend class SwPageDesc;	//darf den protected CTor rufen.
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     ::com::sun::star::uno::WeakReference<
89cdf0e10cSrcweir         ::com::sun::star::uno::XInterface> m_wXObject;
90cdf0e10cSrcweir 
91*64b14621SArmin Le Grand     //UUUU
92*64b14621SArmin Le Grand     FillAttributesPtr           maFillAttributes;
93*64b14621SArmin Le Grand 
94cdf0e10cSrcweir protected:
95*64b14621SArmin Le Grand     SwFrmFmt* pCaptionFmt;
96*64b14621SArmin Le Grand 
97*64b14621SArmin Le Grand     SwFrmFmt(
98*64b14621SArmin Le Grand         SwAttrPool& rPool,
99*64b14621SArmin Le Grand         const sal_Char* pFmtNm,
100*64b14621SArmin Le Grand         SwFrmFmt *pDrvdFrm,
101*64b14621SArmin Le Grand         sal_uInt16 nFmtWhich = RES_FRMFMT,
102*64b14621SArmin Le Grand         const sal_uInt16* pWhichRange = 0);
103*64b14621SArmin Le Grand 
104*64b14621SArmin Le Grand     SwFrmFmt(
105*64b14621SArmin Le Grand         SwAttrPool& rPool,
106*64b14621SArmin Le Grand         const String &rFmtNm,
107*64b14621SArmin Le Grand         SwFrmFmt *pDrvdFrm,
108*64b14621SArmin Le Grand         sal_uInt16 nFmtWhich = RES_FRMFMT,
109*64b14621SArmin Le Grand         const sal_uInt16* pWhichRange = 0);
110cdf0e10cSrcweir 
111cdf0e10cSrcweir    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem* pNewValue );
112cdf0e10cSrcweir 
113cdf0e10cSrcweir public:
114cdf0e10cSrcweir 	TYPEINFO();		//Bereits in Basisklasse Client drin.
115cdf0e10cSrcweir 
116cdf0e10cSrcweir 	//Vernichtet alle Frms in aDepend (Frms werden per PTR_CAST erkannt).
117cdf0e10cSrcweir 	virtual void DelFrms();
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	//Erzeugt die Ansichten
120cdf0e10cSrcweir 	virtual void MakeFrms();
121cdf0e10cSrcweir 
122cdf0e10cSrcweir 	virtual Graphic MakeGraphic( ImageMap* pMap = NULL );
123cdf0e10cSrcweir 
124cdf0e10cSrcweir 	// returnt das IMapObject, das an dem Format (Fly), in der ImageMap
125cdf0e10cSrcweir 	// an der Point Position definiert ist.
126cdf0e10cSrcweir 	// 	rPoint - teste auf der DocPosition
127cdf0e10cSrcweir 	//	pFly - optionaler FlyFrame, falls der schon bekannt ist.
128cdf0e10cSrcweir 	IMapObject* GetIMapObject( const Point& rPoint,
129cdf0e10cSrcweir 								const SwFlyFrm *pFly = 0 ) const;
130cdf0e10cSrcweir 
131cdf0e10cSrcweir 	// Gibt die tatsaechlche Groesse des Frames zurueck bzw. ein leeres
132cdf0e10cSrcweir 	// Rechteck, wenn kein Layout existiert. Wird pPoint angegeben, dann
133cdf0e10cSrcweir 	// wird der am dichtesten liegende Frame gesucht.
134cdf0e10cSrcweir 	SwRect FindLayoutRect( const sal_Bool bPrtArea = sal_False,
135cdf0e10cSrcweir 							const Point* pPoint = 0,
136cdf0e10cSrcweir 							const sal_Bool bCalcFrm = sal_False ) const;
137cdf0e10cSrcweir 
138cdf0e10cSrcweir 	// Sucht das SdrObject. Der SdrObjUserCall ist Client vom Format.
139cdf0e10cSrcweir 	// Der UserCall kennt sein SdrObject.
140cdf0e10cSrcweir 		  SwContact *FindContactObj();
141cdf0e10cSrcweir 	const SwContact *FindContactObj() const
142cdf0e10cSrcweir 		{ return ((SwFrmFmt*)this)->FindContactObj(); }
143cdf0e10cSrcweir 
144cdf0e10cSrcweir 	// returns the SdrObject, that ist connected to the ContactObject.
145cdf0e10cSrcweir 	// Only DrawFrmFmts are connected to the "real SdrObject". FlyFrmFmts
146cdf0e10cSrcweir 	// are connected to a Master and all FlyFrms has the "real SdrObject".
147cdf0e10cSrcweir 	// "Real SdrObject" has position and a Z-order.
148cdf0e10cSrcweir 		  SdrObject *FindSdrObject();
149cdf0e10cSrcweir 	const SdrObject *FindSdrObject() const
150cdf0e10cSrcweir 		{ return ((SwFrmFmt*)this)->FindSdrObject(); }
151cdf0e10cSrcweir 
152cdf0e10cSrcweir 		  SdrObject *FindRealSdrObject();
153cdf0e10cSrcweir 	const SdrObject *FindRealSdrObject() const
154cdf0e10cSrcweir 		{ return ((SwFrmFmt*)this)->FindRealSdrObject(); }
155cdf0e10cSrcweir 
156cdf0e10cSrcweir 	sal_Bool IsLowerOf( const SwFrmFmt& rFmt ) const;
157cdf0e10cSrcweir 
158cdf0e10cSrcweir     // --> OD 2004-07-27 #i31698#
159cdf0e10cSrcweir     enum tLayoutDir
160cdf0e10cSrcweir     {
161cdf0e10cSrcweir         HORI_L2R,
162cdf0e10cSrcweir         HORI_R2L,
163cdf0e10cSrcweir         VERT_R2L,
164cdf0e10cSrcweir         VERT_L2R    // not supported yet
165cdf0e10cSrcweir     };
166cdf0e10cSrcweir 
167cdf0e10cSrcweir     virtual SwFrmFmt::tLayoutDir GetLayoutDir() const;
168cdf0e10cSrcweir     virtual void SetLayoutDir( const SwFrmFmt::tLayoutDir _eLayoutDir );
169cdf0e10cSrcweir     // <--
170cdf0e10cSrcweir 
171cdf0e10cSrcweir     // --> OD 2004-08-06 #i28749#
172cdf0e10cSrcweir     virtual sal_Int16 GetPositionLayoutDir() const;
173cdf0e10cSrcweir     virtual void SetPositionLayoutDir( const sal_Int16 _nPositionLayoutDir );
174cdf0e10cSrcweir     // <--
175cdf0e10cSrcweir 
176cdf0e10cSrcweir     virtual String GetDescription() const;
177ca62e2c2SSteve Yin 	sal_Bool HasCaption() const;
178ca62e2c2SSteve Yin 	void SetCaptionFmt(SwFrmFmt* pFmt);
179ca62e2c2SSteve Yin 	SwFrmFmt* GetCaptionFmt() const;
180cdf0e10cSrcweir 
181cdf0e10cSrcweir     SW_DLLPRIVATE ::com::sun::star::uno::WeakReference<
182cdf0e10cSrcweir         ::com::sun::star::uno::XInterface> const& GetXObject() const
183cdf0e10cSrcweir             { return m_wXObject; }
184cdf0e10cSrcweir     SW_DLLPRIVATE void SetXObject(::com::sun::star::uno::Reference<
185cdf0e10cSrcweir                     ::com::sun::star::uno::XInterface> const& xObject)
186cdf0e10cSrcweir             { m_wXObject = xObject; }
187cdf0e10cSrcweir 
188cdf0e10cSrcweir 	DECL_FIXEDMEMPOOL_NEWDEL_DLL(SwFrmFmt)
189cdf0e10cSrcweir     void RegisterToFormat( SwFmt& rFmt );
190*64b14621SArmin Le Grand 
191*64b14621SArmin Le Grand     //UUUU
192*64b14621SArmin Le Grand     FillAttributesPtr getFillAttributes() const;
193cdf0e10cSrcweir };
194cdf0e10cSrcweir 
195cdf0e10cSrcweir //Das FlyFrame-Format ------------------------------
196cdf0e10cSrcweir 
197cdf0e10cSrcweir class SW_DLLPUBLIC SwFlyFrmFmt: public SwFrmFmt
198cdf0e10cSrcweir {
199cdf0e10cSrcweir 	friend class SwDoc;
200ca62e2c2SSteve Yin 	String msTitle;
201ca62e2c2SSteve Yin 	String msDesc;
202cdf0e10cSrcweir 
203cdf0e10cSrcweir     // #i972:
204cdf0e10cSrcweir     // it stores the previous position of Prt rectangle from RequestObjectResize
205cdf0e10cSrcweir     // so it can be used to move frames of non-resizable objects to align them correctly
206cdf0e10cSrcweir     // when they get borders (this is done in SwWrtShell::CalcAndGetScale)
207cdf0e10cSrcweir     Point   m_aLastFlyFrmPrtRectPos;
208cdf0e10cSrcweir 
209cdf0e10cSrcweir     //Beide nicht vorhanden.
210cdf0e10cSrcweir 	SwFlyFrmFmt( const SwFlyFrmFmt &rCpy );
211cdf0e10cSrcweir 	SwFlyFrmFmt &operator=( const SwFlyFrmFmt &rCpy );
212cdf0e10cSrcweir 
213cdf0e10cSrcweir protected:
214cdf0e10cSrcweir 	SwFlyFrmFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
215cdf0e10cSrcweir 					SwFrmFmt *pDrvdFrm )
216cdf0e10cSrcweir 		: SwFrmFmt( rPool, pFmtNm, pDrvdFrm, RES_FLYFRMFMT )
217cdf0e10cSrcweir 	{}
218cdf0e10cSrcweir 	SwFlyFrmFmt( SwAttrPool& rPool, const String &rFmtNm,
219cdf0e10cSrcweir 					SwFrmFmt *pDrvdFrm )
220cdf0e10cSrcweir 		: SwFrmFmt( rPool, rFmtNm, pDrvdFrm, RES_FLYFRMFMT )
221cdf0e10cSrcweir 	{}
222cdf0e10cSrcweir 
223cdf0e10cSrcweir public:
224cdf0e10cSrcweir 	TYPEINFO();
225cdf0e10cSrcweir 	~SwFlyFrmFmt();
226cdf0e10cSrcweir 
227cdf0e10cSrcweir 	//Erzeugt die Ansichten
228cdf0e10cSrcweir 	virtual void MakeFrms();
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 	SwFlyFrm* GetFrm( const Point* pDocPos = 0,
231cdf0e10cSrcweir 						const sal_Bool bCalcFrm = sal_False ) const;
232cdf0e10cSrcweir 
233cdf0e10cSrcweir     SwAnchoredObject* GetAnchoredObj( const Point* pDocPos = 0,
234cdf0e10cSrcweir                                       const sal_Bool bCalcFrm = sal_False ) const;
235cdf0e10cSrcweir 
236cdf0e10cSrcweir 	virtual Graphic MakeGraphic( ImageMap* pMap = NULL );
237cdf0e10cSrcweir 
238cdf0e10cSrcweir 	virtual sal_Bool GetInfo( SfxPoolItem& rInfo ) const;
239cdf0e10cSrcweir 
240cdf0e10cSrcweir     // --> OD 2009-07-14 #i73249#
241cdf0e10cSrcweir     const String GetObjTitle() const;
242cdf0e10cSrcweir     void SetObjTitle( const String& rTitle,
243cdf0e10cSrcweir                       bool bBroadcast = false );
244cdf0e10cSrcweir     const String GetObjDescription() const;
245cdf0e10cSrcweir     void SetObjDescription( const String& rDescription,
246cdf0e10cSrcweir                             bool bBroadcast = false );
247cdf0e10cSrcweir     // <--
248cdf0e10cSrcweir 
249cdf0e10cSrcweir     /** SwFlyFrmFmt::IsBackgroundTransparent - for #99657#
250cdf0e10cSrcweir 
251cdf0e10cSrcweir         OD 22.08.2002 - overloading virtual method and its default implementation,
252cdf0e10cSrcweir         because format of fly frame provides transparent backgrounds.
253cdf0e10cSrcweir         Method determines, if background of fly frame is transparent.
254cdf0e10cSrcweir 
255cdf0e10cSrcweir         @author OD
256cdf0e10cSrcweir 
257cdf0e10cSrcweir         @return true, if background color is transparent, but not "no fill"
258cdf0e10cSrcweir         or a existing background graphic is transparent.
259cdf0e10cSrcweir     */
260cdf0e10cSrcweir     virtual sal_Bool IsBackgroundTransparent() const;
261cdf0e10cSrcweir 
262cdf0e10cSrcweir     /** SwFlyFrmFmt::IsBackgroundBrushInherited - for #103898#
263cdf0e10cSrcweir 
264cdf0e10cSrcweir         OD 08.10.2002 - method to determine, if the brush for drawing the
265cdf0e10cSrcweir         background is "inherited" from its parent/grandparent.
266cdf0e10cSrcweir         This is the case, if no background graphic is set and the background
267cdf0e10cSrcweir         color is "no fill"/"auto fill"
268cdf0e10cSrcweir 
269cdf0e10cSrcweir         @author OD
270cdf0e10cSrcweir 
271cdf0e10cSrcweir         @return true, if background brush is "inherited" from parent/grandparent
272cdf0e10cSrcweir     */
273cdf0e10cSrcweir     sal_Bool IsBackgroundBrushInherited() const;
274cdf0e10cSrcweir 
275cdf0e10cSrcweir     const Point & GetLastFlyFrmPrtRectPos() const       { return m_aLastFlyFrmPrtRectPos; }
276cdf0e10cSrcweir     void SetLastFlyFrmPrtRectPos( const Point &rPoint ) { m_aLastFlyFrmPrtRectPos = rPoint; }
277cdf0e10cSrcweir 
278cdf0e10cSrcweir 	DECL_FIXEDMEMPOOL_NEWDEL(SwFlyFrmFmt)
279cdf0e10cSrcweir };
280cdf0e10cSrcweir 
281cdf0e10cSrcweir //Das DrawFrame-Format -----------------------------
282cdf0e10cSrcweir 
283cdf0e10cSrcweir class SW_DLLPUBLIC SwDrawFrmFmt: public SwFrmFmt
284cdf0e10cSrcweir {
285cdf0e10cSrcweir 	friend class SwDoc;
286cdf0e10cSrcweir 
287cdf0e10cSrcweir     mutable const SdrObject * pSdrObjCached;
288cdf0e10cSrcweir     mutable String sSdrObjCachedComment;
289cdf0e10cSrcweir 
290cdf0e10cSrcweir 	//Beide nicht vorhanden.
291cdf0e10cSrcweir 	SwDrawFrmFmt( const SwDrawFrmFmt &rCpy );
292cdf0e10cSrcweir 	SwDrawFrmFmt &operator=( const SwDrawFrmFmt &rCpy );
293cdf0e10cSrcweir 
294cdf0e10cSrcweir     // --> OD 2004-07-27 #i31698#
295cdf0e10cSrcweir     SwFrmFmt::tLayoutDir meLayoutDir;
296cdf0e10cSrcweir     // <--
297cdf0e10cSrcweir     // --> OD 2004-08-06 #i28749#
298cdf0e10cSrcweir     sal_Int16 mnPositionLayoutDir;
299cdf0e10cSrcweir     // <--
300cdf0e10cSrcweir     // --> OD 2005-03-11 #i44334#, #i44681#
301cdf0e10cSrcweir     bool mbPosAttrSet;
302cdf0e10cSrcweir     // <--
303cdf0e10cSrcweir protected:
304cdf0e10cSrcweir 	SwDrawFrmFmt( SwAttrPool& rPool, const sal_Char* pFmtNm,
305cdf0e10cSrcweir 					SwFrmFmt *pDrvdFrm )
306cdf0e10cSrcweir         : SwFrmFmt( rPool, pFmtNm, pDrvdFrm, RES_DRAWFRMFMT ),
307cdf0e10cSrcweir           pSdrObjCached(NULL),
308cdf0e10cSrcweir           // --> OD 2004-07-28 #i31698#
309cdf0e10cSrcweir           meLayoutDir( SwFrmFmt::HORI_L2R ),
310cdf0e10cSrcweir           // <--
311cdf0e10cSrcweir           // --> OD 2004-08-06 #i28749#
312cdf0e10cSrcweir           // --> OD 2005-03-10 #i44344#, #i44681# - undo change of issue #i36010#
313cdf0e10cSrcweir           mnPositionLayoutDir( com::sun::star::text::PositionLayoutDir::PositionInLayoutDirOfAnchor ),
314cdf0e10cSrcweir           // <--
315cdf0e10cSrcweir           // --> OD 2005-03-11 #i44334#, #i44681#
316cdf0e10cSrcweir           mbPosAttrSet( false )
317cdf0e10cSrcweir           // <--
318cdf0e10cSrcweir 
319cdf0e10cSrcweir 	{}
320cdf0e10cSrcweir 	SwDrawFrmFmt( SwAttrPool& rPool, const String &rFmtNm,
321cdf0e10cSrcweir 					SwFrmFmt *pDrvdFrm )
322cdf0e10cSrcweir         : SwFrmFmt( rPool, rFmtNm, pDrvdFrm, RES_DRAWFRMFMT ),
323cdf0e10cSrcweir           pSdrObjCached(NULL),
324cdf0e10cSrcweir           // --> OD 2004-07-28 #i31698#
325cdf0e10cSrcweir           meLayoutDir( SwFrmFmt::HORI_L2R ),
326cdf0e10cSrcweir           // <--
327cdf0e10cSrcweir           // --> OD 2004-08-06 #i28749#
328cdf0e10cSrcweir           // --> OD 2005-03-10 #i44344#, #i44681# - undo change of issue #i36010#
329cdf0e10cSrcweir           mnPositionLayoutDir( com::sun::star::text::PositionLayoutDir::PositionInLayoutDirOfAnchor ),
330cdf0e10cSrcweir           // <--
331cdf0e10cSrcweir           // --> OD 2005-03-11 #i44334#, #i44681#
332cdf0e10cSrcweir           mbPosAttrSet( false )
333cdf0e10cSrcweir           // <--
334cdf0e10cSrcweir 	{}
335cdf0e10cSrcweir 
336cdf0e10cSrcweir public:
337cdf0e10cSrcweir 	TYPEINFO();
338cdf0e10cSrcweir 	~SwDrawFrmFmt();
339cdf0e10cSrcweir 
340cdf0e10cSrcweir 	//DrawObjecte werden aus den Arrays am Layout entfernt. Die DrawObjecte
341cdf0e10cSrcweir 	//werden als geloescht gekennzeichnet.
342cdf0e10cSrcweir 	virtual void DelFrms();
343cdf0e10cSrcweir 
344cdf0e10cSrcweir 	//Anmelden der DrawObjecte in den Arrays am Layout. Loeschkennzeichen
345cdf0e10cSrcweir 	//werden zurueckgesetzt.
346cdf0e10cSrcweir 	virtual void MakeFrms();
347cdf0e10cSrcweir 
348cdf0e10cSrcweir 	virtual Graphic MakeGraphic( ImageMap* pMap = NULL );
349cdf0e10cSrcweir 
350cdf0e10cSrcweir     // --> OD 2004-07-27 #i31698#
351cdf0e10cSrcweir     virtual SwFrmFmt::tLayoutDir GetLayoutDir() const;
352cdf0e10cSrcweir     virtual void SetLayoutDir( const SwFrmFmt::tLayoutDir _eLayoutDir );
353cdf0e10cSrcweir     // <--
354cdf0e10cSrcweir 
355cdf0e10cSrcweir     // --> OD 2004-08-06 #i28749#
356cdf0e10cSrcweir     virtual sal_Int16 GetPositionLayoutDir() const;
357cdf0e10cSrcweir     virtual void SetPositionLayoutDir( const sal_Int16 _nPositionLayoutDir );
358cdf0e10cSrcweir     // <--
359cdf0e10cSrcweir 
360cdf0e10cSrcweir     // --> OD 2005-03-11 #i44334#, #i44681#
361cdf0e10cSrcweir     inline bool IsPosAttrSet() const { return mbPosAttrSet; }
362cdf0e10cSrcweir     inline void PosAttrSet() { mbPosAttrSet = true; }
363cdf0e10cSrcweir     // <--
364cdf0e10cSrcweir 
365cdf0e10cSrcweir     // --> OD 2005-08-16 #i53320#
366cdf0e10cSrcweir     inline void ResetPosAttr()
367cdf0e10cSrcweir     {
368cdf0e10cSrcweir         mbPosAttrSet = false;
369cdf0e10cSrcweir     }
370cdf0e10cSrcweir     // <--
371cdf0e10cSrcweir 
372cdf0e10cSrcweir     virtual String GetDescription() const;
373cdf0e10cSrcweir 
374cdf0e10cSrcweir     DECL_FIXEDMEMPOOL_NEWDEL(SwDrawFrmFmt);
375cdf0e10cSrcweir };
376cdf0e10cSrcweir 
377cdf0e10cSrcweir 
378cdf0e10cSrcweir #endif
379cdf0e10cSrcweir 
380