summaryrefslogtreecommitdiff
path: root/cui/source/options/personalization.hxx
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-07-01 18:27:42 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:31 +0200
commite653a1fd2d46d07d48f99c8a604ec0b46d51bd5c (patch)
treed5059167144c847c2eb4c385addd953b5955dbc8 /cui/source/options/personalization.hxx
parent5bed7be540e55149667fb5f4af826acdc1127efc (diff)
Changed Personas installed through extensions procedure.
The UI now consists of a TreeView that lists all the personas that were installed through extensions. When the user selects any name from the list, the preview is shown in a button besides the list. If there are no extensions installed, the list stays hidden. Change-Id: I030d99549fd5b15d1104224116257ad62cdd1891
Diffstat (limited to 'cui/source/options/personalization.hxx')
-rw-r--r--cui/source/options/personalization.hxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 0d0cb3f16979..cd2fc976e713 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -25,13 +25,14 @@ class SvxPersonalizationTabPage : public SfxTabPage
using SfxTabPage::DeactivatePage;
private:
- RadioButton *m_pNoPersona; ///< Just the default look, without any bitmap
- RadioButton *m_pDefaultPersona; ///< Use the built-in bitmap
- RadioButton *m_pOwnPersona; ///< Use the user-defined bitmap
- PushButton *m_pSelectPersona; ///< Let the user select in the 'own' case
- PushButton *m_vDefaultPersonaImages[3]; ///< Buttons to show the default persona images
- PushButton *m_vExtensionPersonas[3]; ///< Buttons to show the last 3 personas installed via extensions
- OUString m_aPersonaSettings; ///< Header and footer images + color to be set in the settings.
+ RadioButton *m_pNoPersona; ///< Just the default look, without any bitmap
+ RadioButton *m_pDefaultPersona; ///< Use the built-in bitmap
+ RadioButton *m_pOwnPersona; ///< Use the user-defined bitmap
+ PushButton *m_pSelectPersona; ///< Let the user select in the 'own' case
+ PushButton *m_vDefaultPersonaImages[3]; ///< Buttons to show the default persona images
+ PushButton *m_pExtensionPersonaPreview; ///< Buttons to show the last 3 personas installed via extensions
+ ListBox* m_pPersonaList; ///< The ListBox to show the list of installed personas
+ OUString m_aPersonaSettings; ///< Header and footer images + color to be set in the settings.
std::vector<OUString> m_vDefaultPersonaSettings;
std::vector<OUString> m_vExtensionPersonaSettings;
@@ -52,7 +53,7 @@ public:
void SetPersonaSettings( const OUString );
void LoadDefaultImages();
- void LoadExtensionImages();
+ void LoadExtensionThemes();
private:
/// Handle the Persona selection
@@ -65,7 +66,7 @@ private:
DECL_LINK( DefaultPersona, PushButton* );
/// Handle the Personas installed through extensions selection
- DECL_LINK( InstalledPersona, PushButton* );
+ DECL_LINK( SelectInstalledPersona, ListBox* );
};
/** Dialog that will allow the user to choose a Persona to use.