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>
15 class ScTpDefaultsOptions
: public SfxTabPage
18 explicit ScTpDefaultsOptions(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
& rCoreSet
);
19 static std::unique_ptr
<SfxTabPage
> Create(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rCoreSet
);
20 virtual ~ScTpDefaultsOptions() override
;
22 virtual bool FillItemSet(SfxItemSet
* rCoreSet
) override
;
23 virtual void Reset(const SfxItemSet
* rCoreSet
) override
;
24 virtual DeactivateRC
DeactivatePage(SfxItemSet
* pSet
) override
;
27 void CheckNumSheets();
29 void OnFocusPrefixInput();
31 DECL_LINK( NumModifiedHdl
, weld::Entry
&, void );
32 DECL_LINK( PrefixModifiedHdl
, weld::Entry
&, void );
33 DECL_LINK( PrefixEditOnFocusHdl
, weld::Widget
&, void );
36 // Stores old Sheet Prefix
37 OUString maOldPrefixValue
;
39 std::unique_ptr
<weld::SpinButton
> m_xEdNSheets
;
40 std::unique_ptr
<weld::Entry
> m_xEdSheetPrefix
;
41 std::unique_ptr
<weld::CheckButton
> m_xEdJumboSheets
;
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */