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
23 #include "swtypes.hxx"
28 #include <vcl/mapmod.hxx>
29 #include <vcl/vclptr.hxx>
30 #include <vcl/lazydelete.hxx>
31 #include <vcl/window.hxx>
33 namespace com::sun::star::accessibility
{ class XAccessible
; }
35 class IDocumentSettingAccess
;
36 class IDocumentDeviceAccess
;
37 class IDocumentMarkAccess
;
38 class IDocumentDrawModelAccess
;
39 class IDocumentRedlineAccess
;
40 class IDocumentLayoutAccess
;
41 class IDocumentContentOperations
;
42 class IDocumentStylePoolAccess
;
43 class IDocumentStatistics
;
44 class IDocumentUndoRedo
;
45 class IDocumentListItems
;
46 class IDocumentOutlineNodes
;
58 class SvtAccessibilityOptions
;
59 class SwPagePreviewLayout
;
62 struct SwAccessibilityOptions
;
63 namespace vcl
{ class Region
; }
66 class SwAccessibleMap
;
67 enum class Orientation
;
71 typedef OutputDevice RenderContext
;
74 // Define for flags needed in ctor or layers below.
75 // Currently the Preview flag is needed for DrawPage.
76 #define VSHELLFLAG_ISPREVIEW (tools::Long(0x1))
77 #define VSHELLFLAG_SHARELAYOUT (tools::Long(0x2))
78 typedef std::shared_ptr
<SwRootFrame
> SwRootFramePtr
;
80 typedef struct _xmlTextWriter
* xmlTextWriterPtr
;
82 class SW_DLLPUBLIC SwViewShell
: public sw::Ring
<SwViewShell
>
84 friend void SetOutDev( SwViewShell
*pSh
, OutputDevice
*pOut
);
85 friend void SetOutDevAndWin( SwViewShell
*pSh
, OutputDevice
*pOut
,
86 vcl::Window
*pWin
, sal_uInt16 nZoom
);
88 friend class SwViewShellImp
;
89 friend class SwLayIdle
;
91 // For setting visible area for page preview paint.
92 friend class SwPagePreviewLayout
;
94 // Set SwVisArea in order to enable clean formatting before printing.
95 friend void SetSwVisArea( SwViewShell
*pSh
, const SwRect
& );
97 std::unique_ptr
<BitmapEx
> m_xReplaceBmp
; ///< replaced display of still loaded images
98 std::unique_ptr
<BitmapEx
> m_xErrorBmp
; ///< error display of missed images
100 static bool mbLstAct
; // true if EndAction of last Shell
101 // i.e. if the EndActions of the other
102 // Shells on the document are through.
104 Point maPrtOffset
; // Offset for Printer,
105 // non-printable margin.
106 Size maBrowseBorder
; // Border for frame documents.
107 SwRect maInvalidRect
;
109 SfxViewShell
*mpSfxViewShell
;
110 std::unique_ptr
<SwViewShellImp
>
111 mpImp
; // Core-internals of SwViewShell.
112 // The pointer is never 0.
114 VclPtr
<vcl::Window
> mpWin
; ///< = 0 during printing or pdf export
115 VclPtr
<OutputDevice
> mpOut
; ///< Window, Printer, VirtDev, ...
117 std::unique_ptr
<SwViewOption
> mpOpt
;
118 std::unique_ptr
<SwAccessibilityOptions
> mpAccOptions
;
120 bool mbDocSizeChgd
:1; // For DocChgNotify(): Announce new DocSize
121 // at EndAction to DocMDI.
122 bool mbPaintWorks
:1; // Normal Painting if true,
123 // remember Paint if false.
124 bool mbPaintInProgress
:1; // Block any double paint.
125 bool mbViewLocked
:1; // Lock visible range;
126 // in this case MakeVisible is ineffectual.
127 bool mbInEndAction
:1; // Avoid problems, cf. viewsh.cxx.
128 bool mbPreview
:1; // If true it is a Preview-SwViewShell.
129 bool mbFrameView
:1; // If true it is a (HTML-)Frame.
130 bool mbEnableSmooth
:1; // Disable SmoothScroll, e.g. for drag
132 bool mbEndActionByVirDev
:1; // Paints from EndAction always via virtual device
133 // (e.g. when browsing).
134 bool mbShowHeaderSeparator
:1; ///< Flag to say that we are showing the header control
135 bool mbShowFooterSeparator
:1; ///< Flag to say that we are showing the footer control
136 bool mbHeaderFooterEdit
:1; ///< Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator above)
138 // boolean, indicating that class in constructor.
139 bool mbInConstructor
:1;
141 SdrPaintWindow
* mpTargetPaintWindow
;
142 VclPtr
<OutputDevice
> mpBufferedOut
;
144 SwRootFramePtr mpLayout
;
146 // Initialization; called by the diverse constructors.
147 SAL_DLLPRIVATE
void Init( const SwViewOption
*pNewOpt
);
149 inline void ResetInvalidRect();
153 SAL_DLLPRIVATE
void PaintDesktop(vcl::RenderContext
& rRenderContext
, const SwRect
&); // Collect values for painting of desktop
155 // PaintDesktop split. This pars is also used by PreviewPage.
156 SAL_DLLPRIVATE
void PaintDesktop_(const SwRegionRects
&rRegion
);
158 SAL_DLLPRIVATE
bool CheckInvalidForPaint( const SwRect
& ); // Direct Paint or rather
159 // trigger an action.
161 SAL_DLLPRIVATE
void PrepareForPrint( const SwPrintData
&rOptions
, bool bIsPDFExport
= false );
163 SAL_DLLPRIVATE
void ImplApplyViewOptions( const SwViewOption
&rOpt
);
166 static ShellResource
* mpShellRes
; ///< Resources for the Shell.
167 static vcl::DeleteOnDeinit
< std::shared_ptr
<weld::Window
> > mpCareDialog
; ///< Avoid this window.
169 SwRect maVisArea
; ///< The modern version of VisArea.
170 tools::Rectangle maLOKVisibleArea
;///< The visible area in the LibreOfficeKit client.
171 rtl::Reference
<SwDoc
> mxDoc
; ///< The document; never 0.
173 sal_uInt16 mnStartAction
; ///< != 0 if at least one Action is active.
174 sal_uInt16 mnLockPaint
; ///< != 0 if Paint is locked.
175 bool mbSelectAll
; ///< Special select all mode: whole document selected, even if doc starts with table.
177 /// The virtual device we paint to will end up on the screen.
178 bool mbOutputToWindow
;
182 SwViewShellImp
*Imp() { return mpImp
.get(); }
183 const SwViewShellImp
*Imp() const { return mpImp
.get(); }
185 const SwNodes
& GetNodes() const;
187 // After change of printer; by Doc.
188 void InitPrt( OutputDevice
*pOutDev
);
190 // Bracketing of actions belonging together.
191 inline void StartAction();
192 void ImplStartAction();
193 inline void EndAction( const bool bIdleEnd
= false );
194 void ImplEndAction( const bool bIdleEnd
);
195 sal_uInt16
ActionCount() const { return mnStartAction
; }
196 bool ActionPend() const { return mnStartAction
!= 0; }
197 bool IsInEndAction() const { return mbInEndAction
; }
199 void SetEndActionByVirDev( bool b
) { mbEndActionByVirDev
= b
; }
200 bool IsEndActionByVirDev() const { return mbEndActionByVirDev
; }
202 // The ActionCount for all Shells is temporarily set to zero and then
203 // restored at the RootFrame via UNO.
204 void SetRestoreActions(sal_uInt16 nSet
);
205 sal_uInt16
GetRestoreActions() const;
207 bool HasInvalidRect() const { return maInvalidRect
.HasArea(); }
208 void ChgHyphenation() { Reformat(); }
209 void ChgNumberDigits();
211 bool AddPaintRect( const SwRect
&rRect
);
213 void InvalidateWindows( const SwRect
&rRect
);
214 void FlushPendingLOKInvalidateTiles();
216 /// Invalidates complete Layout (ApplyViewOption).
219 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
221 std::stack
<vcl::Region
> mPrePostPaintRegions
; // acts also as a lock counter (empty == not locked)
222 VclPtr
<OutputDevice
> mpPrePostOutDev
;
223 MapMode maPrePostMapMode
;
226 void DLPrePaint2(const vcl::Region
& rRegion
);
227 void DLPostPaint2(bool bPaintFormLayer
);
228 const MapMode
& getPrePostMapMode() const { return maPrePostMapMode
; }
230 virtual void Paint(vcl::RenderContext
& rRenderContext
, const tools::Rectangle
&rRect
);
234 Sets the pOut so that the rRect is always painted over the entire
235 pOut, ie. starts in 0,0 and ends in width/height.
237 void PaintTile(VirtualDevice
&rDevice
, int contextWidth
, int contextHeight
, int tilePosX
, int tilePosY
, tools::Long tileWidth
, tools::Long tileHeight
);
239 bool IsPaintInProgress() const { return mbPaintInProgress
; }
240 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions
.empty(); }
242 // Notification that visible area has been changed.
243 // VisArea is reset, after that scrolling takes place.
244 // The passed rect is situated on pixel borders
245 // in order to avoid pixel errors when scrolling.
246 virtual void VisPortChgd( const SwRect
& );
247 bool SmoothScroll( tools::Long lXDiff
, tools::Long lYDiff
, const tools::Rectangle
* );//Browser
248 void EnableSmooth( bool b
) { mbEnableSmooth
= b
; }
250 const SwRect
& VisArea() const;
252 /// The visible area in the client (set by setClientVisibleArea).
253 const tools::Rectangle
& getLOKVisibleArea() const { return maLOKVisibleArea
; }
254 void setLOKVisibleArea(const tools::Rectangle
& rArea
) { maLOKVisibleArea
= rArea
; }
256 // If necessary scroll until passed Rect is situated in visible sector.
257 void MakeVisible( const SwRect
& );
259 // At nearest occasion pass new document size to UI.
260 void SizeChgNotify();
261 void UISizeNotify(); // Passing of current size.
263 Point
GetPagePos( sal_uInt16 nPageNum
) const;
265 sal_uInt16
GetNumPages() const; // Ask count of current pages from layout.
266 bool IsDummyPage( sal_uInt16 nPageNum
) const; // An empty page?
268 // Invalidate first visible page for all Shells in ring.
269 void SetFirstVisPageInvalid();
271 SwRootFrame
*GetLayout() const;
272 bool IsNewLayout() const; // Has Layout been loaded or created?
274 Size
GetDocSize() const; // Get document size.
276 virtual void CalcLayout(); // Force complete formatting of layout.
278 sal_uInt16
GetPageCount() const;
280 Size
GetPageSize( sal_uInt16 nPageNum
, bool bSkipEmptyPages
) const;
282 SwDoc
*GetDoc() const { return mxDoc
.get(); } //Never 0.
284 /** Provides access to the document setting interface
286 const IDocumentSettingAccess
& getIDocumentSettingAccess() const;
287 IDocumentSettingAccess
& getIDocumentSettingAccess();
289 /** Provides access to the document device interface
291 const IDocumentDeviceAccess
& getIDocumentDeviceAccess() const;
292 IDocumentDeviceAccess
& getIDocumentDeviceAccess();
294 /** Provides access to the document bookmark interface
296 const IDocumentMarkAccess
* getIDocumentMarkAccess() const;
297 IDocumentMarkAccess
* getIDocumentMarkAccess();
299 /** Provides access to the document draw model interface
301 const IDocumentDrawModelAccess
& getIDocumentDrawModelAccess() const;
302 IDocumentDrawModelAccess
& getIDocumentDrawModelAccess();
304 /** Provides access to the document redline interface
306 const IDocumentRedlineAccess
& getIDocumentRedlineAccess() const;
307 IDocumentRedlineAccess
& getIDocumentRedlineAccess();
309 /** Provides access to the document layout interface
311 const IDocumentLayoutAccess
& getIDocumentLayoutAccess() const;
312 IDocumentLayoutAccess
& getIDocumentLayoutAccess();
314 /** Provides access to the content operations interface
316 IDocumentContentOperations
& getIDocumentContentOperations();
318 /** Provides access to the document style pool interface
320 IDocumentStylePoolAccess
& getIDocumentStylePoolAccess();
322 /** Provides access to the document statistics interface
324 const IDocumentStatistics
& getIDocumentStatistics() const;
326 /** Provides access to the document undo/redo interface
328 IDocumentUndoRedo
const& GetIDocumentUndoRedo() const;
329 IDocumentUndoRedo
& GetIDocumentUndoRedo();
331 const IDocumentListItems
* getIDocumentListItemsAccess() const;
332 const IDocumentOutlineNodes
* getIDocumentOutlineNodesAccess() const;
334 // 1. GetRefDev: Either the printer or the virtual device from the doc
335 // 2. GetWin: Available if we not printing
336 // 3. GetOut: Printer, Window or Virtual device
337 vcl::RenderContext
& GetRefDev() const;
338 vcl::Window
* GetWin() const { return mpWin
; }
339 vcl::RenderContext
* GetOut() const { return mpOut
; }
341 void SetWin(vcl::Window
* win
) { mpWin
= win
; }
342 void SetOut(vcl::RenderContext
* pOut
) { mpOut
= pOut
; }
343 static bool IsLstEndAction() { return SwViewShell::mbLstAct
; }
345 // Change of all page descriptors.
346 void ChgAllPageOrientation( Orientation eOri
);
347 void ChgAllPageSize( Size
const &rSz
);
349 // Printing of one page.
350 // bIsPDFExport == true is: do PDF Export (no printing!)
351 bool PrintOrPDFExport( OutputDevice
*pOutDev
,
352 SwPrintData
const& rPrintData
,
353 sal_Int32 nRenderer
, /* offset in vector of pages to print */
356 // Printing of one brochure page.
357 void PrintProspect( OutputDevice
*pOutDev
, const SwPrintData
&rPrintData
,
358 sal_Int32 nRenderer
/* offset in vector of page pairs for prospect printing */ );
360 // Printing for OLE 2.0.
361 static void PrtOle2( SwDoc
*pDoc
, const SwViewOption
*pOpt
, const SwPrintData
& rOptions
,
362 vcl::RenderContext
& rRenderContext
, const tools::Rectangle
& rRect
);
364 // Fill temporary doc with selected text for Print or PDF export.
365 void FillPrtDoc( SwDoc
& rPrtDoc
, const SfxPrinter
* pPrt
);
367 // Called internally for Shell. Formats pages.
368 void CalcPagesForPrint( sal_uInt16 nMax
);
371 void UpdateFields(bool bCloseDB
= false);
372 bool IsAnyFieldInDoc() const;
373 // Update all charts, for that exists any table.
374 void UpdateAllCharts();
375 bool HasCharts() const;
377 // DOCUMENT COMPATIBILITY FLAGS START
379 // Add or maximize paragraph spacing?
380 void SetParaSpaceMax( bool bNew
);
382 // Add or maximize paragraph spacing?
383 void SetParaSpaceMaxAtPages( bool bNew
);
385 // Compatible behaviour of tabs.
386 void SetTabCompat( bool bNew
);
388 // Font metric attribute "External Leading" should be considered.
389 void SetAddExtLeading( bool bNew
);
391 // Formatting by virtual device or printer.
392 void SetUseVirDev( bool bNew
);
394 // Adding paragraph and table spacing at bottom
396 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells
);
398 // Former formatting of text lines with
399 // proportional line spacing or not.
400 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing
);
402 // Former object positioning.
403 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos
);
405 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos
);
407 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping
);
409 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak
);
411 void SetProtectForm( bool _bProtectForm
);
413 void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks
);
415 void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys
);
417 void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara
);
419 // DOCUMENT COMPATIBILITY FLAGS END
421 // Calls Idle-formatter of Layout.
424 const SwViewOption
*GetViewOptions() const { return mpOpt
.get(); }
425 virtual void ApplyViewOptions( const SwViewOption
&rOpt
);
426 void SetUIOptions( const SwViewOption
&rOpt
);
427 virtual void SetReadonlyOption(bool bSet
); // Set readonly-bit of ViewOptions.
428 void SetPDFExportOption(bool bSet
); // Set/reset PDF export mode.
429 void SetPrtFormatOption(bool bSet
); // Set PrtFormat-Bit of ViewOptions.
430 void SetReadonlySelectionOption(bool bSet
); // Change the selection mode in readonly docs.
432 const SwAccessibilityOptions
* GetAccessibilityOptions() const { return mpAccOptions
.get();}
434 static void SetShellRes( ShellResource
* pRes
) { mpShellRes
= pRes
; }
435 static ShellResource
* GetShellRes();
437 static weld::Window
* CareChildWin(SwViewShell
const & rVSh
);
438 static void SetCareDialog(const std::shared_ptr
<weld::Window
>& rNew
);
439 static weld::Window
* GetCareDialog(SwViewShell
const & rVSh
)
440 { return (*mpCareDialog
.get()) ? mpCareDialog
.get()->get() : CareChildWin(rVSh
); }
442 SfxViewShell
*GetSfxViewShell() const { return mpSfxViewShell
; }
443 void SetSfxViewShell(SfxViewShell
*pNew
) { mpSfxViewShell
= pNew
; }
445 // Selection of Draw Engine has been changed.
446 virtual void DrawSelChanged();
448 SwPagePreviewLayout
* PagePreviewLayout();
450 /** adjust view options for page preview
452 Because page preview should show the document as it is printed -
453 page preview is print preview -, the view options are adjusted to the
454 same as for printing.
456 @param _rPrintOptions
457 input parameter - constant reference to print options, to which the
458 view option will be adjusted.
460 void AdjustOptionsForPagePreview( SwPrintData
const& rPrintOptions
);
462 bool IsViewLocked() const { return mbViewLocked
; }
463 void LockView( bool b
) { mbViewLocked
= b
; }
465 inline void LockPaint();
466 void ImplLockPaint();
467 inline void UnlockPaint( bool bVirDev
= false );
468 void ImplUnlockPaint( bool bVirDev
);
469 bool IsPaintLocked() const { return mnLockPaint
!= 0; }
471 // Get/set DrawView and PageView.
472 bool HasDrawView() const;
475 // Are we dragging draw shapes around.
476 bool HasDrawViewDrag() const;
478 // DrawView may be used at UI.
479 SdrView
*GetDrawView();
480 const SdrView
*GetDrawView() const { return const_cast<SwViewShell
*>(this)->GetDrawView(); }
482 // Take care that MarkList is up-to-date in any case (Bug 57153).
483 SdrView
*GetDrawViewWithValidMarkList();
485 // Query attribute pool.
486 inline const SfxItemPool
& GetAttrPool() const;
487 SfxItemPool
& GetAttrPool();
489 bool IsPreview() const { return mbPreview
; }
491 bool IsFrameView() const { return mbFrameView
; }
493 // Invalidates pages and contents.
494 // When bSizeChanged==true, adds/removes
495 // headers and footers as necessary.
496 void InvalidateLayout(bool bSizeChanged
);
498 const Size
& GetBrowseBorder() const;
499 sal_Int32
GetBrowseWidth() const;
500 void SetBrowseBorder( const Size
& rNew
);
502 css::uno::Reference
< css::accessibility::XAccessible
> CreateAccessible();
504 css::uno::Reference
< css::accessibility::XAccessible
> CreateAccessiblePreview();
506 void ShowPreviewSelection( sal_uInt16 nSelPage
);
507 void InvalidateAccessibleFocus();
509 // Apply Accessibility options.
510 void ApplyAccessibilityOptions(SvtAccessibilityOptions
const & rAccessibilityOptions
);
512 /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
514 @param _pFromTextFrame
515 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
516 has to be invalidated.
517 If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
520 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
521 has to be invalidated.
522 If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
524 void InvalidateAccessibleParaFlowRelation( const SwTextFrame
* _pFromTextFrame
,
525 const SwTextFrame
* _pToTextFrame
);
527 /** invalidate text selection for paragraphs
529 void InvalidateAccessibleParaTextSelection();
531 /** invalidate attributes for paragraphs and paragraph's characters
533 usage also for changes of the attributes of
534 paragraph's characters.
537 input parameter - paragraph frame, whose attributes have changed
539 void InvalidateAccessibleParaAttrs( const SwTextFrame
& rTextFrame
);
541 SwAccessibleMap
* GetAccessibleMap();
543 SwViewShell( SwViewShell
&, vcl::Window
*pWin
, OutputDevice
*pOut
= nullptr,
544 tools::Long nFlags
= 0 );
545 SwViewShell( SwDoc
& rDoc
, vcl::Window
*pWin
,
546 const SwViewOption
*pOpt
, OutputDevice
*pOut
= nullptr,
547 tools::Long nFlags
= 0 );
548 virtual ~SwViewShell() override
;
550 sal_Int32
GetPageNumAndSetOffsetForPDF( OutputDevice
& rOut
, const SwRect
& rRect
) const;
552 bool IsInConstructor() const { return mbInConstructor
; }
554 const BitmapEx
& GetReplacementBitmap(bool bIsErrorState
);
555 void DeleteReplacementBitmaps();
557 const SwPostItMgr
* GetPostItMgr() const { return const_cast<SwViewShell
*>(this)->GetPostItMgr(); }
558 SwPostItMgr
* GetPostItMgr();
560 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
561 void ToggleHeaderFooterEdit();
562 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
563 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit
; }
564 bool IsShowHeaderFooterSeparator( FrameControlType eControl
) { return (eControl
== FrameControlType::Header
)? mbShowHeaderSeparator
: mbShowFooterSeparator
; }
565 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl
, bool bShow
);
566 bool IsSelectAll() const { return mbSelectAll
; }
568 void setOutputToWindow(bool bOutputToWindow
);
569 bool isOutputToWindow() const;
570 void OnGraphicArrived(const SwRect
&);
572 virtual void dumpAsXml(xmlTextWriterPtr pWriter
) const;
575 // manages global ShellPointer
582 CurrShell( SwViewShell
*pNew
);
586 inline void SwViewShell::ResetInvalidRect()
588 maInvalidRect
.Clear();
591 inline void SwViewShell::StartAction()
593 if ( !mnStartAction
++ )
596 inline void SwViewShell::EndAction( const bool bIdleEnd
)
598 if( 0 == (mnStartAction
- 1) )
599 ImplEndAction( bIdleEnd
);
603 inline void SwViewShell::LockPaint()
605 if ( !mnLockPaint
++ )
608 inline void SwViewShell::UnlockPaint( bool bVirDev
)
610 if ( 0 == --mnLockPaint
)
611 ImplUnlockPaint( bVirDev
);
613 inline const SfxItemPool
& SwViewShell::GetAttrPool() const
615 return const_cast<SwViewShell
*>(this)->GetAttrPool();
618 #endif // INCLUDED_SW_INC_VIEWSH_HXX
620 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */