Tag: cws_src680_rpt23fix01 User: fs Date: 2007-07-16 12:37:05+0000 Modified: dba/reportdesign/inc/RptObject.hxx
Log: #i79659# +ensureSdrObjectOwnership File Changes: Directory: /dba/reportdesign/inc/ ================================= File [changed]: RptObject.hxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/inc/RptObject.hxx?r1=1.2.2.1&r2=1.2.2.2 Delta lines: +13 -4 -------------------- --- RptObject.hxx 2007-07-11 09:58:17+0000 1.2.2.1 +++ RptObject.hxx 2007-07-16 12:37:02+0000 1.2.2.2 @@ -4,9 +4,9 @@ * * $RCSfile: RptObject.hxx,v $ * - * $Revision: 1.2.2.1 $ + * $Revision: 1.2.2.2 $ * - * last change: $Author: oj $ $Date: 2007/07/11 09:58:17 $ + * last change: $Author: fs $ $Date: 2007/07/16 12:37:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -114,8 +114,8 @@ { public: typedef ::comphelper::ImplementationReference<OPropertyMediator,::com::sun::star::beans::XPropertyChangeListener> TMediator; -protected: +protected: mutable TMediator m_xMediator; mutable ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener> m_xPropertyChangeListener; //mutable ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener> @@ -146,6 +146,10 @@ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getUnoShapeOf( SdrObject& _rSdrObject ); +private: + static void ensureSdrObjectOwnership( + const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxShape ); + public: void StartListening(); void EndListening(sal_Bool bRemoveListener = sal_True); @@ -178,9 +182,14 @@ class REPORTDESIGN_DLLPUBLIC OCustomShape: public SdrObjCustomShape , public OObjectBase { friend class OReportPage; - friend class OObjectBase; friend class DlgEdFactory; +public: + static OCustomShape* Create( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent ) + { + return new OCustomShape( _xComponent ); + } + protected: OCustomShape(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent); OCustomShape(const ::rtl::OUString& _sComponentName); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
