diff options
author | Ingrid Halama <iha@openoffice.org> | 2002-12-03 12:36:45 +0000 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2002-12-03 12:36:45 +0000 |
commit | 5f4ac127431e72a393c6ddb24e6200b9361ff11d (patch) | |
tree | b369dd724362bd813cde015d89c6da54d7647e76 /svx/source/dialog/hyperdlg.cxx | |
parent | 1e9c80af1459800533afc3bddf99f122774cadfd (diff) |
#104429# use new telnet support from INetURLObject
Diffstat (limited to 'svx/source/dialog/hyperdlg.cxx')
-rw-r--r-- | svx/source/dialog/hyperdlg.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/svx/source/dialog/hyperdlg.cxx b/svx/source/dialog/hyperdlg.cxx index 2199c832205a..1ac39e4cb4ca 100644 --- a/svx/source/dialog/hyperdlg.cxx +++ b/svx/source/dialog/hyperdlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hyperdlg.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: pb $ $Date: 2002-06-21 07:02:10 $ + * last change: $Author: iha $ $Date: 2002-12-03 13:36:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -77,8 +77,6 @@ #include "hyperdlg.hrc" -#define INET_PROT_TELNET_PRIVATE INET_PROT_HTTP - //######################################################################## //# # //# Childwindow-Wrapper-Class # @@ -405,6 +403,7 @@ USHORT SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem ) { case INET_PROT_HTTP : case INET_PROT_FTP : + case INET_PROT_TELNET : nPageId = RID_SVXPAGE_HYPERLINK_INTERNET; break; case INET_PROT_FILE : @@ -417,15 +416,9 @@ USHORT SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem ) nPageId = RID_SVXPAGE_HYPERLINK_MAIL; break; default : - sal_Char const sTelnet[] = "telnet"; sal_Char const sNewsSrvScheme[] = INET_NEWS_SRV_SCHEME; - if ( aStrURL.ToLowerAscii().SearchAscii( sTelnet ) == 0 ) - { - nPageId = RID_SVXPAGE_HYPERLINK_INTERNET; - eProtocolTyp = INET_PROT_TELNET_PRIVATE; - } - else if ( aStrURL.SearchAscii( sNewsSrvScheme ) == 0 ) + if ( aStrURL.SearchAscii( sNewsSrvScheme ) == 0 ) nPageId = RID_SVXPAGE_HYPERLINK_DOCUMENT; else { |