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 mbFrameView :1; // If true it is a (HTML-)Frame.
157 bool mbEnableSmooth :1; // Disable SmoothScroll, e.g. for drag
158 // of scrollbars.
162
163 // boolean, indicating that class in constructor.
165
168
170
171 // Initialization; called by the diverse constructors.
172 SAL_DLLPRIVATE void Init( const SwViewOption *pNewOpt );
173
174 inline void ResetInvalidRect();
175
176
177
178 SAL_DLLPRIVATE void PaintDesktop(const vcl::RenderContext& rRenderContext, const SwRect&); // Collect values for painting of desktop
179 // and calling.
180 // PaintDesktop split. This pars is also used by PreviewPage.
181 SAL_DLLPRIVATE void PaintDesktop_(const SwRegionRects &rRegion);
182
183 SAL_DLLPRIVATE bool CheckInvalidForPaint( const SwRect & ); // Direct Paint or rather
184 // trigger an action.
185
186 SAL_DLLPRIVATE void PrepareForPrint( const SwPrintData &rOptions, bool bIsPDFExport = false );
187
188 SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
189
190 SAL_DLLPRIVATE void InvalidateAll(std::vector<LockPaintReason>& rReasons);
191
192protected:
195
199
200 sal_uInt16 mnStartAction;
201 sal_uInt16 mnLockPaint;
202 std::vector<LockPaintReason> maLockPaintReasons;
204
207
208public:
209
210 SwViewShellImp *Imp() { return mpImp.get(); }
211 const SwViewShellImp *Imp() const { return mpImp.get(); }
212
213 const SwNodes& GetNodes() const;
214
215 // After change of printer; by Doc.
216 void InitPrt( OutputDevice *pOutDev );
217
218 // Bracketing of actions belonging together.
219 inline void StartAction();
220 void ImplStartAction();
221 inline void EndAction( const bool bIdleEnd = false );
222 void ImplEndAction( const bool bIdleEnd );
223 sal_uInt16 ActionCount() const { return mnStartAction; }
224 bool ActionPend() const { return mnStartAction != 0; }
225 bool IsInEndAction() const { return mbInEndAction; }
226
227 // The ActionCount for all Shells is temporarily set to zero and then
228 // restored at the RootFrame via UNO.
229 void SetRestoreActions(sal_uInt16 nSet);
230 sal_uInt16 GetRestoreActions() const;
231
232 bool HasInvalidRect() const { return maInvalidRect.HasArea(); }
233 void ChgHyphenation() { Reformat(); }
234 void ChgNumberDigits();
235
236 bool AddPaintRect( const SwRect &rRect );
237
238 void InvalidateWindows( const SwRect &rRect );
239 void FlushPendingLOKInvalidateTiles();
240
242 void Reformat();
243
244 // #i72754# set of Pre/PostPaints with lock counter and initial target OutDev
245protected:
246 std::stack<vcl::Region> mPrePostPaintRegions; // acts also as a lock counter (empty == not locked)
249public:
250 void PrePaint();
251 void DLPrePaint2(const vcl::Region& rRegion);
252 void DLPostPaint2(bool bPaintFormLayer);
253 const MapMode& getPrePostMapMode() const { return maPrePostMapMode; }
254
255 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect);
256
262 void PaintTile(VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, tools::Long tileWidth, tools::Long tileHeight);
263
264 bool IsPaintInProgress() const { return mbPaintInProgress; }
265 bool IsDrawingLayerPaintInProgress() const { return !mPrePostPaintRegions.empty(); }
266
267 // Notification that visible area has been changed.
268 // VisArea is reset, after that scrolling takes place.
269 // The passed rect is situated on pixel borders
270 // in order to avoid pixel errors when scrolling.
271 virtual void VisPortChgd( const SwRect & );
272 bool SmoothScroll( tools::Long lXDiff, tools::Long lYDiff, const tools::Rectangle* );//Browser
273 void EnableSmooth( bool b ) { mbEnableSmooth = b; }
274
275 const SwRect& VisArea() const;
276
278 const tools::Rectangle & getLOKVisibleArea() const { return maLOKVisibleArea; }
279 void setLOKVisibleArea(const tools::Rectangle& rArea) { maLOKVisibleArea = rArea; }
280
281 // If necessary scroll until passed Rect is situated in visible sector.
282 void MakeVisible( const SwRect & );
283
284 // At nearest occasion pass new document size to UI.
285 void SizeChgNotify();
286 void UISizeNotify(); // Passing of current size.
287
288 Point GetPagePos( sal_uInt16 nPageNum ) const;
289
290 sal_uInt16 GetNumPages() const; // Ask count of current pages from layout.
291 bool IsDummyPage( sal_uInt16 nPageNum ) const; // An empty page?
292
293 // Invalidate first visible page for all Shells in ring.
294 void SetFirstVisPageInvalid();
295
296 SwRootFrame *GetLayout() const;
297 bool IsNewLayout() const; // Has Layout been loaded or created?
298
299 Size GetDocSize() const; // Get document size.
300
301 virtual void CalcLayout(); // Force complete formatting of layout.
302
303 sal_uInt16 GetPageCount() const;
304
305 Size GetPageSize( sal_uInt16 nPageNum, bool bSkipEmptyPages ) const;
306
307 SwDoc *GetDoc() const { return mxDoc.get(); } //Never 0.
308
311 const IDocumentSettingAccess& getIDocumentSettingAccess() const;
312 IDocumentSettingAccess& getIDocumentSettingAccess();
313
316 const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
317 IDocumentDeviceAccess& getIDocumentDeviceAccess();
318
321 const IDocumentMarkAccess* getIDocumentMarkAccess() const;
322 IDocumentMarkAccess* getIDocumentMarkAccess();
323
326 const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
327 IDocumentDrawModelAccess& getIDocumentDrawModelAccess();
328
331 const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
332 IDocumentRedlineAccess& getIDocumentRedlineAccess();
333
336 const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
337 IDocumentLayoutAccess& getIDocumentLayoutAccess();
338
341 IDocumentContentOperations& getIDocumentContentOperations();
342
345 IDocumentStylePoolAccess& getIDocumentStylePoolAccess();
346
349 const IDocumentStatistics& getIDocumentStatistics() const;
350
353 IDocumentUndoRedo const& GetIDocumentUndoRedo() const;
354 IDocumentUndoRedo & GetIDocumentUndoRedo();
355
356 const IDocumentListItems* getIDocumentListItemsAccess() const;
357 const IDocumentOutlineNodes* getIDocumentOutlineNodesAccess() const;
358
359 // 1. GetRefDev: Either the printer or the virtual device from the doc
360 // 2. GetWin: Available if we not printing
361 // 3. GetOut: Printer, Window or Virtual device
362 vcl::RenderContext& GetRefDev() const;
363 vcl::Window* GetWin() const { return mpWin; }
364 vcl::RenderContext* GetOut() const { return mpOut; }
365
366 void SetWin(vcl::Window* win) { mpWin = win; }
367 void SetOut(vcl::RenderContext* pOut) { mpOut = pOut; }
368 static bool IsLstEndAction() { return SwViewShell::sbLstAct; }
369
370 // Change of all page descriptors.
371 void ChgAllPageOrientation( Orientation eOri );
372 void ChgAllPageSize( Size const &rSz );
373
374 // Printing of one page.
375 // bIsPDFExport == true is: do PDF Export (no printing!)
376 bool PrintOrPDFExport( OutputDevice *pOutDev,
377 SwPrintData const& rPrintData,
378 sal_Int32 nRenderer, /* offset in vector of pages to print */
379 bool bIsPDFExport );
380
381 // Printing of one brochure page.
382 void PrintProspect( OutputDevice *pOutDev, const SwPrintData &rPrintData,
383 sal_Int32 nRenderer /* offset in vector of page pairs for prospect printing */ );
384
385 // Printing for OLE 2.0.
386 static void PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData& rOptions,
387 vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect,
388 bool bOutputForScreen );
389
390 // Fill temporary doc with selected text for Print or PDF export.
391 void FillPrtDoc( SwDoc& rPrtDoc, const SfxPrinter* pPrt );
392
393 // Called internally for Shell. Formats pages.
394 void CalcPagesForPrint( sal_uInt16 nMax );
395
396 // All about fields.
397 void UpdateFields(bool bCloseDB = false);
398 bool IsAnyFieldInDoc() const;
399
401 void UpdateOleObjectPreviews();
402
403 // Update all charts, for that exists any table.
404 void UpdateAllCharts();
405 bool HasCharts() const;
406
407 // DOCUMENT COMPATIBILITY FLAGS START
408
409 // Add or maximize paragraph spacing?
410 void SetParaSpaceMax( bool bNew );
411
412 // Add or maximize paragraph spacing?
413 void SetParaSpaceMaxAtPages( bool bNew );
414
415 // Compatible behaviour of tabs.
416 void SetTabCompat( bool bNew );
417
418 // Font metric attribute "External Leading" should be considered.
419 void SetAddExtLeading( bool bNew );
420
421 // Adding paragraph and table spacing at bottom
422 // of table cells.
423 void SetAddParaSpacingToTableCells( bool _bAddParaSpacingToTableCells );
424
425 // Former formatting of text lines with
426 // proportional line spacing or not.
427 void SetUseFormerLineSpacing( bool _bUseFormerLineSpacing );
428
429 // Former object positioning.
430 void SetUseFormerObjectPositioning( bool _bUseFormerObjPos );
431
432 void SetConsiderWrapOnObjPos( bool _bConsiderWrapOnObjPos );
433
434 void SetUseFormerTextWrapping( bool _bUseFormerTextWrapping );
435
436 void SetDoNotJustifyLinesWithManualBreak( bool _bDoNotJustifyLinesWithManualBreak );
437
438 void SetProtectForm( bool _bProtectForm );
439
440 void SetMsWordCompTrailingBlanks( bool _bMsWordCompTrailingBlanks );
441
442 void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys);
443
444 void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara);
445
446 // DOCUMENT COMPATIBILITY FLAGS END
447
448 // Calls Idle-formatter of Layout.
449 void LayoutIdle();
450
451 const SwViewOption *GetViewOptions() const { return mpOpt.get(); }
452 virtual void ApplyViewOptions( const SwViewOption &rOpt );
453 void SetUIOptions( const SwViewOption &rOpt );
454 virtual void SetReadonlyOption(bool bSet); // Set readonly-bit of ViewOptions.
455 void SetPDFExportOption(bool bSet); // Set/reset PDF export mode.
456 void SetPrtFormatOption(bool bSet); // Set PrtFormat-Bit of ViewOptions.
457 void SetReadonlySelectionOption(bool bSet); // Change the selection mode in readonly docs.
458
459 const SwAccessibilityOptions* GetAccessibilityOptions() const { return mpAccOptions.get();}
460
461 static void SetShellRes( ShellResource* pRes ) { spShellRes = pRes; }
462 static ShellResource* GetShellRes();
463
464 static weld::Window* CareChildWin(SwViewShell const & rVSh);
465 static void SetCareDialog(const std::shared_ptr<weld::Window>& rNew);
467 { return (*spCareDialog.get()) ? spCareDialog.get()->get() : CareChildWin(rVSh); }
468
469 SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
470 void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
471
472 // Selection of Draw Engine has been changed.
473 virtual void DrawSelChanged();
474
475 SwPagePreviewLayout* PagePreviewLayout();
476
487 void AdjustOptionsForPagePreview( SwPrintData const& rPrintOptions );
488
489 bool IsViewLocked() const { return mbViewLocked; }
490 void LockView( bool b ) { mbViewLocked = b; }
491
492 inline void LockPaint(LockPaintReason eReason);
493 void ImplLockPaint();
494 inline void UnlockPaint(bool bVirDev = false );
495 void ImplUnlockPaint( std::vector<LockPaintReason>& rReasons, bool bVirDev );
496 bool IsPaintLocked() const { return mnLockPaint != 0; }
497
498 // Get/set DrawView and PageView.
499 bool HasDrawView() const;
500 void MakeDrawView();
501
502 // Are we dragging draw shapes around.
503 bool HasDrawViewDrag() const;
504
505 // DrawView may be used at UI.
506 SdrView *GetDrawView();
507 const SdrView *GetDrawView() const { return const_cast<SwViewShell*>(this)->GetDrawView(); }
508
509 // Take care that MarkList is up-to-date in any case (Bug 57153).
510 SdrView *GetDrawViewWithValidMarkList();
511
512 // Query attribute pool.
513 inline const SfxItemPool& GetAttrPool() const;
514 SfxItemPool& GetAttrPool();
515
516 bool IsPreview() const { return mbPreview; }
517
518 bool IsFrameView() const { return mbFrameView; }
519
520 // Invalidates pages and contents.
521 // When bSizeChanged==true, adds/removes
522 // headers and footers as necessary.
523 void InvalidateLayout(bool bSizeChanged);
524
525 const Size& GetBrowseBorder() const;
526 sal_Int32 GetBrowseWidth() const;
527 void SetBrowseBorder( const Size& rNew );
528
529 css::uno::Reference< css::accessibility::XAccessible > CreateAccessible();
530
531 css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview();
532
533 void ShowPreviewSelection( sal_uInt16 nSelPage );
534 void InvalidateAccessibleFocus();
535
536 // Apply Accessibility options.
537 void ApplyAccessibilityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
538
551 void InvalidateAccessibleParaFlowRelation( const SwTextFrame* _pFromTextFrame,
552 const SwTextFrame* _pToTextFrame );
553
556 void InvalidateAccessibleParaTextSelection();
557
566 void InvalidateAccessibleParaAttrs( const SwTextFrame& rTextFrame );
567
568 SwAccessibleMap* GetAccessibleMap();
569
570 SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
571 tools::Long nFlags = 0 );
572 SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
573 const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
574 tools::Long nFlags = 0 );
575 virtual ~SwViewShell() override;
576
577 sal_Int32 GetPageNumAndSetOffsetForPDF( OutputDevice& rOut, const SwRect& rRect ) const;
578
579 bool IsInConstructor() const { return mbInConstructor; }
580
581 const BitmapEx& GetReplacementBitmap(bool bIsErrorState);
582 void DeleteReplacementBitmaps();
583
584 const SwPostItMgr* GetPostItMgr() const { return const_cast<SwViewShell*>(this)->GetPostItMgr(); }
585 SwPostItMgr* GetPostItMgr();
586
588 void ToggleHeaderFooterEdit();
590 bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; }
591 bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == FrameControlType::Header)? mbShowHeaderSeparator: mbShowFooterSeparator; }
592 virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow );
593 bool IsSelectAll() const { return mbSelectAll; }
594
595 void setOutputToWindow(bool bOutputToWindow);
596 bool isOutputToWindow() const;
597 void OnGraphicArrived(const SwRect&);
598
599 void GetFirstLastVisPageNumbers(SwVisiblePageNumbers& rVisiblePageNumbers);
600
601 virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
602};
603
604// manages global ShellPointer
606{
607public:
610
611 CurrShell( SwViewShell *pNew );
612 ~CurrShell();
613};
614
616{
618}
619
621{
622 if ( !mnStartAction++ )
624}
625
626inline void SwViewShell::EndAction( const bool bIdleEnd )
627{
628 if( 0 == (mnStartAction - 1) )
629 ImplEndAction( bIdleEnd );
631}
632
634{
635 maLockPaintReasons.push_back(eReason);
636 if ( !mnLockPaint++ )
638}
639
640inline void SwViewShell::UnlockPaint(bool bVirDev )
641{
642 if ( 0 == --mnLockPaint )
643 {
645 maLockPaintReasons.clear();
646 }
647}
648
650{
651 return const_cast<SwViewShell*>(this)->GetAttrPool();
652}
653
654
655/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwRootFrame * pRoot
Definition: viewsh.hxx:609
SwViewShell * pPrev
Definition: viewsh.hxx:608
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:211
sal_uInt16 ActionCount() const
Definition: viewsh.hxx:223
bool IsViewLocked() const
Definition: viewsh.hxx:489
vcl::RenderContext * GetOut() const
Definition: viewsh.hxx:364
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:590
void setLOKVisibleArea(const tools::Rectangle &rArea)
Definition: viewsh.hxx:279
bool IsPreview() const
Definition: viewsh.hxx:516
SdrPaintWindow * mpTargetPaintWindow
Definition: viewsh.hxx:166
const SwViewOption * GetViewOptions() const
Definition: viewsh.hxx:451
void UnlockPaint(bool bVirDev=false)
Definition: viewsh.hxx:640
void EnableSmooth(bool b)
Definition: viewsh.hxx:273
VclPtr< OutputDevice > mpOut
Window, Printer, VirtDev, ...
Definition: viewsh.hxx:142
bool IsPaintInProgress() const
Definition: viewsh.hxx:264
bool IsInEndAction() const
Definition: viewsh.hxx:225
void StartAction()
Definition: viewsh.hxx:620
rtl::Reference< SwDoc > mxDoc
The document; never 0.
Definition: viewsh.hxx:198
static bool sbLstAct
Definition: viewsh.hxx:127
VclPtr< OutputDevice > mpBufferedOut
Definition: viewsh.hxx:167
bool mbDocSizeChgd
Definition: viewsh.hxx:147
const tools::Rectangle & getLOKVisibleArea() const
The visible area in the client (set by setClientVisibleArea).
Definition: viewsh.hxx:278
bool IsFrameView() const
Definition: viewsh.hxx:518
SwViewShellImp * Imp()
Definition: viewsh.hxx:210
VclPtr< OutputDevice > mpPrePostOutDev
Definition: viewsh.hxx:247
void ImplEndAction(const bool bIdleEnd)
Definition: viewsh.cxx:246
void EndAction(const bool bIdleEnd=false)
Definition: viewsh.hxx:626
std::unique_ptr< SwViewOption > mpOpt
Definition: viewsh.hxx:144
Point maPrtOffset
Definition: viewsh.hxx:131
std::stack< vcl::Region > mPrePostPaintRegions
Definition: viewsh.hxx:246
SfxViewShell * mpSfxViewShell
Definition: viewsh.hxx:136
bool ActionPend() const
Definition: viewsh.hxx:224
const MapMode & getPrePostMapMode() const
Definition: viewsh.hxx:253
bool mbOutputToWindow
The virtual device we paint to will end up on the screen.
Definition: viewsh.hxx:206
bool mbFrameView
Definition: viewsh.hxx:156
bool mbPreview
Definition: viewsh.hxx:155
SwRootFramePtr mpLayout
Definition: viewsh.hxx:169
bool mbEnableSmooth
Definition: viewsh.hxx:157
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:196
Size maBrowseBorder
Definition: viewsh.hxx:133
vcl::Window * GetWin() const
Definition: viewsh.hxx:363
bool mbShowHeaderSeparator
Flag to say that we are showing the header control.
Definition: viewsh.hxx:159
const SdrView * GetDrawView() const
Definition: viewsh.hxx:507
bool HasInvalidRect() const
Definition: viewsh.hxx:232
bool mbPaintWorks
Definition: viewsh.hxx:149
void ImplUnlockPaint(std::vector< LockPaintReason > &rReasons, bool bVirDev)
Definition: viewsh.cxx:421
std::unique_ptr< SwViewShellImp > mpImp
Definition: viewsh.hxx:138
void SetOut(vcl::RenderContext *pOut)
Definition: viewsh.hxx:367
std::unique_ptr< BitmapEx > m_xErrorBmp
error display of missed images
Definition: viewsh.hxx:125
void SetWin(vcl::Window *win)
Definition: viewsh.hxx:366
bool IsShowHeaderFooterSeparator(FrameControlType eControl)
Definition: viewsh.hxx:591
sal_uInt16 mnStartAction
!= 0 if at least one Action is active.
Definition: viewsh.hxx:200
static ShellResource * spShellRes
Resources for the Shell.
Definition: viewsh.hxx:193
static weld::Window * GetCareDialog(SwViewShell const &rVSh)
Definition: viewsh.hxx:466
tools::Rectangle maLOKVisibleArea
The visible area in the LibreOfficeKit client.
Definition: viewsh.hxx:197
SwDoc * GetDoc() const
Definition: viewsh.hxx:307
bool mbHeaderFooterEdit
Flag to say that we are editing header or footer (according to the bShow(Header|Footer)Separator abov...
Definition: viewsh.hxx:161
SfxViewShell * GetSfxViewShell() const
Definition: viewsh.hxx:469
bool mbPaintInProgress
Definition: viewsh.hxx:151
const SwAccessibilityOptions * GetAccessibilityOptions() const
Definition: viewsh.hxx:459
MapMode maPrePostMapMode
Definition: viewsh.hxx:248
sal_uInt16 mnLockPaint
!= 0 if Paint is locked.
Definition: viewsh.hxx:201
bool mbShowFooterSeparator
Flag to say that we are showing the footer control.
Definition: viewsh.hxx:160
void ChgHyphenation()
Definition: viewsh.hxx:233
void LockPaint(LockPaintReason eReason)
Definition: viewsh.hxx:633
void LockView(bool b)
Definition: viewsh.hxx:490
const SwPostItMgr * GetPostItMgr() const
Definition: viewsh.hxx:584
void SetSfxViewShell(SfxViewShell *pNew)
Definition: viewsh.hxx:470
std::vector< LockPaintReason > maLockPaintReasons
Definition: viewsh.hxx:202
bool mbInConstructor
Definition: viewsh.hxx:164
static bool IsLstEndAction()
Definition: viewsh.hxx:368
bool IsDrawingLayerPaintInProgress() const
Definition: viewsh.hxx:265
void ResetInvalidRect()
Definition: viewsh.hxx:615
static void SetShellRes(ShellResource *pRes)
Definition: viewsh.hxx:461
std::unique_ptr< BitmapEx > m_xReplaceBmp
replaced display of still loaded images
Definition: viewsh.hxx:124
const SfxItemPool & GetAttrPool() const
Definition: viewsh.hxx:649
static vcl::DeleteOnDeinit< std::shared_ptr< weld::Window > > spCareDialog
Avoid this window.
Definition: viewsh.hxx:194
bool IsInConstructor() const
Definition: viewsh.hxx:579
void ImplStartAction()
Definition: viewsh.cxx:408
bool mbViewLocked
Definition: viewsh.hxx:152
void ImplLockPaint()
Definition: viewsh.cxx:414
bool IsPaintLocked() const
Definition: viewsh.hxx:496
bool mbSelectAll
Special select all mode: whole document selected, even if doc starts with table.
Definition: viewsh.hxx:203
bool IsSelectAll() const
Definition: viewsh.hxx:593
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:7714
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