lok: Hide file linking in section
[LibreOffice.git] / sw / inc / viewsh.hxx
blobdc6472b060cd4506cc27d3eba6f9e376e0887cb5
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 .
19 #ifndef INCLUDED_SW_INC_VIEWSH_HXX
20 #define INCLUDED_SW_INC_VIEWSH_HXX
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 { namespace sun { namespace star { namespace accessibility {
34 class XAccessible; } } } }
36 class SwDoc;
37 class IDocumentSettingAccess;
38 class IDocumentDeviceAccess;
39 class IDocumentMarkAccess;
40 class IDocumentDrawModelAccess;
41 class IDocumentRedlineAccess;
42 class IDocumentLayoutAccess;
43 class IDocumentContentOperations;
44 class IDocumentStylePoolAccess;
45 class IDocumentStatistics;
46 class IDocumentUndoRedo;
47 class IDocumentListItems;
48 class IDocumentOutlineNodes;
49 class SfxPrinter;
50 class SwRootFrame;
51 class SwNodes;
52 class SdrView;
53 class SfxItemPool;
54 class SfxViewShell;
55 class SwViewOption;
56 class SwViewShellImp;
57 class SwPrintData;
58 struct ShellResource;
59 class SwRegionRects;
60 class SvtAccessibilityOptions;
61 class SwPagePreviewLayout;
62 class SwTextFrame;
64 struct SwAccessibilityOptions;
65 namespace vcl { class Region; }
66 class SwPostItMgr;
67 class SdrPaintWindow;
68 class SwAccessibleMap;
69 enum class Orientation;
71 namespace vcl
73 typedef OutputDevice RenderContext;
76 // Define for flags needed in ctor or layers below.
77 // Currently the Preview flag is needed for DrawPage.
78 #define VSHELLFLAG_ISPREVIEW (long(0x1))
79 #define VSHELLFLAG_SHARELAYOUT (long(0x2))
80 typedef std::shared_ptr<SwRootFrame> SwRootFramePtr;
82 typedef struct _xmlTextWriter* xmlTextWriterPtr;
84 class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
86 friend void SetOutDev( SwViewShell *pSh, OutputDevice *pOut );
87 friend void SetOutDevAndWin( SwViewShell *pSh, OutputDevice *pOut,
88 vcl::Window *pWin, sal_uInt16 nZoom );
90 friend class SwViewShellImp;
91 friend class SwLayIdle;
93 // For setting visible area for page preview paint.
94 friend class SwPagePreviewLayout;
96 // Set SwVisArea in order to enable clean formatting before printing.
97 friend void SetSwVisArea( SwViewShell *pSh, const SwRect & );
99 std::unique_ptr<BitmapEx> m_xReplaceBmp; ///< replaced display of still loaded images
100 std::unique_ptr<BitmapEx> m_xErrorBmp; ///< error display of missed images
102 static bool mbLstAct; // true if EndAction of last Shell
103 // i.e. if the EndActions of the other
104 // Shells on the document are through.
106 Point maPrtOffset; // Offset for Printer,
107 // non-printable margin.
108 Size maBrowseBorder; // Border for frame documents.
109 SwRect maInvalidRect;
111 SfxViewShell *mpSfxViewShell;
112 std::unique_ptr<SwViewShellImp>
113 mpImp; // Core-internals of SwViewShell.
114 // The pointer is never 0.
116 VclPtr<vcl::Window> mpWin; ///< = 0 during printing or pdf export
117 VclPtr<OutputDevice> mpOut; ///< Window, Printer, VirtDev, ...
119 std::unique_ptr<SwViewOption> mpOpt;
120 std::unique_ptr<SwAccessibilityOptions> mpAccOptions;
122 bool mbDocSizeChgd :1; // For DocChgNotify(): Announce new DocSize
123 // at EndAction to DocMDI.
124 bool mbPaintWorks :1; // Normal Painting if true,
125 // remember Paint if false.
126 bool mbPaintInProgress :1; // Block any double paint.
127 bool mbViewLocked :1; // Lock visible range;
128 // in this case MakeVisible is ineffectual.
129 bool mbInEndAction :1; // Avoid problems, cf. viewsh.cxx.
130 bool mbPreview :1; // If true it is a Preview-SwViewShell.
131 bool mbFrameView :1; // If true it is a (HTML-)Frame.
132 bool mbEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
133 // of scrollbars.
134 bool mbEndActionByVirDev:1; // Paints from EndAction always via virtual device
135 // (e.g. when browsing).
136 bool mbShowHeaderSeparator:1; ///< Flag to say that we are showing the header control
137 bool mbShowFooterSeparator:1; ///< Flag to say that we are showing the footer control
138 bool mbHeaderFooterEdit:1; ///< Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator above)
140 // boolean, indicating that class in constructor.
141 bool mbInConstructor:1;
143 SdrPaintWindow* mpTargetPaintWindow;
144 VclPtr<OutputDevice> mpBufferedOut;
146 SwRootFramePtr mpLayout;
148 // Initialization; called by the diverse constructors.
149 SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
151 inline void ResetInvalidRect();
155 SAL_DLLPRIVATE void PaintDesktop(vcl::RenderContext& rRenderContext, const SwRect&); // Collect values for painting of desktop
156 // and calling.
157 // PaintDesktop split. This pars is also used by PreviewPage.
158 SAL_DLLPRIVATE void PaintDesktop_(const SwRegionRects &rRegion);
160 SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
161 // trigger an action.
163 SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
165 SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
167 protected:
168 static ShellResource* mpShellRes; ///< Resources for the Shell.
169 static vcl::DeleteOnDeinit< VclPtr<vcl::Window> > mpCareWindow; ///< Avoid this window.
170 static vcl::DeleteOnDeinit< std::shared_ptr<weld::Window> > mpCareDialog; ///< Avoid this window.
172 SwRect maVisArea; ///< The modern version of VisArea.
173 tools::Rectangle maLOKVisibleArea;///< The visible area in the LibreOfficeKit client.
174 rtl::Reference<SwDoc> mxDoc; ///< The document; never 0.
176 sal_uInt16 mnStartAction; ///< != 0 if at least one Action is active.
177 sal_uInt16 mnLockPaint; ///< != 0 if Paint is locked.
178 bool mbSelectAll; ///< Special select all mode: whole document selected, even if doc starts with table.
180 /// The virtual device we paint to will end up on the screen.
181 bool mbOutputToWindow;
183 public:
185 SwViewShellImp *Imp() { return mpImp.get(); }
186 const SwViewShellImp *Imp() const { return mpImp.get(); }
188 const SwNodes& GetNodes() const;
190 // After change of printer; by Doc.
191 void InitPrt( OutputDevice *pOutDev );
193 // Bracketing of actions belonging together.
194 inline void StartAction();
195 void ImplStartAction();
196 inline void EndAction( const bool bIdleEnd = false );
197 void ImplEndAction( const bool bIdleEnd );
198 sal_uInt16 ActionCount() const { return mnStartAction; }
199 bool ActionPend() const { return mnStartAction != 0; }
200 bool IsInEndAction() const { return mbInEndAction; }
202 void SetEndActionByVirDev( bool b ) { mbEndActionByVirDev = b; }
203 bool IsEndActionByVirDev() const { return mbEndActionByVirDev; }
205 // The ActionCount for all Shells is temporarily set to zero and then
206 // restored at the RootFrame via UNO.
207 void SetRestoreActions(sal_uInt16 nSet);
208 sal_uInt16 GetRestoreActions() const;
210 bool HasInvalidRect() const { return maInvalidRect.HasArea(); }
211 void ChgHyphenation() { Reformat(); }
212 void ChgNumberDigits();
214 bool AddPaintRect( const SwRect &rRect );
216 void InvalidateWindows( const SwRect &rRect );
218 /// Invalidates complete Layout (ApplyViewOption).
219 void Reformat();
221 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
222 protected:
223 std::stack<vcl::Region> mPrePostPaintRegions; // acts also as a lock counter (empty == not locked)
224 VclPtr<OutputDevice> mpPrePostOutDev;
225 MapMode maPrePostMapMode;
226 public:
227 void PrePaint();
228 void DLPrePaint2(const vcl::Region& rRegion);
229 void DLPostPaint2(bool bPaintFormLayer);
230 const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
232 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
234 /** Paint tile.
236 Sets the pOut so that the rRect is always painted over the entire
237 pOut, ie. starts in 0,0 and ends in width/height.
239 void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, long tileWidth, long tileHeight);
241 bool IsPaintInProgress() const { return mbPaintInProgress; }
242 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
244 // Notification that visible area has been changed.
245 // VisArea is reset, after that scrolling takes place.
246 // The passed rect is situated on pixel borders
247 // in order to avoid pixel errors when scrolling.
248 virtual void VisPortChgd( const SwRect & );
249 bool SmoothScroll( long lXDiff, long lYDiff, const tools::Rectangle* );//Browser
250 void EnableSmooth( bool b ) { mbEnableSmooth = b; }
252 const SwRect& VisArea() const;
254 /// The visible area in the client (set by setClientVisibleArea).
255 const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
256 void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
258 // If necessary scroll until passed Rect is situated in visible sector.
259 void MakeVisible( const SwRect & );
261 // At nearest occasion pass new document size to UI.
262 void SizeChgNotify();
263 void UISizeNotify(); // Passing of current size.
265 Point GetPagePos( sal_uInt16 nPageNum ) const;
267 sal_uInt16 GetNumPages() const; // Ask count of current pages from layout.
268 bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
270 // Invalidate first visible page for all Shells in ring.
271 void SetFirstVisPageInvalid();
273 SwRootFrame *GetLayout() const;
274 bool IsNewLayout() const; // Has Layout been loaded or created?
276 Size GetDocSize() const; // Get document size.
278 virtual void CalcLayout(); // Force complete formatting of layout.
280 sal_uInt16 GetPageCount() const;
282 Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
284 SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
286 /** Provides access to the document setting interface
288 const IDocumentSettingAccess& getIDocumentSettingAccess() const;
289 IDocumentSettingAccess& getIDocumentSettingAccess();
291 /** Provides access to the document device interface
293 const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
294 IDocumentDeviceAccess& getIDocumentDeviceAccess();
296 /** Provides access to the document bookmark interface
298 const IDocumentMarkAccess* getIDocumentMarkAccess() const;
299 IDocumentMarkAccess* getIDocumentMarkAccess();
301 /** Provides access to the document draw model interface
303 const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
304 IDocumentDrawModelAccess& getIDocumentDrawModelAccess();
306 /** Provides access to the document redline interface
308 const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
309 IDocumentRedlineAccess& getIDocumentRedlineAccess();
311 /** Provides access to the document layout interface
313 const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
314 IDocumentLayoutAccess& getIDocumentLayoutAccess();
316 /** Provides access to the content operations interface
318 IDocumentContentOperations& getIDocumentContentOperations();
320 /** Provides access to the document style pool interface
322 IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
324 /** Provides access to the document statistics interface
326 const IDocumentStatistics& getIDocumentStatistics() const;
328 /** Provides access to the document undo/redo interface
330 IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
331 IDocumentUndoRedo & GetIDocumentUndoRedo();
333 const IDocumentListItems* getIDocumentListItemsAccess() const;
334 const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
336 // 1. GetRefDev: Either the printer or the virtual device from the doc
337 // 2. GetWin: Available if we not printing
338 // 3. GetOut: Printer, Window or Virtual device
339 vcl::RenderContext& GetRefDev() const;
340 vcl::Window* GetWin() const { return mpWin; }
341 vcl::RenderContext* GetOut() const { return mpOut; }
343 void SetWin(vcl::Window* win) { mpWin = win; }
344 void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; }
345 static bool IsLstEndAction() { return SwViewShell::mbLstAct; }
347 // Change of all page descriptors.
348 void ChgAllPageOrientation( Orientation eOri );
349 void ChgAllPageSize( Size const &rSz );
351 // Printing of one page.
352 // bIsPDFExport == true is: do PDF Export (no printing!)
353 bool PrintOrPDFExport( OutputDevice *pOutDev,
354 SwPrintData const& rPrintData,
355 sal_Int32 nRenderer, /* offset in vector of pages to print */
356 bool bIsPDFExport );
358 // Printing of one brochure page.
359 void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
360 sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
362 // Printing for OLE 2.0.
363 static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
364 vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect );
366 // Fill temporary doc with selected text for Print or PDF export.
367 void FillPrtDoc( SwDoc* pPrtDoc, const SfxPrinter* pPrt );
369 // Called internally for Shell. Formats pages.
370 void CalcPagesForPrint( sal_uInt16 nMax );
372 // All about fields.
373 void UpdateFields(bool bCloseDB = false);
374 bool IsAnyFieldInDoc() const;
375 // Update all charts, for that exists any table.
376 void UpdateAllCharts();
377 bool HasCharts() const;
379 // DOCUMENT COMPATIBILITY FLAGS START
381 // Add or maximize paragraph spacing?
382 void SetParaSpaceMax( bool bNew );
384 // Add or maximize paragraph spacing?
385 void SetParaSpaceMaxAtPages( bool bNew );
387 // Compatible behaviour of tabs.
388 void SetTabCompat( bool bNew );
390 // Font metric attribute "External Leading" should be considered.
391 void SetAddExtLeading( bool bNew );
393 // Formatting by virtual device or printer.
394 void SetUseVirDev( bool bNew );
396 // Adding paragraph and table spacing at bottom
397 // of table cells.
398 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
400 // Former formatting of text lines with
401 // proportional line spacing or not.
402 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
404 // Former object positioning.
405 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
407 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
409 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
411 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
413 void SetProtectForm( bool _bProtectForm );
415 void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
417 void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
419 void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
421 // DOCUMENT COMPATIBILITY FLAGS END
423 // Calls Idle-formatter of Layout.
424 void LayoutIdle();
426 const SwViewOption *GetViewOptions() const { return mpOpt.get(); }
427 virtual void ApplyViewOptions( const SwViewOption &rOpt );
428 void SetUIOptions( const SwViewOption &rOpt );
429 virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions.
430 void SetPDFExportOption(bool bSet); // Set/reset PDF export mode.
431 void SetPrtFormatOption(bool bSet); // Set PrtFormat-Bit of ViewOptions.
432 void SetReadonlySelectionOption(bool bSet); // Change the selection mode in readonly docs.
434 const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
436 static void SetShellRes( ShellResource* pRes ) { mpShellRes = pRes; }
437 static ShellResource* GetShellRes();
439 static weld::Window* CareChildWin(SwViewShell const & rVSh);
440 static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
441 static weld::Window* GetCareDialog(SwViewShell const & rVSh)
442 { return (*mpCareDialog.get()) ? mpCareDialog.get()->get() : CareChildWin(rVSh); }
444 SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
445 void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
447 // Selection of Draw Engine has been changed.
448 virtual void DrawSelChanged();
450 SwPagePreviewLayout* PagePreviewLayout();
452 /** adjust view options for page preview
454 Because page preview should show the document as it is printed -
455 page preview is print preview -, the view options are adjusted to the
456 same as for printing.
458 @param _rPrintOptions
459 input parameter - constant reference to print options, to which the
460 view option will be adjusted.
462 void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
464 bool IsViewLocked() const { return mbViewLocked; }
465 void LockView( bool b ) { mbViewLocked = b; }
467 inline void LockPaint();
468 void ImplLockPaint();
469 inline void UnlockPaint( bool bVirDev = false );
470 void ImplUnlockPaint( bool bVirDev );
471 bool IsPaintLocked() const { return mnLockPaint != 0; }
473 // Get/set DrawView and PageView.
474 bool HasDrawView() const;
475 void MakeDrawView();
477 // Are we dragging draw shapes around.
478 bool HasDrawViewDrag() const;
480 // DrawView may be used at UI.
481 SdrView *GetDrawView();
482 const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
484 // Take care that MarkList is up-to-date in any case (Bug 57153).
485 SdrView *GetDrawViewWithValidMarkList();
487 // Query attribute pool.
488 inline const SfxItemPool& GetAttrPool() const;
489 SfxItemPool& GetAttrPool();
491 bool IsPreview() const { return mbPreview; }
493 bool IsFrameView() const { return mbFrameView; }
495 // Invalidates pages and contents.
496 // When bSizeChanged==true, adds/removes
497 // headers and footers as necessary.
498 void InvalidateLayout(bool bSizeChanged);
500 const Size& GetBrowseBorder() const;
501 sal_Int32 GetBrowseWidth() const;
502 void SetBrowseBorder( const Size& rNew );
504 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible();
506 css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview();
508 void ShowPreviewSelection( sal_uInt16 nSelPage );
509 void InvalidateAccessibleFocus();
511 // Apply Accessibility options.
512 void ApplyAccessibilityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
514 /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
516 @param _pFromTextFrame
517 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_FROM
518 has to be invalidated.
519 If NULL, no CONTENT_FLOWS_FROM relation has to be invalidated
521 @param _pToTextFrame
522 input parameter - paragraph frame, for which the relation CONTENT_FLOWS_TO
523 has to be invalidated.
524 If NULL, no CONTENT_FLOWS_TO relation has to be invalidated
526 void InvalidateAccessibleParaFlowRelation( const SwTextFrame* _pFromTextFrame,
527 const SwTextFrame* _pToTextFrame );
529 /** invalidate text selection for paragraphs
531 void InvalidateAccessibleParaTextSelection();
533 /** invalidate attributes for paragraphs and paragraph's characters
535 usage also for changes of the attributes of
536 paragraph's characters.
538 @param rTextFrame
539 input parameter - paragraph frame, whose attributes have changed
541 void InvalidateAccessibleParaAttrs( const SwTextFrame& rTextFrame );
543 SwAccessibleMap* GetAccessibleMap();
545 SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
546 long nFlags = 0 );
547 SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
548 const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
549 long nFlags = 0 );
550 virtual ~SwViewShell() override;
552 sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
554 bool IsInConstructor() const { return mbInConstructor; }
556 const BitmapEx& GetReplacementBitmap(bool bIsErrorState);
557 void DeleteReplacementBitmaps();
559 const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
560 SwPostItMgr* GetPostItMgr();
562 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
563 void ToggleHeaderFooterEdit();
564 /// Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags
565 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; }
566 bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
567 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow );
568 bool IsSelectAll() const { return mbSelectAll; }
570 void setOutputToWindow(bool bOutputToWindow);
571 bool isOutputToWindow() const;
573 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
576 // manages global ShellPointer
577 class CurrShell
579 public:
580 SwViewShell *pPrev;
581 SwRootFrame *pRoot;
583 CurrShell( SwViewShell *pNew );
584 ~CurrShell();
587 inline void SwViewShell::ResetInvalidRect()
589 maInvalidRect.Clear();
592 inline void SwViewShell::StartAction()
594 if ( !mnStartAction++ )
595 ImplStartAction();
597 inline void SwViewShell::EndAction( const bool bIdleEnd )
599 if( 0 == (mnStartAction - 1) )
600 ImplEndAction( bIdleEnd );
601 --mnStartAction;
604 inline void SwViewShell::LockPaint()
606 if ( !mnLockPaint++ )
607 ImplLockPaint();
609 inline void SwViewShell::UnlockPaint( bool bVirDev )
611 if ( 0 == --mnLockPaint )
612 ImplUnlockPaint( bVirDev );
614 inline const SfxItemPool& SwViewShell::GetAttrPool() const
616 return const_cast<SwViewShell*>(this)->GetAttrPool();
619 #endif // INCLUDED_SW_INC_VIEWSH_HXX
621 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */