From 28b2d6c8a71c238e17f884e7289a1aa7d9fbb04a Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Wed, 15 Aug 2001 14:46:19 +0000 Subject: #90459# changed adressbook to data source viewer --- svx/source/dialog/hlmailtp.cxx | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'svx/source/dialog/hlmailtp.cxx') 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 #endif +#ifndef _SFXREQUEST_HXX +#include +#endif + #include #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 ); } -- cgit