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