xref: /aoo42x/main/sw/source/core/inc/viewimp.hxx (revision 4d7c9de0)
11d2dbeb0SAndrew Rist /**************************************************************
21d2dbeb0SAndrew Rist  *
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 SW_VIEWIMP_HXX
24cdf0e10cSrcweir #define SW_VIEWIMP_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <vector>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <vcl/timer.hxx>
29cdf0e10cSrcweir #include <tools/color.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir // OD 25.06.2003 #108784#
32cdf0e10cSrcweir #include <svx/svdtypes.hxx>
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #include <tools/string.hxx>
35cdf0e10cSrcweir 
36cdf0e10cSrcweir #include <swtypes.hxx>
37cdf0e10cSrcweir #include <swrect.hxx>
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class ViewShell;
40cdf0e10cSrcweir class SwFlyFrm;
41cdf0e10cSrcweir class SwViewOption;
42cdf0e10cSrcweir class SwRegionRects;
43cdf0e10cSrcweir class SwFrm;
44cdf0e10cSrcweir class SwLayAction;
45cdf0e10cSrcweir class SwLayIdle;
46cdf0e10cSrcweir class SwDrawView;
47cdf0e10cSrcweir class SdrPageView;
48cdf0e10cSrcweir class SwPageFrm;
49cdf0e10cSrcweir class SwRegionRects;
50cdf0e10cSrcweir struct SdrPaintProcRec;
51cdf0e10cSrcweir class SwAccessibleMap;
52cdf0e10cSrcweir class SdrObject;
53cdf0e10cSrcweir class Fraction;
54cdf0e10cSrcweir class SwPrintData;
55cdf0e10cSrcweir class SwPagePreviewLayout;
56cdf0e10cSrcweir struct PrevwPage;
57cdf0e10cSrcweir class SwTxtFrm;
58cdf0e10cSrcweir // --> OD #i76669#
59cdf0e10cSrcweir namespace sdr { namespace contact {
60cdf0e10cSrcweir         class ViewObjectContactRedirector;
61cdf0e10cSrcweir } }
62cdf0e10cSrcweir // <--
63cdf0e10cSrcweir 
64cdf0e10cSrcweir class SwViewImp
65cdf0e10cSrcweir {
66cdf0e10cSrcweir 	friend class ViewShell;
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 	friend class SwLayAction;	//Lay- und IdleAction tragen sich ein und aus.
69cdf0e10cSrcweir 	friend class SwLayIdle;
70cdf0e10cSrcweir 
71cdf0e10cSrcweir     // OD 12.12.2002 #103492# - for paint of page preview
72cdf0e10cSrcweir     friend class SwPagePreviewLayout;
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 	ViewShell *pSh;				//Falls jemand einen Imp durchreicht und doch
75cdf0e10cSrcweir 								//mal eine ViewShell braucht hier die
76cdf0e10cSrcweir 								//Rueckwaertsverkettung.
77cdf0e10cSrcweir 
78cdf0e10cSrcweir 	SwDrawView  *pDrawView;		//Unsere DrawView
79cdf0e10cSrcweir 	SdrPageView *pSdrPageView;	//Genau eine Seite fuer unsere DrawView
80cdf0e10cSrcweir 
81cdf0e10cSrcweir 	SwPageFrm	  *pFirstVisPage;//Zeigt immer auf die erste sichtbare Seite.
82cdf0e10cSrcweir     SwRegionRects *pRegion;      //Sammler fuer Paintrects aus der LayAction.
83cdf0e10cSrcweir 
84cdf0e10cSrcweir 	SwLayAction	  *pLayAct;		 //Ist gesetzt wenn ein Action-Objekt existiert
85cdf0e10cSrcweir 								 //Wird vom SwLayAction-CTor ein- und vom DTor
86cdf0e10cSrcweir 								 //ausgetragen.
87cdf0e10cSrcweir 	SwLayIdle	  *pIdleAct;	 //Analog zur SwLayAction fuer SwLayIdle.
88cdf0e10cSrcweir 
89cdf0e10cSrcweir 	SwAccessibleMap	*pAccMap;		// Accessible Wrappers
90cdf0e10cSrcweir 
91cdf0e10cSrcweir     mutable const SdrObject * pSdrObjCached;
92cdf0e10cSrcweir     mutable String sSdrObjCachedComment;
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 	sal_Bool bFirstPageInvalid	:1;	//Pointer auf erste Seite ungueltig?
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 	//sal_Bool bResetXorVisibility:1; //StartAction/EndAction
97cdf0e10cSrcweir 	//HMHBOOL bShowHdlPaint		:1; //LockPaint/UnlockPaint
98cdf0e10cSrcweir 	sal_Bool bResetHdlHiddenPaint:1;//  -- "" --
99cdf0e10cSrcweir 
100cdf0e10cSrcweir 	sal_Bool bSmoothUpdate		:1;	//Meber fuer SmoothScroll
101cdf0e10cSrcweir 	sal_Bool bStopSmooth		:1;
102cdf0e10cSrcweir 	sal_Bool bStopPrt           :1; // Stop Printing
103cdf0e10cSrcweir 
104cdf0e10cSrcweir     sal_uInt16 nRestoreActions  ; //Die Anzahl der zu restaurierenden Actions (UNO)
105cdf0e10cSrcweir 	SwRect aSmoothRect;
106cdf0e10cSrcweir 
107cdf0e10cSrcweir     // OD 12.12.2002 #103492#
108cdf0e10cSrcweir     SwPagePreviewLayout* mpPgPrevwLayout;
109cdf0e10cSrcweir 
110cdf0e10cSrcweir     /**
111cdf0e10cSrcweir 		Signal whether to stop printing.
112cdf0e10cSrcweir 
113cdf0e10cSrcweir 		@param _useless just to fit macro
114cdf0e10cSrcweir 	*/
115cdf0e10cSrcweir 	DECL_LINK(SetStopPrt, void * _useless = NULL);
116cdf0e10cSrcweir 
117cdf0e10cSrcweir 	/**
118cdf0e10cSrcweir 	   Returns if printer shall be stopped.
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 	   @retval sal_True The printer shall be stopped.
121cdf0e10cSrcweir 	   @retval sal_False else
122cdf0e10cSrcweir 	*/
IsStopPrt()123cdf0e10cSrcweir 	sal_Bool IsStopPrt() { return bStopPrt; }
124cdf0e10cSrcweir 
125cdf0e10cSrcweir 	/**
126cdf0e10cSrcweir 	   Resets signal for stopping printing.
127cdf0e10cSrcweir 
128cdf0e10cSrcweir 	*/
ResetStopPrt()129cdf0e10cSrcweir 	void ResetStopPrt() { bStopPrt = sal_False; }
130cdf0e10cSrcweir 
131cdf0e10cSrcweir 	void SetFirstVisPage();		//Neue Ermittlung der ersten sichtbaren Seite
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 	void StartAction();			//Henkel Anzeigen und verstecken.
134cdf0e10cSrcweir 	void EndAction();			//gerufen von ViewShell::ImplXXXAction
135cdf0e10cSrcweir 	void LockPaint();			//dito, gerufen von ViewShell::ImplLockPaint
136cdf0e10cSrcweir 	void UnlockPaint();
137cdf0e10cSrcweir 
138cdf0e10cSrcweir private:
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 	SwAccessibleMap *CreateAccessibleMap();
141cdf0e10cSrcweir 
142cdf0e10cSrcweir     /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
143cdf0e10cSrcweir 
144cdf0e10cSrcweir         OD 2005-12-01 #i27138#
145cdf0e10cSrcweir         implementation for wrapper method
146cdf0e10cSrcweir         <ViewShell::InvalidateAccessibleParaFlowRelation(..)>
147cdf0e10cSrcweir 
148cdf0e10cSrcweir         @author OD
149cdf0e10cSrcweir 
150cdf0e10cSrcweir         @param _pFromTxtFrm
151cdf0e10cSrcweir         input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
152cdf0e10cSrcweir         has to be invalidated.
153cdf0e10cSrcweir         If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
154cdf0e10cSrcweir 
155cdf0e10cSrcweir         @param _pToTxtFrm
156cdf0e10cSrcweir         input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
157cdf0e10cSrcweir         has to be invalidated.
158cdf0e10cSrcweir         If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
159cdf0e10cSrcweir     */
160cdf0e10cSrcweir     void _InvalidateAccessibleParaFlowRelation( const SwTxtFrm* _pFromTxtFrm,
161cdf0e10cSrcweir                                                 const SwTxtFrm* _pToTxtFrm );
162cdf0e10cSrcweir 
163cdf0e10cSrcweir     /** invalidate text selection for paragraphs
164cdf0e10cSrcweir 
165cdf0e10cSrcweir         OD 2005-12-12 #i27301#
166cdf0e10cSrcweir         implementation for wrapper method
167cdf0e10cSrcweir         <ViewShell::InvalidateAccessibleParaTextSelection(..)>
168cdf0e10cSrcweir 
169cdf0e10cSrcweir         @author OD
170cdf0e10cSrcweir     */
171cdf0e10cSrcweir     void _InvalidateAccessibleParaTextSelection();
172cdf0e10cSrcweir 
173cdf0e10cSrcweir     /** invalidate attributes for paragraphs and paragraph's characters
174cdf0e10cSrcweir 
175cdf0e10cSrcweir         OD 2009-01-06 #i88069#
176cdf0e10cSrcweir         implementation for wrapper method
177cdf0e10cSrcweir         <ViewShell::InvalidateAccessibleParaAttrs(..)>
178cdf0e10cSrcweir 
179cdf0e10cSrcweir         @author OD
180cdf0e10cSrcweir     */
181cdf0e10cSrcweir     void _InvalidateAccessibleParaAttrs( const SwTxtFrm& rTxtFrm );
182cdf0e10cSrcweir 
183cdf0e10cSrcweir public:
184cdf0e10cSrcweir     SwViewImp( ViewShell * );
185cdf0e10cSrcweir 	~SwViewImp();
186cdf0e10cSrcweir 	void Init( const SwViewOption * );			//nur fuer ViewShell::Init()
187cdf0e10cSrcweir 
GetShell() const188cdf0e10cSrcweir 	const ViewShell *GetShell() const { return pSh; }
GetShell()189cdf0e10cSrcweir 		  ViewShell *GetShell()		  { return pSh; }
190cdf0e10cSrcweir 
191cdf0e10cSrcweir 	Color GetRetoucheColor() const;
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	//Verwaltung zur ersten sichtbaren Seite
194cdf0e10cSrcweir 	inline const SwPageFrm *GetFirstVisPage() const;
195cdf0e10cSrcweir 	inline		 SwPageFrm *GetFirstVisPage();
SetFirstVisPageInvalid()196cdf0e10cSrcweir 	void SetFirstVisPageInvalid() { bFirstPageInvalid = sal_True; }
197cdf0e10cSrcweir 
198cdf0e10cSrcweir 	sal_Bool AddPaintRect( const SwRect &rRect );
GetRegion()199cdf0e10cSrcweir 	SwRegionRects *GetRegion()		{ return pRegion; }
200cdf0e10cSrcweir     void DelRegion();
201cdf0e10cSrcweir 
202cdf0e10cSrcweir 	// neues Interface fuer StarView Drawing
HasDrawView() const203cdf0e10cSrcweir 	inline sal_Bool HasDrawView()       const { return 0 != pDrawView; }
GetDrawView()204cdf0e10cSrcweir 		  SwDrawView* GetDrawView() 	  { return pDrawView; }
GetDrawView() const205cdf0e10cSrcweir 	const SwDrawView* GetDrawView() const { return pDrawView; }
GetPageView()206cdf0e10cSrcweir 		  SdrPageView*GetPageView() 	  { return pSdrPageView; }
GetPageView() const207cdf0e10cSrcweir 	const SdrPageView*GetPageView() const { return pSdrPageView; }
208cdf0e10cSrcweir 	void MakeDrawView();
209cdf0e10cSrcweir 
210cdf0e10cSrcweir     // OD 29.08.2002 #102450#
211cdf0e10cSrcweir     // add 3rd parameter <const Color* pPageBackgrdColor> for setting this
212cdf0e10cSrcweir     // color as the background color at the outliner of the draw view
213cdf0e10cSrcweir     // for painting layers <hell> and <heaven>
214cdf0e10cSrcweir     // OD 09.12.2002 #103045# - add 4th parameter for the horizontal text
215cdf0e10cSrcweir     // direction of the page in order to set the default horizontal text
216cdf0e10cSrcweir     // direction at the outliner of the draw view for painting layers <hell>
217cdf0e10cSrcweir     // and <heaven>.
218cdf0e10cSrcweir     // OD 25.06.2003 #108784# - correct type of 1st parameter
219cdf0e10cSrcweir     // OD #i76669# - added parameter <pRedirector>
220cdf0e10cSrcweir     void   PaintLayer( const SdrLayerID _nLayerID,
221cdf0e10cSrcweir                        SwPrintData const*const pPrintData,
222cdf0e10cSrcweir                        const SwRect& _rRect,
223cdf0e10cSrcweir                        const Color* _pPageBackgrdColor = 0,
224cdf0e10cSrcweir                        const bool _bIsPageRightToLeft = false,
225cdf0e10cSrcweir                        sdr::contact::ViewObjectContactRedirector* pRedirector = 0 ) const;
226cdf0e10cSrcweir 
227cdf0e10cSrcweir 	//wird als Link an die DrawEngine uebergeben, entscheidet was wie
228cdf0e10cSrcweir 	//gepaintet wird oder nicht.
229cdf0e10cSrcweir 	//#110094#-3
230cdf0e10cSrcweir     //DECL_LINK( PaintDispatcher, SdrPaintProcRec * );
231cdf0e10cSrcweir 
232cdf0e10cSrcweir 	// Interface Drawing
233cdf0e10cSrcweir 	sal_Bool IsDragPossible( const Point &rPoint );
234cdf0e10cSrcweir 	void NotifySizeChg( const Size &rNewSz );
235cdf0e10cSrcweir 
236cdf0e10cSrcweir 	//SS Fuer die Lay- bzw. IdleAction und verwandtes
IsAction() const237cdf0e10cSrcweir 	sal_Bool  IsAction() const 					 { return pLayAct  != 0; }
IsIdleAction() const238cdf0e10cSrcweir 	sal_Bool  IsIdleAction() const				 { return pIdleAct != 0; }
GetLayAction()239cdf0e10cSrcweir 		  SwLayAction &GetLayAction()		 { return *pLayAct; }
GetLayAction() const240cdf0e10cSrcweir 	const SwLayAction &GetLayAction() const  { return *pLayAct; }
GetIdleAction()241cdf0e10cSrcweir 		  SwLayIdle	  &GetIdleAction()		 { return *pIdleAct;}
GetIdleAction() const242cdf0e10cSrcweir 	const SwLayIdle   &GetIdleAction() const { return *pIdleAct;}
243cdf0e10cSrcweir 
244cdf0e10cSrcweir 	//Wenn eine Aktion laueft wird diese gebeten zu pruefen ob es
245cdf0e10cSrcweir 	//an der zeit ist den WaitCrsr einzuschalten.
246cdf0e10cSrcweir 	void CheckWaitCrsr();
247cdf0e10cSrcweir 	sal_Bool IsCalcLayoutProgress() const;	//Fragt die LayAction wenn vorhanden.
248cdf0e10cSrcweir 	//sal_True wenn eine LayAction laeuft, dort wird dann auch das Flag fuer
249cdf0e10cSrcweir 	//ExpressionFields gesetzt.
250cdf0e10cSrcweir 	sal_Bool IsUpdateExpFlds();
251cdf0e10cSrcweir 
SetRestoreActions(sal_uInt16 nSet)252cdf0e10cSrcweir 	void	SetRestoreActions(sal_uInt16 nSet){nRestoreActions = nSet;}
GetRestoreActions() const253cdf0e10cSrcweir 	sal_uInt16 	GetRestoreActions() const{return nRestoreActions;}
254cdf0e10cSrcweir 
255cdf0e10cSrcweir     // OD 12.12.2002 #103492#
256cdf0e10cSrcweir     void InitPagePreviewLayout();
257cdf0e10cSrcweir 
258cdf0e10cSrcweir     // OD 12.12.2002 #103492#
PagePreviewLayout()259cdf0e10cSrcweir     inline SwPagePreviewLayout* PagePreviewLayout()
260cdf0e10cSrcweir     {
261cdf0e10cSrcweir         return mpPgPrevwLayout;
262cdf0e10cSrcweir     }
263cdf0e10cSrcweir 
264cdf0e10cSrcweir 	// Is this view accessible?
IsAccessible() const265cdf0e10cSrcweir 	sal_Bool IsAccessible() const { return pAccMap != 0; }
266cdf0e10cSrcweir 
267cdf0e10cSrcweir 	inline SwAccessibleMap& GetAccessibleMap();
268cdf0e10cSrcweir 
269cdf0e10cSrcweir 	// Update (this) accessible view
270cdf0e10cSrcweir 	void UpdateAccessible();
271cdf0e10cSrcweir 
272cdf0e10cSrcweir 	// Remove a frame from the accessible view
273cdf0e10cSrcweir 	void DisposeAccessible( const SwFrm *pFrm, const SdrObject *pObj,
274cdf0e10cSrcweir 							sal_Bool bRecursive );
275cdf0e10cSrcweir 	inline void DisposeAccessibleFrm( const SwFrm *pFrm,
276cdf0e10cSrcweir 							   sal_Bool bRecursive=sal_False );
277cdf0e10cSrcweir 	inline void DisposeAccessibleObj( const SdrObject *pObj );
278cdf0e10cSrcweir 
279cdf0e10cSrcweir 	// Move a frame's position in the accessible view
280cdf0e10cSrcweir 	void MoveAccessible( const SwFrm *pFrm, const SdrObject *pObj,
281cdf0e10cSrcweir 						 const SwRect& rOldFrm );
282cdf0e10cSrcweir 	inline void MoveAccessibleFrm( const SwFrm *pFrm, const SwRect& rOldFrm );
283cdf0e10cSrcweir 
284cdf0e10cSrcweir 	// Add a frame in the accessible view
285cdf0e10cSrcweir 	inline void AddAccessibleFrm( const SwFrm *pFrm );
286cdf0e10cSrcweir 
287cdf0e10cSrcweir 	inline void AddAccessibleObj( const SdrObject *pObj );
288cdf0e10cSrcweir 
289*ca62e2c2SSteve Yin 	void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
290*ca62e2c2SSteve Yin 	void FireSectionChangeEvent(sal_uInt16 nOldSection, sal_uInt16 nNewSection);
291*ca62e2c2SSteve Yin 	void FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn);
292*ca62e2c2SSteve Yin 
293cdf0e10cSrcweir 	// Invalidate accessible frame's frame's content
294cdf0e10cSrcweir 	void InvalidateAccessibleFrmContent( const SwFrm *pFrm );
295cdf0e10cSrcweir 
296cdf0e10cSrcweir 	// Invalidate accessible frame's cursor position
297cdf0e10cSrcweir 	void InvalidateAccessibleCursorPosition( const SwFrm *pFrm );
298cdf0e10cSrcweir 
299cdf0e10cSrcweir 	// Invalidate editable state for all accessible frames
300cdf0e10cSrcweir 	void InvalidateAccessibleEditableState( sal_Bool bAllShells=sal_True,
301cdf0e10cSrcweir 		   									const SwFrm *pFrm=0 );
302cdf0e10cSrcweir 
303cdf0e10cSrcweir 	// Invalidate frame's relation set (for chained frames)
304cdf0e10cSrcweir 	void InvalidateAccessibleRelationSet( const SwFlyFrm *pMaster,
305cdf0e10cSrcweir                                           const SwFlyFrm *pFollow );
306cdf0e10cSrcweir 
307cdf0e10cSrcweir     // update data for accessible preview
308cdf0e10cSrcweir     // OD 15.01.2003 #103492# - change method signature due to new page preview
309cdf0e10cSrcweir     // functionality
310cdf0e10cSrcweir     void UpdateAccessiblePreview( const std::vector<PrevwPage*>& _rPrevwPages,
311cdf0e10cSrcweir                                   const Fraction&  _rScale,
312cdf0e10cSrcweir                                   const SwPageFrm* _pSelectedPageFrm,
313cdf0e10cSrcweir                                   const Size&      _rPrevwWinSize );
314cdf0e10cSrcweir 
315cdf0e10cSrcweir     void InvalidateAccessiblePreViewSelection( sal_uInt16 nSelPage );
316cdf0e10cSrcweir 
317cdf0e10cSrcweir 	// Fire all accessible events that have been collected so far
318cdf0e10cSrcweir 	void FireAccessibleEvents();
319cdf0e10cSrcweir };
320cdf0e10cSrcweir 
GetFirstVisPage()321cdf0e10cSrcweir inline SwPageFrm *SwViewImp::GetFirstVisPage()
322cdf0e10cSrcweir {
323cdf0e10cSrcweir 	if ( bFirstPageInvalid )
324cdf0e10cSrcweir 		SetFirstVisPage();
325cdf0e10cSrcweir 	return pFirstVisPage;
326cdf0e10cSrcweir }
327cdf0e10cSrcweir 
GetFirstVisPage() const328cdf0e10cSrcweir inline const SwPageFrm *SwViewImp::GetFirstVisPage() const
329cdf0e10cSrcweir {
330cdf0e10cSrcweir 	if ( bFirstPageInvalid )
331cdf0e10cSrcweir 		((SwViewImp*)this)->SetFirstVisPage();
332cdf0e10cSrcweir 	return pFirstVisPage;
333cdf0e10cSrcweir }
334cdf0e10cSrcweir 
GetAccessibleMap()335cdf0e10cSrcweir inline SwAccessibleMap& SwViewImp::GetAccessibleMap()
336cdf0e10cSrcweir {
337cdf0e10cSrcweir 	if( !pAccMap )
338cdf0e10cSrcweir 		CreateAccessibleMap();
339cdf0e10cSrcweir 
340cdf0e10cSrcweir 	return *pAccMap;
341cdf0e10cSrcweir }
342cdf0e10cSrcweir 
DisposeAccessibleFrm(const SwFrm * pFrm,sal_Bool bRecursive)343cdf0e10cSrcweir inline void SwViewImp::DisposeAccessibleFrm( const SwFrm *pFrm,
344cdf0e10cSrcweir 							   sal_Bool bRecursive )
345cdf0e10cSrcweir {
346cdf0e10cSrcweir 	DisposeAccessible( pFrm, 0, bRecursive );
347cdf0e10cSrcweir }
348cdf0e10cSrcweir 
DisposeAccessibleObj(const SdrObject * pObj)349cdf0e10cSrcweir inline void SwViewImp::DisposeAccessibleObj( const SdrObject *pObj )
350cdf0e10cSrcweir {
351cdf0e10cSrcweir 	DisposeAccessible( 0, pObj, sal_False );
352cdf0e10cSrcweir }
353cdf0e10cSrcweir 
MoveAccessibleFrm(const SwFrm * pFrm,const SwRect & rOldFrm)354cdf0e10cSrcweir inline void SwViewImp::MoveAccessibleFrm( const SwFrm *pFrm,
355cdf0e10cSrcweir 										  const SwRect& rOldFrm )
356cdf0e10cSrcweir {
357cdf0e10cSrcweir 	MoveAccessible( pFrm, 0, rOldFrm );
358cdf0e10cSrcweir }
359cdf0e10cSrcweir 
AddAccessibleFrm(const SwFrm * pFrm)360cdf0e10cSrcweir inline void SwViewImp::AddAccessibleFrm( const SwFrm *pFrm )
361cdf0e10cSrcweir {
362cdf0e10cSrcweir 	SwRect aEmptyRect;
363cdf0e10cSrcweir 	MoveAccessible( pFrm, 0, aEmptyRect );
364cdf0e10cSrcweir }
365cdf0e10cSrcweir 
AddAccessibleObj(const SdrObject * pObj)366cdf0e10cSrcweir inline void SwViewImp::AddAccessibleObj( const SdrObject *pObj )
367cdf0e10cSrcweir {
368cdf0e10cSrcweir 	SwRect aEmptyRect;
369cdf0e10cSrcweir 	MoveAccessible( 0, pObj, aEmptyRect );
370cdf0e10cSrcweir }
371cdf0e10cSrcweir #endif // SW_VIEWIMP_HXX
372cdf0e10cSrcweir 
373