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
 
const OutputDevicegetPageViewOutputDevice () 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
 
void createStructureTag (drawinglayer::primitive2d::Primitive2DContainer &rNewPrimitiveSequence) const
 Check if we need to embed to a StructureTagPrimitive2D, too. More...
 
virtual bool isExportPDFTags () const
 check if getPrimitive2DSequence() should create tag More...
 
virtual bool isPrimitiveVisible (const DisplayInfo &rDisplayInfo) const
 
virtual bool isPrimitiveGhosted (const DisplayInfo &rDisplayInfo) const
 
virtual void getPrimitive2DSequenceHierarchy (DisplayInfo &rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const
 
void getPrimitive2DSequenceSubHierarchy (DisplayInfo &rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) const
 
const basegfx::B2DVectorgetGridOffset () const
 
void resetGridOffset ()
 

Protected Member Functions

const SdrObjectgetSdrObject () const
 
- Protected Member Functions inherited from sdr::contact::ViewObjectContact
void checkForPrimitive2DAnimations ()
 
virtual void createPrimitive2DSequence (const DisplayInfo &rDisplayInfo, drawinglayer::primitive2d::Primitive2DDecompositionVisitor &rVisitor) 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 31 of file viewobjectcontactofsdrobj.hxx.

Constructor & Destructor Documentation

◆ ViewObjectContactOfSdrObj()

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

Definition at line 44 of file viewobjectcontactofsdrobj.cxx.

◆ ~ViewObjectContactOfSdrObj()

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

Definition at line 49 of file viewobjectcontactofsdrobj.cxx.

Member Function Documentation

◆ getPageViewOutputDevice()

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 173 of file viewobjectcontactofsdrobj.cxx.

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

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

◆ getSdrObject()

const SdrObject & sdr::contact::ViewObjectContactOfSdrObj::getSdrObject ( ) const
protected

◆ isPrimitiveVisible()

bool sdr::contact::ViewObjectContactOfSdrObj::isPrimitiveVisible ( const DisplayInfo rDisplayInfo) const
overridevirtual

◆ isPrimitiveVisibleOnAnyLayer()

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 53 of file viewobjectcontactofsdrobj.cxx.

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

Referenced by isPrimitiveVisible().


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