LibreOffice Module sw (master)  1
viewsh.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SW_INC_VIEWSH_HXX
20 #define INCLUDED_SW_INC_VIEWSH_HXX
21 
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>
32 
33 namespace com { namespace sun { namespace star { namespace accessibility {
34  class XAccessible; } } } }
35 
36 class SwDoc;
46 class IDocumentUndoRedo;
47 class IDocumentListItems;
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;
62 class SwTextFrame;
63 
65 namespace vcl { class Region; }
66 class SwPostItMgr;
67 class SdrPaintWindow;
68 class SwAccessibleMap;
69 enum class Orientation;
70 
71 namespace vcl
72 {
74 }
75 
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;
81 
82 typedef struct _xmlTextWriter* xmlTextWriterPtr;
83 
84 class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
85 {
86  friend void SetOutDev( SwViewShell *pSh, OutputDevice *pOut );
87  friend void SetOutDevAndWin( SwViewShell *pSh, OutputDevice *pOut,
88  vcl::Window *pWin, sal_uInt16 nZoom );
89 
90  friend class SwViewShellImp;
91  friend class SwLayIdle;
92 
93  // For setting visible area for page preview paint.
94  friend class SwPagePreviewLayout;
95 
96  // Set SwVisArea in order to enable clean formatting before printing.
97  friend void SetSwVisArea( SwViewShell *pSh, const SwRect & );
98 
99  std::unique_ptr<BitmapEx> m_xReplaceBmp;
100  std::unique_ptr<BitmapEx> m_xErrorBmp;
101 
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.
105 
106  Point maPrtOffset; // Offset for Printer,
107  // non-printable margin.
108  Size maBrowseBorder; // Border for frame documents.
110 
112  std::unique_ptr<SwViewShellImp>
113  mpImp; // Core-internals of SwViewShell.
114  // The pointer is never 0.
115 
118 
119  std::unique_ptr<SwViewOption> mpOpt;
120  std::unique_ptr<SwAccessibilityOptions> mpAccOptions;
121 
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;
137  bool mbShowFooterSeparator:1;
138  bool mbHeaderFooterEdit:1;
139 
140  // boolean, indicating that class in constructor.
141  bool mbInConstructor:1;
142 
145 
147 
148  // Initialization; called by the diverse constructors.
149  SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
150 
151  inline void ResetInvalidRect();
152 
153 
154 
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);
159 
160  SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
161  // trigger an action.
162 
163  SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
164 
165  SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
166 
167 protected:
171 
175 
176  sal_uInt16 mnStartAction;
177  sal_uInt16 mnLockPaint;
178  bool mbSelectAll;
179 
182 
183 public:
184 
185  SwViewShellImp *Imp() { return mpImp.get(); }
186  const SwViewShellImp *Imp() const { return mpImp.get(); }
187 
188  const SwNodes& GetNodes() const;
189 
190  // After change of printer; by Doc.
191  void InitPrt( OutputDevice *pOutDev );
192 
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; }
201 
202  void SetEndActionByVirDev( bool b ) { mbEndActionByVirDev = b; }
203  bool IsEndActionByVirDev() { return mbEndActionByVirDev; }
204 
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;
209 
210  bool HasInvalidRect() const { return maInvalidRect.HasArea(); }
211  void ChgHyphenation() { Reformat(); }
212  void ChgNumberDigits();
213 
214  bool AddPaintRect( const SwRect &rRect );
215 
216  void InvalidateWindows( const SwRect &rRect );
217 
219  void Reformat();
220 
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)
226 public:
227  void PrePaint();
228  void DLPrePaint2(const vcl::Region& rRegion);
229  void DLPostPaint2(bool bPaintFormLayer);
230  const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
231 
232  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
233 
239  void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, long tileWidth, long tileHeight);
240 
241  bool IsPaintInProgress() const { return mbPaintInProgress; }
242  bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
243 
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; }
251 
252  const SwRect& VisArea() const;
253 
255  const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
256  void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
257 
258  // If necessary scroll until passed Rect is situated in visible sector.
259  void MakeVisible( const SwRect & );
260 
261  // At nearest occasion pass new document size to UI.
262  void SizeChgNotify();
263  void UISizeNotify(); // Passing of current size.
264 
265  Point GetPagePos( sal_uInt16 nPageNum ) const;
266 
267  sal_uInt16 GetNumPages(); // Ask count of current pages from layout.
268  bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
269 
270  // Invalidate first visible page for all Shells in ring.
271  void SetFirstVisPageInvalid();
272 
273  SwRootFrame *GetLayout() const;
274  bool IsNewLayout() const; // Has Layout been loaded or created?
275 
276  Size GetDocSize() const; // Get document size.
277 
278  virtual void CalcLayout(); // Force complete formatting of layout.
279 
280  sal_uInt16 GetPageCount() const;
281 
282  const Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
283 
284  SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
285 
288  const IDocumentSettingAccess& getIDocumentSettingAccess() const;
289  IDocumentSettingAccess& getIDocumentSettingAccess();
290 
293  const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
294  IDocumentDeviceAccess& getIDocumentDeviceAccess();
295 
298  const IDocumentMarkAccess* getIDocumentMarkAccess() const;
299  IDocumentMarkAccess* getIDocumentMarkAccess();
300 
303  const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
304  IDocumentDrawModelAccess& getIDocumentDrawModelAccess();
305 
308  const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
309  IDocumentRedlineAccess& getIDocumentRedlineAccess();
310 
313  const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
314  IDocumentLayoutAccess& getIDocumentLayoutAccess();
315 
318  IDocumentContentOperations& getIDocumentContentOperations();
319 
322  IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
323 
326  const IDocumentStatistics& getIDocumentStatistics() const;
327 
330  IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
331  IDocumentUndoRedo & GetIDocumentUndoRedo();
332 
333  const IDocumentListItems* getIDocumentListItemsAccess() const;
334  const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
335 
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; }
342 
343  void SetWin(vcl::Window* win) { mpWin = win; }
344  void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; }
345  static bool IsLstEndAction() { return SwViewShell::mbLstAct; }
346 
347  // Change of all page descriptors.
348  void ChgAllPageOrientation( Orientation eOri );
349  void ChgAllPageSize( Size const &rSz );
350 
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 );
357 
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 */ );
361 
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 );
365 
366  // Fill temporary doc with selected text for Print or PDF export.
367  void FillPrtDoc( SwDoc* pPrtDoc, const SfxPrinter* pPrt );
368 
369  // Called internally for Shell. Formats pages.
370  void CalcPagesForPrint( sal_uInt16 nMax );
371 
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;
378 
379  // DOCUMENT COMPATIBILITY FLAGS START
380 
381  // Add or maximize paragraph spacing?
382  void SetParaSpaceMax( bool bNew );
383 
384  // Add or maximize paragraph spacing?
385  void SetParaSpaceMaxAtPages( bool bNew );
386 
387  // Compatible behaviour of tabs.
388  void SetTabCompat( bool bNew );
389 
390  // Font metric attribute "External Leading" should be considered.
391  void SetAddExtLeading( bool bNew );
392 
393  // Formatting by virtual device or printer.
394  void SetUseVirDev( bool bNew );
395 
396  // Adding paragraph and table spacing at bottom
397  // of table cells.
398  void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
399 
400  // Former formatting of text lines with
401  // proportional line spacing or not.
402  void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
403 
404  // Former object positioning.
405  void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
406 
407  void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
408 
409  void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
410 
411  void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
412 
413  void SetProtectForm( bool _bProtectForm );
414 
415  void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
416 
417  void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
418 
419  void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
420 
421  // DOCUMENT COMPATIBILITY FLAGS END
422 
423  // Calls Idle-formatter of Layout.
424  void LayoutIdle();
425 
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.
433 
434  const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
435 
436  static void SetShellRes( ShellResource* pRes ) { mpShellRes = pRes; }
437  static ShellResource* GetShellRes();
438 
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); }
443 
444  SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
445  void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
446 
447  // Selection of Draw Engine has been changed.
448  virtual void DrawSelChanged();
449 
450  SwPagePreviewLayout* PagePreviewLayout();
451 
462  void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
463 
464  bool IsViewLocked() const { return mbViewLocked; }
465  void LockView( bool b ) { mbViewLocked = b; }
466 
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; }
472 
473  // Get/set DrawView and PageView.
474  bool HasDrawView() const;
475  void MakeDrawView();
476 
477  // Are we dragging draw shapes around.
478  bool HasDrawViewDrag() const;
479 
480  // DrawView may be used at UI.
481  SdrView *GetDrawView();
482  const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
483 
484  // Take care that MarkList is up-to-date in any case (Bug 57153).
485  SdrView *GetDrawViewWithValidMarkList();
486 
487  // Query attribute pool.
488  inline const SfxItemPool& GetAttrPool() const;
489  SfxItemPool& GetAttrPool();
490 
491  bool IsPreview() const { return mbPreview; }
492 
493  bool IsFrameView() const { return mbFrameView; }
494 
495  // Invalidates pages and contents.
496  // When bSizeChanged==true, adds/removes
497  // headers and footers as necessary.
498  void InvalidateLayout(bool bSizeChanged);
499 
500  const Size& GetBrowseBorder() const;
501  sal_Int32 GetBrowseWidth() const;
502  void SetBrowseBorder( const Size& rNew );
503 
504  css::uno::Reference< css::accessibility::XAccessible > CreateAccessible();
505 
506  css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview();
507 
508  void ShowPreviewSelection( sal_uInt16 nSelPage );
509  void InvalidateAccessibleFocus();
510 
511  // Apply Accessiblity options.
512  void ApplyAccessiblityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
513 
526  void InvalidateAccessibleParaFlowRelation( const SwTextFrame* _pFromTextFrame,
527  const SwTextFrame* _pToTextFrame );
528 
531  void InvalidateAccessibleParaTextSelection();
532 
541  void InvalidateAccessibleParaAttrs( const SwTextFrame& rTextFrame );
542 
543  SwAccessibleMap* GetAccessibleMap();
544 
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;
551 
552  sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
553 
554  bool IsInConstructor() const { return mbInConstructor; }
555 
556  const BitmapEx& GetReplacementBitmap(bool bIsErrorState);
557  void DeleteReplacementBitmaps();
558 
559  const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
560  SwPostItMgr* GetPostItMgr();
561 
563  void ToggleHeaderFooterEdit();
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() { return mbSelectAll; }
569 
570  void setOutputToWindow(bool bOutputToWindow);
571  bool isOutputToWindow() const;
572 
573  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
574 };
575 
576 // manages global ShellPointer
578 {
579 public:
582 
583  CurrShell( SwViewShell *pNew );
584  ~CurrShell();
585 };
586 
588 {
590 }
591 
593 {
594  if ( !mnStartAction++ )
595  ImplStartAction();
596 }
597 inline void SwViewShell::EndAction( const bool bIdleEnd )
598 {
599  if( 0 == (mnStartAction - 1) )
600  ImplEndAction( bIdleEnd );
601  --mnStartAction;
602 }
603 
605 {
606  if ( !mnLockPaint++ )
607  ImplLockPaint();
608 }
609 inline void SwViewShell::UnlockPaint( bool bVirDev )
610 {
611  if ( 0 == --mnLockPaint )
612  ImplUnlockPaint( bVirDev );
613 }
615 {
616  return const_cast<SwViewShell*>(this)->GetAttrPool();
617 }
618 
619 #endif // INCLUDED_SW_INC_VIEWSH_HXX
620 
621 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:341
bool IsPaintLocked() const
Definition: viewsh.hxx:471
VclPtr< OutputDevice > mpPrePostOutDev
Definition: viewsh.hxx:224
std::stack< vcl::Region > mPrePostPaintRegions
Definition: viewsh.hxx:223
Represents the visualization of a paragraph.
Definition: txtfrm.hxx:149
SwRootFrame * pRoot
Definition: viewsh.hxx:581
Orientation
MapMode maPrePostMapMode
Definition: viewsh.hxx:225
void ImplEndAction(const bool bIdleEnd)
Definition: viewsh.cxx:248
tools::Rectangle maLOKVisibleArea
The visible area in the LibreOfficeKit client.
Definition: viewsh.hxx:173
SwViewShellImp * Imp()
Definition: viewsh.hxx:185
const SwAccessibilityOptions * GetAccessibilityOptions() const
Definition: viewsh.hxx:434
bool HasInvalidRect() const
Definition: viewsh.hxx:210
const SdrView * GetDrawView() const
Definition: viewsh.hxx:482
static void SetShellRes(ShellResource *pRes)
Definition: viewsh.hxx:436
Provides numbered items of a document.
Provides access to the marks of a document.
Definition: doc.hxx:185
bool IsSelectAll()
Definition: viewsh.hxx:568
bool IsPaintInProgress() const
Definition: viewsh.hxx:241
VclPtr< OutputDevice > mpOut
Window, Printer, VirtDev, ...
Definition: viewsh.hxx:117
VclPtr< vcl::Window > mpWin
= 0 during printing or pdf export
Definition: viewsh.hxx:116
std::unique_ptr< SwViewShellImp > mpImp
Definition: viewsh.hxx:113
std::unique_ptr< BitmapEx > m_xErrorBmp
error display of missed images
Definition: viewsh.hxx:100
bool mbOutputToWindow
The virtual device we paint to will end up on the screen.
Definition: viewsh.hxx:181
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
SfxViewShell * GetSfxViewShell() const
Definition: viewsh.hxx:444
The root element of a Writer document layout.
Definition: rootfrm.hxx:79
void EnableSmooth(bool b)
Definition: viewsh.hxx:250
std::shared_ptr< SwRootFrame > SwRootFramePtr
Definition: viewsh.hxx:80
const MapMode & getPrePostMapMode() const
Definition: viewsh.hxx:230
void SetOutDevAndWin(SwViewShell *pSh, OutputDevice *pO, vcl::Window *pW, sal_uInt16 nZoom)
Definition: paintfrm.cxx:7315
bool IsHeaderFooterEdit() const
Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags.
Definition: viewsh.hxx:565
sal_uInt16 mnLockPaint
!= 0 if Paint is locked.
Definition: viewsh.hxx:177
Point maPrtOffset
Definition: viewsh.hxx:106
rtl::Reference< SwDoc > mxDoc
The document; never 0.
Definition: viewsh.hxx:174
Size maBrowseBorder
Definition: viewsh.hxx:108
SwRect maVisArea
The modern version of VisArea.
Definition: viewsh.hxx:172
SwDoc * GetDoc() const
Definition: viewsh.hxx:284
void ResetInvalidRect()
Definition: viewsh.hxx:587
static weld::Window * GetCareDialog(SwViewShell const &rVSh)
Definition: viewsh.hxx:441
bool IsInConstructor() const
Definition: viewsh.hxx:554
void ChgHyphenation()
Definition: viewsh.hxx:211
void SetEndActionByVirDev(bool b)
Definition: viewsh.hxx:202
bool IsInEndAction() const
Definition: viewsh.hxx:200
bool Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rOutRect) const
paint prepared preview
struct _xmlTextWriter * xmlTextWriterPtr
const SfxItemPool & GetAttrPool() const
Definition: viewsh.hxx:614
page preview functionality in the writer
~CurrShell()
Definition: newfrm.cxx:339
SfxViewShell * mpSfxViewShell
Definition: viewsh.hxx:111
Document statistics information.
SwViewShell * pPrev
Definition: viewsh.hxx:580
bool ActionPend() const
Definition: viewsh.hxx:199
std::unique_ptr< SwAccessibilityOptions > mpAccOptions
Definition: viewsh.hxx:120
bool IsPreview() const
Definition: viewsh.hxx:491
sal_uInt16 ActionCount() const
Definition: viewsh.hxx:198
void SetOut(vcl::RenderContext *pOut)
Definition: viewsh.hxx:344
void SetSfxViewShell(SfxViewShell *pNew)
Definition: viewsh.hxx:445
void StartAction()
Definition: viewsh.hxx:592
bool HasArea() const
Definition: swrect.hxx:290
void ImplStartAction()
Definition: viewsh.cxx:465
Provides access to settings of a document.
void LockPaint()
Definition: viewsh.hxx:604
Text operation/manipulation interface.
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
bool IsFrameView() const
Definition: viewsh.hxx:493
static ShellResource * mpShellRes
Resources for the Shell.
Definition: viewsh.hxx:168
void EndAction(const bool bIdleEnd=false)
Definition: viewsh.hxx:597
Provides access to the formatting devices of a document.
static bool mbLstAct
Definition: viewsh.hxx:102
const tools::Rectangle & getLOKVisibleArea() const
The visible area in the client (set by setClientVisibleArea).
Definition: viewsh.hxx:255
FrameControlType
Definition: swtypes.hxx:246
static vcl::DeleteOnDeinit< std::shared_ptr< weld::Window > > mpCareDialog
Avoid this window.
Definition: viewsh.hxx:170
static bool IsLstEndAction()
Definition: viewsh.hxx:345
void setLOKVisibleArea(const tools::Rectangle &rArea)
Definition: viewsh.hxx:256
OutputDevice RenderContext
Definition: paintfrm.hxx:29
void LockView(bool b)
Definition: viewsh.hxx:465
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:426
vcl::Window * GetWin() const
Definition: viewsh.hxx:340
Provides outline nodes of a document.
std::unique_ptr< BitmapEx > m_xReplaceBmp
replaced display of still loaded images
Definition: viewsh.hxx:99
VclPtr< OutputDevice > mpBufferedOut
Definition: viewsh.hxx:144
Header
void ImplUnlockPaint(bool bVirDev)
Definition: viewsh.cxx:478
void SetWin(vcl::Window *win)
Definition: viewsh.hxx:343
const SwPostItMgr * GetPostItMgr() const
Definition: viewsh.hxx:559
static vcl::DeleteOnDeinit< VclPtr< vcl::Window > > mpCareWindow
Avoid this window.
Definition: viewsh.hxx:169
SwRootFramePtr mpLayout
Definition: viewsh.hxx:146
Provides access to the layout of a document.
Access to the style pool.
bool IsEndActionByVirDev()
Definition: viewsh.hxx:203
SdrPaintWindow * mpTargetPaintWindow
Definition: viewsh.hxx:143
void Clear()
Definition: swrect.hxx:298
SwRect maInvalidRect
Definition: viewsh.hxx:109
bool mbSelectAll
Special select all mode: whole document selected, even if doc starts with table.
Definition: viewsh.hxx:178
bool IsShowHeaderFooterSeparator(FrameControlType eControl)
Definition: viewsh.hxx:566
std::unique_ptr< SwViewOption > mpOpt
Definition: viewsh.hxx:119
CurrShell(SwViewShell *pNew)
Definition: newfrm.cxx:325
const SwViewShellImp * Imp() const
Definition: viewsh.hxx:186
void SetOutDev(SwViewShell *pSh, OutputDevice *pOut)
Definition: notxtfrm.cxx:174
struct _xmlTextWriter * xmlTextWriterPtr
Definition: viewsh.hxx:82
void Init(const sal_uInt16 _nCols, const sal_uInt16 _nRows, const Size &_rPxWinSize)
init page preview layout
bool IsDrawingLayerPaintInProgress() const
Definition: viewsh.hxx:242
sal_uInt16 mnStartAction
!= 0 if at least one Action is active.
Definition: viewsh.hxx:176
bool IsViewLocked() const
Definition: viewsh.hxx:464
void ImplLockPaint()
Definition: viewsh.cxx:471
void SetSwVisArea(SwViewShell *pSh, const SwRect &rRect)
Definition: vprint.cxx:176
void UnlockPaint(bool bVirDev=false)
Definition: viewsh.hxx:609