diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-02 17:05:19 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-02 17:05:19 +0000 |
commit | 34e170e967c7d4c6f76472e3c66d05954e5d664d (patch) | |
tree | a9dc4bc3f5c72050c06d41f12055ac9b690e4fbc | |
parent | 1cc03c97bb436ac6871c8c3b6d321b3d3a180cf5 (diff) |
INTEGRATION: CWS geordi2q14 (1.13.144); FILE MERGED
2004/01/30 14:47:37 hr 1.13.144.2: #111934#: merge CWS ooo111fix2
2004/01/30 14:26:19 hr 1.13.144.1: #111934#: merge CWS ooo111fix2
-rw-r--r-- | sw/inc/unotxdoc.hxx | 172 |
1 files changed, 2 insertions, 170 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 0acd957ae022..d9fe9f917fef 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unotxdoc.hxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2003-09-19 08:43:13 $ + * last change: $Author: hr $ $Date: 2004-02-02 18:05:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -182,8 +182,6 @@ #include <RefreshListenerContainer.hxx> #endif -#if !(defined(MACOSX) && ( __GNUC__ < 3 )) -// GrP Mac OS X internal compiler error; revisit with gcc3 #define __IFC26 Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12, Ifc13, Ifc14, Ifc15, Ifc16, \ Ifc17, Ifc18, Ifc19, Ifc20, Ifc21, Ifc22, Ifc23, Ifc24, Ifc25, Ifc26 @@ -223,8 +221,6 @@ public Ifc25, public Ifc26 #endif __DEF_IMPLHELPER_EX( 26 ) -#endif - class SwDoc; class SvxForbiddenCharactersTable; class SwDocShell; @@ -241,169 +237,6 @@ SV_DECL_PTRARR(ActionContextArr, UnoActionContextPtr, 4, 4); * ******************************************************************************/ -#if defined(MACOSX) && ( __GNUC__ < 3 ) -// [ed] Explicit template instantiation to workaround compiler ICE - -namespace cppu -{ - struct ClassData26 : public ClassDataBase - { - Type_Offset arType2Offset[ 26 ]; - ClassData26( ) SAL_THROW( () ) - : ClassDataBase( 26 ) - {} - }; - - class SAL_NO_VTABLE ImplHelperBase26 - : public ::com::sun::star::lang::XTypeProvider - , public ::com::sun::star::text::XTextDocument, public ::com::sun::star::text::XLineNumberingProperties, public ::com::sun::star::text::XChapterNumberingSupplier, public ::com::sun::star::text::XFootnotesSupplier, -public ::com::sun::star::text::XEndnotesSupplier, public ::com::sun::star::util::XReplaceable, public ::com::sun::star::text::XPagePrintable, public ::com::sun::star::text::XReferenceMarksSupplier, public ::com::sun::star::text::XTextTablesSupplier, -public ::com::sun::star::text::XTextFramesSupplier, public ::com::sun::star::text::XBookmarksSupplier, public ::com::sun::star::text::XTextSectionsSupplier, public ::com::sun::star::text::XTextGraphicObjectsSupplier, public ::com::sun::star::text::XTextEmbeddedObjectsSupplier, -public ::com::sun::star::text::XTextFieldsSupplier, public ::com::sun::star::style::XStyleFamiliesSupplier, public ::com::sun::star::lang::XServiceInfo, public ::com::sun::star::drawing::XDrawPageSupplier, public ::com::sun::star::text::XDocumentIndexesSupplier, -public ::com::sun::star::beans::XPropertySet, public ::com::sun::star::beans::XPropertyState, public ::com::sun::star::document::XLinkTargetSupplier, public ::com::sun::star::document::XRedlinesSupplier, public ::com::sun::star::util::XRefreshable, -public ::com::sun::star::util::XLinkUpdate, public ::com::sun::star::view::XRenderable - { - protected: - ClassData & SAL_CALL getClassData( ClassDataBase & s_aCD ) SAL_THROW( () ) - { - ClassData & rCD = * static_cast< ClassData * >( &s_aCD ); - if (! rCD.bOffsetsInit) - { - ::osl::MutexGuard aGuard( getImplHelperInitMutex() ); - if (! rCD.bOffsetsInit) - { - char * pBase = (char *)this; - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextDocument > *)0 ), - (char *)(::com::sun::star::text::XTextDocument *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XLineNumberingProperties > *)0 ), - (char *)(::com::sun::star::text::XLineNumberingProperties *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XChapterNumberingSupplier > *)0 ), - (char *)(::com::sun::star::text::XChapterNumberingSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnotesSupplier > *)0 ), - (char *)(::com::sun::star::text::XFootnotesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XEndnotesSupplier > *)0 ), - (char *)(::com::sun::star::text::XEndnotesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::util::XReplaceable > *)0 ), - (char *)(::com::sun::star::util::XReplaceable *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XPagePrintable > *)0 ), - (char *)(::com::sun::star::text::XPagePrintable *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XReferenceMarksSupplier > *)0 ), - (char *)(::com::sun::star::text::XReferenceMarksSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextTablesSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextTablesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextFramesSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextFramesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XBookmarksSupplier > *)0 ), - (char *)(::com::sun::star::text::XBookmarksSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextSectionsSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextSectionsSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextGraphicObjectsSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextGraphicObjectsSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextEmbeddedObjectsSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextEmbeddedObjectsSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextFieldsSupplier > *)0 ), - (char *)(::com::sun::star::text::XTextFieldsSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::style::XStyleFamiliesSupplier > *)0 ), - (char *)(::com::sun::star::style::XStyleFamiliesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XServiceInfo > *)0 ), - (char *)(::com::sun::star::lang::XServiceInfo *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPageSupplier > *)0 ), - (char *)(::com::sun::star::drawing::XDrawPageSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::text::XDocumentIndexesSupplier > *)0 ), - (char *)(::com::sun::star::text::XDocumentIndexesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > *)0 ), - (char *)(::com::sun::star::beans::XPropertySet *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyState > *)0 ), - (char *)(::com::sun::star::beans::XPropertyState *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::document::XLinkTargetSupplier > *)0 ), - (char *)(::com::sun::star::document::XLinkTargetSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::document::XRedlinesSupplier > *)0 ), - (char *)(::com::sun::star::document::XRedlinesSupplier *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::util::XRefreshable > *)0 ), - (char *)(::com::sun::star::util::XRefreshable *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::util::XLinkUpdate > *)0 ), - (char *)(::com::sun::star::util::XLinkUpdate *)this - pBase ); - rCD.writeTypeOffset( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::view::XRenderable > *)0 ), - (char *)(::com::sun::star::view::XRenderable *)this - pBase ); - rCD.bOffsetsInit = sal_True; - } - } - return rCD; - } - }; - - - class SAL_NO_VTABLE ImplHelper26 - : public ImplHelperBase26 - { - static ClassData26 s_aCD; - public: - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).query( rType, (ImplHelperBase26 *)this ); } - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getTypes(); } - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getImplementationId(); } - }; - - class SAL_NO_VTABLE WeakImplHelper26 - : public ::cppu::OWeakObject - , public ImplHelperBase26 - { - static ClassData26 s_aCD; - public: - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) - { - ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase26 *)this ) ); - return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); - } - virtual void SAL_CALL acquire() throw () - { OWeakObject::acquire(); } - virtual void SAL_CALL release() throw () - { OWeakObject::release(); } - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getTypes(); } - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getImplementationId(); } - }; - - class SAL_NO_VTABLE WeakAggImplHelper26 - : public ::cppu::OWeakAggObject - , public ImplHelperBase26 - { - static ClassData26 s_aCD; - public: - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) - { return OWeakAggObject::queryInterface( rType ); } - virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException) - { - ::com::sun::star::uno::Any aRet( getClassData( s_aCD ).query( rType, (ImplHelperBase26 *)this ) ); - return (aRet.hasValue() ? aRet : OWeakAggObject::queryAggregation( rType )); - } - virtual void SAL_CALL acquire() throw () - { OWeakAggObject::acquire(); } - virtual void SAL_CALL release() throw () - { OWeakAggObject::release(); } - virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getTypes(); } - virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException) - { return getClassData( s_aCD ).getImplementationId(); } - }; - -#if !(defined(MACOSX) && ( __GNUC__ < 3 )) - template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12 > - ClassData12 ImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >::s_aCD = ClassData12( 0 ); - template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12 > - ClassData12 WeakImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >::s_aCD = ClassData12( 1 ); - template< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7, class Ifc8, class Ifc9, class Ifc10, class Ifc11, class Ifc12 > - ClassData12 WeakAggImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >::s_aCD = ClassData12( 2 ); -#endif - -} - -typedef cppu::WeakImplHelper26 SwXTextDocumentBaseClass; -#else - typedef cppu::WeakImplHelper26 < ::com::sun::star::text::XTextDocument, @@ -435,7 +268,6 @@ typedef cppu::WeakImplHelper26 > SwXTextDocumentBaseClass; -#endif /* MACOSX */ class SwXTextDocument : public SwXTextDocumentBaseClass, public SvxFmMSFactory, public SfxBaseModel |