summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-11-30 10:37:34 +0100
committerJan Holesovsky <kendy@suse.cz>2012-11-30 17:18:58 +0100
commit20759742222c18ba507b31986622530904efc943 (patch)
treec63f28b9d91054679f2996997f65a9d7140c7b41 /cui/source/options
parent1092748ad0f554e574afb8bf9cc6832e4dc89097 (diff)
Personas: .ui file for the Select Persona dialog.
Change-Id: Ibc493a486e5752525520cd7e21d6287d49edf681
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/personalization.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 906f23cf00e5..e6d6a395ceb3 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -9,7 +9,21 @@
#include "personalization.hxx"
-#include <vcl/fixed.hxx>
+/** Dialog that will allow the user to choose a Persona to use.
+
+So far there is no better possibility than just to paste the URL from
+http://www.getpersona.com ...
+*/
+class SelectPersonaDialog : public ModalDialog
+{
+public:
+ SelectPersonaDialog( Window *pParent );
+};
+
+SelectPersonaDialog::SelectPersonaDialog( Window *pParent )
+ : ModalDialog( pParent, "SelectPersonaDialog", "cui/ui/select_persona_dialog.ui" )
+{
+}
SvxPersonalizationTabPage::SvxPersonalizationTabPage( Window *pParent, const SfxItemSet &rSet )
: SfxTabPage( pParent, "PersonalizationTabPage", "cui/ui/personalization_tab.ui", rSet )
@@ -84,6 +98,9 @@ IMPL_LINK( SvxPersonalizationTabPage, SelectBackground, PushButton*, /*pButton*/
IMPL_LINK( SvxPersonalizationTabPage, SelectPersona, PushButton*, /*pButton*/ )
{
+ SelectPersonaDialog aDialog( NULL );
+ /* TODO handle the ret val sal_Int16 nReturn =*/ aDialog.Execute();
+
return 0;
}