1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SW_INC_VIEWSH_HXX
20 #define INCLUDED_SW_INC_VIEWSH_HXX
22 #include <com/sun/star/embed/XClassifiedObject.hpp>
23 #include <com/sun/star/embed/XEmbeddedObject.hpp>
24 #include <tools/rtti.hxx>
26 #include <swtypes.hxx>
29 #include <boost/shared_ptr.hpp>
31 #include <vcl/mapmod.hxx>
32 #include <vcl/print.hxx>
33 #include <vcl/vclptr.hxx>
34 #define LOK_USE_UNSTABLE_API
35 #include <LibreOfficeKit/LibreOfficeKitTypes.h>
37 namespace com
{ namespace sun
{ namespace star
{ namespace accessibility
{
38 class XAccessible
; } } } }
41 class IDocumentSettingAccess
;
42 class IDocumentDeviceAccess
;
43 class IDocumentMarkAccess
;
44 class IDocumentDrawModelAccess
;
45 class IDocumentRedlineAccess
;
46 class IDocumentLayoutAccess
;
47 class IDocumentFieldsAccess
;
48 class IDocumentContentOperations
;
49 class IDocumentStylePoolAccess
;
50 class IDocumentStatistics
;
51 class IDocumentUndoRedo
;
52 class IDocumentListItems
;
53 class IDocumentOutlineNodes
;
64 class SwPagePreviewPrtData
;
65 namespace vcl
{ class Window
; }
71 class SvtAccessibilityOptions
;
72 class SwPagePreviewLayout
;
76 struct SwAccessibilityOptions
;
77 namespace vcl
{ class Region
; }
80 class SwAccessibleMap
;
84 typedef OutputDevice RenderContext
;
85 class OldStylePrintAdaptor
;
95 // Define for flags needed in ctor or layers below.
96 // Currently the Preview flag is needed for DrawPage.
97 #define VSHELLFLAG_ISPREVIEW ((long)0x1)
98 #define VSHELLFLAG_SHARELAYOUT ((long)0x2)
99 typedef boost::shared_ptr
<SwRootFrm
> SwRootFrmPtr
;
102 class SW_DLLPUBLIC SwViewShell
: public sw::Ring
<SwViewShell
>
104 friend void SetOutDev( SwViewShell
*pSh
, OutputDevice
*pOut
);
105 friend void SetOutDevAndWin( SwViewShell
*pSh
, OutputDevice
*pOut
,
106 vcl::Window
*pWin
, sal_uInt16 nZoom
);
108 friend class SwViewShellImp
;
109 friend class SwLayIdle
;
111 // For setting visible area for page preview paint.
112 friend class SwPagePreviewLayout
;
114 // Set SwVisArea in order to enable clean formatting before printing.
115 friend void SetSwVisArea( SwViewShell
*pSh
, const SwRect
& );
117 static BitmapEx
* mpReplaceBmp
; ///< replaced display of still loaded images
118 static BitmapEx
* mpErrorBmp
; ///< error display of missed images
120 static bool mbLstAct
; // true if EndAction of last Shell
121 // i.e. if the EndActions of the other
122 // Shells on the document are through.
124 Point maPrtOffst
; // Ofst for Printer,
125 // non-printable margin.
126 Size maBrowseBorder
; // Border for frame documents.
127 SwRect maInvalidRect
;
129 SfxViewShell
*mpSfxViewShell
;
130 SwViewShellImp
*mpImp
; // Core-internals of SwViewShell.
131 // The pointer is never 0.
133 VclPtr
<vcl::Window
> mpWin
; ///< = 0 during printing or pdf export
134 VclPtr
<OutputDevice
> mpOut
; ///< Window, Printer, VirtDev, ...
135 VclPtr
<OutputDevice
> mpTmpRef
; // Temporariy reference device. Is used
136 // during (printer depending) prospect
137 // and page preview printing
138 // (because a scaling has to be set at
139 // the original printer)
142 SwAccessibilityOptions
* mpAccOptions
;
144 bool mbDocSizeChgd
:1; // For DocChgNotify(): Announce new DocSize
145 // at EndAction to DocMDI.
146 bool mbPaintWorks
:1; // Normal Painting if true,
147 // remember Paint if false.
148 bool mbPaintInProgress
:1; // Block any double paint.
149 bool mbViewLocked
:1; // Lock visible range;
150 // in this case MakeVisible is ineffectual.
151 bool mbInEndAction
:1; // Avoid problems, cf. viewsh.cxx.
152 bool mbPreview
:1; // If true it is a Preview-SwViewShell.
153 bool mbFrameView
:1; // If true it is a (HTML-)Frame.
154 bool mbEnableSmooth
:1; // Disable SmoothScroll, e.g. for drag
156 bool mbEndActionByVirDev
:1; // Paints from EndAction always via virtual device
157 // (e.g. when browsing).
158 bool mbShowHeaderSeparator
:1; ///< Flag to say that we are showing the header control
159 bool mbShowFooterSeparator
:1; ///< Flag to say that we are showing the footer control
160 bool mbHeaderFooterEdit
:1; ///< Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator above)
162 // boolean, indicating that class in constructor.
163 bool mbInConstructor
:1;
165 SdrPaintWindow
* mpTargetPaintWindow
;
166 VclPtr
<OutputDevice
> mpBufferedOut
;
168 SwRootFrmPtr mpLayout
;
170 // Initialization; called by the diverse constructors.
171 SAL_DLLPRIVATE
void Init( const SwViewOption
*pNewOpt
);
173 inline void ResetInvalidRect();
175 SAL_DLLPRIVATE
void Reformat(); // Invalidates complete Layout (ApplyViewOption).
177 SAL_DLLPRIVATE
void PaintDesktop(vcl::RenderContext
& rRenderContext
, const SwRect
&); // Collect values for painting of desktop
179 // PaintDesktop split. This pars is also used by PreviewPage.
180 SAL_DLLPRIVATE
void _PaintDesktop(vcl::RenderContext
& rRenderContext
, const SwRegionRects
&rRegion
);
182 SAL_DLLPRIVATE
bool CheckInvalidForPaint( const SwRect
& ); // Direct Paint or rather
183 // trigger an action.
185 SAL_DLLPRIVATE
void PrepareForPrint( const SwPrintData
&rOptions
);
187 SAL_DLLPRIVATE
void ImplApplyViewOptions( const SwViewOption
&rOpt
);
190 static ShellResource
* mpShellRes
; ///< Resources for the Shell.
191 static VclPtr
<vcl::Window
> mpCareWindow
; ///< Avoid this window.
193 SwRect maVisArea
; ///< The modern version of VisArea.
194 SwDoc
*mpDoc
; ///< The document; never 0.
196 sal_uInt16 mnStartAction
; ///< != 0 if at least one Action is active.
197 sal_uInt16 mnLockPaint
; ///< != 0 if Paint is locked.
198 bool mbSelectAll
; ///< Special select all mode: whole document selected, even if doc starts with table.
200 bool mbInLibreOfficeKitCallback
;
202 /// The virtual device we paint to will end up on the screen.
203 bool mbOutputToWindow
;
208 SwViewShellImp
*Imp() { return mpImp
; }
209 const SwViewShellImp
*Imp() const { return mpImp
; }
211 const SwNodes
& GetNodes() const;
213 // After change of printer; by Doc.
214 void InitPrt( OutputDevice
*pOutDev
);
216 // Bracketing of actions belonging together.
217 inline void StartAction();
218 void ImplStartAction();
219 inline void EndAction( const bool bIdleEnd
= false );
220 void ImplEndAction( const bool bIdleEnd
= false );
221 sal_uInt16
ActionCount() const { return mnStartAction
; }
222 bool ActionPend() const { return mnStartAction
!= 0; }
223 bool IsInEndAction() const { return mbInEndAction
; }
225 void SetEndActionByVirDev( bool b
) { mbEndActionByVirDev
= b
; }
226 bool IsEndActionByVirDev() { return mbEndActionByVirDev
; }
228 // The ActionCount for all Shells is temporarily set to zero and then
229 // restored at the RootFrame via UNO.
230 void SetRestoreActions(sal_uInt16 nSet
);
231 sal_uInt16
GetRestoreActions() const;
233 inline bool HasInvalidRect() const { return maInvalidRect
.HasArea(); }
234 void ChgHyphenation() { Reformat(); }
235 void ChgNumberDigits();
237 bool AddPaintRect( const SwRect
&rRect
);
239 void InvalidateWindows( const SwRect
&rRect
);
241 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
243 std::stack
<vcl::Region
> mPrePostPaintRegions
; // acts also as a lock counter (empty == not locked)
244 VclPtr
<OutputDevice
> mpPrePostOutDev
;
245 MapMode maPrePostMapMode
;
248 void DLPrePaint2(const vcl::Region
& rRegion
);
249 void DLPostPaint2(bool bPaintFormLayer
);
250 const MapMode
& getPrePostMapMode() const { return maPrePostMapMode
; }
252 virtual void Paint(vcl::RenderContext
& rRenderContext
, const Rectangle
&rRect
);
256 Sets the pOut so that the rRect is always painted over the entire
257 pOut, ie. starts in 0,0 and ends in width/height.
259 void PaintTile(VirtualDevice
&rDevice
, int contextWidth
, int contextHeight
, int tilePosX
, int tilePosY
, long tileWidth
, long tileHeight
);
261 bool IsPaintInProgress() const { return mbPaintInProgress
; }
262 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions
.empty(); }
264 // Notification that visible area has been changed.
265 // VisArea is reset, after that scrolling takes place.
266 // The passed rect is situated on pixel borders
267 // in order to avoid pixel errors when scrolling.
268 virtual void VisPortChgd( const SwRect
& );
269 bool SmoothScroll( long lXDiff
, long lYDiff
, const Rectangle
* );//Browser
270 void EnableSmooth( bool b
) { mbEnableSmooth
= b
; }
272 const SwRect
& VisArea() const { return maVisArea
; }
274 // If necessary scroll until passed Rect is situated in visible sector.
275 void MakeVisible( const SwRect
& );
277 // At nearest occasion pass new document size to UI.
278 void SizeChgNotify();
279 void UISizeNotify(); // Passing of current size.
281 Point
GetPagePos( sal_uInt16 nPageNum
) const;
283 sal_uInt16
GetNumPages(); // Ask count of current pages from layout.
284 bool IsDummyPage( sal_uInt16 nPageNum
) const; // An empty page?
286 // Invalidate first visible page for all Shells in ring.
287 void SetFirstVisPageInvalid();
289 SwRootFrm
*GetLayout() const;
290 bool IsNewLayout() const; // Has Layout been loaded or created?
292 Size
GetDocSize() const; // Get document size.
294 virtual void CalcLayout(); // Force complete formatting of layout.
296 sal_uInt16
GetPageCount() const;
298 const Size
GetPageSize( sal_uInt16 nPageNum
, bool bSkipEmptyPages
) const;
300 inline SwDoc
*GetDoc() const { return mpDoc
; } //Never 0.
302 /** Provides access to the document setting interface
304 const IDocumentSettingAccess
* getIDocumentSettingAccess() const;
305 IDocumentSettingAccess
* getIDocumentSettingAccess();
307 /** Provides access to the document device interface
309 const IDocumentDeviceAccess
* getIDocumentDeviceAccess() const;
310 IDocumentDeviceAccess
* getIDocumentDeviceAccess();
312 /** Provides access to the document bookmark interface
314 const IDocumentMarkAccess
* getIDocumentMarkAccess() const;
315 IDocumentMarkAccess
* getIDocumentMarkAccess();
317 /** Provides access to the document draw model interface
319 const IDocumentDrawModelAccess
* getIDocumentDrawModelAccess() const;
320 IDocumentDrawModelAccess
* getIDocumentDrawModelAccess();
322 /** Provides access to the document redline interface
324 const IDocumentRedlineAccess
* getIDocumentRedlineAccess() const;
325 IDocumentRedlineAccess
* getIDocumentRedlineAccess();
327 /** Provides access to the document layout interface
329 const IDocumentLayoutAccess
* getIDocumentLayoutAccess() const;
330 IDocumentLayoutAccess
* getIDocumentLayoutAccess();
332 /** Provides access to the content operations interface
334 IDocumentContentOperations
* getIDocumentContentOperations();
336 /** Provides access to the document style pool interface
338 IDocumentStylePoolAccess
* getIDocumentStylePoolAccess();
340 /** Provides access to the document statistics interface
342 const IDocumentStatistics
* getIDocumentStatistics() const;
344 /** Provides access to the document undo/redo interface
346 IDocumentUndoRedo
const& GetIDocumentUndoRedo() const;
347 IDocumentUndoRedo
& GetIDocumentUndoRedo();
349 const IDocumentListItems
* getIDocumentListItemsAccess() const;
350 const IDocumentOutlineNodes
* getIDocumentOutlineNodesAccess() const;
352 // 1. GetRefDev: Either the printer or the virtual device from the doc
353 // 2. GetWin: Available if we not printing
354 // 3. GetOut: Printer, Window or Virtual device
355 vcl::RenderContext
& GetRefDev() const;
356 inline vcl::Window
* GetWin() const { return mpWin
; }
357 inline vcl::RenderContext
* GetOut() const { return mpOut
; }
359 void SetWin(vcl::Window
* win
) { mpWin
= win
; }
360 void SetOut(vcl::RenderContext
* pOut
) { mpOut
= pOut
; }
361 static inline bool IsLstEndAction() { return SwViewShell::mbLstAct
; }
363 // Change of all page descriptors.
364 void ChgAllPageOrientation( Orientation eOri
);
365 void ChgAllPageSize( Size
&rSz
);
367 // Printing of one page.
368 // bIsPDFExport == true is: do PDF Export (no printing!)
369 bool PrintOrPDFExport( OutputDevice
*pOutDev
,
370 SwPrintData
const& rPrintData
,
371 sal_Int32 nRenderer
/* offset in vector of pages to print */ );
373 // Printing of one brochure page.
374 void PrintProspect( OutputDevice
*pOutDev
, const SwPrintData
&rPrintData
,
375 sal_Int32 nRenderer
/* offset in vector of page pairs for prospect printing */ );
377 // Printing for OLE 2.0.
378 static void PrtOle2( SwDoc
*pDoc
, const SwViewOption
*pOpt
, const SwPrintData
& rOptions
,
379 vcl::RenderContext
& rRenderContext
, const Rectangle
& rRect
);
381 // Fill temporary doc with selected text for Print or PDF export.
382 SwDoc
* FillPrtDoc( SwDoc
* pPrtDoc
, const SfxPrinter
* pPrt
);
384 // Called internally for Shell. Formats pages.
385 void CalcPagesForPrint( sal_uInt16 nMax
);
388 void UpdateFields(bool bCloseDB
= false);
389 bool IsAnyFieldInDoc() const;
390 // Update all charts, for that exists any table.
391 void UpdateAllCharts();
392 bool HasCharts() const;
394 // DOCUMENT COMPATIBILITY FLAGS START
396 // Add or maximize paragraph spacing?
397 void SetParaSpaceMax( bool bNew
);
399 // Add or maximize paragraph spacing?
400 void SetParaSpaceMaxAtPages( bool bNew
);
402 // Compatible behaviour of tabs.
403 void SetTabCompat( bool bNew
);
405 // Font metric attribute "External Leading" should be considered.
406 void SetAddExtLeading( bool bNew
);
408 // Formatting by virtual device or printer.
409 void SetUseVirDev( bool nNew
);
411 // Adding paragraph and table spacing at bottom
413 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells
);
415 // Former formatting of text lines with
416 // proportional line spacing or not.
417 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing
);
419 // Former object positioning.
420 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos
);
422 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos
);
424 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping
);
426 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak
);
428 // DOCUMENT COMPATIBILITY FLAGS END
430 // Calls Idle-formatter of Layout.
433 inline const SwViewOption
*GetViewOptions() const { return mpOpt
; }
434 virtual void ApplyViewOptions( const SwViewOption
&rOpt
);
435 void SetUIOptions( const SwViewOption
&rOpt
);
436 virtual void SetReadonlyOption(bool bSet
); // Set readonly-bit of ViewOptions.
437 void SetPDFExportOption(bool bSet
); // Set/reset PDF export mode.
438 void SetPrtFormatOption(bool bSet
); // Set PrtFormat-Bit of ViewOptions.
439 void SetReadonlySelectionOption(bool bSet
); // Change the selection mode in readonly docs.
441 const SwAccessibilityOptions
* GetAccessibilityOptions() const { return mpAccOptions
;}
443 static void SetShellRes( ShellResource
* pRes
) { mpShellRes
= pRes
; }
444 static ShellResource
* GetShellRes();
446 static void SetCareWin( vcl::Window
* pNew
);
447 static vcl::Window
* GetCareWin(SwViewShell
& rVSh
)
448 { return mpCareWindow
? mpCareWindow
.get() : CareChildWin(rVSh
); }
449 static vcl::Window
* CareChildWin(SwViewShell
& rVSh
);
451 inline SfxViewShell
*GetSfxViewShell() { return mpSfxViewShell
; }
452 inline void SetSfxViewShell(SfxViewShell
*pNew
) { mpSfxViewShell
= pNew
; }
454 // Selection of Draw Engine has been changed.
455 virtual void DrawSelChanged();
457 SwPagePreviewLayout
* PagePreviewLayout();
459 /** adjust view options for page preview
461 Because page preview should show the document as it is printed -
462 page preview is print preview -, the view options are adjusted to the
463 same as for printing.
465 @param _rPrintOptions
466 input parameter - constant reference to print options, to which the
467 view option will be adjusted.
469 void AdjustOptionsForPagePreview( SwPrintData
const& rPrintOptions
);
471 bool IsViewLocked() const { return mbViewLocked
; }
472 void LockView( bool b
) { mbViewLocked
= b
; }
474 inline void LockPaint();
475 void ImplLockPaint();
476 inline void UnlockPaint( bool bVirDev
= false );
477 void ImplUnlockPaint( bool bVirDev
);
478 bool IsPaintLocked() const { return mnLockPaint
!= 0; }
480 // Get/set DrawView and PageView.
481 bool HasDrawView() const;
484 // DrawView may be used at UI.
485 SdrView
*GetDrawView();
486 const SdrView
*GetDrawView() const { return const_cast<SwViewShell
*>(this)->GetDrawView(); }
488 // Take care that MarkList is up-to-date in any case (Bug 57153).
489 SdrView
*GetDrawViewWithValidMarkList();
491 // Query attribute pool.
492 inline const SfxItemPool
& GetAttrPool() const;
493 SfxItemPool
& GetAttrPool();
495 bool IsPreview() const { return mbPreview
; }
497 bool IsFrameView() const { return mbFrameView
; }
498 void SetFrameView( const Size
& rBrowseBorder
)
499 { mbFrameView
= true; maBrowseBorder
= rBrowseBorder
; }
501 // Makes the necessary invalidations:
502 // If BrowseMode has changed bBrowseChgd == true
503 // or bBrowseChgd == false in BrowseMode
504 // if proportions have changed.
505 void CheckBrowseView( bool bBrowseChgd
);
507 const Size
& GetBrowseBorder() const;
508 sal_Int32
GetBrowseWidth() const;
509 void SetBrowseBorder( const Size
& rNew
);
511 ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> CreateAccessible();
513 ::com::sun::star::uno::Reference
<
514 ::com::sun::star::accessibility::XAccessible
>
515 CreateAccessiblePreview();
517 void ShowPreviewSelection( sal_uInt16 nSelPage
);
518 void InvalidateAccessibleFocus();
520 // Apply Accessiblity options.
521 void ApplyAccessiblityOptions(SvtAccessibilityOptions
& rAccessibilityOptions
);
523 /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
528 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
529 has to be invalidated.
530 If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
533 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
534 has to be invalidated.
535 If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
537 void InvalidateAccessibleParaFlowRelation( const SwTextFrm
* _pFromTextFrm
,
538 const SwTextFrm
* _pToTextFrm
);
540 /** invalidate text selection for paragraphs
544 void InvalidateAccessibleParaTextSelection();
546 /** invalidate attributes for paragraphs and paragraph's characters
548 usage also for changes of the attributes of
549 paragraph's characters.
554 input parameter - paragraph frame, whose attributes have changed
556 void InvalidateAccessibleParaAttrs( const SwTextFrm
& rTextFrm
);
558 SwAccessibleMap
* GetAccessibleMap();
560 SwViewShell( SwViewShell
&, vcl::Window
*pWin
= 0, OutputDevice
*pOut
= 0,
562 SwViewShell( SwDoc
& rDoc
, vcl::Window
*pWin
,
563 const SwViewOption
*pOpt
= 0, OutputDevice
*pOut
= 0,
565 virtual ~SwViewShell();
567 sal_Int32
GetPageNumAndSetOffsetForPDF( OutputDevice
& rOut
, const SwRect
& rRect
) const;
569 inline bool IsInConstructor() const { return mbInConstructor
; }
571 static const BitmapEx
& GetReplacementBitmap( bool bIsErrorState
);
572 static void DeleteReplacementBitmaps();
574 const SwPostItMgr
* GetPostItMgr() const { return (const_cast<SwViewShell
*>(this))->GetPostItMgr(); }
575 SwPostItMgr
* GetPostItMgr();
577 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
578 void ToggleHeaderFooterEdit();
579 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
580 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit
; }
581 bool IsShowHeaderFooterSeparator( FrameControlType eControl
) { return (eControl
== Header
)? mbShowHeaderSeparator
: mbShowFooterSeparator
; }
582 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl
, bool bShow
) { if ( eControl
== Header
) mbShowHeaderSeparator
= bShow
; else mbShowFooterSeparator
= bShow
; }
583 bool IsSelectAll() { return mbSelectAll
; }
585 /// The actual implementation of the vcl::ITiledRenderable::registerCallback() API for Writer.
586 void registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback
, void* pLibreOfficeKitData
);
587 /// Invokes the registered callback, if there are any.
588 void libreOfficeKitCallback(int nType
, const char* pPayload
) const;
589 /// Set if we are doing tiled rendering.
590 void setTiledRendering(bool bTiledRendering
);
591 /// Are we doing tiled rendering?
592 bool isTiledRendering() const;
594 void setOutputToWindow(bool bOutputToWindow
);
595 bool isOutputToWindow() const;
599 // manages global ShellPointer
606 CurrShell( SwViewShell
*pNew
);
610 inline void SwViewShell::ResetInvalidRect()
612 maInvalidRect
.Clear();
615 inline void SwViewShell::StartAction()
617 if ( !mnStartAction
++ )
620 inline void SwViewShell::EndAction( const bool bIdleEnd
)
622 if( 0 == (mnStartAction
- 1) )
623 ImplEndAction( bIdleEnd
);
627 inline void SwViewShell::LockPaint()
629 if ( !mnLockPaint
++ )
632 inline void SwViewShell::UnlockPaint( bool bVirDev
)
634 if ( 0 == --mnLockPaint
)
635 ImplUnlockPaint( bVirDev
);
637 inline const SfxItemPool
& SwViewShell::GetAttrPool() const
639 return const_cast<SwViewShell
*>(this)->GetAttrPool();
642 #endif // INCLUDED_SW_INC_VIEWSH_HXX
644 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */