summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-11-29 13:05:39 +0100
committerJan Holesovsky <kendy@suse.cz>2012-11-30 17:18:57 +0100
commit4102ed7c5018c9fadb445d0ea49e29d1af75194a (patch)
tree6f4f082dc2c370a7cdba9d0cdee22a399e5b7ff9 /cui/source/options
parent318e8eef3c9c6c44ba20f02560061614199e8d9f (diff)
Personas: Introduce Tools -> Options... entry for Firefox Personas.
Change-Id: I95275a92ea607cce26f272044bc2de95de45d75b
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/personalization.cxx29
-rw-r--r--cui/source/options/personalization.hxx33
-rw-r--r--cui/source/options/treeopt.cxx3
-rw-r--r--cui/source/options/treeopt.src1
4 files changed, 66 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
new file mode 100644
index 000000000000..53891244eeb5
--- /dev/null
+++ b/cui/source/options/personalization.cxx
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include "personalization.hxx"
+
+#include <vcl/fixed.hxx>
+
+SvxPersonalizationTabPage::SvxPersonalizationTabPage( Window *pParent, const SfxItemSet &rSet )
+ : SfxTabPage( pParent, "PersonalizationTabPage", "cui/ui/personalization_tab.ui", rSet )
+{
+ get( m_pNoPersona, "no_persona" );
+}
+
+SvxPersonalizationTabPage::~SvxPersonalizationTabPage()
+{
+}
+
+SfxTabPage* SvxPersonalizationTabPage::Create( Window *pParent, const SfxItemSet &rSet )
+{
+ return new SvxPersonalizationTabPage( pParent, rSet );
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
new file mode 100644
index 000000000000..72c3b6be6dd4
--- /dev/null
+++ b/cui/source/options/personalization.hxx
@@ -0,0 +1,33 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef SVX_PERSONALIZATION_HXX
+#define SVX_PERSONALIZATION_HXX
+
+#include <sfx2/tabdlg.hxx>
+
+class FixedText;
+
+class SvxPersonalizationTabPage : public SfxTabPage
+{
+ using SfxTabPage::DeactivatePage;
+
+private:
+ RadioButton *m_pNoPersona; ///< Just the default look, without any bitmap
+
+public:
+ SvxPersonalizationTabPage( Window *pParent, const SfxItemSet &rSet );
+ ~SvxPersonalizationTabPage();
+
+ static SfxTabPage* Create( Window *pParent, const SfxItemSet &rSet );
+};
+
+#endif // SVX_PERSONALIZATION_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index aafbc6838369..0a19a77ae51c 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -48,6 +48,7 @@
#include "optpath.hxx"
#include "optsave.hxx"
#include "optupdt.hxx"
+#include "personalization.hxx"
#include "treeopt.hxx"
#include <com/sun/star/awt/XContainerWindowEventHandler.hpp>
@@ -303,6 +304,7 @@ SfxTabPage* CreateGeneralTabPage( sal_uInt16 nId, Window* pParent, const SfxItem
case RID_SVXPAGE_INET_PROXY: fnCreate = &SvxProxyTabPage::Create; break;
case RID_SVXPAGE_INET_SECURITY: fnCreate = &SvxSecurityTabPage::Create; break;
case RID_SVXPAGE_INET_MAIL: fnCreate = &SvxEMailTabPage::Create; break;
+ case RID_SVXPAGE_PERSONALIZATION: fnCreate = &SvxPersonalizationTabPage::Create; break;
case RID_SVXPAGE_COLORCONFIG: fnCreate = &SvxColorOptionsTabPage::Create; break;
case RID_OFAPAGE_HTMLOPT: fnCreate = &OfaHtmlTabPage::Create; break;
case SID_OPTFILTER_MSOFFICE: fnCreate = &OfaMSFilterTabPage::Create; break;
@@ -342,6 +344,7 @@ static OptionsMapping_Impl const OptionsMap_Impl[] =
{ "ProductName", "Colors", RID_SVXPAGE_COLOR },
{ "ProductName", "Fonts", RID_SVX_FONT_SUBSTITUTION },
{ "ProductName", "Security", RID_SVXPAGE_INET_SECURITY },
+ { "ProductName", "Personalization", RID_SVXPAGE_PERSONALIZATION },
{ "ProductName", "Appearance", RID_SVXPAGE_COLORCONFIG },
{ "ProductName", "Accessibility", RID_SVXPAGE_ACCESSIBILITYCONFIG },
{ "ProductName", "Java", RID_SVXPAGE_OPTIONS_JAVA },
diff --git a/cui/source/options/treeopt.src b/cui/source/options/treeopt.src
index 1c60cf79bcb5..47d0d66e9f45 100644
--- a/cui/source/options/treeopt.src
+++ b/cui/source/options/treeopt.src
@@ -95,6 +95,7 @@ Resource RID_OFADLG_OPTIONS_TREE_PAGES
< "Colors" ; RID_SVXPAGE_COLOR; > ;
< "Fonts" ; RID_SVX_FONT_SUBSTITUTION ; > ;
< "Security" ; RID_SVXPAGE_INET_SECURITY ; > ;
+ < "Personalization" ; RID_SVXPAGE_PERSONALIZATION ; > ;
< "Appearance" ; RID_SVXPAGE_COLORCONFIG ; > ;
< "Accessibility" ; RID_SVXPAGE_ACCESSIBILITYCONFIG ; > ;
< "Advanced" ; RID_SVXPAGE_OPTIONS_JAVA ; > ;