LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
sdr::contact::ViewObjectContactOfSdrObj Class Reference

#include <viewobjectcontactofsdrobj.hxx>

Inheritance diagram for sdr::contact::ViewObjectContactOfSdrObj:
[legend]
Collaboration diagram for sdr::contact::ViewObjectContactOfSdrObj:
[legend]

Public Member Functions

 ViewObjectContactOfSdrObj (ObjectContact &rObjectContact, ViewContact &rViewContact)
 
virtual ~ViewObjectContactOfSdrObj () override
 
virtual bool isPrimitiveVisible (const DisplayInfo &rDisplayInfo) const override
 
boost::optional< const OutputDevice & > getPageViewOutputDevice () const
 retrieves the device which a PageView belongs to, starting from its ObjectContactOfPageView More...
 
- Public Member Functions inherited from sdr::contact::ViewObjectContact
 ViewObjectContact (ObjectContact &rObjectContact, ViewContact &rViewContact)
 
virtual ~ViewObjectContact ()
 
ObjectContactGetObjectContact () const
 
ViewContactGetViewContact () const
 
const basegfx::B2DRangegetObjectRange () const
 
virtual void ActionChanged ()
 
void triggerLazyInvalidate ()
 
bool isAnimated () const
 
void ActionChildInserted (ViewContact &rChild)
 
drawinglayer::primitive2d::Primitive2DContainer const & getPrimitive2DSequence (const DisplayInfo &rDisplayInfo) const
 
virtual bool isPrimitiveGhosted (const DisplayInfo &rDisplayInfo) const
 
virtual drawinglayer::primitive2d::Primitive2DContainer getPrimitive2DSequenceHierarchy (DisplayInfo &rDisplayInfo) const
 
drawinglayer::primitive2d::Primitive2DContainer getPrimitive2DSequenceSubHierarchy (DisplayInfo &rDisplayInfo) const
 
const basegfx::B2DVectorgetGridOffset () const
 
void resetGridOffset ()
 

Protected Member Functions

const SdrObjectgetSdrObject () const
 
- Protected Member Functions inherited from sdr::contact::ViewObjectContact
void checkForPrimitive2DAnimations ()
 
virtual drawinglayer::primitive2d::Primitive2DContainer createPrimitive2DSequence (const DisplayInfo &rDisplayInfo) const
 
void flushPrimitive2DSequence ()
 

Private Member Functions

virtual bool isPrimitiveVisibleOnAnyLayer (const SdrLayerIDSet &aLayers) const
 Test whether the primitive is visible on any layer from aLayers. More...
 

Detailed Description

Definition at line 32 of file viewobjectcontactofsdrobj.hxx.

Constructor & Destructor Documentation

sdr::contact::ViewObjectContactOfSdrObj::ViewObjectContactOfSdrObj ( ObjectContact rObjectContact,
ViewContact rViewContact 
)

Definition at line 45 of file viewobjectcontactofsdrobj.cxx.

sdr::contact::ViewObjectContactOfSdrObj::~ViewObjectContactOfSdrObj ( )
overridevirtual

Definition at line 50 of file viewobjectcontactofsdrobj.cxx.

Member Function Documentation

boost::optional< const OutputDevice & > sdr::contact::ViewObjectContactOfSdrObj::getPageViewOutputDevice ( ) const

retrieves the device which a PageView belongs to, starting from its ObjectContactOfPageView

Since #i72752#, the PaintWindow (and thus the OutputDevice) associated with a PageView is not constant over its lifetime. Instead, during some paint operations, the PaintWindow/OutputDevice might be temporarily patched.

This method cares for this, by retrieving the very original OutputDevice.

Definition at line 174 of file viewobjectcontactofsdrobj.cxx.

References sdr::contact::ViewObjectContact::GetObjectContact(), SdrPageWindow::GetOriginalPaintWindow(), SdrPaintWindow::GetOutputDevice(), and sdr::contact::ObjectContactOfPageView::GetPageWindow().

Referenced by sdr::contact::ViewObjectContactOfUnoControl_Impl::ensureControl(), sdr::contact::ViewObjectContactOfSdrMediaObj::getWindow(), and sdr::contact::ViewObjectContactOfUnoControl_Impl::impl_getOutputDevice_throw().

const SdrObject & sdr::contact::ViewObjectContactOfSdrObj::getSdrObject ( ) const
protected
bool sdr::contact::ViewObjectContactOfSdrObj::isPrimitiveVisible ( const DisplayInfo rDisplayInfo) const
overridevirtual
bool sdr::contact::ViewObjectContactOfSdrObj::isPrimitiveVisibleOnAnyLayer ( const SdrLayerIDSet aLayers) const
privatevirtual

Test whether the primitive is visible on any layer from aLayers.

This should be overridden by ViewObjectContacts of SDR classes that have subparts which can be on different layers (that is, SdrObjGroup .-)

Reimplemented in sdr::contact::ViewObjectContactOfGroup.

Definition at line 54 of file viewobjectcontactofsdrobj.cxx.

References getSdrObject(), and SdrLayerIDSet::IsSet().

Referenced by isPrimitiveVisible().


The documentation for this class was generated from the following files: