diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-09 20:39:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-12 18:56:49 +0200 |
commit | b33b2afe6a8b4224450da7c686beb81dbf5cd24a (patch) | |
tree | 17c0970756a0c9b9f6a9968acee641a4bdc2802a /sfx2/source/sidebar/Context.cxx | |
parent | allow also to use non-frame modules for sidebar (diff) | |
download | core-b33b2afe6a8b4224450da7c686beb81dbf5cd24a.tar.gz core-b33b2afe6a8b4224450da7c686beb81dbf5cd24a.zip |
big step towards real chart sidebar
Change-Id: I9b7d1f963746f7689b02099fbae77c9c943bad58
Diffstat (limited to 'sfx2/source/sidebar/Context.cxx')
-rw-r--r-- | sfx2/source/sidebar/Context.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/Context.cxx b/sfx2/source/sidebar/Context.cxx index 3a7ce010b24c..9baf30b07777 100644 --- a/sfx2/source/sidebar/Context.cxx +++ b/sfx2/source/sidebar/Context.cxx @@ -46,7 +46,14 @@ Context::Context ( sal_Int32 Context::EvaluateMatch ( const Context& rOther) const { - const bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName); + bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName); + + // special case for charts which use a whole own set of decks + if (msApplication == "com.sun.star.chart2.ChartDocument") + { + bApplicationNameIsAny = false; + } + if (rOther.msApplication.equals(msApplication) || bApplicationNameIsAny) { // Application name matches. |