diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-23 10:41:21 +0000 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-03-23 16:21:16 +0000 |
commit | 8d0cdb86dd89660b56522e0cab8e83bd59e3cf85 (patch) | |
tree | 56bb290c90c5a26d7004a6c1240f90b562452e72 /framework | |
parent | 10e72e7adaac82882ba6bb892dda7c7640e3e293 (diff) |
Resolves: rhbz#1204244 group sdb windows together as 'base'
Change-Id: Ie0d17e562b24a8108d79d13592fff3bf2b9a6713
(cherry picked from commit 9450d7e7089aab4b14a669bf947cc34ae0f6b892)
Reviewed-on: https://gerrit.libreoffice.org/14964
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/helper/titlebarupdate.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx index 762630911984..b79b5b2bd921 100644 --- a/framework/source/helper/titlebarupdate.cxx +++ b/framework/source/helper/titlebarupdate.cxx @@ -139,25 +139,17 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr OUString sDesktopName; OUString aModuleId = xModuleManager->identify(xFrame); - if ( aModuleId == "com.sun.star.text.TextDocument" || - aModuleId == "com.sun.star.text.GlobalDocument" || - aModuleId == "com.sun.star.text.WebDocument" || - aModuleId == "com.sun.star.xforms.XMLFormDocument" ) + if ( aModuleId.startsWith("com.sun.star.text.") || aModuleId.startsWith("com.sun.star.xforms.") ) sDesktopName = "Writer"; - else if ( aModuleId == "com.sun.star.sheet.SpreadsheetDocument" ) + else if ( aModuleId.startsWith("com.sun.star.sheet.") ) sDesktopName = "Calc"; - else if ( aModuleId == "com.sun.star.presentation.PresentationDocument" ) + else if ( aModuleId.startsWith("com.sun.star.presentation.") ) sDesktopName = "Impress"; - else if ( aModuleId == "com.sun.star.drawing.DrawingDocument" ) + else if ( aModuleId.startsWith("com.sun.star.drawing." ) ) sDesktopName = "Draw"; - else if ( aModuleId == "com.sun.star.formula.FormulaProperties" ) + else if ( aModuleId.startsWith("com.sun.star.formula." ) ) sDesktopName = "Math"; - else if ( aModuleId == "com.sun.star.sdb.DatabaseDocument" || - aModuleId == "com.sun.star.sdb.OfficeDatabaseDocument" || - aModuleId == "com.sun.star.sdb.RelationDesign" || - aModuleId == "com.sun.star.sdb.QueryDesign" || - aModuleId == "com.sun.star.sdb.TableDesign" || - aModuleId == "com.sun.star.sdb.DataSourceBrowser" ) + else if ( aModuleId.startsWith("com.sun.star.sdb.") ) sDesktopName = "Base"; else sDesktopName = "Startcenter"; |