summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/hlmailtp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/hlmailtp.cxx')
-rw-r--r--cui/source/dialogs/hlmailtp.cxx45
1 files changed, 0 insertions, 45 deletions
diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx
index b7d26c2cb378..d09491b14bbd 100644
--- a/cui/source/dialogs/hlmailtp.cxx
+++ b/cui/source/dialogs/hlmailtp.cxx
@@ -311,51 +311,6 @@ IMPL_LINK ( SvxHyperlinkMailTp, ClickAdrBookHdl_Impl, void *, EMPTYARG )
}
-/* uno::Reference< frame::XDispatchProvider > xProv( pViewFrame->GetFrame().GetFrameInterface(), uno::UNO_QUERY );
- if ( xProv.is() )
- {
-!!! (pb) we need a new config item here
- SfxAppIniManagerProperty aProp;
- GetpApp()->Property( aProp );
- if( !aProp.GetIniManager() )
- return ( 0L );
-
- String aAddressBook = aProp.GetIniManager()->Get( SFX_KEY_ADDRESSBOOK );
- INetURLObject aObj;
- aObj.SetSmartProtocol( INET_PROT_FILE );
- aObj.SetURL( aAddressBook.GetToken( 0, sal_Unicode( ';' ) ) );
-
- String aMark( RTL_CONSTASCII_USTRINGPARAM( "db:Table;" ) );
- aMark += aAddressBook.GetToken( 1, sal_Unicode( ';' ) );
- aObj.SetMark( aMark );
-
- util::URL aURL;
- aURL.Complete = ::rtl::OUString( aObj.GetMainURL( INetURLObject::NO_DECODE ) );
-
- uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
- if( xFactory.is() )
- {
- uno::Reference< util::XURLTransformer > xTrans( xFactory->createInstance
- ( OUString::createFromAscii( "com.sun.star.util.URLTransformer" ) ),
- uno::UNO_QUERY);
- xTrans->parseStrict( aURL );
-
- uno::Reference< frame::XDispatch > aDisp = xProv->queryDispatch( aURL,
- OUString::createFromAscii( "_beamer" ),
- frame::FrameSearchFlag::GLOBAL |
- frame::FrameSearchFlag::CREATE );
- if ( aDisp.is() )
- {
- uno::Sequence< beans::PropertyValue > aArgs(1);
- beans::PropertyValue* pArg = aArgs.getArray();
- pArg[0].Name = DEFINE_CONST_UNICODE("Referer");
- pArg[0].Value = uno::makeAny( OUString( DEFINE_CONST_UNICODE("private:user") ) );
- aDisp->dispatch( aURL, aArgs );
- }
- }
- }
-*/
-
return( 0L );
}