diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2016-10-20 13:30:40 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2016-10-21 13:31:29 +0000 |
commit | d1b3a33d995ff28fd3fd05c66f4358f522edc126 (patch) | |
tree | 622a06d41040d0144f8c648a8d1b4325ff578b67 /include | |
parent | c5feb9ad79c9c830ca824e29277ff41c5cc24e7d (diff) |
profilesafe: Added more specific options
For Extensions there is the possibility to not only
decide enable/disable state for User ones, but also
to deinstall user or all extensions, added these
options to the dialog and the functionality.
Also unified customization name schema to have just
one source of strings to avoid errors in the future.
Small fix in tryPop_extensionInfo
Change-Id: I39acbe9a052ffd4cb78b496f24e5b583136c565a
Reviewed-on: https://gerrit.libreoffice.org/30100
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/backupfilehelper.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/comphelper/backupfilehelper.hxx b/include/comphelper/backupfilehelper.hxx index b8250eed1941..8d2161626af2 100644 --- a/include/comphelper/backupfilehelper.hxx +++ b/include/comphelper/backupfilehelper.hxx @@ -17,6 +17,7 @@ #include <osl/file.hxx> #include <memory> #include <set> +#include <vector> namespace comphelper { @@ -156,6 +157,16 @@ namespace comphelper static bool isTryDisableAllExtensionsPossible(); static void tryDisableAllExtensions(); + /** Deinstall all User Extensions (installed for User only) + */ + static bool isTryDeinstallUserExtensionsPossible(); + static void tryDeinstallUserExtensions(); + + /** Deinstall all Extensions (user|shared|bundled) + */ + static bool isTryDeinstallAllExtensionsPossible(); + static void tryDeinstallAllExtensions(); + /** resets User-Customizations like Settings and UserInterface modifications */ static bool isTryResetCustomizationsPossible(); @@ -168,6 +179,8 @@ namespace comphelper private: // internal helper methods static const rtl::OUString getPackURL(); + static const std::vector< OUString >& getCustomizationDirNames(); + static const std::vector< OUString >& getCustomizationFileNames(); // file push helpers bool tryPush_Files(const std::set< OUString >& rDirs, const std::set< std::pair< OUString, OUString > >& rFiles, const OUString& rSourceURL, const OUString& rTargetURL); |