nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / tpdefaults.hxx
blobb830173686a22131e524dfb40440547f6dc6f614
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>
15 class ScTpDefaultsOptions : public SfxTabPage
17 public:
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;
26 private:
27 void CheckNumSheets();
28 void CheckPrefix();
29 void OnFocusPrefixInput();
31 DECL_LINK( NumModifiedHdl, weld::Entry&, void );
32 DECL_LINK( PrefixModifiedHdl, weld::Entry&, void );
33 DECL_LINK( PrefixEditOnFocusHdl, weld::Widget&, void );
35 private:
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;
44 #endif
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */