[libreoffice] 02/02: backport patch from master to gray out not-installed stuff in the StartCenter

Rene Engelhard rene at moszumanska.debian.org
Tue Oct 11 18:24:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

rene pushed a commit to branch master
in repository libreoffice.

commit f8015645f3dcd23c903b9d11f86edd359efab923
Author: Rene Engelhard <rene at debian.org>
Date:   Tue Oct 11 20:24:41 2016 +0200

    backport patch from master to gray out not-installed stuff in the StartCenter
---
 patches/startcenter-grey-out-not-installed.diff | 71 +++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/patches/startcenter-grey-out-not-installed.diff b/patches/startcenter-grey-out-not-installed.diff
new file mode 100644
index 0000000..431c824
--- /dev/null
+++ b/patches/startcenter-grey-out-not-installed.diff
@@ -0,0 +1,71 @@
+From 80cb33570557010547a08b5b1cd6bc0c1ee018fc Mon Sep 17 00:00:00 2001
+From: Akshay Deep <akshaydeepiitr at gmail.com>
+Date: Fri, 17 Jun 2016 13:41:00 +0530
+Subject: tdf#75369 Start Center: Non-installed applications aren't greyed out
+
+Change-Id: I52de5d7062bebe816e90ba39f559cd57dfc1067c
+Reviewed-on: https://gerrit.libreoffice.org/26406
+Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
+Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
+
+diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
+index 730627c..9c054d5 100644
+--- a/sfx2/source/dialog/backingwindow.cxx
++++ b/sfx2/source/dialog/backingwindow.cxx
+@@ -25,6 +25,7 @@
+ #include <vcl/virdev.hxx>
+ 
+ #include <unotools/dynamicmenuoptions.hxx>
++#include <unotools/moduleoptions.hxx>
+ #include <svtools/openfiledroptargetlistener.hxx>
+ #include <svtools/colorcfg.hxx>
+ #include <svtools/langhelp.hxx>
+@@ -280,6 +281,8 @@ void BackingWindow::initControls()
+     setupButton( mpImpressAllButton );
+     setupButton( mpMathAllButton );
+ 
++    checkInstalledModules();
++
+     mpExtensionsButton->SetClickHdl(LINK(this, BackingWindow, ExtLinkClickHdl));
+ 
+     // setup nice colors
+@@ -358,6 +361,23 @@ void BackingWindow::setupButton( MenuButton* pButton )
+     pButton->SetSelectHdl(LINK(this, BackingWindow, MenuSelectHdl));
+ }
+ 
++void BackingWindow::checkInstalledModules()
++{
++    SvtModuleOptions aModuleOpt;
++
++    mpWriterAllButton->Enable( aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::WRITER ));
++
++    mpCalcAllButton->Enable( aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::CALC ) );
++
++    mpImpressAllButton->Enable( aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::IMPRESS ) );
++
++    mpDrawAllButton->Enable( aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::DRAW ) );
++
++    mpMathAllButton->Enable(aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::MATH ));
++
++    mpDBAllButton->Enable(aModuleOpt.IsModuleInstalled( SvtModuleOptions::EModule::DATABASE ));
++}
++
+ void BackingWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
+ {
+     Resize();
+diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
+index cfaf984..4c80c9f 100644
+--- a/sfx2/source/dialog/backingwindow.hxx
++++ b/sfx2/source/dialog/backingwindow.hxx
+@@ -111,6 +111,8 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer
+ 
+     void initializeLocalView();
+ 
++    void checkInstalledModules();
++
+ public:
+     explicit BackingWindow(vcl::Window* pParent);
+     virtual ~BackingWindow();
+-- 
+cgit v0.10.2
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice.git



More information about the Pkg-openoffice-commits mailing list