diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-16 11:59:02 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-06-16 11:59:02 +0000 |
commit | 0f6b9e495a412187fb4803f80ae69c27fbfd54f7 (patch) | |
tree | 080fd78f436a559c8d26bf38a809c0e0446c5aed /reportdesign/inc | |
parent | 84716d28b6dcbdee0477bcc9b2a5021dc67ef45d (diff) |
INTEGRATION: CWS rptchart02 (1.5.4); FILE MERGED
2008/05/16 12:53:20 oj 1.5.4.5: #i89365# copy props before set args at chart
2008/04/30 13:03:02 oj 1.5.4.4: #i88843# impl clone method
2008/04/16 06:20:32 oj 1.5.4.3: RESYNC: (1.5-1.6); FILE MERGED
2008/04/03 06:33:00 oj 1.5.4.2: #i86343# remove unused code
2008/03/12 09:45:15 oj 1.5.4.1: impl chart handling
Diffstat (limited to 'reportdesign/inc')
-rw-r--r-- | reportdesign/inc/RptObject.hxx | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/reportdesign/inc/RptObject.hxx b/reportdesign/inc/RptObject.hxx index dec46429b..8b48cc4e0 100644 --- a/reportdesign/inc/RptObject.hxx +++ b/reportdesign/inc/RptObject.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: RptObject.hxx,v $ - * $Revision: 1.6 $ + * $Revision: 1.7 $ * * This file is part of OpenOffice.org. * @@ -70,7 +70,6 @@ typedef ::std::multimap< sal_Int16, ::rtl::OUString, ::std::less< sal_Int16 > > public: TYPEINFO(); DlgEdHint( DlgEdHintKind eHint ); - DlgEdHint( DlgEdHintKind eHint, OUnoObject* pObj ); virtual ~DlgEdHint(); inline DlgEdHintKind GetKind() const { return eHintKind; } @@ -105,7 +104,6 @@ protected: inline sal_Bool isListening() const { return m_bIsListening; } void SetPropsFromRect(const Rectangle& _rRect); - void PositionAndSizeChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ); virtual void SetSnapRectImpl(const Rectangle& _rRect) = 0; virtual SdrPage* GetImplPage() const = 0; @@ -127,11 +125,6 @@ public: // PropertyChangeListener virtual void _propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw(::com::sun::star::uno::RuntimeException); - // ContainerListener - void _elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); - void _elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); - void _elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException); - sal_Bool supportsService( const ::rtl::OUString& _sServiceName ) const; ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent> getReportComponent() const; @@ -186,6 +179,8 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> getAwtComponent(); virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getUnoShape(); + virtual UINT16 GetObjIdentifier() const; + virtual UINT32 GetObjInventor() const; }; //============================================================================ @@ -196,16 +191,18 @@ class REPORTDESIGN_DLLPUBLIC OOle2Obj: public SdrOle2Obj , public OObjectBase friend class OReportPage; friend class DlgEdFactory; + UINT16 m_nType; + void impl_createDataProvider_nothrow( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& _xModel); public: - static OOle2Obj* Create( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent ) + static OOle2Obj* Create( const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent,UINT16 _nType ) { - return new OOle2Obj( _xComponent ); + return new OOle2Obj( _xComponent,_nType ); } - OOle2Obj(const ::rtl::OUString& _sComponentName,const svt::EmbeddedObjectRef& rNewObjRef, const String& rNewObjName, const Rectangle& rNewRect, FASTBOOL bFrame_=FALSE); + OOle2Obj(const ::rtl::OUString& _sComponentName,const svt::EmbeddedObjectRef& rNewObjRef, const String& rNewObjName, const Rectangle& rNewRect,UINT16 _nType, FASTBOOL bFrame_=FALSE); protected: - OOle2Obj(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent); - OOle2Obj(const ::rtl::OUString& _sComponentName); + OOle2Obj(const ::com::sun::star::uno::Reference< ::com::sun::star::report::XReportComponent>& _xComponent,UINT16 _nType); + OOle2Obj(const ::rtl::OUString& _sComponentName,UINT16 _nType); virtual void NbcMove( const Size& rSize ); @@ -227,6 +224,12 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> getAwtComponent(); virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getUnoShape(); + virtual UINT16 GetObjIdentifier() const; + virtual UINT32 GetObjInventor() const; + // Clone() soll eine komplette Kopie des Objektes erzeugen. + virtual SdrObject* Clone() const; + + void initializeChart( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& _xModel); }; //============================================================================ @@ -240,9 +243,6 @@ class REPORTDESIGN_DLLPUBLIC OUnoObject: public SdrUnoObj , public OObjectBase sal_uInt16 m_nObjectType; 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 - ,sal_uInt16 _nObjectType); OUnoObject(const ::rtl::OUString& _sComponentName ,const ::rtl::OUString& rModelName ,sal_uInt16 _nObjectType); @@ -275,11 +275,12 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> getAwtComponent(); - 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(); + virtual UINT16 GetObjIdentifier() const; + virtual UINT32 GetObjInventor() const; + virtual SdrObject* Clone() const; }; //============================================================================ |