diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2017-04-06 00:45:08 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-04-07 08:42:41 +0000 |
commit | bc4176fa43dc8047774a11dfb5b913e6adce2252 (patch) | |
tree | 90bd78a4ba1507ab2f7b3db32a92be0d598d5204 /dbaccess/source/ui/misc/UITools.cxx | |
parent | 49b237c46efa1ba3513dfbe6c782c713296352d8 (diff) |
tdf#95386 More Help Agent cleanup
These methods were creating and passing URLs for the
long dead Help Agent
Change-Id: I5e3eafc2ca3bf5c1ca0032b9cb19ed30c8f06e66
Reviewed-on: https://gerrit.libreoffice.org/36172
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'dbaccess/source/ui/misc/UITools.cxx')
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index 51e8f1a756b6..cbdf38c950e0 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -1100,60 +1100,6 @@ void AppendConfigToken( OUString& _rURL, bool _bQuestionMark ) _rURL += SvtHelpOptions().GetSystem(); } -namespace -{ - - bool GetHelpAnchor_Impl( const OUString& _rURL, OUString& _rAnchor ) - { - bool bRet = false; - OUString sAnchor; - - try - { - ::ucbhelper::Content aCnt( INetURLObject( _rURL ).GetMainURL( INetURLObject::DecodeMechanism::NONE ), - Reference< css::ucb::XCommandEnvironment >(), - comphelper::getProcessComponentContext() ); - if ( ( aCnt.getPropertyValue("AnchorName") >>= sAnchor ) ) - { - - if ( !sAnchor.isEmpty() ) - { - _rAnchor = sAnchor; - bRet = true; - } - } - else - { - SAL_WARN( "dbaccess.ui", "Property 'AnchorName' is missing" ); - } - } - catch( Exception& ) - { - } - - return bRet; - } -} // anonymous - -css::util::URL createHelpAgentURL(const OUString& _sModuleName, const OString& sHelpId) -{ - css::util::URL aURL; - aURL.Complete = "vnd.sun.star.help://" + - _sModuleName + "/" + OStringToOUString(sHelpId, RTL_TEXTENCODING_UTF8); - - OUString sAnchor; - OUString sTempURL = aURL.Complete; - AppendConfigToken( sTempURL, true ); - bool bHasAnchor = GetHelpAnchor_Impl( sTempURL, sAnchor ); - AppendConfigToken(aURL.Complete,true); - if ( bHasAnchor ) - { - aURL.Complete += "#"; - aURL.Complete += sAnchor; - } - return aURL; -} - void setEvalDateFormatForFormatter(Reference< css::util::XNumberFormatter >& _rxFormatter) { OSL_ENSURE( _rxFormatter.is(),"setEvalDateFormatForFormatter: Formatter is NULL!"); |