summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-06-18 09:03:35 +0000
committerMathias Bauer <mba@openoffice.org>2001-06-18 09:03:35 +0000
commit37b038b9a70ced2e659402e9090583729c88c05b (patch)
tree51c9a219622497cc31b8c2cf553dcf18d5b89ba4 /sfx2
parent6efb5dd020e0d8b28dfc6984d34b77770a96f952 (diff)
#87300#: better index handling
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx8
-rw-r--r--sfx2/source/appl/newhelp.hxx6
2 files changed, 10 insertions, 4 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 18843171b2e9..ddb1fbc4a146 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: newhelp.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: pb $ $Date: 2001-06-05 10:39:35 $
+ * last change: $Author: mba $ $Date: 2001-06-18 10:03:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -182,6 +182,7 @@ void SAL_CALL OpenStatusListener_Impl::statusChanged( const FeatureStateEvent& E
m_bFinished = sal_True;
m_aOpenLink.Call( this );
m_xDispatch->removeStatusListener( this, ::com::sun::star::util::URL() );
+ m_aURL.Erase();
}
// -----------------------------------------------------------------------
@@ -196,6 +197,7 @@ void SAL_CALL OpenStatusListener_Impl::disposing( const EventObject& Source ) th
void OpenStatusListener_Impl::AddListener( Reference< XDispatch >& xDispatch,
const ::com::sun::star::util::URL& aURL )
{
+ m_aURL = aURL.Complete;
m_xDispatch = xDispatch;
m_xDispatch->addStatusListener( this, aURL );
}
@@ -1175,6 +1177,8 @@ IMPL_LINK( SfxHelpWindow_Impl, ChangeHdl, HelpListener_Impl*, pListener )
IMPL_LINK( SfxHelpWindow_Impl, OpenDoneHdl, OpenStatusListener_Impl*, pListener )
{
+ String aModuleName = pListener->GetURL().GetToken( 2, '/' );
+ SetFactory( aModuleName, TRUE );
if ( IsWait() )
LeaveWait();
return 0;
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 5d827b1b7ed9..ac102c3952f5 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: newhelp.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: pb $ $Date: 2001-06-05 10:39:35 $
+ * last change: $Author: mba $ $Date: 2001-06-18 10:03:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -95,6 +95,7 @@ class OpenStatusListener_Impl : public ::cppu::WeakImplHelper1< ::com::sun::star
private:
sal_Bool m_bFinished;
sal_Bool m_bSuccess;
+ String m_aURL;
Link m_aOpenLink;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >
m_xDispatch;
@@ -112,6 +113,7 @@ public:
sal_Bool IsFinished() const { return m_bFinished; }
sal_Bool IsSuccessful() const { return m_bSuccess; }
+ const String& GetURL() const { return m_aURL; }
void SetOpenHdl( const Link& rLink ) { m_aOpenLink = rLink; }
};