LibreOffice Module svx (master) 1
svdpntv.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
23#include <svl/lstner.hxx>
24#include <svl/undo.hxx>
25#include <svx/svddrag.hxx>
26#include <svx/svdlayer.hxx>
27#include <svtools/colorcfg.hxx>
28#include <svl/itemset.hxx>
29#include <svx/svxdllapi.h>
30#include <unotools/options.hxx>
31#include <vcl/event.hxx>
32#include <vcl/idle.hxx>
33#include <vcl/timer.hxx>
34#include <memory>
35
36
37// Pre defines
38class SdrPageWindow;
39
40namespace com::sun::star::awt {
41 class XControlContainer;
42}
43namespace sdr::overlay { class OverlayManager; }
44
45class SdrPage;
46class SdrView;
47class SfxItemSet;
48class SfxStyleSheet;
49class SdrOle2Obj;
50class SdrModel;
51class SdrObject;
52enum class GraphicManagerDrawFlags;
53
54namespace sdr::contact {
55 class ViewObjectContactRedirector;
56}
57
58// Defines for AnimationMode
60{
61 Animate,
63};
64
65class SdrPaintView;
66namespace sdr::contact { class ViewObjectContactRedirector; }
67
68namespace vcl {
69 class Window;
70}
71
72
73class SvxViewChangedHint final : public SfxHint
74{
75public:
76 explicit SvxViewChangedHint();
77};
78
79class SdrPaintWindow;
80
86 const GDIMetaFile& rMtf,
87 const basegfx::B2DRange& rTargetRange,
88 const sal_uInt32 nMaximumQuadraticPixels);
89
91//
92// SdrPaintView
93// SdrSnapView
94// SdrMarkView
95// SdrEditView
96// SdrPolyEditView
97// SdrGlueEditView
98// SdrObjEditView
99// SdrExchangeView
100// SdrDragView
101// SdrCreateView
102// SdrView
103// DlgEdView
104// GraphCtrlView
105// E3dView
106// DrawViewWrapper
107// FmFormView
108// ScDrawView
109// sd::View (may have more?)
110// sd::DrawView
111// SwDrawView
112// OSectionView
113
114class SVXCORE_DLLPUBLIC SdrPaintView : public SfxListener, public SfxRepeatTarget, public SfxBroadcaster, public ::utl::ConfigurationListener
115{
116private:
117 friend class SdrPageView;
118 friend class SdrGrafObj;
119
120 // the SdrModel this view was created with, unchanged during lifetime
122
123 std::unique_ptr<SdrPageView> mpPageView;
124protected:
125 VclPtr<OutputDevice> mpActualOutDev; // Only for comparison
128
129 OUString maActualLayer; // Current drawing layer
130 OUString maMeasureLayer; // Current layer for measurements
131
132// Container aPagV; // List of SdrPageViews
133
134 // All windows this view is displayed on
135 std::vector<std::unique_ptr<SdrPaintWindow>> maPaintWindows;
136
137 Size maGridBig; // FIXME: We need to get rid of this eventually
138 Size maGridFin; // FIXME: We need to get rid of this eventually
143
145
146 sal_uInt16 mnHitTolPix;
147 sal_uInt16 mnMinMovPix;
148 sal_uInt16 mnHitTolLog;
149 sal_uInt16 mnMinMovLog;
150
156 bool mbGridFront : 1;
158 bool mbHlplFront : 1;
159 bool mbGlueVisible : 1; // Persistent; show gluepoints
160 bool mbGlueVisible2 : 1; // Also show gluepoints for GluePointEdit
161 bool mbGlueVisible3 : 1; // Also show gluepoints for EdgeTool
162 bool mbGlueVisible4 : 1; // Show gluepoints, if one edge is selected
166
167 // These bools manage, the status that is displayed
168 //
170
171 // Flag which decides if buffered output for this view is allowed. When
172 // set, PreRendering for PageView rendering will be used. Default is sal_False
174
175 // Flag which decides if buffered overlay for this view is allowed. When
176 // set, the output will be buffered in an overlay vdev. When not, overlay is
177 // directly painted to OutDev. Default is sal_False.
179
180 // Allow page decorations? Quick way to switch on/off all of page's decoration features,
181 // in addition to the more fine-granular other view settings (see *visible bools above).
182 // Default is true.
183 // This controls processing of the hierarchy elements:
184 // -ViewContactOfPageBackground: formally known as 'Wiese', the area behind the page
185 // -ViewContactOfPageShadow: page's shadow
186 // -ViewContactOfPageFill: the page's fill with PageColor/PaperColor
187 // (MasterPage content here, not affected by this flag)
188 // -ViewContactOfOuterPageBorder: the border around the page
189 // -ViewContactOfInnerPageBorder: The border inside the page, moved inside by PageBorder distances
190 // -ViewContactOfGrid: the page's grid visualisation (background)
191 // -ViewContactOfHelplines: the page's Helplines (background)
192 // (Page content here, not affected by this flag)
193 // -ViewContactOfGrid: the page's grid visualisation (foreground)
194 // -ViewContactOfHelplines: the page's Helplines (foreground)
195 // Note: background/foreground means that one is active, grid & helplines can be displayed in
196 // front of or behind object visualisations/page content
198
199 // Allow MasterPage visualization, default is true
201
202 // Is this a preview renderer?
204
205 // Flags for calc and sw for suppressing OLE, CHART or DRAW objects
206 bool mbHideOle : 1;
207 bool mbHideChart : 1;
208 bool mbHideDraw : 1; // hide draw objects other than form controls
209 bool mbHideFormControl : 1; // hide form controls only
210 bool mbPaintTextEdit : 1; // if should paint currently edited text
211
212public:
213 // Interface for BufferedOoutputAllowed flag
214 bool IsBufferedOutputAllowed() const;
215 void SetBufferedOutputAllowed(bool bNew);
216
217 // Interface for BufferedOverlayAllowed flag
218 bool IsBufferedOverlayAllowed() const;
219 void SetBufferedOverlayAllowed(bool bNew);
220
221 // Allow page decorations? See details above at mbPageDecorationAllowed declaration
222 bool IsPageDecorationAllowed() const { return mbPageDecorationAllowed;}
223 void SetPageDecorationAllowed(bool bNew);
224
225 // Allow MasterPage visualization, default is true
226 bool IsMasterPageVisualizationAllowed() const { return mbMasterPageVisualizationAllowed;}
227 void SetMasterPageVisualizationAllowed(bool bNew);
228
229 virtual rtl::Reference<sdr::overlay::OverlayManager> CreateOverlayManager(OutputDevice& rDevice) const;
230
231protected:
234
235 // Interface to SdrPaintWindow
236 void DeletePaintWindow(const SdrPaintWindow& rOld);
238 static void InitOverlayManager(rtl::Reference<sdr::overlay::OverlayManager> xOverlayManager);
239
240public:
241 sal_uInt32 PaintWindowCount() const { return maPaintWindows.size(); }
242 SdrPaintWindow* FindPaintWindow(const OutputDevice& rOut) const;
243 SdrPaintWindow* GetPaintWindow(sal_uInt32 nIndex) const;
244 // Replacement for GetWin(0), may return 0L (!)
245 OutputDevice* GetFirstOutputDevice() const;
246
247private:
248 DECL_DLLPRIVATE_LINK(ImpComeBackHdl, Timer*, void);
249
250protected:
251 sal_uInt16 ImpGetMinMovLogic(short nMinMov, const OutputDevice* pOut) const;
252 sal_uInt16 ImpGetHitTolLogic(short nHitTol, const OutputDevice* pOut) const;
253
254 // If one does not want to wait for the IdleState of the system (cheated as const)
255 void FlushComeBackTimer() const;
256 void TheresNewMapMode();
257 void ImpSetGlueVisible2(bool bOn) { if (mbGlueVisible2!=bOn) { mbGlueVisible2=bOn; if (!mbGlueVisible && !mbGlueVisible3 && !mbGlueVisible4) GlueInvalidate(); } }
258 void ImpSetGlueVisible3(bool bOn) { if (mbGlueVisible3!=bOn) { mbGlueVisible3=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible4) GlueInvalidate(); } }
259 void ImpSetGlueVisible4(bool bOn) { if (mbGlueVisible4!=bOn) { mbGlueVisible4=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible3) GlueInvalidate(); } }
260
261public:
262 bool ImpIsGlueVisible() const { return mbGlueVisible || mbGlueVisible2 || mbGlueVisible3 || mbGlueVisible4; }
263
264protected:
265 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
266 void GlueInvalidate() const;
267
268 // ModelHasChanged is called, as soon as the system is idle again after many SdrHintKind::ObjectChange.
269 //
270 // Any sub-class override this method, MUST call the base class' ModelHasChanged() method
271 virtual void ModelHasChanged();
272
273 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
274 // A SdrView always needs a SdrModel for lifetime (Pool, ...)
275 SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut);
276 virtual ~SdrPaintView() override;
277
278public:
279 // SdrModel access on SdrView level
281
282 SdrModel& GetModel() const { return mrModel; }
283
284 virtual void ClearPageView();
285
286 virtual bool IsAction() const;
287 virtual void MovAction(const Point& rPnt);
288 virtual void EndAction();
289 virtual void BckAction();
290 virtual void BrkAction(); // Cancel all Actions (e.g. cancel dragging)
291 virtual void TakeActionRect(tools::Rectangle& rRect) const;
292
293 // Info about TextEdit. Default is sal_False.
294 virtual bool IsTextEdit() const;
295
296 // Must be called for every Window change as well as MapMode (Scaling) change:
297 // If the SdrView is shown in multiple windows at the same time (e.g.
298 // using the split pane), so that I can convert my pixel values to logical
299 // values.
300 void SetActualWin(const OutputDevice* pWin);
301 void SetMinMoveDistancePixel(sal_uInt16 nVal) { mnMinMovPix=nVal; TheresNewMapMode(); }
302 void SetHitTolerancePixel(sal_uInt16 nVal) { mnHitTolPix=nVal; TheresNewMapMode(); }
303 sal_uInt16 GetHitTolerancePixel() const { return mnHitTolPix; }
304
305 // Data read access on logic HitTolerance and MinMoveTolerance
306 sal_uInt16 getHitTolLog() const { return mnHitTolLog; }
307
308 // Using the DragState we can tell e.g. which distance was
309 // already dragged
310 const SdrDragStat& GetDragStat() const { return maDragStat; }
311
312 // Registering/de-registering a PageView at a View
313 //
314 // The same Page cannot be registered multiple times.
315 //
316 // Methods ending in PgNum expect being passed a Page number.
317 // Methods ending in PvNum, instead, expect the number of the
318 // PageView at the SdrView (iterating over all registered Pages).
319 virtual SdrPageView* ShowSdrPage(SdrPage* pPage);
320 virtual void HideSdrPage();
321
322 // Iterate over all registered PageViews
323 SdrPageView* GetSdrPageView() const { return mpPageView.get(); }
324
325 // A SdrView can be output to multiple devices at the same time
326 virtual void AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow);
327 virtual void DeleteDeviceFromPaintView(OutputDevice& rOldDev);
328
329 void SetLayerVisible(const OUString& rName, bool bShow);
330 bool IsLayerVisible(const OUString& rName) const;
331
332 void SetLayerLocked(const OUString& rName, bool bLock=true);
333 bool IsLayerLocked(const OUString& rName) const;
334
335 void SetLayerPrintable(const OUString& rName, bool bPrn);
336 bool IsLayerPrintable(const OUString& rName) const;
337
338 // PrePaint call forwarded from app windows
339 void PrePaint();
340
341
342 // Used internally for Draw/Impress/sch/chart2
343 virtual void CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr);
344
345 // #i72889# used from CompleteRedraw() implementation internally, added to be able to do a complete redraw in single steps
346
347 // BeginCompleteRedraw returns (or even creates) a SdrPaintWindow which will then be used as the
348 // target for paints. Since paints may be buffered, use its GetTargetOutputDevice() method which will
349 // return the buffer in case it's buffered.
350 //
351 // DoCompleteRedraw then draws the DrawingLayer hierarchy
352 // EndCompleteRedraw does the necessary refreshes, paints text edit and overlay as well as destroys the
353 // SdrPaintWindow again, if needed.
354 // This means: the SdrPaintWindow is no longer safe after this closing call.
355 virtual SdrPaintWindow* BeginCompleteRedraw(OutputDevice* pOut);
356 void DoCompleteRedraw(SdrPaintWindow& rPaintWindow, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr);
357 virtual void EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
358
359
360 // Used for the other applications basctl/sc/sw which call DrawLayer at PageViews
361 // #i74769# Interface change to use common BeginCompleteRedraw/EndCompleteRedraw
362 // #i76114# bDisableIntersect disables intersecting rReg with the Window's paint region
363 SdrPaintWindow* BeginDrawLayers(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect = false);
364
365 // Used when the region passed to BeginDrawLayers needs to be changed
366 void UpdateDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg);
367 void EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
368
369protected:
370
371 // Used to paint the form layer after the PreRender device is flushed (painted) to the window.
372 void ImpFormLayerDrawing( SdrPaintWindow& rPaintWindow );
373
374 static vcl::Region OptimizeDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect);
375
376public:
378 bool IsPageVisible() const { return mbPageVisible; }
379
381 bool IsPageShadowVisible() const { return mbPageShadowVisible; }
382
384 bool IsPageBorderVisible() const { return mbPageBorderVisible; }
385
387 bool IsBordVisible() const { return mbBordVisible; }
388
390 bool IsGridVisible() const { return mbGridVisible; }
391
393 bool IsGridFront() const { return mbGridFront ; }
394
396 bool IsHlplVisible() const { return mbHlplVisible; }
397
399 bool IsHlplFront() const { return mbHlplFront ; }
400
401 const Color& GetGridColor() const { return maGridColor;}
402 void SetPageVisible(bool bOn = true) { mbPageVisible=bOn; InvalidateAllWin(); }
403 void SetPageShadowVisible(bool bOn) { mbPageShadowVisible=bOn; InvalidateAllWin(); }
404 void SetPageBorderVisible(bool bOn = true) { mbPageBorderVisible=bOn; InvalidateAllWin(); }
405 void SetBordVisible(bool bOn = true) { mbBordVisible=bOn; InvalidateAllWin(); }
406 void SetGridVisible(bool bOn) { mbGridVisible=bOn; InvalidateAllWin(); }
407 void SetGridFront(bool bOn) { mbGridFront =bOn; InvalidateAllWin(); }
408 void SetHlplVisible(bool bOn = true) { mbHlplVisible=bOn; InvalidateAllWin(); }
409 void SetHlplFront(bool bOn) { mbHlplFront =bOn; InvalidateAllWin(); }
410 void SetGlueVisible(bool bOn = true) { if (mbGlueVisible!=bOn) { mbGlueVisible=bOn; if (!mbGlueVisible2 && !mbGlueVisible3 && !mbGlueVisible4) GlueInvalidate(); } }
411
412 bool IsPreviewRenderer() const { return mbPreviewRenderer; }
413 void SetPreviewRenderer(bool bOn) { mbPreviewRenderer=bOn; }
414
415 // Access methods for calc and sw hide object modes
416 bool getHideOle() const { return mbHideOle; }
417 bool getHideChart() const { return mbHideChart; }
418 bool getHideDraw() const { return mbHideDraw; }
419 bool getHideFormControl() const { return mbHideFormControl; }
420 void setHideOle(bool bNew) { if(bNew != mbHideOle) mbHideOle = bNew; }
421 void setHideChart(bool bNew) { if(bNew != mbHideChart) mbHideChart = bNew; }
422 void setHideDraw(bool bNew) { if(bNew != mbHideDraw) mbHideDraw = bNew; }
423 void setHideFormControl(bool bNew) { if(bNew != mbHideFormControl) mbHideFormControl = bNew; }
424
425 void SetGridCoarse(const Size& rSiz) { maGridBig=rSiz; }
426 void SetGridFine(const Size& rSiz) {
427 maGridFin=rSiz;
428 if (maGridFin.Height()==0) maGridFin.setHeight(maGridFin.Width());
429 if (mbGridVisible) InvalidateAllWin();
430 }
431 const Size& GetGridCoarse() const { return maGridBig; }
432 const Size& GetGridFine() const { return maGridFin; }
433
434 void InvalidateAllWin();
435 void InvalidateAllWin(const tools::Rectangle& rRect);
436
439 virtual void InvalidateOneWin(OutputDevice& rWin);
440 virtual void InvalidateOneWin(OutputDevice& rWin, const tools::Rectangle& rRect);
441
442 void SetActiveLayer(const OUString& rName) { maActualLayer=rName; }
443 const OUString& GetActiveLayer() const { return maActualLayer; }
444
446 void LeaveOneGroup();
447
449 void LeaveAllGroup();
450
452 bool IsGroupEntered() const;
453
456 void SetDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll);
457 const SfxItemSet& GetDefaultAttr() const { return maDefaultAttr; }
458 void SetDefaultStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
459
460 void SetNotPersistDefaultAttr(const SfxItemSet& rAttr);
461 void MergeNotPersistDefaultAttr(SfxItemSet& rAttr) const;
462
468 bool IsSwapAsynchron() const { return mbSwapAsynchron; }
469 void SetSwapAsynchron(bool bJa=true) { mbSwapAsynchron=bJa; }
470 virtual bool KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin);
471
472 virtual bool MouseButtonDown(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
473 virtual bool MouseButtonUp(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
474 virtual bool MouseMove(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
475 virtual bool RequestHelp(const HelpEvent& /*rHEvt*/) { return false; }
476 virtual bool Command(const CommandEvent& /*rCEvt*/, vcl::Window* /*pWin*/) { return false; }
477
478 void GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
479
480 void SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
481 SfxStyleSheet* GetStyleSheet() const; // SfxStyleSheet* GetStyleSheet(bool& rOk) const;
482 void SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
483
484 virtual void MakeVisible(const tools::Rectangle& rRect, vcl::Window& rWin);
485
488 virtual void DoConnect(SdrOle2Obj* pOleObj);
489
493 bool IsAnimationEnabled() const { return ( SdrAnimationMode::Animate == meAnimationMode ); }
494 void SetAnimationEnabled( bool bEnable=true );
495
497 void SetAnimationPause( bool bSet );
498
503 void SetAnimationMode( const SdrAnimationMode eMode );
504
507 void VisAreaChanged(const OutputDevice* pOut);
508 void VisAreaChanged();
509
510 bool IsPrintPreview() const { return mbPrintPreview; }
511 void SetPrintPreview(bool bOn = true) { mbPrintPreview=bOn; }
512
513 const svtools::ColorConfig& getColorConfig() const { return maColorConfig;}
514
515 void onChangeColorConfig();
516
517 // #103834# Set background color for svx at SdrPageViews
518 void SetApplicationBackgroundColor(Color aBackgroundColor);
519
520 // #103911# Set document color for svx at SdrPageViews
521 void SetApplicationDocumentColor(Color aDocumentColor);
522
523 // #i38135#
524 // Sets the timer for Object animations and restarts.
525 void SetAnimationTimer(sal_uInt32 nTime);
526
528 void SetPaintTextEdit(bool bPaint) { mbPaintTextEdit = bPaint; }
529};
530
531/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ChartModel & mrModel
This class represents an embedded or linked bitmap graphic object.
Definition: svdograf.hxx:68
Abstract DrawObject.
Definition: svdobj.hxx:260
void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
Definition: svdobj.cxx:2249
SfxStyleSheet * GetStyleSheet() const
Definition: svdobj.cxx:2244
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:379
bool mbBordVisible
Definition: svdpntv.hxx:154
sal_uInt16 mnMinMovLog
Definition: svdpntv.hxx:149
void SetPageVisible(bool bOn=true)
Definition: svdpntv.hxx:402
bool IsBordVisible() const
Draw Border line or not.
Definition: svdpntv.hxx:387
bool IsPrintPreview() const
Definition: svdpntv.hxx:510
bool IsGridFront() const
Draw Grid in front of objects or behind them.
Definition: svdpntv.hxx:393
sal_uInt16 mnHitTolLog
Definition: svdpntv.hxx:148
void ImpSetGlueVisible4(bool bOn)
Definition: svdpntv.hxx:259
Size maGridFin
Definition: svdpntv.hxx:138
virtual bool MouseButtonUp(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:473
bool mbPageBorderVisible
Definition: svdpntv.hxx:153
bool mbHideOle
Definition: svdpntv.hxx:206
bool IsMasterPageVisualizationAllowed() const
Definition: svdpntv.hxx:226
void setHideOle(bool bNew)
Definition: svdpntv.hxx:420
bool mbGridVisible
Definition: svdpntv.hxx:155
SdrAnimationMode meAnimationMode
Definition: svdpntv.hxx:144
svtools::ColorConfig maColorConfig
Definition: svdpntv.hxx:232
sal_uInt16 mnHitTolPix
Definition: svdpntv.hxx:146
void SetPreviewRenderer(bool bOn)
Definition: svdpntv.hxx:413
virtual bool RequestHelp(const HelpEvent &)
Definition: svdpntv.hxx:475
void SetHlplVisible(bool bOn=true)
Definition: svdpntv.hxx:408
bool mbGlueVisible
Definition: svdpntv.hxx:159
SfxItemSet maDefaultAttr
Definition: svdpntv.hxx:141
bool mbGridFront
Definition: svdpntv.hxx:156
bool mbPageShadowVisible
Definition: svdpntv.hxx:152
std::unique_ptr< SdrPageView > mpPageView
Definition: svdpntv.hxx:123
void setHideFormControl(bool bNew)
Definition: svdpntv.hxx:423
bool mbHideChart
Definition: svdpntv.hxx:207
virtual bool MouseMove(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:474
bool IsPageVisible() const
Draw Page as a white area or not.
Definition: svdpntv.hxx:378
bool mbBufferedOverlayAllowed
Definition: svdpntv.hxx:178
const Size & GetGridFine() const
Definition: svdpntv.hxx:432
sal_uInt16 mnMinMovPix
Definition: svdpntv.hxx:147
const SfxItemSet & GetDefaultAttr() const
Definition: svdpntv.hxx:457
bool IsPageBorderVisible() const
Draw Page as a white area or not.
Definition: svdpntv.hxx:384
OUString maMeasureLayer
Definition: svdpntv.hxx:130
DECL_DLLPRIVATE_LINK(ImpComeBackHdl, Timer *, void)
sal_uInt16 GetHitTolerancePixel() const
Definition: svdpntv.hxx:303
void SetActiveLayer(const OUString &rName)
Definition: svdpntv.hxx:442
bool mbPreviewRenderer
Definition: svdpntv.hxx:203
const Size & GetGridCoarse() const
Definition: svdpntv.hxx:431
bool mbGlueVisible3
Definition: svdpntv.hxx:161
const svtools::ColorConfig & getColorConfig() const
Definition: svdpntv.hxx:513
bool IsPreviewRenderer() const
Definition: svdpntv.hxx:412
bool IsPageDecorationAllowed() const
Definition: svdpntv.hxx:222
Size maGridBig
Definition: svdpntv.hxx:137
bool mbPaintTextEdit
Definition: svdpntv.hxx:210
void SetGridFine(const Size &rSiz)
Definition: svdpntv.hxx:426
SdrModel & getSdrModelFromSdrView() const
Definition: svdpntv.hxx:280
void SetHitTolerancePixel(sal_uInt16 nVal)
Definition: svdpntv.hxx:302
Color maGridColor
Definition: svdpntv.hxx:233
bool mbGlueVisible4
Definition: svdpntv.hxx:162
SdrModel & mrModel
Definition: svdpntv.hxx:121
bool getHideFormControl() const
Definition: svdpntv.hxx:419
SdrDragStat maDragStat
Definition: svdpntv.hxx:139
void SetBordVisible(bool bOn=true)
Definition: svdpntv.hxx:405
tools::Rectangle maMaxWorkArea
Definition: svdpntv.hxx:140
const Color & GetGridColor() const
Definition: svdpntv.hxx:401
VclPtr< OutputDevice > mpActualOutDev
Definition: svdpntv.hxx:125
virtual bool Command(const CommandEvent &, vcl::Window *)
Definition: svdpntv.hxx:476
bool mbSomeObjChgdFlag
Definition: svdpntv.hxx:163
bool IsPageShadowVisible() const
Draw Page shadow or not.
Definition: svdpntv.hxx:381
bool mbHideDraw
Definition: svdpntv.hxx:208
void SetSwapAsynchron(bool bJa=true)
Definition: svdpntv.hxx:469
bool IsAnimationEnabled() const
Enable/disable animations for Paint Is used by e.g.
Definition: svdpntv.hxx:493
sal_uInt32 PaintWindowCount() const
Definition: svdpntv.hxx:241
void SetGridFront(bool bOn)
Definition: svdpntv.hxx:407
virtual bool MouseButtonDown(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:472
bool mbSwapAsynchron
Definition: svdpntv.hxx:164
bool mbPageVisible
Definition: svdpntv.hxx:151
bool IsHlplVisible() const
Draw Help line of the Page or not.
Definition: svdpntv.hxx:396
void SetGridCoarse(const Size &rSiz)
Definition: svdpntv.hxx:425
bool mbAnimationPause
Definition: svdpntv.hxx:169
SfxStyleSheet * mpDefaultStyleSheet
Definition: svdpntv.hxx:127
void SetPrintPreview(bool bOn=true)
Definition: svdpntv.hxx:511
const SdrDragStat & GetDragStat() const
Definition: svdpntv.hxx:310
bool mbBufferedOutputAllowed
Definition: svdpntv.hxx:173
bool mbHlplFront
Definition: svdpntv.hxx:158
bool getHideDraw() const
Definition: svdpntv.hxx:418
bool mbPageDecorationAllowed
Definition: svdpntv.hxx:197
bool mbPrintPreview
Definition: svdpntv.hxx:165
OUString maActualLayer
Definition: svdpntv.hxx:129
void SetGlueVisible(bool bOn=true)
Definition: svdpntv.hxx:410
bool mbMasterPageVisualizationAllowed
Definition: svdpntv.hxx:200
bool ImpIsGlueVisible() const
Definition: svdpntv.hxx:262
void ImpSetGlueVisible3(bool bOn)
Definition: svdpntv.hxx:258
Idle maComeBackIdle
Definition: svdpntv.hxx:142
void setHideDraw(bool bNew)
Definition: svdpntv.hxx:422
SdrPageView * GetSdrPageView() const
Definition: svdpntv.hxx:323
void SetHlplFront(bool bOn)
Definition: svdpntv.hxx:409
void SetPageShadowVisible(bool bOn)
Definition: svdpntv.hxx:403
bool getHideOle() const
Definition: svdpntv.hxx:416
void SetPageBorderVisible(bool bOn=true)
Definition: svdpntv.hxx:404
VclPtr< OutputDevice > mpDragWin
Definition: svdpntv.hxx:126
bool mbGlueVisible2
Definition: svdpntv.hxx:160
bool mbHlplVisible
Definition: svdpntv.hxx:157
SdrModel & GetModel() const
Definition: svdpntv.hxx:282
bool IsHlplFront() const
Draw Help line in front of the objects or behind them.
Definition: svdpntv.hxx:399
void SetMinMoveDistancePixel(sal_uInt16 nVal)
Definition: svdpntv.hxx:301
bool mbHideFormControl
Definition: svdpntv.hxx:209
bool getHideChart() const
Definition: svdpntv.hxx:417
bool IsSwapAsynchron() const
Execute a swap-in of e.g.
Definition: svdpntv.hxx:468
sal_uInt16 getHitTolLog() const
Definition: svdpntv.hxx:306
const OUString & GetActiveLayer() const
Definition: svdpntv.hxx:443
void setHideChart(bool bNew)
Definition: svdpntv.hxx:421
void ImpSetGlueVisible2(bool bOn)
Definition: svdpntv.hxx:257
std::vector< std::unique_ptr< SdrPaintWindow > > maPaintWindows
Definition: svdpntv.hxx:135
void SetGridVisible(bool bOn)
Definition: svdpntv.hxx:406
bool IsGridVisible() const
Draw Grid or not.
Definition: svdpntv.hxx:390
void SetPaintTextEdit(bool bPaint)
Definition: svdpntv.hxx:528
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
constexpr tools::Long Height() const
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
virtual void ConfigurationChanged(ConfigurationBroadcaster *p, ConfigurationHints nHint)=0
ConfigurationHints
BitmapEx convertMetafileToBitmapEx(const GDIMetaFile &rMtf, const basegfx::B2DRange &rTargetRange, const sal_uInt32 nMaximumQuadraticPixels)
Helper to convert any GDIMetaFile to a good quality BitmapEx, using default parameters and graphic::X...
Definition: svdpntv.cxx:107
SdrAnimationMode
Definition: svdpntv.hxx:60
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35