bump product version to 4.1.6.2
[LibreOffice.git] / sc / source / ui / inc / tpdefaults.hxx
blobbd967bb1c2da2ed649b9fcbde2a1bf398f014d82
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef __SC_TPDEFAULTS_HXX__
11 #define __SC_TPDEFAULTS_HXX__
13 #include <sfx2/tabdlg.hxx>
14 #include <vcl/fixed.hxx>
15 #include <vcl/field.hxx>
17 class ScTpDefaultsOptions : public SfxTabPage
19 public:
20 using SfxTabPage::DeactivatePage;
22 static SfxTabPage* Create (Window* pParent, const SfxItemSet& rCoreSet);
24 virtual sal_Bool FillItemSet(SfxItemSet& rCoreSet);
25 virtual void Reset(const SfxItemSet& rCoreSet);
26 virtual int DeactivatePage(SfxItemSet* pSet = NULL);
28 private:
29 explicit ScTpDefaultsOptions(Window* pParent, const SfxItemSet& rCoreSet);
30 virtual ~ScTpDefaultsOptions();
32 void CheckNumSheets();
33 void CheckPrefix(Edit* pEdit);
34 void OnFocusPrefixInput(Edit* pEdit);
36 DECL_LINK(NumModifiedHdl, void *);
37 DECL_LINK( PrefixModifiedHdl, Edit* );
38 DECL_LINK( PrefixEditOnFocusHdl, Edit* );
40 private:
41 FixedLine aFLInitSpreadSheet;
42 FixedText aFtNSheets;
43 NumericField aEdNSheets;
44 FixedText aFtSheetPrefix;
45 Edit aEdSheetPrefix;
47 // Stores old Sheet Prefix
48 OUString maOldPrefixValue;
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */