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 painting at all?
182
183 // Is this a preview renderer?
185
186 // Flags for calc and sw for suppressing OLE, CHART or DRAW objects
187 bool mbHideOle : 1;
188 bool mbHideChart : 1;
189 bool mbHideDraw : 1; // hide draw objects other than form controls
190 bool mbHideFormControl : 1; // hide form controls only
191 bool mbPaintTextEdit : 1; // if should paint currently edited text
192
193public:
194 // Interface for PagePaintingAllowed flag
195 bool IsBufferedOutputAllowed() const;
196 void SetBufferedOutputAllowed(bool bNew);
197
198 // Interface for BufferedOverlayAllowed flag
199 bool IsBufferedOverlayAllowed() const;
200 void SetBufferedOverlayAllowed(bool bNew);
201
202 // Allow page painting at all?
203 bool IsPagePaintingAllowed() const { return mbPagePaintingAllowed;}
204 void SetPagePaintingAllowed(bool bNew);
205
206 virtual rtl::Reference<sdr::overlay::OverlayManager> CreateOverlayManager(OutputDevice& rDevice) const;
207
208protected:
211
212 // Interface to SdrPaintWindow
213 void DeletePaintWindow(const SdrPaintWindow& rOld);
215 static void InitOverlayManager(rtl::Reference<sdr::overlay::OverlayManager> xOverlayManager);
216
217public:
218 sal_uInt32 PaintWindowCount() const { return maPaintWindows.size(); }
219 SdrPaintWindow* FindPaintWindow(const OutputDevice& rOut) const;
220 SdrPaintWindow* GetPaintWindow(sal_uInt32 nIndex) const;
221 // Replacement for GetWin(0), may return 0L (!)
222 OutputDevice* GetFirstOutputDevice() const;
223
224private:
225 DECL_DLLPRIVATE_LINK(ImpComeBackHdl, Timer*, void);
226
227protected:
228 sal_uInt16 ImpGetMinMovLogic(short nMinMov, const OutputDevice* pOut) const;
229 sal_uInt16 ImpGetHitTolLogic(short nHitTol, const OutputDevice* pOut) const;
230
231 // If one does not want to wait for the IdleState of the system (cheated as const)
232 void FlushComeBackTimer() const;
233 void TheresNewMapMode();
234 void ImpSetGlueVisible2(bool bOn) { if (mbGlueVisible2!=bOn) { mbGlueVisible2=bOn; if (!mbGlueVisible && !mbGlueVisible3 && !mbGlueVisible4) GlueInvalidate(); } }
235 void ImpSetGlueVisible3(bool bOn) { if (mbGlueVisible3!=bOn) { mbGlueVisible3=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible4) GlueInvalidate(); } }
236 void ImpSetGlueVisible4(bool bOn) { if (mbGlueVisible4!=bOn) { mbGlueVisible4=bOn; if (!mbGlueVisible && !mbGlueVisible2 && !mbGlueVisible3) GlueInvalidate(); } }
237
238public:
239 bool ImpIsGlueVisible() const { return mbGlueVisible || mbGlueVisible2 || mbGlueVisible3 || mbGlueVisible4; }
240
241protected:
242 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
243 void GlueInvalidate() const;
244
245 // ModelHasChanged is called, as soon as the system is idle again after many SdrHintKind::ObjectChange.
246 //
247 // Any sub-class override this method, MUST call the base class' ModelHasChanged() method
248 virtual void ModelHasChanged();
249
250 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
251 // A SdrView always needs a SdrModel for lifetime (Pool, ...)
252 SdrPaintView(SdrModel& rSdrModel, OutputDevice* pOut);
253 virtual ~SdrPaintView() override;
254
255public:
256 // SdrModel access on SdrView level
258
259 SdrModel& GetModel() const { return mrModel; }
260
261 virtual void ClearPageView();
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 output to multiple devices at the same time
303 virtual void AddDeviceToPaintView(OutputDevice& rNewDev, vcl::Window* pWindow);
304 virtual void DeleteDeviceFromPaintView(OutputDevice& rOldDev);
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: */
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:2215
SfxStyleSheet * GetStyleSheet() const
Definition: svdobj.cxx:2210
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:154
sal_uInt16 mnMinMovLog
Definition: svdpntv.hxx:149
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:148
void ImpSetGlueVisible4(bool bOn)
Definition: svdpntv.hxx:236
Size maGridFin
Definition: svdpntv.hxx:138
virtual bool MouseButtonUp(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:450
bool mbPageBorderVisible
Definition: svdpntv.hxx:153
bool mbHideOle
Definition: svdpntv.hxx:187
void setHideOle(bool bNew)
Definition: svdpntv.hxx:397
bool mbPagePaintingAllowed
Definition: svdpntv.hxx:181
bool mbGridVisible
Definition: svdpntv.hxx:155
SdrAnimationMode meAnimationMode
Definition: svdpntv.hxx:144
svtools::ColorConfig maColorConfig
Definition: svdpntv.hxx:209
sal_uInt16 mnHitTolPix
Definition: svdpntv.hxx:146
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:203
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:400
bool mbHideChart
Definition: svdpntv.hxx:188
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:178
const Size & GetGridFine() const
Definition: svdpntv.hxx:409
sal_uInt16 mnMinMovPix
Definition: svdpntv.hxx:147
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:130
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:184
const Size & GetGridCoarse() const
Definition: svdpntv.hxx:408
bool mbGlueVisible3
Definition: svdpntv.hxx:161
const svtools::ColorConfig & getColorConfig() const
Definition: svdpntv.hxx:490
bool IsPreviewRenderer() const
Definition: svdpntv.hxx:389
Size maGridBig
Definition: svdpntv.hxx:137
bool mbPaintTextEdit
Definition: svdpntv.hxx:191
void SetGridFine(const Size &rSiz)
Definition: svdpntv.hxx:403
SdrModel & getSdrModelFromSdrView() const
Definition: svdpntv.hxx:257
void SetHitTolerancePixel(sal_uInt16 nVal)
Definition: svdpntv.hxx:279
Color maGridColor
Definition: svdpntv.hxx:210
bool mbGlueVisible4
Definition: svdpntv.hxx:162
SdrModel & mrModel
Definition: svdpntv.hxx:121
bool getHideFormControl() const
Definition: svdpntv.hxx:396
SdrDragStat maDragStat
Definition: svdpntv.hxx:139
void SetBordVisible(bool bOn=true)
Definition: svdpntv.hxx:382
tools::Rectangle maMaxWorkArea
Definition: svdpntv.hxx:140
const Color & GetGridColor() const
Definition: svdpntv.hxx:378
VclPtr< OutputDevice > mpActualOutDev
Definition: svdpntv.hxx:125
virtual bool Command(const CommandEvent &, vcl::Window *)
Definition: svdpntv.hxx:453
bool mbSomeObjChgdFlag
Definition: svdpntv.hxx:163
bool IsPageShadowVisible() const
Draw Page shadow or not.
Definition: svdpntv.hxx:358
bool mbHideDraw
Definition: svdpntv.hxx:189
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:218
void SetGridFront(bool bOn)
Definition: svdpntv.hxx:384
virtual bool MouseButtonDown(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:449
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:373
void SetGridCoarse(const Size &rSiz)
Definition: svdpntv.hxx:402
bool mbAnimationPause
Definition: svdpntv.hxx:169
SfxStyleSheet * mpDefaultStyleSheet
Definition: svdpntv.hxx:127
void SetPrintPreview(bool bOn=true)
Definition: svdpntv.hxx:488
const SdrDragStat & GetDragStat() const
Definition: svdpntv.hxx:287
bool mbBufferedOutputAllowed
Definition: svdpntv.hxx:173
bool mbHlplFront
Definition: svdpntv.hxx:158
bool getHideDraw() const
Definition: svdpntv.hxx:395
bool mbPrintPreview
Definition: svdpntv.hxx:165
OUString maActualLayer
Definition: svdpntv.hxx:129
void SetGlueVisible(bool bOn=true)
Definition: svdpntv.hxx:387
bool ImpIsGlueVisible() const
Definition: svdpntv.hxx:239
void ImpSetGlueVisible3(bool bOn)
Definition: svdpntv.hxx:235
Idle maComeBackIdle
Definition: svdpntv.hxx:142
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:126
bool mbGlueVisible2
Definition: svdpntv.hxx:160
bool mbHlplVisible
Definition: svdpntv.hxx:157
SdrModel & GetModel() const
Definition: svdpntv.hxx:259
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:190
bool getHideChart() const
Definition: svdpntv.hxx:394
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:234
std::vector< std::unique_ptr< SdrPaintWindow > > maPaintWindows
Definition: svdpntv.hxx:135
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