diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-10-11 18:13:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-10-11 18:13:35 -0400 |
commit | 6c4839248eaf174c6bde635430bab7e29cd29e42 (patch) | |
tree | 1ccffae74a588f74c98caac92420c9dd0e54bfd6 /sc/source/ui/optdlg | |
parent | 4b33c0d44fe85064d73ebe39eba4ea2d8ed018b9 (diff) |
fdo#30559: Added new tab page 'Compatibility' in the Options dialog.
This is the first cut: more changes to come.
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r-- | sc/source/ui/optdlg/makefile.mk | 1 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpcompatibility.cxx | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/sc/source/ui/optdlg/makefile.mk b/sc/source/ui/optdlg/makefile.mk index f09eb9238f8c..90e4c9ca8bce 100644 --- a/sc/source/ui/optdlg/makefile.mk +++ b/sc/source/ui/optdlg/makefile.mk @@ -52,6 +52,7 @@ SLOFILES = \ $(SLO)$/tpview.obj \ $(SLO)$/tpcalc.obj \ $(SLO)$/tpformula.obj \ + $(SLO)$/tpcompatibility.obj \ $(SLO)$/tpprint.obj \ $(SLO)$/opredlin.obj diff --git a/sc/source/ui/optdlg/tpcompatibility.cxx b/sc/source/ui/optdlg/tpcompatibility.cxx new file mode 100644 index 000000000000..7820dc4ad53d --- /dev/null +++ b/sc/source/ui/optdlg/tpcompatibility.cxx @@ -0,0 +1,67 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyrigt 2010 Novell, Inc. + * + * LibreOffice - a multi-platform office productivity suite + * + * This file is part of LibreOffice. + * + * LibreOffice is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * LibreOffice is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with LibreOffice. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +// MARKER(update_precomp.py): autogen include statement, do not remove +#include "precompiled_sc.hxx" + +#undef SC_DLLIMPLEMENTATION + +#include "tpcompatibility.hxx" +#include "optdlg.hrc" +#include "scresid.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)) +{ + FreeResource(); +} + +ScTpCompatOptions::~ScTpCompatOptions() +{ +} + +SfxTabPage* ScTpCompatOptions::Create(Window *pParent, const SfxItemSet &rCoreAttrs) +{ + return new ScTpCompatOptions(pParent, rCoreAttrs); +} + +BOOL ScTpCompatOptions::FillItemSet(SfxItemSet &rCoreAttrs) +{ + return false; +} + +void ScTpCompatOptions::Reset(const SfxItemSet &rCoreAttrs) +{ +} + +int ScTpCompatOptions::DeactivatePage(SfxItemSet* /*pSet*/) +{ + return KEEP_PAGE; +} |