summaryrefslogtreecommitdiff
path: root/svx/source/dialog/hlmailtp.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-08-15 14:46:19 +0000
committerChristian Lippka <cl@openoffice.org>2001-08-15 14:46:19 +0000
commit28b2d6c8a71c238e17f884e7289a1aa7d9fbb04a (patch)
tree703486eb50fe09fec324c137c69f308fc9681838 /svx/source/dialog/hlmailtp.cxx
parent52c289c45115e40f2cf8ce3c1d7e25254b65d254 (diff)
#90459# changed adressbook to data source viewer
Diffstat (limited to 'svx/source/dialog/hlmailtp.cxx')
-rw-r--r--svx/source/dialog/hlmailtp.cxx22
1 files changed, 17 insertions, 5 deletions
diff --git a/svx/source/dialog/hlmailtp.cxx b/svx/source/dialog/hlmailtp.cxx
index 17854bcc4dce..209ac801a50e 100644
--- a/svx/source/dialog/hlmailtp.cxx
+++ b/svx/source/dialog/hlmailtp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hlmailtp.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: ka $ $Date: 2001-07-30 14:46:43 $
+ * last change: $Author: cl $ $Date: 2001-08-15 15:46:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -69,6 +69,10 @@
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#endif
+#ifndef _SFXREQUEST_HXX
+#include <sfx2/request.hxx>
+#endif
+
#include <comphelper/processfactory.hxx>
#ifndef _SFXVIEWFRM_HXX
@@ -527,10 +531,18 @@ IMPL_LINK ( SvxHyperlinkMailTp, LostFocusReceiverHdl_Impl, void *, EMPTYARG )
IMPL_LINK ( SvxHyperlinkMailTp, ClickAdrBookHdl_Impl, void *, EMPTYARG )
{
SfxViewFrame* pViewFrame = SfxViewFrame::Current();
- uno::Reference< frame::XDispatchProvider > xProv( pViewFrame->GetFrame()->GetFrameInterface(), uno::UNO_QUERY );
+ if( pViewFrame )
+ {
+ SfxItemPool &rPool = pViewFrame->GetPool();
+ SfxRequest aReq(SID_VIEW_DATA_SOURCE_BROWSER, 0, rPool);
+ pViewFrame->ExecuteSlot( aReq, sal_True );
+ }
+
+
+/* uno::Reference< frame::XDispatchProvider > xProv( pViewFrame->GetFrame()->GetFrameInterface(), uno::UNO_QUERY );
if ( xProv.is() )
{
-/*!!! (pb) we need a new config item here
+!!! (pb) we need a new config item here
SfxAppIniManagerProperty aProp;
GetpApp()->Property( aProp );
if( !aProp.GetIniManager() )
@@ -569,8 +581,8 @@ IMPL_LINK ( SvxHyperlinkMailTp, ClickAdrBookHdl_Impl, void *, EMPTYARG )
aDisp->dispatch( aURL, aArgs );
}
}
-*/
}
+*/
return( 0L );
}