LibreOffice Module sc (master)  1
tpdefaults.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_TPDEFAULTS_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_TPDEFAULTS_HXX
12 
13 #include <sfx2/tabdlg.hxx>
14 
16 {
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;
21 
22  virtual bool FillItemSet(SfxItemSet* rCoreSet) override;
23  virtual void Reset(const SfxItemSet* rCoreSet) override;
24  virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
25 
26 private:
27  void CheckNumSheets();
28  void CheckPrefix();
29  void OnFocusPrefixInput();
30 
31  DECL_LINK( NumModifiedHdl, weld::Entry&, void );
32  DECL_LINK( PrefixModifiedHdl, weld::Entry&, void );
33  DECL_LINK( PrefixEditOnFocusHdl, weld::Widget&, void );
34 
35 private:
36  // Stores old Sheet Prefix
37  OUString maOldPrefixValue;
38 
39  std::unique_ptr<weld::SpinButton> m_xEdNSheets;
40  std::unique_ptr<weld::Entry> m_xEdSheetPrefix;
41  std::unique_ptr<weld::CheckButton> m_xEdJumboSheets;
42 };
43 
44 #endif
45 
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xEdSheetPrefix
Definition: tpdefaults.hxx:40
const SfxItemSet * pSet
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpdefaults.cxx:63
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpdefaults.cxx:79
std::unique_ptr< weld::CheckButton > m_xEdJumboSheets
Definition: tpdefaults.hxx:41
DECL_LINK(NumModifiedHdl, weld::Entry &, void)
virtual ~ScTpDefaultsOptions() override
Definition: tpdefaults.cxx:31
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpdefaults.cxx:35
std::unique_ptr< weld::SpinButton > m_xEdNSheets
Definition: tpdefaults.hxx:39
OUString maOldPrefixValue
Definition: tpdefaults.hxx:37
DeactivateRC
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpdefaults.cxx:40
ScTpDefaultsOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
Definition: tpdefaults.cxx:18