Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / source / ui / inc / tpdefaults.hxx
blobdce6fc18652fc25f2ad1fda435057274f15e34ee
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 __SC_TPDEFAULTS_HXX__
11 #define __SC_TPDEFAULTS_HXX__
13 #include <sfx2/tabdlg.hxx>
14 #include <vcl/fixed.hxx>
15 #include <vcl/field.hxx>
17 class ScTpDefaultsOptions : public SfxTabPage
19 public:
20 using SfxTabPage::DeactivatePage;
22 static SfxTabPage* Create (Window* pParent, const SfxItemSet& rCoreSet);
24 virtual sal_Bool FillItemSet(SfxItemSet& rCoreSet);
25 virtual void Reset(const SfxItemSet& rCoreSet);
26 virtual int DeactivatePage(SfxItemSet* pSet = NULL);
28 private:
29 explicit ScTpDefaultsOptions(Window* pParent, const SfxItemSet& rCoreSet);
30 virtual ~ScTpDefaultsOptions();
32 void CheckNumSheets();
33 void CheckPrefix(Edit* pEdit);
34 void OnFocusPrefixInput(Edit* pEdit);
36 DECL_LINK(NumModifiedHdl, void *);
37 DECL_LINK( PrefixModifiedHdl, Edit* );
38 DECL_LINK( PrefixEditOnFocusHdl, Edit* );
40 private:
41 NumericField* m_pEdNSheets;
42 Edit* m_pEdSheetPrefix;
44 // Stores old Sheet Prefix
45 OUString maOldPrefixValue;
48 #endif
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */