diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 13:35:01 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-03-30 13:35:01 +0000 |
commit | dd7c71e1b9a7b4a00832c0289090f8e30f47baed (patch) | |
tree | 4156ad2d9c6cfbb5eb82796482088bbd9c19bba3 | |
parent | ac4748a95f74eef24ba22d6d41dfe5cce49b44b9 (diff) |
INTEGRATION: CWS impress5ea1 (1.25.52); FILE MERGED
2004/03/15 10:31:39 cl 1.25.52.1: #i14041# handle disposed core elements correctly
-rw-r--r-- | sd/source/ui/inc/unomodel.hxx | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index e4a9200db0e6..ff2853efd2bb 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unomodel.hxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: obo $ $Date: 2004-01-20 12:29:50 $ + * last change: $Author: rt $ $Date: 2004-03-30 14:35:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -169,6 +169,7 @@ class SdXImpressDocument : public SfxBaseModel, // implements SfxListener, OWEAK private: ::sd::DrawDocShell* pDocShell; SdDrawDocument* pDoc; + bool mbDisposed; SdPage* InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate = sal_False ) throw(); @@ -182,6 +183,7 @@ private: ::com::sun::star::uno::WeakReference< ::com::sun::star::presentation::XPresentation > mxPresentation; ::com::sun::star::uno::WeakReference< ::com::sun::star::container::XNameAccess > mxStyleFamilies; ::com::sun::star::uno::WeakReference< ::com::sun::star::i18n::XForbiddenCharacters > mxForbidenCharacters; + ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > mxLinks; ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDashTable; ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxGradientTable; @@ -299,12 +301,12 @@ public: * * ***********************************************************************/ -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase4.hxx> -class SdDrawPagesAccess : public ::cppu::WeakImplHelper3< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::container::XNameAccess, ::com::sun::star::lang::XServiceInfo > +class SdDrawPagesAccess : public ::cppu::WeakImplHelper4< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::container::XNameAccess, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XComponent > { private: - SdXImpressDocument& rModel; + SdXImpressDocument* mpModel; public: SdDrawPagesAccess( SdXImpressDocument& rMyModel ) throw(); @@ -331,18 +333,23 @@ public: virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); + + // XComponent + virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException); }; /*********************************************************************** * * ***********************************************************************/ -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase3.hxx> -class SdMasterPagesAccess : public ::cppu::WeakImplHelper2< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::lang::XServiceInfo > +class SdMasterPagesAccess : public ::cppu::WeakImplHelper3< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XComponent > { private: - SdXImpressDocument& rModel; + SdXImpressDocument* mpModel; public: SdMasterPagesAccess( SdXImpressDocument& rMyModel ) throw(); @@ -364,18 +371,22 @@ public: virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); + + // XComponent + virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException); }; /*********************************************************************** * * ***********************************************************************/ -#include <cppuhelper/implbase2.hxx> -class SdDocLinkTargets : public ::cppu::WeakImplHelper2< ::com::sun::star::container::XNameAccess, - ::com::sun::star::lang::XServiceInfo > +class SdDocLinkTargets : public ::cppu::WeakImplHelper3< ::com::sun::star::container::XNameAccess, + ::com::sun::star::lang::XServiceInfo , ::com::sun::star::lang::XComponent > { private: - SdXImpressDocument& rModel; + SdXImpressDocument* mpModel; public: SdDocLinkTargets( SdXImpressDocument& rMyModel ) throw(); @@ -395,6 +406,11 @@ public: virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + // XComponent + virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException); + // intern SdPage* FindPage( const ::rtl::OUString& rName ) const throw(); }; |