diff options
author | Oliver Specht <os@openoffice.org> | 2001-06-18 10:11:00 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-06-18 10:11:00 +0000 |
commit | 56dfa18fd302c8920140c19d82ae89b686e499b0 (patch) | |
tree | 96ed87298cee33746653a9de038ece5e74348848 /extensions/source/bibliography | |
parent | f41f3c91f078bfd71313c6dcb07b23dde970ae3a (diff) |
#88319# SID_CLOSEDOC supported
Diffstat (limited to 'extensions/source/bibliography')
-rw-r--r-- | extensions/source/bibliography/framectr.cxx | 22 | ||||
-rw-r--r-- | extensions/source/bibliography/framectr.hxx | 6 |
2 files changed, 23 insertions, 5 deletions
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx index 7e5d184483fe..4fe41c033f20 100644 --- a/extensions/source/bibliography/framectr.cxx +++ b/extensions/source/bibliography/framectr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: framectr.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: os $ $Date: 2001-06-12 07:24:35 $ + * last change: $Author: os $ $Date: 2001-06-18 11:11:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -109,6 +109,9 @@ #ifndef _CPPUHELPER_IMPLBASE1_HXX_ #include <cppuhelper/implbase1.hxx> // helper for implementations #endif +#ifndef _SV_SVAPP_HXX +#include <vcl/svapp.hxx> +#endif using namespace osl; using namespace cppu; @@ -296,7 +299,8 @@ uno::Reference< frame::XDispatch > BibFrameController_Impl::queryDispatch( cons String aCommand( aURL.Path ); if ( aCommand.EqualsAscii("Undo") || aCommand.EqualsAscii("Cut") || aCommand.EqualsAscii("Copy") || aCommand.EqualsAscii("Paste") || - aCommand.EqualsAscii("SelectAll") || aCommand.Copy(0,4).EqualsAscii("Bib/")) + aCommand.EqualsAscii("SelectAll") || aCommand.Copy(0,4).EqualsAscii("Bib/")|| + aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("slot:5503"))) return (frame::XDispatch*) this; } @@ -400,8 +404,20 @@ void BibFrameController_Impl::dispatch(const util::URL& aURL, const uno::Sequenc { RemoveFilter(); } + else if(aURL.Complete.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("slot:5503"))) + { + Application::PostUserEvent( STATIC_LINK( this, BibFrameController_Impl, + DisposeHdl ), 0 ); + + } } } +IMPL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void*, EMPTYARG ) +{ + pThis->xFrame->dispose(); + return 0; +}; + //----------------------------------------------------------------------------- void BibFrameController_Impl::addStatusListener( const uno::Reference< frame::XStatusListener > & aListener, diff --git a/extensions/source/bibliography/framectr.hxx b/extensions/source/bibliography/framectr.hxx index 9709c5cc29f9..b9a2f5cc1b03 100644 --- a/extensions/source/bibliography/framectr.hxx +++ b/extensions/source/bibliography/framectr.hxx @@ -2,9 +2,9 @@ * * $RCSfile: framectr.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:16:44 $ + * last change: $Author: os $ $Date: 2001-06-18 11:11:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,6 +154,8 @@ friend class BibFrameCtrl_Impl; BibFieldWin* pFieldWin; HdlBibModul pBibMod; + DECL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void* ); + public: BibFrameController_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > & xComponent); BibFrameController_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > & xComponent, |