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
20#pragma once
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
33namespace com::sun::star::accessibility { class XAccessible; }
34class SwDoc;
44class IDocumentUndoRedo;
47class SfxPrinter;
48class SwRootFrame;
49class SwNodes;
50class SdrView;
51class SfxItemPool;
52class SfxViewShell;
53class SwViewOption;
54class SwViewShellImp;
55class SwPrintData;
56struct ShellResource;
57class SwRegionRects;
60class SwTextFrame;
61
63namespace vcl { class Region; }
64class SwPostItMgr;
65class SdrPaintWindow;
66class SwAccessibleMap;
67enum class Orientation;
68
70{
71 ViewLayout = 1,
73 Undo,
74 Redo,
84 SetZoom,
86};
87
88namespace vcl
89{
91}
92
93// Define for flags needed in ctor or layers below.
94// Currently the Preview flag is needed for DrawPage.
95#define VSHELLFLAG_ISPREVIEW (tools::Long(0x1))
96#define VSHELLFLAG_SHARELAYOUT (tools::Long(0x2))
97typedef std::shared_ptr<SwRootFrame> SwRootFramePtr;
98
99typedef struct _xmlTextWriter* xmlTextWriterPtr;
100
102{
103 sal_uInt16 nFirstPhy, nLastPhy;
107};
108
109class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
110{
111 friend void SetOutDev( SwViewShell *pSh, OutputDevice *pOut );
112 friend void SetOutDevAndWin( SwViewShell *pSh, OutputDevice *pOut,
113 vcl::Window *pWin, sal_uInt16 nZoom );
114
115 friend class SwViewShellImp;
116 friend class SwLayIdle;
117
118 // For setting visible area for page preview paint.
120
121 // Set SwVisArea in order to enable clean formatting before printing.
122 friend void SetSwVisArea( SwViewShell *pSh, const SwRect & );
123
124 std::unique_ptr<BitmapEx> m_xReplaceBmp;
125 std::unique_ptr<BitmapEx> m_xErrorBmp;
126
127 static bool sbLstAct; // true if EndAction of last Shell
128 // i.e. if the EndActions of the other
129 // Shells on the document are through.
130
131 Point maPrtOffset; // Offset for Printer,
132 // non-printable margin.
133 Size maBrowseBorder; // Border for frame documents.
135
137 std::unique_ptr<SwViewShellImp>
138 mpImp; // Core-internals of SwViewShell.
139 // The pointer is never 0.
140
143
144 std::unique_ptr<SwViewOption> mpOpt;
145 std::unique_ptr<SwAccessibilityOptions> mpAccOptions;
146
147 bool mbDocSizeChgd :1; // For DocChgNotify(): Announce new DocSize
148 // at EndAction to DocMDI.
149 bool mbPaintWorks :1; // Normal Painting if true,
150 // remember Paint if false.
151 bool mbPaintInProgress :1; // Block any double paint.
152 bool mbViewLocked :1; // Lock visible range;
153 // in this case MakeVisible is ineffectual.
154 bool mbInEndAction :1; // Avoid problems, cf. viewsh.cxx.
155 bool mbPreview :1; // If true it is a Preview-SwViewShell.
156 bool mbEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
157 // of scrollbars.
161
162 // boolean, indicating that class in constructor.
164
167
169
170 // Initialization; called by the diverse constructors.
171 SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
172
173 inline void ResetInvalidRect();
174
175
176
177 SAL_DLLPRIVATE void PaintDesktop(const vcl::RenderContext& rRenderContext, const SwRect&); // Collect values for painting of desktop
178 // and calling.
179 // PaintDesktop split. This pars is also used by PreviewPage.
180 SAL_DLLPRIVATE void PaintDesktop_(const SwRegionRects &rRegion);
181
182 SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
183 // trigger an action.
184
185 SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
186
187 SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
188
189 SAL_DLLPRIVATE void InvalidateAll(std::vector<LockPaintReason>& rReasons);
190
191 SAL_DLLPRIVATE void InvalidatePageAndHFSubsidiaryLines();
192
193protected:
196
200
201 sal_uInt16 mnStartAction;
202 sal_uInt16 mnLockPaint;
203 std::vector<LockPaintReason> maLockPaintReasons;
205
208
209public:
210
211 SwViewShellImp *Imp() { return mpImp.get(); }
212 const SwViewShellImp *Imp() const { return mpImp.get(); }
213
214 const SwNodes& GetNodes() const;
215
216 // After change of printer; by Doc.
217 void InitPrt( OutputDevice *pOutDev );
218
219 // Bracketing of actions belonging together.
220 inline void StartAction();
221 void ImplStartAction();
222 inline void EndAction( const bool bIdleEnd = false );
223 void ImplEndAction( const bool bIdleEnd );
224 sal_uInt16 ActionCount() const { return mnStartAction; }
225 bool ActionPend() const { return mnStartAction != 0; }
226 bool IsInEndAction() const { return mbInEndAction; }
227
228 // The ActionCount for all Shells is temporarily set to zero and then
229 // restored at the RootFrame via UNO.
230 void SetRestoreActions(sal_uInt16 nSet);
231 sal_uInt16 GetRestoreActions() const;
232
233 bool HasInvalidRect() const { return maInvalidRect.HasArea(); }
234 void ChgHyphenation() { Reformat(); }
235 void ChgNumberDigits();
236
237 bool AddPaintRect( const SwRect &rRect );
238
239 void InvalidateWindows( const SwRect &rRect );
240 void FlushPendingLOKInvalidateTiles();
241
243 void Reformat();
244
245 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
246protected:
247 std::stack<vcl::Region> mPrePostPaintRegions; // acts also as a lock counter (empty == not locked)
250public:
251 void PrePaint();
252 void DLPrePaint2(const vcl::Region& rRegion);
253 void DLPostPaint2(bool bPaintFormLayer);
254 const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
255
256 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
257
263 void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, tools::Long tileWidth, tools::Long tileHeight);
264
265 bool IsPaintInProgress() const { return mbPaintInProgress; }
266 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
267
268 // Notification that visible area has been changed.
269 // VisArea is reset, after that scrolling takes place.
270 // The passed rect is situated on pixel borders
271 // in order to avoid pixel errors when scrolling.
272 virtual void VisPortChgd( const SwRect & );
273 bool SmoothScroll( tools::Long lXDiff, tools::Long lYDiff, const tools::Rectangle* );//Browser
274 void EnableSmooth( bool b ) { mbEnableSmooth = b; }
275
276 const SwRect& VisArea() const;
277
279 const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
280 void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
281
282 // If necessary scroll until passed Rect is situated in visible sector.
283 void MakeVisible( const SwRect & );
284
285 // At nearest occasion pass new document size to UI.
286 void SizeChgNotify();
287 void UISizeNotify(); // Passing of current size.
288
289 Point GetPagePos( sal_uInt16 nPageNum ) const;
290
291 sal_uInt16 GetNumPages() const; // Ask count of current pages from layout.
292 bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
293
294 // Invalidate first visible page for all Shells in ring.
295 void SetFirstVisPageInvalid();
296
297 SwRootFrame *GetLayout() const;
298 bool IsNewLayout() const; // Has Layout been loaded or created?
299
300 Size GetDocSize() const; // Get document size.
301
302 virtual void CalcLayout(); // Force complete formatting of layout.
303
304 sal_uInt16 GetPageCount() const;
305
306 Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
307
308 SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
309
312 const IDocumentSettingAccess& getIDocumentSettingAccess() const;
313 IDocumentSettingAccess& getIDocumentSettingAccess();
314
317 const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
318 IDocumentDeviceAccess& getIDocumentDeviceAccess();
319
322 const IDocumentMarkAccess* getIDocumentMarkAccess() const;
323 IDocumentMarkAccess* getIDocumentMarkAccess();
324
327 const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
328 IDocumentDrawModelAccess& getIDocumentDrawModelAccess();
329
332 const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
333 IDocumentRedlineAccess& getIDocumentRedlineAccess();
334
337 const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
338 IDocumentLayoutAccess& getIDocumentLayoutAccess();
339
342 IDocumentContentOperations& getIDocumentContentOperations();
343
346 IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
347
350 const IDocumentStatistics& getIDocumentStatistics() const;
351
354 IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
355 IDocumentUndoRedo & GetIDocumentUndoRedo();
356
357 const IDocumentListItems* getIDocumentListItemsAccess() const;
358 const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
359
360 // 1. GetRefDev: Either the printer or the virtual device from the doc
361 // 2. GetWin: Available if we not printing
362 // 3. GetOut: Printer, Window or Virtual device
363 vcl::RenderContext& GetRefDev() const;
364 vcl::Window* GetWin() const { return mpWin; }
365 vcl::RenderContext* GetOut() const { return mpOut; }
366
367 void SetWin(vcl::Window* win) { mpWin = win; }
368 void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; }
369 static bool IsLstEndAction() { return SwViewShell::sbLstAct; }
370
371 // Change of all page descriptors.
372 void ChgAllPageOrientation( Orientation eOri );
373 void ChgAllPageSize( Size const &rSz );
374
375 // Printing of one page.
376 // bIsPDFExport == true is: do PDF Export (no printing!)
377 bool PrintOrPDFExport( OutputDevice *pOutDev,
378 SwPrintData const& rPrintData,
379 sal_Int32 nRenderer, /* offset in vector of pages to print */
380 bool bIsPDFExport );
381
382 // Printing of one brochure page.
383 void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
384 sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
385
386 // Printing for OLE 2.0.
387 static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
388 vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect,
389 bool bOutputForScreen );
390
391 // Fill temporary doc with selected text for Print or PDF export.
392 void FillPrtDoc( SwDoc& rPrtDoc, const SfxPrinter* pPrt );
393
394 // Called internally for Shell. Formats pages.
395 void CalcPagesForPrint( sal_uInt16 nMax );
396
397 // All about fields.
398 void UpdateFields(bool bCloseDB = false);
399 bool IsAnyFieldInDoc() const;
400
402 void UpdateOleObjectPreviews();
403
404 // Update all charts, for that exists any table.
405 void UpdateAllCharts();
406 bool HasCharts() const;
407
408 // DOCUMENT COMPATIBILITY FLAGS START
409
410 // Add or maximize paragraph spacing?
411 void SetParaSpaceMax( bool bNew );
412
413 // Add or maximize paragraph spacing?
414 void SetParaSpaceMaxAtPages( bool bNew );
415
416 // Compatible behaviour of tabs.
417 void SetTabCompat( bool bNew );
418
419 // Font metric attribute "External Leading" should be considered.
420 void SetAddExtLeading( bool bNew );
421
422 // Adding paragraph and table spacing at bottom
423 // of table cells.
424 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
425
426 // Former formatting of text lines with
427 // proportional line spacing or not.
428 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
429
430 // Former object positioning.
431 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
432
433 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
434
435 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
436
437 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
438
439 void SetProtectForm( bool _bProtectForm );
440
441 void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
442
443 void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
444
445 void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
446
447 // DOCUMENT COMPATIBILITY FLAGS END
448
449 // Calls Idle-formatter of Layout.
450 void LayoutIdle();
451
452 const SwViewOption *GetViewOptions() const { return mpOpt.get(); }
453 virtual void ApplyViewOptions( const SwViewOption &rOpt );
454 void SetUIOptions( const SwViewOption &rOpt );
455 virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions.
456 void SetPDFExportOption(bool bSet); // Set/reset PDF export mode.
457 void SetPrtFormatOption(bool bSet); // Set PrtFormat-Bit of ViewOptions.
458 void SetReadonlySelectionOption(bool bSet); // Change the selection mode in readonly docs.
459
460 const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
461
462 static void SetShellRes( ShellResource* pRes ) { spShellRes = pRes; }
463 static ShellResource* GetShellRes();
464
465 static weld::Window* CareChildWin(SwViewShell const & rVSh);
466 static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
468 { return (*spCareDialog.get()) ? spCareDialog.get()->get() : CareChildWin(rVSh); }
469
470 SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
471 void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
472
473 // Selection of Draw Engine has been changed.
474 virtual void DrawSelChanged();
475
476 SwPagePreviewLayout* PagePreviewLayout();
477
488 void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
489
490 bool IsViewLocked() const { return mbViewLocked; }
491 void LockView( bool b ) { mbViewLocked = b; }
492
493 inline void LockPaint(LockPaintReason eReason);
494 void ImplLockPaint();
495 inline void UnlockPaint(bool bVirDev = false );
496 void ImplUnlockPaint( std::vector<LockPaintReason>& rReasons, bool bVirDev );
497 bool IsPaintLocked() const { return mnLockPaint != 0; }
498
499 // Get/set DrawView and PageView.
500 bool HasDrawView() const;
501 void MakeDrawView();
502
503 // Are we dragging draw shapes around.
504 bool HasDrawViewDrag() const;
505
506 // DrawView may be used at UI.
507 SdrView *GetDrawView();
508 const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
509
510 // Take care that MarkList is up-to-date in any case (Bug 57153).
511 SdrView *GetDrawViewWithValidMarkList();
512
513 // Query attribute pool.
514 inline const SfxItemPool& GetAttrPool() const;
515 SfxItemPool& GetAttrPool();
516
517 bool IsPreview() const { return mbPreview; }
518
519 // Invalidates pages and contents.
520 // When bSizeChanged==true, adds/removes
521 // headers and footers as necessary.
522 void InvalidateLayout(bool bSizeChanged);
523
524 const Size& GetBrowseBorder() const;
525 sal_Int32 GetBrowseWidth() const;
526 void SetBrowseBorder( const Size& rNew );
527
528 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible();
529
530 css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview();
531
532 void ShowPreviewSelection( sal_uInt16 nSelPage );
533 void InvalidateAccessibleFocus();
534
535 // Apply Accessibility options.
536 void ApplyAccessibilityOptions();
537
550 void InvalidateAccessibleParaFlowRelation( const SwTextFrame* _pFromTextFrame,
551 const SwTextFrame* _pToTextFrame );
552
555 void InvalidateAccessibleParaTextSelection();
556
565 void InvalidateAccessibleParaAttrs( const SwTextFrame& rTextFrame );
566
567 SwAccessibleMap* GetAccessibleMap();
568
569 SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
570 tools::Long nFlags = 0 );
571 SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
572 const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
573 tools::Long nFlags = 0 );
574 virtual ~SwViewShell() override;
575
576 sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
577
578 bool IsInConstructor() const { return mbInConstructor; }
579
580 const BitmapEx& GetReplacementBitmap(bool bIsErrorState);
581 void DeleteReplacementBitmaps();
582
583 const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
584 SwPostItMgr* GetPostItMgr();
585
587 void ToggleHeaderFooterEdit();
589 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; }
590 bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == FrameControlType::Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
591 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow );
592 bool IsSelectAll() const { return mbSelectAll; }
593
594 void setOutputToWindow(bool bOutputToWindow);
595 bool isOutputToWindow() const;
596 void OnGraphicArrived(const SwRect&);
597
598 void GetFirstLastVisPageNumbers(SwVisiblePageNumbers& rVisiblePageNumbers);
599
600 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
601};
602
603// manages global ShellPointer
605{
606public:
609
610 CurrShell( SwViewShell *pNew );
611 ~CurrShell();
612};
613
615{
617}
618
620{
621 if ( !mnStartAction++ )
623}
624
625inline void SwViewShell::EndAction( const bool bIdleEnd )
626{
627 if( 0 == (mnStartAction - 1) )
628 ImplEndAction( bIdleEnd );
630}
631
633{
634 maLockPaintReasons.push_back(eReason);
635 if ( !mnLockPaint++ )
637}
638
639inline void SwViewShell::UnlockPaint(bool bVirDev )
640{
641 if ( 0 == --mnLockPaint )
642 {
644 maLockPaintReasons.clear();
645 }
646}
647
649{
650 return const_cast<SwViewShell*>(this)->GetAttrPool();
651}
652
653
654/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwRootFrame * pRoot
Definition: viewsh.hxx:608
SwViewShell * pPrev
Definition: viewsh.hxx:607
CurrShell(SwViewShell *pNew)
Definition: newfrm.cxx:324
~CurrShell()
Definition: newfrm.cxx:338
Text operation/manipulation interface.
Provides access to the formatting devices of a document.
Provides access to the layout of a document.
Provides numbered items of a document.
Provides access to the marks of a document.
Provides outline nodes of a document.
Provides access to settings of a document.
Document statistics information.
Access to the style pool.
Definition: doc.hxx:197
page preview functionality in the writer
void Init(const sal_uInt16 _nCols, const sal_uInt16 _nRows, const Size &_rPxWinSize)
init page preview layout
bool Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rOutRect) const
paint prepared preview
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
bool HasArea() const
Definition: swrect.hxx:300
void Clear()
Definition: swrect.hxx:308
The root element of a Writer document layout.
Definition: rootfrm.hxx:85
Represents the visualization of a paragraph.
Definition: txtfrm.hxx:168
bool mbInEndAction
Definition: viewsh.hxx:154
const SwViewShellImp * Imp() const
Definition: viewsh.hxx:212
sal_uInt16 ActionCount() const
Definition: viewsh.hxx:224
bool IsViewLocked() const
Definition: viewsh.hxx:490
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:365
VclPtr< vcl::Window > mpWin
= 0 during printing or pdf export
Definition: viewsh.hxx:141
bool IsHeaderFooterEdit() const
Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags.
Definition: viewsh.hxx:589
void setLOKVisibleArea(const tools::Rectangle &rArea)
Definition: viewsh.hxx:280
bool IsPreview() const
Definition: viewsh.hxx:517
SdrPaintWindow * mpTargetPaintWindow
Definition: viewsh.hxx:165
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:452
void UnlockPaint(bool bVirDev=false)
Definition: viewsh.hxx:639
void EnableSmooth(bool b)
Definition: viewsh.hxx:274
VclPtr< OutputDevice > mpOut
Window, Printer, VirtDev, ...
Definition: viewsh.hxx:142
bool IsPaintInProgress() const
Definition: viewsh.hxx:265
bool IsInEndAction() const
Definition: viewsh.hxx:226
void StartAction()
Definition: viewsh.hxx:619
rtl::Reference< SwDoc > mxDoc
The document; never 0.
Definition: viewsh.hxx:199
static bool sbLstAct
Definition: viewsh.hxx:127
VclPtr< OutputDevice > mpBufferedOut
Definition: viewsh.hxx:166
bool mbDocSizeChgd
Definition: viewsh.hxx:147
const tools::Rectangle & getLOKVisibleArea() const
The visible area in the client (set by setClientVisibleArea).
Definition: viewsh.hxx:279
SwViewShellImp * Imp()
Definition: viewsh.hxx:211
VclPtr< OutputDevice > mpPrePostOutDev
Definition: viewsh.hxx:248
void ImplEndAction(const bool bIdleEnd)
Definition: viewsh.cxx:260
void EndAction(const bool bIdleEnd=false)
Definition: viewsh.hxx:625
std::unique_ptr< SwViewOption > mpOpt
Definition: viewsh.hxx:144
Point maPrtOffset
Definition: viewsh.hxx:131
std::stack< vcl::Region > mPrePostPaintRegions
Definition: viewsh.hxx:247
SfxViewShell * mpSfxViewShell
Definition: viewsh.hxx:136
bool ActionPend() const
Definition: viewsh.hxx:225
const MapMode & getPrePostMapMode() const
Definition: viewsh.hxx:254
bool mbOutputToWindow
The virtual device we paint to will end up on the screen.
Definition: viewsh.hxx:207
bool mbPreview
Definition: viewsh.hxx:155
SwRootFramePtr mpLayout
Definition: viewsh.hxx:168
bool mbEnableSmooth
Definition: viewsh.hxx:156
std::unique_ptr< SwAccessibilityOptions > mpAccOptions
Definition: viewsh.hxx:145
SwRect maInvalidRect
Definition: viewsh.hxx:134
SwRect maVisArea
The modern version of VisArea.
Definition: viewsh.hxx:197
Size maBrowseBorder
Definition: viewsh.hxx:133
vcl::Window * GetWin() const
Definition: viewsh.hxx:364
bool mbShowHeaderSeparator
Flag to say that we are showing the header control.
Definition: viewsh.hxx:158
const SdrView * GetDrawView() const
Definition: viewsh.hxx:508
bool HasInvalidRect() const
Definition: viewsh.hxx:233
bool mbPaintWorks
Definition: viewsh.hxx:149
void ImplUnlockPaint(std::vector< LockPaintReason > &rReasons, bool bVirDev)
Definition: viewsh.cxx:435
std::unique_ptr< SwViewShellImp > mpImp
Definition: viewsh.hxx:138
void SetOut(vcl::RenderContext *pOut)
Definition: viewsh.hxx:368
std::unique_ptr< BitmapEx > m_xErrorBmp
error display of missed images
Definition: viewsh.hxx:125
void SetWin(vcl::Window *win)
Definition: viewsh.hxx:367
bool IsShowHeaderFooterSeparator(FrameControlType eControl)
Definition: viewsh.hxx:590
sal_uInt16 mnStartAction
!= 0 if at least one Action is active.
Definition: viewsh.hxx:201
static ShellResource * spShellRes
Resources for the Shell.
Definition: viewsh.hxx:194
static weld::Window * GetCareDialog(SwViewShell const &rVSh)
Definition: viewsh.hxx:467
tools::Rectangle maLOKVisibleArea
The visible area in the LibreOfficeKit client.
Definition: viewsh.hxx:198
SwDoc * GetDoc() const
Definition: viewsh.hxx:308
bool mbHeaderFooterEdit
Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator abov...
Definition: viewsh.hxx:160
SfxViewShell * GetSfxViewShell() const
Definition: viewsh.hxx:470
bool mbPaintInProgress
Definition: viewsh.hxx:151
const SwAccessibilityOptions * GetAccessibilityOptions() const
Definition: viewsh.hxx:460
MapMode maPrePostMapMode
Definition: viewsh.hxx:249
sal_uInt16 mnLockPaint
!= 0 if Paint is locked.
Definition: viewsh.hxx:202
bool mbShowFooterSeparator
Flag to say that we are showing the footer control.
Definition: viewsh.hxx:159
void ChgHyphenation()
Definition: viewsh.hxx:234
void LockPaint(LockPaintReason eReason)
Definition: viewsh.hxx:632
void LockView(bool b)
Definition: viewsh.hxx:491
const SwPostItMgr * GetPostItMgr() const
Definition: viewsh.hxx:583
void SetSfxViewShell(SfxViewShell *pNew)
Definition: viewsh.hxx:471
std::vector< LockPaintReason > maLockPaintReasons
Definition: viewsh.hxx:203
bool mbInConstructor
Definition: viewsh.hxx:163
static bool IsLstEndAction()
Definition: viewsh.hxx:369
bool IsDrawingLayerPaintInProgress() const
Definition: viewsh.hxx:266
void ResetInvalidRect()
Definition: viewsh.hxx:614
static void SetShellRes(ShellResource *pRes)
Definition: viewsh.hxx:462
std::unique_ptr< BitmapEx > m_xReplaceBmp
replaced display of still loaded images
Definition: viewsh.hxx:124
const SfxItemPool & GetAttrPool() const
Definition: viewsh.hxx:648
static vcl::DeleteOnDeinit< std::shared_ptr< weld::Window > > spCareDialog
Avoid this window.
Definition: viewsh.hxx:195
bool IsInConstructor() const
Definition: viewsh.hxx:578
void ImplStartAction()
Definition: viewsh.cxx:422
bool mbViewLocked
Definition: viewsh.hxx:152
void ImplLockPaint()
Definition: viewsh.cxx:428
bool IsPaintLocked() const
Definition: viewsh.hxx:497
bool mbSelectAll
Special select all mode: whole document selected, even if doc starts with table.
Definition: viewsh.hxx:204
bool IsSelectAll() const
Definition: viewsh.hxx:592
struct _xmlTextWriter * xmlTextWriterPtr
long Long
OutputDevice RenderContext
Definition: paintfrm.hxx:30
void SetOutDev(SwViewShell *pSh, OutputDevice *pOut)
Definition: notxtfrm.cxx:169
void SetOutDevAndWin(SwViewShell *pSh, OutputDevice *pO, vcl::Window *pW, sal_uInt16 nZoom)
Definition: paintfrm.cxx:7810
Orientation
sal_uInt16 nLastVirt
Definition: viewsh.hxx:104
sal_uInt16 nLastPhy
Definition: viewsh.hxx:103
OUString sFirstCustomPhy
Definition: viewsh.hxx:105
OUString sLastCustomVirt
Definition: viewsh.hxx:106
sal_uInt16 nFirstPhy
Definition: viewsh.hxx:103
OUString sLastCustomPhy
Definition: viewsh.hxx:105
OUString sFirstCustomVirt
Definition: viewsh.hxx:106
sal_uInt16 nFirstVirt
Definition: viewsh.hxx:104
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
FrameControlType
Definition: swtypes.hxx:246
LockPaintReason
Definition: viewsh.hxx:70
struct _xmlTextWriter * xmlTextWriterPtr
Definition: viewsh.hxx:99
std::shared_ptr< SwRootFrame > SwRootFramePtr
Definition: viewsh.hxx:97
void SetSwVisArea(SwViewShell *pSh, const SwRect &rRect)
Definition: vprint.cxx:157
oslFileHandle & pOut