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{
16public:
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
25private:
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
34private:
35 // Stores old Sheet Prefix
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: */
ScTpDefaultsOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
Definition: tpdefaults.cxx:19
std::unique_ptr< weld::CheckButton > m_xEdJumboSheets
Definition: tpdefaults.hxx:40
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
Definition: tpdefaults.cxx:38
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
Definition: tpdefaults.cxx:43
std::unique_ptr< weld::Entry > m_xEdSheetPrefix
Definition: tpdefaults.hxx:39
virtual ~ScTpDefaultsOptions() override
Definition: tpdefaults.cxx:34
DECL_LINK(PrefixModifiedHdl, weld::Entry &, void)
std::unique_ptr< weld::SpinButton > m_xEdNSheets
Definition: tpdefaults.hxx:38
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: tpdefaults.cxx:82
DECL_LINK(NumModifiedHdl, weld::Entry &, void)
DECL_LINK(PrefixEditOnFocusHdl, weld::Widget &, void)
virtual void Reset(const SfxItemSet *rCoreSet) override
Definition: tpdefaults.cxx:67
OUString maOldPrefixValue
Definition: tpdefaults.hxx:36
DeactivateRC