User: hr      
Date: 2007-08-02 14:27:31+0000
Modified:
   dba/reportdesign/inc/RptObject.hxx

Log:
 INTEGRATION: CWS rpt23fix01 (1.2.2); FILE MERGED
 2007/07/16 12:37:02 fs 1.2.2.2: #i79659# +ensureSdrObjectOwnership
 2007/07/11 09:58:17 oj 1.2.2.1: #i78520# allowd to add control with keyboard

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&r2=1.3
Delta lines:  +16 -7
--------------------
--- RptObject.hxx       2007-07-09 11:56:02+0000        1.2
+++ RptObject.hxx       2007-08-02 14:27:28+0000        1.3
@@ -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);
@@ -217,8 +226,6 @@
     friend class DlgEdFactory;
 
     sal_uInt16   m_nObjectType;
-
-    ::rtl::OUString    GetDefaultName() const;
 protected:
        OUnoObject(      const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XReportComponent>& _xComponent
                                ,const ::com::sun::star::uno::Reference< 
::com::sun::star::awt::XControlModel >& _xControlModel
@@ -257,6 +264,8 @@
 
     inline sal_uInt16 getObjectId() const { return m_nObjectType; }
 
+    static ::rtl::OUString GetDefaultName(const OUnoObject* _pObj);
+
     virtual ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface > getUnoShape();
 };
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to