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
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:
126 VclPtr<OutputDevice> mpActualOutDev; // Only for comparison
129
130 OUString maActualLayer; // Current drawing layer
131 OUString maMeasureLayer; // Current layer for measurements
132
133// Container aPagV; // List of SdrPageViews
134
135 // All windows this view is displayed on
136 std::vector<std::unique_ptr<SdrPaintWindow>> maPaintWindows;
137
138 Size maGridBig; // FIXME: We need to get rid of this eventually
139 Size maGridFin; // FIXME: We need to get rid of this eventually
144
146
147 sal_uInt16 mnHitTolPix;
148 sal_uInt16 mnMinMovPix;
149 sal_uInt16 mnHitTolLog;
150 sal_uInt16 mnMinMovLog;
151
157 bool mbGridFront : 1;
159 bool mbHlplFront : 1;
160 bool mbGlueVisible : 1; // Persistent; show gluepoints
161 bool mbGlueVisible2 : 1; // Also show gluepoints for GluePointEdit
162 bool mbGlueVisible3 : 1; // Also show gluepoints for EdgeTool
163 bool mbGlueVisible4 : 1; // Show gluepoints, if one edge is selected
167
168 // These bools manage, the status that is displayed
169 //
171
172 // Flag which decides if buffered output for this view is allowed. When
173 // set, PreRendering for PageView rendering will be used. Default is sal_False
175
176 // Flag which decides if buffered overlay for this view is allowed. When
177 // set, the output will be buffered in an overlay vdev. When not, overlay is
178 // directly painted to OutDev. Default is sal_False.
180
181 // Allow page painting at all?
183
184 // Is this a preview renderer?
186
187 // Flags for calc and sw for suppressing OLE, CHART or DRAW objects
188 bool mbHideOle : 1;
189 bool mbHideChart : 1;
190 bool mbHideDraw : 1; // hide draw objects other than form controls
191 bool mbHideFormControl : 1; // hide form controls only
192 bool mbPaintTextEdit : 1; // if should paint currently edited text
193
194public:
195 // Interface for PagePaintingAllowed flag
196 bool IsBufferedOutputAllowed() const;
197 void SetBufferedOutputAllowed(bool bNew);
198
199 // Interface for BufferedOverlayAllowed flag
200 bool IsBufferedOverlayAllowed() const;
201 void SetBufferedOverlayAllowed(bool bNew);
202
203 // Allow page painting at all?
204 bool IsPagePaintingAllowed() const { return mbPagePaintingAllowed;}
205 void SetPagePaintingAllowed(bool bNew);
206
207 virtual rtl::Reference<sdr::overlay::OverlayManager> CreateOverlayManager(OutputDevice& rDevice) const;
208
209protected:
212
213 // Interface to SdrPaintWindow
214 void DeletePaintWindow(const SdrPaintWindow& rOld);
216 static void InitOverlayManager(rtl::Reference<sdr::overlay::OverlayManager> xOverlayManager);
217
218public:
219 sal_uInt32 PaintWindowCount() const { return maPaintWindows.size(); }
220 SdrPaintWindow* FindPaintWindow(const OutputDevice& rOut) const;
221 SdrPaintWindow* GetPaintWindow(sal_uInt32 nIndex) const;
222 // Replacement for GetWin(0), may return 0L (!)
223 OutputDevice* GetFirstOutputDevice() const;
224
225private:
226 DECL_DLLPRIVATE_LINK(ImpComeBackHdl, Timer*, void);
227
228protected:
229 sal_uInt16 ImpGetMinMovLogic(short nMinMov, const OutputDevice* pOut) const;
230 sal_uInt16 ImpGetHitTolLogic(short nHitTol, const OutputDevice* pOut) const;
231
232 // If one does not want to wait for the IdleState of the system (cheated as const)
233 void FlushComeBackTimer() const;
234 void TheresNewMapMode();
235 void ImpSetGlueVisible2(bool bOn) { if (mbGlueVisible2!=bOn) { mbGlueVisible2=bOn; if (!mbGlueVisible && !mbGlueVisible3 && !mbGlueVisible4) GlueInvalidate(); } }
236 void ImpSetGlueVisible3(bool bOn) { if (mbGlueVisible3!=bOn) { mbGlueVisible3=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible4) GlueInvalidate(); } }
237 void ImpSetGlueVisible4(bool bOn) { if (mbGlueVisible4!=bOn) { mbGlueVisible4=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible3) GlueInvalidate(); } }
238
239public:
240 bool ImpIsGlueVisible() const { return mbGlueVisible || mbGlueVisible2 || mbGlueVisible3 || mbGlueVisible4; }
241
242protected:
243 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
244 void GlueInvalidate() const;
245
246 // ModelHasChanged is called, as soon as the system is idle again after many SdrHintKind::ObjectChange.
247 //
248 // Any sub-class override this method, MUST call the base class' ModelHasChanged() method
249 virtual void ModelHasChanged();
250
251 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
252 // A SdrView always needs a SdrModel for lifetime (Pool, ...)
253 SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut);
254 virtual ~SdrPaintView() override;
255
256public:
257 // SdrModel access on SdrView level
258 SdrModel& getSdrModelFromSdrView() const { return mrSdrModelFromSdrView; }
259
260 virtual void ClearPageView();
261 SdrModel* GetModel() const { return mpModel; }
262
263 virtual bool IsAction() const;
264 virtual void MovAction(const Point& rPnt);
265 virtual void EndAction();
266 virtual void BckAction();
267 virtual void BrkAction(); // Cancel all Actions (e.g. cancel dragging)
268 virtual void TakeActionRect(tools::Rectangle& rRect) const;
269
270 // Info about TextEdit. Default is sal_False.
271 virtual bool IsTextEdit() const;
272
273 // Must be called for every Window change as well as MapMode (Scaling) change:
274 // If the SdrView is shown in multiple windows at the same time (e.g.
275 // using the split pane), so that I can convert my pixel values to logical
276 // values.
277 void SetActualWin(const OutputDevice* pWin);
278 void SetMinMoveDistancePixel(sal_uInt16 nVal) { mnMinMovPix=nVal; TheresNewMapMode(); }
279 void SetHitTolerancePixel(sal_uInt16 nVal) { mnHitTolPix=nVal; TheresNewMapMode(); }
280 sal_uInt16 GetHitTolerancePixel() const { return mnHitTolPix; }
281
282 // Data read access on logic HitTolerance and MinMoveTolerance
283 sal_uInt16 getHitTolLog() const { return mnHitTolLog; }
284
285 // Using the DragState we can tell e.g. which distance was
286 // already dragged
287 const SdrDragStat& GetDragStat() const { return maDragStat; }
288
289 // Registering/de-registering a PageView at a View
290 //
291 // The same Page cannot be registered multiple times.
292 //
293 // Methods ending in PgNum expect being passed a Page number.
294 // Methods ending in PvNum, instead, expect the number of the
295 // PageView at the SdrView (iterating over all registered Pages).
296 virtual SdrPageView* ShowSdrPage(SdrPage* pPage);
297 virtual void HideSdrPage();
298
299 // Iterate over all registered PageViews
300 SdrPageView* GetSdrPageView() const { return mpPageView.get(); }
301
302 // A SdrView can be displayed on multiple Windows at the same time
303 virtual void AddWindowToPaintView(OutputDevice* pNewWin, vcl::Window* pWindow);
304 virtual void DeleteWindowFromPaintView(OutputDevice* pOldWin);
305
306 void SetLayerVisible(const OUString& rName, bool bShow);
307 bool IsLayerVisible(const OUString& rName) const;
308
309 void SetLayerLocked(const OUString& rName, bool bLock=true);
310 bool IsLayerLocked(const OUString& rName) const;
311
312 void SetLayerPrintable(const OUString& rName, bool bPrn);
313 bool IsLayerPrintable(const OUString& rName) const;
314
315 // PrePaint call forwarded from app windows
316 void PrePaint();
317
318
319 // Used internally for Draw/Impress/sch/chart2
320 virtual void CompleteRedraw(OutputDevice* pOut, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr);
321
322 // #i72889# used from CompleteRedraw() implementation internally, added to be able to do a complete redraw in single steps
323
324 // BeginCompleteRedraw returns (or even creates) a SdrPaintWindow which will then be used as the
325 // target for paints. Since paints may be buffered, use its GetTargetOutputDevice() method which will
326 // return the buffer in case it's buffered.
327 //
328 // DoCompleteRedraw then draws the DrawingLayer hierarchy
329 // EndCompleteRedraw does the necessary refreshes, paints text edit and overlay as well as destroys the
330 // SdrPaintWindow again, if needed.
331 // This means: the SdrPaintWindow is no longer safe after this closing call.
332 virtual SdrPaintWindow* BeginCompleteRedraw(OutputDevice* pOut);
333 void DoCompleteRedraw(SdrPaintWindow& rPaintWindow, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr);
334 virtual void EndCompleteRedraw(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
335
336
337 // Used for the other applications basctl/sc/sw which call DrawLayer at PageViews
338 // #i74769# Interface change to use common BeginCompleteRedraw/EndCompleteRedraw
339 // #i76114# bDisableIntersect disables intersecting rReg with the Window's paint region
340 SdrPaintWindow* BeginDrawLayers(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect = false);
341
342 // Used when the region passed to BeginDrawLayers needs to be changed
343 void UpdateDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg);
344 void EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLayer);
345
346protected:
347
348 // Used to paint the form layer after the PreRender device is flushed (painted) to the window.
349 void ImpFormLayerDrawing( SdrPaintWindow& rPaintWindow );
350
351 static vcl::Region OptimizeDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect);
352
353public:
355 bool IsPageVisible() const { return mbPageVisible; }
356
358 bool IsPageShadowVisible() const { return mbPageShadowVisible; }
359
361 bool IsPageBorderVisible() const { return mbPageBorderVisible; }
362
364 bool IsBordVisible() const { return mbBordVisible; }
365
367 bool IsGridVisible() const { return mbGridVisible; }
368
370 bool IsGridFront() const { return mbGridFront ; }
371
373 bool IsHlplVisible() const { return mbHlplVisible; }
374
376 bool IsHlplFront() const { return mbHlplFront ; }
377
378 const Color& GetGridColor() const { return maGridColor;}
379 void SetPageVisible(bool bOn = true) { mbPageVisible=bOn; InvalidateAllWin(); }
380 void SetPageShadowVisible(bool bOn) { mbPageShadowVisible=bOn; InvalidateAllWin(); }
381 void SetPageBorderVisible(bool bOn = true) { mbPageBorderVisible=bOn; InvalidateAllWin(); }
382 void SetBordVisible(bool bOn = true) { mbBordVisible=bOn; InvalidateAllWin(); }
383 void SetGridVisible(bool bOn) { mbGridVisible=bOn; InvalidateAllWin(); }
384 void SetGridFront(bool bOn) { mbGridFront =bOn; InvalidateAllWin(); }
385 void SetHlplVisible(bool bOn = true) { mbHlplVisible=bOn; InvalidateAllWin(); }
386 void SetHlplFront(bool bOn) { mbHlplFront =bOn; InvalidateAllWin(); }
387 void SetGlueVisible(bool bOn = true) { if (mbGlueVisible!=bOn) { mbGlueVisible=bOn; if (!mbGlueVisible2 && !mbGlueVisible3 && !mbGlueVisible4) GlueInvalidate(); } }
388
389 bool IsPreviewRenderer() const { return mbPreviewRenderer; }
390 void SetPreviewRenderer(bool bOn) { mbPreviewRenderer=bOn; }
391
392 // Access methods for calc and sw hide object modes
393 bool getHideOle() const { return mbHideOle; }
394 bool getHideChart() const { return mbHideChart; }
395 bool getHideDraw() const { return mbHideDraw; }
396 bool getHideFormControl() const { return mbHideFormControl; }
397 void setHideOle(bool bNew) { if(bNew != mbHideOle) mbHideOle = bNew; }
398 void setHideChart(bool bNew) { if(bNew != mbHideChart) mbHideChart = bNew; }
399 void setHideDraw(bool bNew) { if(bNew != mbHideDraw) mbHideDraw = bNew; }
400 void setHideFormControl(bool bNew) { if(bNew != mbHideFormControl) mbHideFormControl = bNew; }
401
402 void SetGridCoarse(const Size& rSiz) { maGridBig=rSiz; }
403 void SetGridFine(const Size& rSiz) {
404 maGridFin=rSiz;
405 if (maGridFin.Height()==0) maGridFin.setHeight(maGridFin.Width());
406 if (mbGridVisible) InvalidateAllWin();
407 }
408 const Size& GetGridCoarse() const { return maGridBig; }
409 const Size& GetGridFine() const { return maGridFin; }
410
411 void InvalidateAllWin();
412 void InvalidateAllWin(const tools::Rectangle& rRect);
413
416 virtual void InvalidateOneWin(OutputDevice& rWin);
417 virtual void InvalidateOneWin(OutputDevice& rWin, const tools::Rectangle& rRect);
418
419 void SetActiveLayer(const OUString& rName) { maActualLayer=rName; }
420 const OUString& GetActiveLayer() const { return maActualLayer; }
421
423 void LeaveOneGroup();
424
426 void LeaveAllGroup();
427
429 bool IsGroupEntered() const;
430
433 void SetDefaultAttr(const SfxItemSet& rAttr, bool bReplaceAll);
434 const SfxItemSet& GetDefaultAttr() const { return maDefaultAttr; }
435 void SetDefaultStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
436
437 void SetNotPersistDefaultAttr(const SfxItemSet& rAttr);
438 void MergeNotPersistDefaultAttr(SfxItemSet& rAttr) const;
439
445 bool IsSwapAsynchron() const { return mbSwapAsynchron; }
446 void SetSwapAsynchron(bool bJa=true) { mbSwapAsynchron=bJa; }
447 virtual bool KeyInput(const KeyEvent& rKEvt, vcl::Window* pWin);
448
449 virtual bool MouseButtonDown(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
450 virtual bool MouseButtonUp(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
451 virtual bool MouseMove(const MouseEvent& /*rMEvt*/, OutputDevice* /*pWin*/) { return false; }
452 virtual bool RequestHelp(const HelpEvent& /*rHEvt*/) { return false; }
453 virtual bool Command(const CommandEvent& /*rCEvt*/, vcl::Window* /*pWin*/) { return false; }
454
455 void GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr) const;
456
457 void SetAttributes(const SfxItemSet& rSet, bool bReplaceAll);
458 SfxStyleSheet* GetStyleSheet() const; // SfxStyleSheet* GetStyleSheet(bool& rOk) const;
459 void SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr);
460
461 virtual void MakeVisible(const tools::Rectangle& rRect, vcl::Window& rWin);
462
465 virtual void DoConnect(SdrOle2Obj* pOleObj);
466
470 bool IsAnimationEnabled() const { return ( SdrAnimationMode::Animate == meAnimationMode ); }
471 void SetAnimationEnabled( bool bEnable=true );
472
474 void SetAnimationPause( bool bSet );
475
480 void SetAnimationMode( const SdrAnimationMode eMode );
481
484 void VisAreaChanged(const OutputDevice* pOut);
485 void VisAreaChanged();
486
487 bool IsPrintPreview() const { return mbPrintPreview; }
488 void SetPrintPreview(bool bOn = true) { mbPrintPreview=bOn; }
489
490 const svtools::ColorConfig& getColorConfig() const { return maColorConfig;}
491
492 void onChangeColorConfig();
493
494 // #103834# Set background color for svx at SdrPageViews
495 void SetApplicationBackgroundColor(Color aBackgroundColor);
496
497 // #103911# Set document color for svx at SdrPageViews
498 void SetApplicationDocumentColor(Color aDocumentColor);
499
500 // #i38135#
501 // Sets the timer for Object animations and restarts.
502 void SetAnimationTimer(sal_uInt32 nTime);
503
505 void SetPaintTextEdit(bool bPaint) { mbPaintTextEdit = bPaint; }
506};
507
508/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class represents an embedded or linked bitmap graphic object.
Definition: svdograf.hxx:68
Abstract DrawObject.
Definition: svdobj.hxx:257
void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
Definition: svdobj.cxx:2247
SfxStyleSheet * GetStyleSheet() const
Definition: svdobj.cxx:2242
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:377
bool mbBordVisible
Definition: svdpntv.hxx:155
sal_uInt16 mnMinMovLog
Definition: svdpntv.hxx:150
void SetPageVisible(bool bOn=true)
Definition: svdpntv.hxx:379
bool IsBordVisible() const
Draw Border line or not.
Definition: svdpntv.hxx:364
bool IsPrintPreview() const
Definition: svdpntv.hxx:487
bool IsGridFront() const
Draw Grid in front of objects or behind them.
Definition: svdpntv.hxx:370
sal_uInt16 mnHitTolLog
Definition: svdpntv.hxx:149
void ImpSetGlueVisible4(bool bOn)
Definition: svdpntv.hxx:237
Size maGridFin
Definition: svdpntv.hxx:139
virtual bool MouseButtonUp(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:450
bool mbPageBorderVisible
Definition: svdpntv.hxx:154
bool mbHideOle
Definition: svdpntv.hxx:188
void setHideOle(bool bNew)
Definition: svdpntv.hxx:397
bool mbPagePaintingAllowed
Definition: svdpntv.hxx:182
bool mbGridVisible
Definition: svdpntv.hxx:156
SdrAnimationMode meAnimationMode
Definition: svdpntv.hxx:145
svtools::ColorConfig maColorConfig
Definition: svdpntv.hxx:210
sal_uInt16 mnHitTolPix
Definition: svdpntv.hxx:147
void SetPreviewRenderer(bool bOn)
Definition: svdpntv.hxx:390
virtual bool RequestHelp(const HelpEvent &)
Definition: svdpntv.hxx:452
void SetHlplVisible(bool bOn=true)
Definition: svdpntv.hxx:385
bool IsPagePaintingAllowed() const
Definition: svdpntv.hxx:204
bool mbGlueVisible
Definition: svdpntv.hxx:160
SfxItemSet maDefaultAttr
Definition: svdpntv.hxx:142
bool mbGridFront
Definition: svdpntv.hxx:157
bool mbPageShadowVisible
Definition: svdpntv.hxx:153
std::unique_ptr< SdrPageView > mpPageView
Definition: svdpntv.hxx:123
void setHideFormControl(bool bNew)
Definition: svdpntv.hxx:400
bool mbHideChart
Definition: svdpntv.hxx:189
virtual bool MouseMove(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:451
bool IsPageVisible() const
Draw Page as a white area or not.
Definition: svdpntv.hxx:355
bool mbBufferedOverlayAllowed
Definition: svdpntv.hxx:179
const Size & GetGridFine() const
Definition: svdpntv.hxx:409
sal_uInt16 mnMinMovPix
Definition: svdpntv.hxx:148
const SfxItemSet & GetDefaultAttr() const
Definition: svdpntv.hxx:434
bool IsPageBorderVisible() const
Draw Page as a white area or not.
Definition: svdpntv.hxx:361
OUString maMeasureLayer
Definition: svdpntv.hxx:131
DECL_DLLPRIVATE_LINK(ImpComeBackHdl, Timer *, void)
sal_uInt16 GetHitTolerancePixel() const
Definition: svdpntv.hxx:280
void SetActiveLayer(const OUString &rName)
Definition: svdpntv.hxx:419
bool mbPreviewRenderer
Definition: svdpntv.hxx:185
const Size & GetGridCoarse() const
Definition: svdpntv.hxx:408
bool mbGlueVisible3
Definition: svdpntv.hxx:162
SdrModel * GetModel() const
Definition: svdpntv.hxx:261
const svtools::ColorConfig & getColorConfig() const
Definition: svdpntv.hxx:490
bool IsPreviewRenderer() const
Definition: svdpntv.hxx:389
Size maGridBig
Definition: svdpntv.hxx:138
bool mbPaintTextEdit
Definition: svdpntv.hxx:192
void SetGridFine(const Size &rSiz)
Definition: svdpntv.hxx:403
SdrModel & getSdrModelFromSdrView() const
Definition: svdpntv.hxx:258
void SetHitTolerancePixel(sal_uInt16 nVal)
Definition: svdpntv.hxx:279
Color maGridColor
Definition: svdpntv.hxx:211
bool mbGlueVisible4
Definition: svdpntv.hxx:163
bool getHideFormControl() const
Definition: svdpntv.hxx:396
SdrDragStat maDragStat
Definition: svdpntv.hxx:140
void SetBordVisible(bool bOn=true)
Definition: svdpntv.hxx:382
tools::Rectangle maMaxWorkArea
Definition: svdpntv.hxx:141
const Color & GetGridColor() const
Definition: svdpntv.hxx:378
VclPtr< OutputDevice > mpActualOutDev
Definition: svdpntv.hxx:126
virtual bool Command(const CommandEvent &, vcl::Window *)
Definition: svdpntv.hxx:453
bool mbSomeObjChgdFlag
Definition: svdpntv.hxx:164
bool IsPageShadowVisible() const
Draw Page shadow or not.
Definition: svdpntv.hxx:358
SdrModel & mrSdrModelFromSdrView
Definition: svdpntv.hxx:121
bool mbHideDraw
Definition: svdpntv.hxx:190
void SetSwapAsynchron(bool bJa=true)
Definition: svdpntv.hxx:446
bool IsAnimationEnabled() const
Enable/disable animations for Paint Is used by e.g.
Definition: svdpntv.hxx:470
sal_uInt32 PaintWindowCount() const
Definition: svdpntv.hxx:219
void SetGridFront(bool bOn)
Definition: svdpntv.hxx:384
virtual bool MouseButtonDown(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:449
bool mbSwapAsynchron
Definition: svdpntv.hxx:165
bool mbPageVisible
Definition: svdpntv.hxx:152
bool IsHlplVisible() const
Draw Help line of the Page or not.
Definition: svdpntv.hxx:373
void SetGridCoarse(const Size &rSiz)
Definition: svdpntv.hxx:402
bool mbAnimationPause
Definition: svdpntv.hxx:170
SfxStyleSheet * mpDefaultStyleSheet
Definition: svdpntv.hxx:128
void SetPrintPreview(bool bOn=true)
Definition: svdpntv.hxx:488
const SdrDragStat & GetDragStat() const
Definition: svdpntv.hxx:287
bool mbBufferedOutputAllowed
Definition: svdpntv.hxx:174
bool mbHlplFront
Definition: svdpntv.hxx:159
bool getHideDraw() const
Definition: svdpntv.hxx:395
bool mbPrintPreview
Definition: svdpntv.hxx:166
OUString maActualLayer
Definition: svdpntv.hxx:130
void SetGlueVisible(bool bOn=true)
Definition: svdpntv.hxx:387
bool ImpIsGlueVisible() const
Definition: svdpntv.hxx:240
void ImpSetGlueVisible3(bool bOn)
Definition: svdpntv.hxx:236
Idle maComeBackIdle
Definition: svdpntv.hxx:143
void setHideDraw(bool bNew)
Definition: svdpntv.hxx:399
SdrPageView * GetSdrPageView() const
Definition: svdpntv.hxx:300
void SetHlplFront(bool bOn)
Definition: svdpntv.hxx:386
void SetPageShadowVisible(bool bOn)
Definition: svdpntv.hxx:380
bool getHideOle() const
Definition: svdpntv.hxx:393
void SetPageBorderVisible(bool bOn=true)
Definition: svdpntv.hxx:381
VclPtr< OutputDevice > mpDragWin
Definition: svdpntv.hxx:127
bool mbGlueVisible2
Definition: svdpntv.hxx:161
bool mbHlplVisible
Definition: svdpntv.hxx:158
bool IsHlplFront() const
Draw Help line in front of the objects or behind them.
Definition: svdpntv.hxx:376
void SetMinMoveDistancePixel(sal_uInt16 nVal)
Definition: svdpntv.hxx:278
bool mbHideFormControl
Definition: svdpntv.hxx:191
bool getHideChart() const
Definition: svdpntv.hxx:394
SdrModel * mpModel
Definition: svdpntv.hxx:125
bool IsSwapAsynchron() const
Execute a swap-in of e.g.
Definition: svdpntv.hxx:445
sal_uInt16 getHitTolLog() const
Definition: svdpntv.hxx:283
const OUString & GetActiveLayer() const
Definition: svdpntv.hxx:420
void setHideChart(bool bNew)
Definition: svdpntv.hxx:398
void ImpSetGlueVisible2(bool bOn)
Definition: svdpntv.hxx:235
std::vector< std::unique_ptr< SdrPaintWindow > > maPaintWindows
Definition: svdpntv.hxx:136
void SetGridVisible(bool bOn)
Definition: svdpntv.hxx:383
bool IsGridVisible() const
Draw Grid or not.
Definition: svdpntv.hxx:367
void SetPaintTextEdit(bool bPaint)
Definition: svdpntv.hxx:505
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