summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/inc/cuires.hrc1
-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
5 files changed, 67 insertions, 0 deletions
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index 1e14f8238f1c..beabde5ad8d9 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -161,6 +161,7 @@
#define RID_OPTPAGE_CHART_DEFCOLORS (RID_SVX_START + 299)
#define RID_OPTQB_COLOR_CHART_DELETE (RID_SVX_START + 296)
#define RID_OPTSTR_COLOR_CHART_DELETE (RID_SVX_START + 289)
+#define RID_SVXPAGE_PERSONALIZATION (RID_SVX_START + 247)
#define RID_SVXPAGE_COLORCONFIG (RID_SVX_START + 249)
#define RID_SVXQB_DELETE_COLOR_CONFIG (RID_SVX_START + 324)
#define RID_SVXSTR_COLOR_CONFIG_SAVE1 (RID_SVX_START + 853)
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 ; > ;