Resolves tdf#142513 - Order of ZoomIn and ZoomOut at Print Preview
[LibreOffice.git] / sw / inc / viewsh.hxx
blob4800cadcf9baf52a3672af21c6f760f192fdc32a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #pragma once
22 #include "swdllapi.h"
23 #include "swtypes.hxx"
24 #include "ring.hxx"
25 #include "swrect.hxx"
26 #include <memory>
27 #include <stack>
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; }
34 class SwDoc;
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;
47 class SfxPrinter;
48 class SwRootFrame;
49 class SwNodes;
50 class SdrView;
51 class SfxItemPool;
52 class SfxViewShell;
53 class SwViewOption;
54 class SwViewShellImp;
55 class SwPrintData;
56 struct ShellResource;
57 class SwRegionRects;
58 class SvtAccessibilityOptions;
59 class SwPagePreviewLayout;
60 class SwTextFrame;
62 struct SwAccessibilityOptions;
63 namespace vcl { class Region; }
64 class SwPostItMgr;
65 class SdrPaintWindow;
66 class SwAccessibleMap;
67 enum class Orientation;
69 namespace vcl
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 sbLstAct; // 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
131 // of scrollbars.
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
154 // and calling.
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 );
165 protected:
166 static ShellResource* spShellRes; ///< Resources for the Shell.
167 static vcl::DeleteOnDeinit< std::shared_ptr<weld::Window> > spCareDialog; ///< 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;
180 public:
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 );
215 /// Invalidates complete Layout (ApplyViewOption).
216 void Reformat();
218 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
219 protected:
220 std::stack<vcl::Region> mPrePostPaintRegions; // acts also as a lock counter (empty == not locked)
221 VclPtr<OutputDevice> mpPrePostOutDev;
222 MapMode maPrePostMapMode;
223 public:
224 void PrePaint();
225 void DLPrePaint2(const vcl::Region& rRegion);
226 void DLPostPaint2(bool bPaintFormLayer);
227 const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
229 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
231 /** Paint tile.
233 Sets the pOut so that the rRect is always painted over the entire
234 pOut, ie. starts in 0,0 and ends in width/height.
236 void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, tools::Long tileWidth, tools::Long tileHeight);
238 bool IsPaintInProgress() const { return mbPaintInProgress; }
239 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
241 // Notification that visible area has been changed.
242 // VisArea is reset, after that scrolling takes place.
243 // The passed rect is situated on pixel borders
244 // in order to avoid pixel errors when scrolling.
245 virtual void VisPortChgd( const SwRect & );
246 bool SmoothScroll( tools::Long lXDiff, tools::Long lYDiff, const tools::Rectangle* );//Browser
247 void EnableSmooth( bool b ) { mbEnableSmooth = b; }
249 const SwRect& VisArea() const;
251 /// The visible area in the client (set by setClientVisibleArea).
252 const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
253 void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
255 // If necessary scroll until passed Rect is situated in visible sector.
256 void MakeVisible( const SwRect & );
258 // At nearest occasion pass new document size to UI.
259 void SizeChgNotify();
260 void UISizeNotify(); // Passing of current size.
262 Point GetPagePos( sal_uInt16 nPageNum ) const;
264 sal_uInt16 GetNumPages() const; // Ask count of current pages from layout.
265 bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
267 // Invalidate first visible page for all Shells in ring.
268 void SetFirstVisPageInvalid();
270 SwRootFrame *GetLayout() const;
271 bool IsNewLayout() const; // Has Layout been loaded or created?
273 Size GetDocSize() const; // Get document size.
275 virtual void CalcLayout(); // Force complete formatting of layout.
277 sal_uInt16 GetPageCount() const;
279 Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
281 SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
283 /** Provides access to the document setting interface
285 const IDocumentSettingAccess& getIDocumentSettingAccess() const;
286 IDocumentSettingAccess& getIDocumentSettingAccess();
288 /** Provides access to the document device interface
290 const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
291 IDocumentDeviceAccess& getIDocumentDeviceAccess();
293 /** Provides access to the document bookmark interface
295 const IDocumentMarkAccess* getIDocumentMarkAccess() const;
296 IDocumentMarkAccess* getIDocumentMarkAccess();
298 /** Provides access to the document draw model interface
300 const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
301 IDocumentDrawModelAccess& getIDocumentDrawModelAccess();
303 /** Provides access to the document redline interface
305 const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
306 IDocumentRedlineAccess& getIDocumentRedlineAccess();
308 /** Provides access to the document layout interface
310 const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
311 IDocumentLayoutAccess& getIDocumentLayoutAccess();
313 /** Provides access to the content operations interface
315 IDocumentContentOperations& getIDocumentContentOperations();
317 /** Provides access to the document style pool interface
319 IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
321 /** Provides access to the document statistics interface
323 const IDocumentStatistics& getIDocumentStatistics() const;
325 /** Provides access to the document undo/redo interface
327 IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
328 IDocumentUndoRedo & GetIDocumentUndoRedo();
330 const IDocumentListItems* getIDocumentListItemsAccess() const;
331 const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
333 // 1. GetRefDev: Either the printer or the virtual device from the doc
334 // 2. GetWin: Available if we not printing
335 // 3. GetOut: Printer, Window or Virtual device
336 vcl::RenderContext& GetRefDev() const;
337 vcl::Window* GetWin() const { return mpWin; }
338 vcl::RenderContext* GetOut() const { return mpOut; }
340 void SetWin(vcl::Window* win) { mpWin = win; }
341 void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; }
342 static bool IsLstEndAction() { return SwViewShell::sbLstAct; }
344 // Change of all page descriptors.
345 void ChgAllPageOrientation( Orientation eOri );
346 void ChgAllPageSize( Size const &rSz );
348 // Printing of one page.
349 // bIsPDFExport == true is: do PDF Export (no printing!)
350 bool PrintOrPDFExport( OutputDevice *pOutDev,
351 SwPrintData const& rPrintData,
352 sal_Int32 nRenderer, /* offset in vector of pages to print */
353 bool bIsPDFExport );
355 // Printing of one brochure page.
356 void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
357 sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
359 // Printing for OLE 2.0.
360 static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
361 vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect );
363 // Fill temporary doc with selected text for Print or PDF export.
364 void FillPrtDoc( SwDoc& rPrtDoc, const SfxPrinter* pPrt );
366 // Called internally for Shell. Formats pages.
367 void CalcPagesForPrint( sal_uInt16 nMax );
369 // All about fields.
370 void UpdateFields(bool bCloseDB = false);
371 bool IsAnyFieldInDoc() const;
372 // Update all charts, for that exists any table.
373 void UpdateAllCharts();
374 bool HasCharts() const;
376 // DOCUMENT COMPATIBILITY FLAGS START
378 // Add or maximize paragraph spacing?
379 void SetParaSpaceMax( bool bNew );
381 // Add or maximize paragraph spacing?
382 void SetParaSpaceMaxAtPages( bool bNew );
384 // Compatible behaviour of tabs.
385 void SetTabCompat( bool bNew );
387 // Font metric attribute "External Leading" should be considered.
388 void SetAddExtLeading( bool bNew );
390 // Formatting by virtual device or printer.
391 void SetUseVirDev( bool bNew );
393 // Adding paragraph and table spacing at bottom
394 // of table cells.
395 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
397 // Former formatting of text lines with
398 // proportional line spacing or not.
399 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
401 // Former object positioning.
402 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
404 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
406 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
408 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
410 void SetProtectForm( bool _bProtectForm );
412 void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
414 void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
416 void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
418 // DOCUMENT COMPATIBILITY FLAGS END
420 // Calls Idle-formatter of Layout.
421 void LayoutIdle();
423 const SwViewOption *GetViewOptions() const { return mpOpt.get(); }
424 virtual void ApplyViewOptions( const SwViewOption &rOpt );
425 void SetUIOptions( const SwViewOption &rOpt );
426 virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions.
427 void SetPDFExportOption(bool bSet); // Set/reset PDF export mode.
428 void SetPrtFormatOption(bool bSet); // Set PrtFormat-Bit of ViewOptions.
429 void SetReadonlySelectionOption(bool bSet); // Change the selection mode in readonly docs.
431 const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
433 static void SetShellRes( ShellResource* pRes ) { spShellRes = pRes; }
434 static ShellResource* GetShellRes();
436 static weld::Window* CareChildWin(SwViewShell const & rVSh);
437 static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
438 static weld::Window* GetCareDialog(SwViewShell const & rVSh)
439 { return (*spCareDialog.get()) ? spCareDialog.get()->get() : CareChildWin(rVSh); }
441 SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
442 void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
444 // Selection of Draw Engine has been changed.
445 virtual void DrawSelChanged();
447 SwPagePreviewLayout* PagePreviewLayout();
449 /** adjust view options for page preview
451 Because page preview should show the document as it is printed -
452 page preview is print preview -, the view options are adjusted to the
453 same as for printing.
455 @param _rPrintOptions
456 input parameter - constant reference to print options, to which the
457 view option will be adjusted.
459 void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
461 bool IsViewLocked() const { return mbViewLocked; }
462 void LockView( bool b ) { mbViewLocked = b; }
464 inline void LockPaint();
465 void ImplLockPaint();
466 inline void UnlockPaint( bool bVirDev = false );
467 void ImplUnlockPaint( bool bVirDev );
468 bool IsPaintLocked() const { return mnLockPaint != 0; }
470 // Get/set DrawView and PageView.
471 bool HasDrawView() const;
472 void MakeDrawView();
474 // Are we dragging draw shapes around.
475 bool HasDrawViewDrag() const;
477 // DrawView may be used at UI.
478 SdrView *GetDrawView();
479 const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
481 // Take care that MarkList is up-to-date in any case (Bug 57153).
482 SdrView *GetDrawViewWithValidMarkList();
484 // Query attribute pool.
485 inline const SfxItemPool& GetAttrPool() const;
486 SfxItemPool& GetAttrPool();
488 bool IsPreview() const { return mbPreview; }
490 bool IsFrameView() const { return mbFrameView; }
492 // Invalidates pages and contents.
493 // When bSizeChanged==true, adds/removes
494 // headers and footers as necessary.
495 void InvalidateLayout(bool bSizeChanged);
497 const Size& GetBrowseBorder() const;
498 sal_Int32 GetBrowseWidth() const;
499 void SetBrowseBorder( const Size& rNew );
501 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible();
503 css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview();
505 void ShowPreviewSelection( sal_uInt16 nSelPage );
506 void InvalidateAccessibleFocus();
508 // Apply Accessibility options.
509 void ApplyAccessibilityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
511 /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
513 @param _pFromTextFrame
514 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
515 has to be invalidated.
516 If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
518 @param _pToTextFrame
519 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
520 has to be invalidated.
521 If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
523 void InvalidateAccessibleParaFlowRelation( const SwTextFrame* _pFromTextFrame,
524 const SwTextFrame* _pToTextFrame );
526 /** invalidate text selection for paragraphs
528 void InvalidateAccessibleParaTextSelection();
530 /** invalidate attributes for paragraphs and paragraph's characters
532 usage also for changes of the attributes of
533 paragraph's characters.
535 @param rTextFrame
536 input parameter - paragraph frame, whose attributes have changed
538 void InvalidateAccessibleParaAttrs( const SwTextFrame& rTextFrame );
540 SwAccessibleMap* GetAccessibleMap();
542 SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
543 tools::Long nFlags = 0 );
544 SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
545 const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
546 tools::Long nFlags = 0 );
547 virtual ~SwViewShell() override;
549 sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
551 bool IsInConstructor() const { return mbInConstructor; }
553 const BitmapEx& GetReplacementBitmap(bool bIsErrorState);
554 void DeleteReplacementBitmaps();
556 const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
557 SwPostItMgr* GetPostItMgr();
559 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
560 void ToggleHeaderFooterEdit();
561 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
562 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; }
563 bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == FrameControlType::Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
564 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow );
565 bool IsSelectAll() const { return mbSelectAll; }
567 void setOutputToWindow(bool bOutputToWindow);
568 bool isOutputToWindow() const;
569 void OnGraphicArrived(const SwRect&);
571 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
574 // manages global ShellPointer
575 class CurrShell
577 public:
578 SwViewShell *pPrev;
579 SwRootFrame *pRoot;
581 CurrShell( SwViewShell *pNew );
582 ~CurrShell();
585 inline void SwViewShell::ResetInvalidRect()
587 maInvalidRect.Clear();
590 inline void SwViewShell::StartAction()
592 if ( !mnStartAction++ )
593 ImplStartAction();
595 inline void SwViewShell::EndAction( const bool bIdleEnd )
597 if( 0 == (mnStartAction - 1) )
598 ImplEndAction( bIdleEnd );
599 --mnStartAction;
602 inline void SwViewShell::LockPaint()
604 if ( !mnLockPaint++ )
605 ImplLockPaint();
607 inline void SwViewShell::UnlockPaint( bool bVirDev )
609 if ( 0 == --mnLockPaint )
610 ImplUnlockPaint( bVirDev );
612 inline const SfxItemPool& SwViewShell::GetAttrPool() const
614 return const_cast<SwViewShell*>(this)->GetAttrPool();
618 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */