diff options
author | Andreas Bille <abi@openoffice.org> | 2003-04-04 08:31:56 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2003-04-04 08:31:56 +0000 |
commit | 57ac1efcf774919cb6ad58ccbbbc8ba29c36a7e4 (patch) | |
tree | c58d8ff47934856b9f85056517ed36a22275a663 /embedserv/source/embed/intercept.cxx | |
parent | 977853ced949b95a0b96a918e929e9fc7393e6f3 (diff) |
#i2822# statuslistener
Diffstat (limited to 'embedserv/source/embed/intercept.cxx')
-rw-r--r-- | embedserv/source/embed/intercept.cxx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/embedserv/source/embed/intercept.cxx b/embedserv/source/embed/intercept.cxx index bf107b02bfac..532f54534e0c 100644 --- a/embedserv/source/embed/intercept.cxx +++ b/embedserv/source/embed/intercept.cxx @@ -2,9 +2,9 @@ * * $RCSfile: intercept.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: abi $ $Date: 2003-04-04 09:03:46 $ + * last change: $Author: abi $ $Date: 2003-04-04 09:31:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,7 +65,9 @@ #ifndef _EMBEDDOC_HXX_ #include "embeddoc.hxx" #endif - +#ifndef _DOCHOLDER_HXX_ +#include "docholder.hxx" +#endif using namespace ::com::sun::star; @@ -160,8 +162,11 @@ void SAL_CALL Interceptor::dispose() -Interceptor::Interceptor(EmbedDocument_Impl* pOLEInterface) +Interceptor::Interceptor( + EmbedDocument_Impl* pOLEInterface, + DocumentHolder* pDocH) : m_pOLEInterface(pOLEInterface), + m_pDocH(pDocH), m_pStatCL(0), m_pDisposeEventListeners(0) { @@ -227,8 +232,9 @@ Interceptor::addStatusListener( RTL_CONSTASCII_USTRINGPARAM("Update")); aStateEvent.IsEnabled = sal_True; aStateEvent.Requery = sal_False; - aStateEvent.State <<= rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM("update")); + aStateEvent.State <<= (rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("($1) ")) + + m_pDocH->getTitle()); Control->statusChanged(aStateEvent); { @@ -253,8 +259,9 @@ Interceptor::addStatusListener( RTL_CONSTASCII_USTRINGPARAM("Close and Return")); aStateEvent.IsEnabled = sal_True; aStateEvent.Requery = sal_False; - aStateEvent.State <<= rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM("closeandreturn")); + aStateEvent.State <<= (rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("($2) ")) + + m_pDocH->getContainerName()); Control->statusChanged(aStateEvent); |