diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2003-03-25 07:25:26 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2003-03-25 07:25:26 +0000 |
commit | 5a476fbbc1ea7474dcf72cc2bfc4c36ccf8445f9 (patch) | |
tree | 7045d3846934b13e53cf4a75c63c30e23e48db89 /embedserv/source/inc | |
parent | e694d3e6b94fd244189932079f2120d74178d34e (diff) |
#i2822# implement IPersistFile
Diffstat (limited to 'embedserv/source/inc')
-rwxr-xr-x | embedserv/source/inc/embeddoc.hxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/embedserv/source/inc/embeddoc.hxx b/embedserv/source/inc/embeddoc.hxx index d80ee0ffc7c9..671010447c50 100755 --- a/embedserv/source/inc/embeddoc.hxx +++ b/embedserv/source/inc/embeddoc.hxx @@ -2,9 +2,9 @@ * * $RCSfile: embeddoc.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: mav $ $Date: 2003-03-12 15:38:00 $ + * last change: $Author: mav $ $Date: 2003-03-25 08:25:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,11 +84,13 @@ class GDIMetaFile; class EmbedDocument_Impl : public IPersistStorage , public IDataObject , public IOleObject + , public IPersistFile { protected: ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > fillArgsForLoading_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xStream, - DWORD nStreamMode ); + DWORD nStreamMode, + LPCOLESTR pFilePath = NULL ); ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > fillArgsForStoring_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > xStream ); @@ -151,12 +153,19 @@ public: STDMETHOD(GetMiscStatus) ( DWORD dwAspect, DWORD *pdwStatus ); STDMETHOD(SetColorScheme) ( LOGPALETTE *pLogpal ); + /* IPersistFile methods */ + STDMETHOD(Load) ( LPCOLESTR pszFileName, DWORD dwMode ); + STDMETHOD(Save) ( LPCOLESTR pszFileName, BOOL fRemember ); + STDMETHOD(SaveCompleted) ( LPCOLESTR pszFileName ); + STDMETHOD(GetCurFile) ( LPOLESTR *ppszFileName ); + protected: oslInterlockedCount m_refCount; ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory; DocumentHolder* m_pDocHolder; + ::rtl::OUString m_aFileName; CComPtr< IStorage > m_pMasterStorage; CComPtr< IStream > m_pOwnStream; |