summaryrefslogtreecommitdiff
path: root/cui/source/options/personalization.hxx
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-19 18:49:36 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:28 +0200
commit27f4c752d062df6c3f9c33c62e5de7c541aeca34 (patch)
treef51c878c5c0fff399e3ee809950c90be74655c2a /cui/source/options/personalization.hxx
parent6f2136f5832c449d1f4eaa11e089e473ce94c964 (diff)
Added functionality to apply default themes.
* The themes are stored in the share folder under the personas directory in the gallery. The information is stored in a personas_list.txt which contains the info in the form headerFile;footerFile;textColor;AccentColor for the default themes. * Changed the personalization_tab.ui to include _three_ buttons to show the default images. * Changed the vcl/source/app/settings.cxx to read the persona information properly in the case of default personas. * Some variable name changes. Change-Id: Ib5f2167729a5fb7eb8061925679560accb934a44
Diffstat (limited to 'cui/source/options/personalization.hxx')
-rw-r--r--cui/source/options/personalization.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 3b440760346e..0d211ed82d03 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -29,8 +29,11 @@ private:
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
OUString m_aPersonaSettings; ///< Header and footer images + color to be set in the settings.
+ std::vector<OUString> m_vDefaultPersonaSettings;
+
public:
::rtl::Reference< SearchAndParseThread > m_rApplyThread;
SvxPersonalizationTabPage( Window *pParent, const SfxItemSet &rSet );
@@ -44,7 +47,9 @@ public:
/// Reset to default settings ([Revert] button).
virtual void Reset( const SfxItemSet *rSet ) SAL_OVERRIDE;
- void setPersonaSettings( const OUString );
+ void SetPersonaSettings( const OUString );
+
+ void LoadDefaultImages();
private:
/// Handle the Persona selection
@@ -52,6 +57,9 @@ private:
/// When 'own' is chosen, but the Persona is not chosen yet.
DECL_LINK( ForceSelect, RadioButton* );
+
+ /// Handle the default Persona selection
+ DECL_LINK( DefaultPersona, PushButton* );
};
/** Dialog that will allow the user to choose a Persona to use.