1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_TPDEFAULTS_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_TPDEFAULTS_HXX
13 #include <sfx2/tabdlg.hxx>
14 #include <vcl/fixed.hxx>
15 #include <vcl/field.hxx>
17 class ScTpDefaultsOptions
: public SfxTabPage
19 friend class VclPtr
<ScTpDefaultsOptions
>;
21 using SfxTabPage::DeactivatePage
;
23 static VclPtr
<SfxTabPage
> Create (vcl::Window
* pParent
, const SfxItemSet
* rCoreSet
);
25 virtual bool FillItemSet(SfxItemSet
* rCoreSet
) SAL_OVERRIDE
;
26 virtual void Reset(const SfxItemSet
* rCoreSet
) SAL_OVERRIDE
;
27 virtual sfxpg
DeactivatePage(SfxItemSet
* pSet
= NULL
) SAL_OVERRIDE
;
30 explicit ScTpDefaultsOptions(vcl::Window
* pParent
, const SfxItemSet
& rCoreSet
);
31 virtual ~ScTpDefaultsOptions();
32 virtual void dispose() SAL_OVERRIDE
;
34 void CheckNumSheets();
35 void CheckPrefix(Edit
* pEdit
);
36 void OnFocusPrefixInput(Edit
* pEdit
);
38 DECL_LINK(NumModifiedHdl
, void *);
39 DECL_LINK( PrefixModifiedHdl
, Edit
* );
40 DECL_LINK( PrefixEditOnFocusHdl
, Edit
* );
43 VclPtr
<NumericField
> m_pEdNSheets
;
44 VclPtr
<Edit
> m_pEdSheetPrefix
;
46 // Stores old Sheet Prefix
47 OUString maOldPrefixValue
;
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */