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 #pragma once
11 
12 #include <sfx2/tabdlg.hxx>
13 
15 {
16 public:
17  explicit ScTpDefaultsOptions(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rCoreSet);
18  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet);
19  virtual ~ScTpDefaultsOptions() override;
20 
21  virtual bool FillItemSet(SfxItemSet* rCoreSet) override;
22  virtual void Reset(const SfxItemSet* rCoreSet) override;
23  virtual DeactivateRC DeactivatePage(SfxItemSet* pSet) override;
24 
25 private:
26  void CheckNumSheets();
27  void CheckPrefix();
28  void OnFocusPrefixInput();
29 
30  DECL_LINK( NumModifiedHdl, weld::Entry&, void );
31  DECL_LINK( PrefixModifiedHdl, weld::Entry&, void );
32  DECL_LINK( PrefixEditOnFocusHdl, weld::Widget&, void );
33 
34 private:
35  // Stores old Sheet Prefix
36  OUString maOldPrefixValue;
37 
38  std::unique_ptr<weld::SpinButton> m_xEdNSheets;
39  std::unique_ptr<weld::Entry> m_xEdSheetPrefix;
40  std::unique_ptr<weld::CheckButton> m_xEdJumboSheets;
41 };
42 
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xEdSheetPrefix
Definition: tpdefaults.hxx:39
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:40
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:38
OUString maOldPrefixValue
Definition: tpdefaults.hxx:36
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