summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2001-06-27 07:26:26 +0000
committerPeter Burow <pb@openoffice.org>2001-06-27 07:26:26 +0000
commit27cbae54b959a559c84fdc3fd529f17b0fb7348c (patch)
treecbe38a856e63c21349dfb2324dd2d7a3e60f4014
parent242dc6b56f0425c7574c4c39ffbc65e4e9a81e6e (diff)
fix: #85823# GetCurrentURL() added
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx6
-rw-r--r--sfx2/source/appl/helpinterceptor.hxx6
2 files changed, 8 insertions, 4 deletions
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index c6c4c80d7471..c547b44205b7 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helpinterceptor.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: pb $ $Date: 2001-04-23 11:55:29 $
+ * last change: $Author: pb $ $Date: 2001-06-27 08:26:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -118,6 +118,7 @@ void HelpInterceptor_Impl::addURL( const String& rURL )
delete m_pHistory->Remove(i);
}
+ m_aCurrentURL = rURL;
m_pHistory->Insert( new HelpHistoryEntry_Impl( rURL ), LIST_APPEND );
m_nCurPos = m_pHistory->Count() - 1;
@@ -287,6 +288,7 @@ void SAL_CALL HelpInterceptor_Impl::dispatch(
m_pWindow->EnterWait();
m_pOpenListener->AddListener( xDisp, aURL );
}
+ m_aCurrentURL = aURL.Complete;
xDisp->dispatch( aURL, Sequence < PropertyValue >() );
}
}
diff --git a/sfx2/source/appl/helpinterceptor.hxx b/sfx2/source/appl/helpinterceptor.hxx
index e0aa57870cdf..3d42ae9ce031 100644
--- a/sfx2/source/appl/helpinterceptor.hxx
+++ b/sfx2/source/appl/helpinterceptor.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helpinterceptor.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: pb $ $Date: 2001-04-23 11:55:29 $
+ * last change: $Author: pb $ $Date: 2001-06-27 08:26:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -127,6 +127,7 @@ private:
OpenStatusListener_Impl* m_pOpenListener;
Window* m_pWindow;
ULONG m_nCurPos;
+ String m_aCurrentURL;
void addURL( const String& rURL );
@@ -136,6 +137,7 @@ public:
void setInterception( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame );
void SetFactory( const String& rFactory );
+ String GetCurrentURL() const { return m_aCurrentURL; }
// XDispatchProvider
virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > SAL_CALL