class DisplayInfo; class ViewContact; class ViewObjectContactRedirector;
class SVXCORE_DLLPUBLIC ObjectContact
{ private: // make ViewObjectContact a friend to exclusively allow it to use // AddViewObjectContact/RemoveViewObjectContact friendclass ViewObjectContact;
// All VOCs which are created using this OC, thus remembering this OC // as a reference. All those VOCs need to be deleted when the OC goes down. // Registering and de-registering is done in the VOC constructors/destructors.
std::vector< ViewObjectContact* > maViewObjectContactVector;
// A new ViewObjectContact was created and shall be remembered. void AddViewObjectContact(ViewObjectContact& rVOContact);
// A ViewObjectContact was deleted and shall be forgotten. void RemoveViewObjectContact(ViewObjectContact& rVOContact);
// the primitiveAnimator which is used if this View and/or the contained primitives // support animatedSwitchPrimitives
sdr::animation::primitiveAnimator maPrimitiveAnimator;
// The redirector. If set it is used to pipe all supported calls // to the redirector
ViewObjectContactRedirector* mpViewObjectContactRedirector;
// the Primitive2DParameters containing view information
drawinglayer::geometry::ViewInformation2D maViewInformation2D;
// flag for preview renderer bool mbIsPreviewRenderer : 1;
protected: // Interface to allow derivates to travel over the registered VOC's
sal_uInt32 getViewObjectContactCount() const { return maViewObjectContactVector.size(); }
ViewObjectContact* getViewObjectContact(sal_uInt32 a) const { return maViewObjectContactVector[a]; }
// interface to allow derivates to set PreviewRenderer flag void setPreviewRenderer(bool bNew) { mbIsPreviewRenderer = bNew; }
// interface to allow derivates to set ViewInformation2D void updateViewInformation2D(const drawinglayer::geometry::ViewInformation2D& rViewInformation2D) { maViewInformation2D = rViewInformation2D; }
// LazyInvalidate request. This is used from the VOCs to mark that they // got invalidated by an ActionChanged() call. An active view needs to remember // this and take action on it. Default implementation directly calls back // triggerLazyInvalidate() which promptly handles the request virtualvoid setLazyInvalidate(ViewObjectContact& rVOC);
// call this to support evtl. preparations for repaint. Default does nothing virtualvoid PrepareProcessDisplay();
// Process the whole displaying virtualvoid ProcessDisplay(DisplayInfo& rDisplayInfo);
// test if visualizing of entered groups is switched on at all. Default // implementation returns sal_False. virtualbool DoVisualizeEnteredGroup() const;
// get active group's (the entered group) ViewContact virtualconst ViewContact* getActiveViewContact() const;
// Invalidate given rectangle at the window/output which is represented by // this ObjectContact. Default does nothing. virtualvoid InvalidatePartOfView(const basegfx::B2DRange& rRange) const;
// Get info about the need to visualize GluePoints. The default // is that it is not necessary. virtualbool AreGluePointsVisible() const;
// method to get the primitiveAnimator
sdr::animation::primitiveAnimator& getPrimitiveAnimator() { return maPrimitiveAnimator; }
// check if text animation is allowed. Default is sal_true. virtualbool IsTextAnimationAllowed() const;
// check if graphic animation is allowed. Default is sal_true. virtualbool IsGraphicAnimationAllowed() const;
// high contrast display mode virtualbool isDrawModeHighContrast() const;
// check if this is a preview renderer. Default is sal_False. bool IsPreviewRenderer() const { return mbIsPreviewRenderer; }
// get Primitive2DParameters for this view const drawinglayer::geometry::ViewInformation2D& getViewInformation2D() const { return maViewInformation2D; }
/// access to SdrPageView. May return 0L like the default implementations do. Override as needed. virtual SdrPageView* TryToGetSdrPageView() const;
/// access to OutputDevice. May return 0L like the default implementations do. Override as needed. virtual OutputDevice* TryToGetOutputDevice() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.