diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-10-17 11:25:49 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-10-17 11:25:49 +0000 |
commit | 3674b585157c5de8edebd03ccc0f64bb15df601d (patch) | |
tree | 11f9578d7267039639af78bc7dd549eb04260aad /sw/inc/unostyle.hxx | |
parent | f104fbcb598355d503ad379463c19becbcb438a0 (diff) |
#89875# allow querying for default styles on 4 out of 5 style families
Diffstat (limited to 'sw/inc/unostyle.hxx')
-rw-r--r-- | sw/inc/unostyle.hxx | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 15b1b7976480..dc883212b606 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unostyle.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mtg $ $Date: 2001-07-19 16:19:45 $ + * last change: $Author: mtg $ $Date: 2001-10-17 12:25:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -100,6 +100,9 @@ #ifndef _COM_SUN_STAR_DOCUMENT_XEVENTSSUPPLIER_HPP_ #include <com/sun/star/document/XEventsSupplier.hpp> #endif +#ifndef _CALBCK_HXX +#include <calbck.hxx> +#endif class SwDocShell; struct SfxItemPropertyMap; @@ -216,7 +219,8 @@ class SwXStyle : public cppu::WeakImplHelper6 ::com::sun::star::lang::XUnoTunnel, ::com::sun::star::beans::XPropertyState >, - public SfxListener + public SfxListener, + public SwClient { friend class SwXStyleFamily; SwDoc* m_pDoc; @@ -238,9 +242,11 @@ protected: void SetStyleName(const String& rSet){ sStyleName = rSet;} SwStyleProperties_Impl* GetPropImpl(){return pPropImpl;} + com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxStyleData; + com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > mxStyleFamily; public: - SwXStyle(SfxStyleFamily eFam = SFX_STYLE_FAMILY_PARA, BOOL bConditional = FALSE); + SwXStyle(SwDoc* pDoc, SfxStyleFamily eFam = SFX_STYLE_FAMILY_PARA, BOOL bConditional = FALSE); SwXStyle(SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam, SwDoc* pDoc, const String& rStyleName);//, @@ -308,6 +314,7 @@ public: StartListening(*pBasePool); } SwDoc* GetDoc() const { return m_pDoc; } + virtual void Modify( SfxPoolItem *pOld, SfxPoolItem *pNew); }; /* -----------------------------15.12.00 14:25-------------------------------- @@ -320,9 +327,7 @@ public: SwDoc* pDoc, const String& rStyleName) : SwXStyle(rPool, SFX_STYLE_FAMILY_FRAME, pDoc, rStyleName){} - SwXFrameStyle() : - SwXStyle(SFX_STYLE_FAMILY_FRAME, FALSE){} - + SwXFrameStyle( SwDoc *pDoc ); ~SwXFrameStyle(); virtual void SAL_CALL acquire( ) throw(){SwXStyle::acquire();} |