Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / tpdefaults.hxx
blob9fd14379ee94b3224a057b0f235d9424bcdfd2ce
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 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>;
20 public:
21 using SfxTabPage::DeactivatePage;
23 static VclPtr<SfxTabPage> Create (vcl::Window* pParent, const SfxItemSet* rCoreSet);
25 virtual bool FillItemSet(SfxItemSet* rCoreSet) override;
26 virtual void Reset(const SfxItemSet* rCoreSet) override;
27 virtual sfxpg DeactivatePage(SfxItemSet* pSet = nullptr) override;
29 private:
30 explicit ScTpDefaultsOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet);
31 virtual ~ScTpDefaultsOptions();
32 virtual void dispose() override;
34 void CheckNumSheets();
35 void CheckPrefix(Edit* pEdit);
36 void OnFocusPrefixInput(Edit* pEdit);
38 DECL_LINK_TYPED( NumModifiedHdl, Edit&, void );
39 DECL_LINK_TYPED( PrefixModifiedHdl, Edit&, void );
40 DECL_LINK_TYPED( PrefixEditOnFocusHdl, Control&, void );
42 private:
43 VclPtr<NumericField> m_pEdNSheets;
44 VclPtr<Edit> m_pEdSheetPrefix;
46 // Stores old Sheet Prefix
47 OUString maOldPrefixValue;
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */