diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-10-16 10:53:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-10-16 10:58:06 +0200 |
commit | 9c9831f79cf0413c0cd947449bf8253fe09a224f (patch) | |
tree | 683aafe7eaa2991e5c792ada8e1f31edca6c7e23 /sfx2 | |
parent | fe25090e992eefd0c43ca73b656632a650793b1a (diff) |
usage info: Checkbox to turn it on and off (Tools -> Options... -> General).
Change-Id: I67143e604314f5553026c369bbed3fdd683c39a6
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 752a2f75d4e4..b371e7a88d44 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -44,6 +44,7 @@ #include <com/sun/star/frame/status/Visibility.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/sequence.hxx> +#include <officecfg/Office/Common.hxx> #include <osl/mutex.hxx> #include <uno/current_context.hxx> #include <vcl/svapp.hxx> @@ -644,6 +645,9 @@ void UsageInfo::load() void UsageInfo::save() { + if (!officecfg::Office::Common::Misc::CollectUsageInformation::get()) + return; + // TODO - do a real saving here, not only dump to the screen std::cerr << "Usage information:" << std::endl; for (UsageMap::const_iterator it = maUsage.begin(); it != maUsage.end(); ++it) @@ -658,7 +662,7 @@ class theUsageInfo : public rtl::Static<UsageInfo, theUsageInfo> {}; /// Extracts information about the command + args, and stores that. void collectUsageInformation(const util::URL& rURL, const uno::Sequence<beans::PropertyValue>& rArgs) { - if (/*TODO disabled now, bind this to a config option instead*/true) + if (!officecfg::Office::Common::Misc::CollectUsageInformation::get()) return; OUStringBuffer aBuffer; |