diff options
author | Mathias Bauer <mba@openoffice.org> | 2010-07-20 14:50:49 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2010-07-20 14:50:49 +0200 |
commit | a929816d90303defcded933ef0337f2191fa2cec (patch) | |
tree | 2e92c12a533660f28c5d3ea1983c93e781b88bac /toolkit/source/awt/vclxwindow.cxx | |
parent | a3cfa6f635948c67ccb34ad4040230de2ec38da1 (diff) |
CWS changehid: #i111784#: consolidate usage of HID schema; remove unused SetDialogHelpId methods
Diffstat (limited to 'toolkit/source/awt/vclxwindow.cxx')
-rw-r--r-- | toolkit/source/awt/vclxwindow.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx index 9e97b3821df0..73022aacedf2 100644 --- a/toolkit/source/awt/vclxwindow.cxx +++ b/toolkit/source/awt/vclxwindow.cxx @@ -1585,13 +1585,9 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com:: ::rtl::OUString aURL; if ( Value >>= aURL ) { - String aHelpURL( aURL ); - String aPattern( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) ); - if ( aHelpURL.CompareIgnoreCaseToAscii( aPattern, aPattern.Len() ) == COMPARE_EQUAL ) - { - String aID = aHelpURL.Copy( aPattern.Len() ); - pWindow->SetHelpId( rtl::OUStringToOString( aID, RTL_TEXTENCODING_UTF8 ) ); - } + INetURLObject aHelpURL( aURL ); + if ( aHelpURL.GetProtocol() == INET_PROT_HID ) + pWindow->SetHelpId( rtl::OUStringToOString( aHelpURL.GetURLPath(), RTL_TEXTENCODING_UTF8 ) ); else pWindow->SetHelpId( rtl::OUStringToOString( aURL, RTL_TEXTENCODING_UTF8 ) ); } |