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