diff options
author | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-06 13:01:34 +0200 |
---|---|---|
committer | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-06 13:12:40 +0200 |
commit | dc676d9d7a2aa92758e97208d4c6e641d2798664 (patch) | |
tree | 548b0951b5a7299a77c4d6ccf291498eca6355df /sc/source/ui/optdlg | |
parent | b5d93a58a7f4e23432f18da0946bac04027c23a8 (diff) |
Convert Compatibility tab page to .ui
Change-Id: I97e5ecfb800443e41b2d9a88731cc530600a7b1c
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r-- | sc/source/ui/optdlg/tpcompatibility.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sc/source/ui/optdlg/tpcompatibility.cxx b/sc/source/ui/optdlg/tpcompatibility.cxx index 00f9ef4d13a7..3aa1b602ef0c 100644 --- a/sc/source/ui/optdlg/tpcompatibility.cxx +++ b/sc/source/ui/optdlg/tpcompatibility.cxx @@ -16,12 +16,9 @@ #include "appoptio.hxx" ScTpCompatOptions::ScTpCompatOptions(Window *pParent, const SfxItemSet &rCoreAttrs) : - SfxTabPage(pParent, ScResId(RID_SCPAGE_COMPATIBILITY), rCoreAttrs), - maFlKeyBindings(this, ScResId(FL_KEY_BINDINGS)), - maFtKeyBindings(this, ScResId(FT_KEY_BINDINGS)), - maLbKeyBindings(this, ScResId(LB_KEY_BINDINGS)) + SfxTabPage(pParent, "OptCompatibilityPage","modules/scalc/ui/optcompatibilitypage.ui", rCoreAttrs) { - FreeResource(); + get(m_pLbKeyBindings,"keybindings"); } ScTpCompatOptions::~ScTpCompatOptions() @@ -36,11 +33,11 @@ SfxTabPage* ScTpCompatOptions::Create(Window *pParent, const SfxItemSet &rCoreAt sal_Bool ScTpCompatOptions::FillItemSet(SfxItemSet &rCoreAttrs) { bool bRet = false; - if (maLbKeyBindings.GetSavedValue() != maLbKeyBindings.GetSelectEntryPos()) + if (m_pLbKeyBindings->GetSavedValue() != m_pLbKeyBindings->GetSelectEntryPos()) { rCoreAttrs.Put( SfxUInt16Item( - SID_SC_OPT_KEY_BINDING_COMPAT, maLbKeyBindings.GetSelectEntryPos())); + SID_SC_OPT_KEY_BINDING_COMPAT, m_pLbKeyBindings->GetSelectEntryPos())); bRet = true; } return bRet; @@ -58,17 +55,17 @@ void ScTpCompatOptions::Reset(const SfxItemSet &rCoreAttrs) switch (eKeyB) { case ScOptionsUtil::KEY_DEFAULT: - maLbKeyBindings.SelectEntryPos(0); + m_pLbKeyBindings->SelectEntryPos(0); break; case ScOptionsUtil::KEY_OOO_LEGACY: - maLbKeyBindings.SelectEntryPos(1); + m_pLbKeyBindings->SelectEntryPos(1); break; default: ; } } - maLbKeyBindings.SaveValue(); + m_pLbKeyBindings->SaveValue(); } int ScTpCompatOptions::DeactivatePage(SfxItemSet* /*pSet*/) |