diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-04-20 20:47:26 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-04-23 19:50:13 +0300 |
commit | 654d78834c9e16cd5d57af6ad59b1dd3c80ca467 (patch) | |
tree | 9e524f68fcb7a9a5d31e18873a042dd5f3bed7f3 /sfx2 | |
parent | a32fbca154991a93b6bef55f1c306a2fac5674b6 (diff) |
No usage of the private:commandimage thing
Change-Id: I8e5c1431f095c875cda6f66f16a03af4bbd1d1fb
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Tools.cxx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx index 901449d4a022..b809f7ad96f5 100644 --- a/sfx2/source/sidebar/Tools.cxx +++ b/sfx2/source/sidebar/Tools.cxx @@ -55,25 +55,11 @@ Image Tools::GetImage ( { if (rsURL.getLength() > 0) { - const sal_Char sUnoCommandPrefix[] = ".uno:"; - const sal_Char sCommandImagePrefix[] = "private:commandimage/"; - const sal_Int32 nCommandImagePrefixLength = strlen(sCommandImagePrefix); - - if (rsURL.startsWith(sUnoCommandPrefix)) + if (rsURL.startsWith(".uno:")) { const Image aPanelImage (::GetImage(rxFrame, rsURL, false)); return aPanelImage; } - else if (rsURL.startsWith(sCommandImagePrefix)) - { - ::rtl::OUStringBuffer aCommandName; - aCommandName.append(sUnoCommandPrefix); - aCommandName.append(rsURL.copy(nCommandImagePrefixLength)); - const ::rtl::OUString sCommandName (aCommandName.makeStringAndClear()); - - const Image aPanelImage (::GetImage(rxFrame, sCommandName, false)); - return aPanelImage; - } else { const Reference<XComponentContext> xContext (::comphelper::getProcessComponentContext()); |