LibreOffice Module svx (master)  1
objectcontactofpageview.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_INC_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX
21 #define INCLUDED_SVX_INC_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX
22 
24 #include <vcl/idle.hxx>
25 
26 class SdrPageWindow;
27 class SdrPage;
28 
29 namespace sdr
30 {
31  namespace contact
32  {
34  {
35  // the owner of this ObjectContactOfPageView. Set from constructor and not
36  // to be changed in any way.
38 
39  // Process the whole displaying, the real version
40  void DoProcessDisplay(DisplayInfo& rDisplayInfo);
41 
42  public:
43  // access to SdrPageWindow
44  SdrPageWindow& GetPageWindow() const { return mrPageWindow; }
45 
46  // access to SdrPage of PageView
47  SdrPage* GetSdrPage() const;
48 
49  // basic constructor, used from SdrPageView.
50  explicit ObjectContactOfPageView(SdrPageWindow& rPageWindow,
51  const char *pDebugName);
52  virtual ~ObjectContactOfPageView() override;
53 
54  // LazyInvalidate request. This is used from the VOCs to mark that they
55  // got invalidated by an ActionChanged() call. An active view needs to remember
56  // this and take action on it. Default implementation directly calls back
57  // triggerLazyInvalidate() which promptly handles the request
58  virtual void setLazyInvalidate(ViewObjectContact& rVOC) override;
59 
60  // call this to support evtl. preparations for repaint
61  virtual void PrepareProcessDisplay() override;
62 
63  // From baseclass Timer, the timeout call triggered by the LazyInvalidate mechanism
64  virtual void Invoke() final override;
65 
66  // Process the whole displaying
67  virtual void ProcessDisplay(DisplayInfo& rDisplayInfo) override;
68 
69  // test if visualizing of entered groups is switched on at all
70  virtual bool DoVisualizeEnteredGroup() const override;
71 
72  // get active group's (the entered group) ViewContact
73  virtual const ViewContact* getActiveViewContact() const override;
74 
75  // Invalidate given rectangle at the window/output which is represented by
76  // this ObjectContact.
77  virtual void InvalidatePartOfView(const basegfx::B2DRange& rRange) const override;
78 
79  // Get info about the need to visualize GluePoints. The default
80  // is that it is not necessary.
81  virtual bool AreGluePointsVisible() const override;
82 
83  // check if text animation is allowed.
84  virtual bool IsTextAnimationAllowed() const override;
85 
86  // check if graphic animation is allowed.
87  virtual bool IsGraphicAnimationAllowed() const override;
88 
89  // print? Default is false
90  virtual bool isOutputToPrinter() const override;
91 
92  // recording MetaFile? Default is false
93  virtual bool isOutputToRecordingMetaFile() const override;
94 
95  // pdf export? Default is false
96  virtual bool isOutputToPDFFile() const override;
97 
98  // gray display mode
99  virtual bool isDrawModeGray() const override;
100 
101  // high contrast display mode
102  virtual bool isDrawModeHighContrast() const override;
103 
104  // override access to SdrPageView
105  virtual SdrPageView* TryToGetSdrPageView() const override;
106 
107  // access to OutputDevice. May return 0L like the default implementations do. Override as needed.
108  virtual OutputDevice* TryToGetOutputDevice() const override;
109 
113  void SetUNOControlsDesignMode( bool _bDesignMode ) const;
114  };
115  } // end of namespace contact
116 } // end of namespace sdr
117 
118 #endif // INCLUDED_SVX_INC_SDR_CONTACT_OBJECTCONTACTOFPAGEVIEW_HXX
119 
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:366