diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-02-13 11:02:55 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-02-13 11:02:55 +0000 |
commit | 3901e1132bb1e594bcf4ee25f959483c8c1f1889 (patch) | |
tree | 1729228fa7e8d6ddba45ba893f88259f122194d1 | |
parent | f23dd76effc48b29ec2ee4cd06db04d7ac0b285c (diff) |
new filter interface
-rw-r--r-- | sd/inc/sdpptwrp.hxx | 28 | ||||
-rw-r--r-- | sd/inc/sdxmlwrp.hxx | 35 |
2 files changed, 24 insertions, 39 deletions
diff --git a/sd/inc/sdpptwrp.hxx b/sd/inc/sdpptwrp.hxx index afcfe4a096c9..3c480c3ee59e 100644 --- a/sd/inc/sdpptwrp.hxx +++ b/sd/inc/sdpptwrp.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sdpptwrp.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: sj $ $Date: 2001-01-25 17:19:32 $ + * last change: $Author: ka $ $Date: 2001-02-13 12:02:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,23 +62,21 @@ #ifndef _SD_PPTWRP_HXX #define _SD_PPTWRP_HXX -#ifndef _SFXDOCFILE_HXX //autogen -#include <sfx2/docfile.hxx> -#endif +#include "sdfilter.hxx" -class SdDrawDocument; -class SdPPTWrapper -{ - SdDrawDocument* pDoc; - SfxMedium& rMed; +// --------------- +// - SdPPTFilter - +// --------------- - public : +class SdPPTFilter : public SdFilter +{ +public: - SdPPTWrapper( SdDrawDocument* pDoc, SfxMedium& rMed ); - ~SdPPTWrapper(); + SdPPTFilter( SfxMedium& rMedium, SdDrawDocShell& rDocShell, sal_Bool bShowProgress ); + ~SdPPTFilter(); - sal_Bool Import(); + virtual sal_Bool Import(); + virtual sal_Bool Export(); }; #endif // _SD_PPTWRP_HXX - diff --git a/sd/inc/sdxmlwrp.hxx b/sd/inc/sdxmlwrp.hxx index 9a7e024d38af..286957ff7266 100644 --- a/sd/inc/sdxmlwrp.hxx +++ b/sd/inc/sdxmlwrp.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sdxmlwrp.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:48:28 $ + * last change: $Author: ka $ $Date: 2001-02-13 12:02:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,34 +61,21 @@ #ifndef _SDXMLWRP_HXX #define _SDXMLWRP_HXX -class SdDrawDocument; -class SfxMedium; +#include "sdfilter.hxx" -#ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_ -#include <com/sun/star/frame/XModel.hpp> -#endif +// --------------- +// - SdXMLFilter - +// --------------- -class SdXMLWrapper +class SdXMLFilter : public SdFilter { - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel> mxLocalModel; - SfxMedium& mrMedium; - - BOOL mbIsDraw : 1; - BOOL mbShowProgress : 1; - public: - SdXMLWrapper( - ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel>& xRef, - SfxMedium& rMedium, - BOOL bIsDraw, BOOL bShowProg = TRUE); - BOOL Import(); - BOOL Export(); + SdXMLFilter( SfxMedium& rMedium, SdDrawDocShell& rDocShell, sal_Bool bShowProgress ); + ~SdXMLFilter(); - BOOL IsDraw() const { return mbIsDraw; } - BOOL IsImpress() const { return !mbIsDraw; } + virtual sal_Bool Import(); + virtual sal_Bool Export(); }; #endif // _SDXMLWRP_HXX - - |