LibreOffice Module reportdesign (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
rptui::OObjectBase Class Referenceabstract

#include <RptObject.hxx>

Inheritance diagram for rptui::OObjectBase:
[legend]
Collaboration diagram for rptui::OObjectBase:
[legend]

Public Member Functions

 OObjectBase (const OObjectBase &)=delete
 
OObjectBaseoperator= (const OObjectBase &)=delete
 
void StartListening ()
 
void EndListening ()
 
virtual void _propertyChange (const css::beans::PropertyChangeEvent &evt)
 
virtual void initializeOle ()
 
bool supportsService (const OUString &_sServiceName) const
 
const css::uno::Reference< css::report::XReportComponent > & getReportComponent () const
 
virtual css::uno::Reference< css::beans::XPropertySetgetAwtComponent ()
 
css::uno::Reference< css::report::XSection > getSection () const
 
const OUString & getServiceName () const
 
void releaseUnoShape ()
 releases the reference to our UNO shape (m_xKeepShapeAlive) More...
 

Static Public Member Functions

static SdrObjectcreateObject (SdrModel &rTargetModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent)
 
static sal_uInt16 getObjectType (const css::uno::Reference< css::report::XReportComponent > &_xComponent)
 

Protected Member Functions

 OObjectBase (const css::uno::Reference< css::report::XReportComponent > &_xComponent)
 
 OObjectBase (const OUString &_sComponentName)
 
virtual ~OObjectBase ()
 
bool isListening () const
 
void SetPropsFromRect (const tools::Rectangle &_rRect)
 
virtual SdrPageGetImplPage () const =0
 
css::uno::Reference< css::uno::XInterface > getUnoShapeOf (SdrObject &_rSdrObject)
 called by instances of derived classes to implement their overriding of getUnoShape More...
 

Protected Attributes

rtl::Reference< OPropertyMediatorm_xMediator
 
css::uno::Reference< css::beans::XPropertyChangeListener > m_xPropertyChangeListener
 
css::uno::Reference< css::report::XReportComponent > m_xReportComponent
 
css::uno::Reference< css::uno::XInterface > m_xKeepShapeAlive
 
OUString m_sComponentName
 
bool m_bIsListening
 

Static Private Member Functions

static void ensureSdrObjectOwnership (const css::uno::Reference< css::uno::XInterface > &_rxShape)
 

Detailed Description

Definition at line 63 of file RptObject.hxx.

Constructor & Destructor Documentation

rptui::OObjectBase::OObjectBase ( const css::uno::Reference< css::report::XReportComponent > &  _xComponent)
protected
rptui::OObjectBase::OObjectBase ( const OUString &  _sComponentName)
protected

Definition at line 315 of file RptObject.cxx.

rptui::OObjectBase::~OObjectBase ( )
protectedvirtual

Definition at line 321 of file RptObject.cxx.

References EndListening(), isListening(), m_xMediator, and m_xReportComponent.

rptui::OObjectBase::OObjectBase ( const OObjectBase )
delete

Member Function Documentation

void rptui::OObjectBase::_propertyChange ( const css::beans::PropertyChangeEvent &  evt)
virtual
Exceptions
css::uno::RuntimeException

Reimplemented in rptui::OUnoObject.

Definition at line 402 of file RptObject.cxx.

Referenced by rptui::OUnoObject::_propertyChange(), and rptui::OObjectListener::propertyChange().

SdrObject * rptui::OObjectBase::createObject ( SdrModel rTargetModel,
const css::uno::Reference< css::report::XReportComponent > &  _xComponent 
)
static
void rptui::OObjectBase::EndListening ( )
void rptui::OObjectBase::ensureSdrObjectOwnership ( const css::uno::Reference< css::uno::XInterface > &  _rxShape)
staticprivate

Definition at line 418 of file RptObject.cxx.

References SvxShape::HasSdrObjectOwnership(), and SvxShape::TakeSdrObjectOwnership().

Referenced by getUnoShapeOf().

uno::Reference< beans::XPropertySet > rptui::OObjectBase::getAwtComponent ( )
virtual

Reimplemented in rptui::OUnoObject, rptui::OOle2Obj, and rptui::OCustomShape.

Definition at line 339 of file RptObject.cxx.

Referenced by rptui::PropBrw::CreateComponentPair().

virtual SdrPage* rptui::OObjectBase::GetImplPage ( ) const
protectedpure virtual
sal_uInt16 rptui::OObjectBase::getObjectType ( const css::uno::Reference< css::report::XReportComponent > &  _xComponent)
static
const css::uno::Reference< css::report::XReportComponent>& rptui::OObjectBase::getReportComponent ( ) const
inline
uno::Reference< report::XSection > rptui::OObjectBase::getSection ( ) const

Definition at line 329 of file RptObject.cxx.

References GetImplPage(), and rptui::OReportPage::getSection().

Referenced by rptui::lcl_createUndo().

const OUString& rptui::OObjectBase::getServiceName ( ) const
inline

Definition at line 108 of file RptObject.hxx.

Referenced by reportdesign::OReportDrawPage::CreateShape().

uno::Reference< uno::XInterface > rptui::OObjectBase::getUnoShapeOf ( SdrObject _rSdrObject)
protected

called by instances of derived classes to implement their overriding of getUnoShape

Definition at line 439 of file RptObject.cxx.

References ensureSdrObjectOwnership(), SdrObject::getWeakUnoShape(), and m_xKeepShapeAlive.

Referenced by rptui::OCustomShape::getUnoShape(), rptui::OOle2Obj::getUnoShape(), and rptui::OUnoObject::getUnoShape().

virtual void rptui::OObjectBase::initializeOle ( )
inlinevirtual

Reimplemented in rptui::OOle2Obj.

Definition at line 101 of file RptObject.hxx.

Referenced by rptui::PropBrw::CreateComponentPair().

bool rptui::OObjectBase::isListening ( ) const
inlineprotected
OObjectBase& rptui::OObjectBase::operator= ( const OObjectBase )
delete
void rptui::OObjectBase::releaseUnoShape ( )
inline

releases the reference to our UNO shape (m_xKeepShapeAlive)

Definition at line 112 of file RptObject.hxx.

Referenced by rptui::OCustomShape::impl_setUnoShape(), rptui::OOle2Obj::impl_setUnoShape(), rptui::OUnoObject::impl_setUnoShape(), and rptui::OReportPage::NbcInsertObject().

void rptui::OObjectBase::SetPropsFromRect ( const tools::Rectangle _rRect)
protected
void rptui::OObjectBase::StartListening ( )
bool rptui::OObjectBase::supportsService ( const OUString &  _sServiceName) const

Member Data Documentation

bool rptui::OObjectBase::m_bIsListening
protected
OUString rptui::OObjectBase::m_sComponentName
protected

Definition at line 70 of file RptObject.hxx.

css::uno::Reference< css::uno::XInterface > rptui::OObjectBase::m_xKeepShapeAlive
protected

Definition at line 69 of file RptObject.hxx.

Referenced by getUnoShapeOf().

rtl::Reference<OPropertyMediator> rptui::OObjectBase::m_xMediator
mutableprotected
css::uno::Reference< css::beans::XPropertyChangeListener> rptui::OObjectBase::m_xPropertyChangeListener
mutableprotected

Definition at line 67 of file RptObject.hxx.

Referenced by EndListening(), and StartListening().

css::uno::Reference< css::report::XReportComponent> rptui::OObjectBase::m_xReportComponent
mutableprotected

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