fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / tpdefaults.hxx
blobdeb267368baa122862e8264c1eeb6775ffce2d8a
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>
14 #include <vcl/fixed.hxx>
15 #include <vcl/field.hxx>
17 class ScTpDefaultsOptions : public SfxTabPage
19 friend class VclPtr<ScTpDefaultsOptions>;
20 public:
21 using SfxTabPage::DeactivatePage;
23 static VclPtr<SfxTabPage> Create (vcl::Window* pParent, const SfxItemSet* rCoreSet);
25 virtual bool FillItemSet(SfxItemSet* rCoreSet) SAL_OVERRIDE;
26 virtual void Reset(const SfxItemSet* rCoreSet) SAL_OVERRIDE;
27 virtual sfxpg DeactivatePage(SfxItemSet* pSet = NULL) SAL_OVERRIDE;
29 private:
30 explicit ScTpDefaultsOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet);
31 virtual ~ScTpDefaultsOptions();
32 virtual void dispose() SAL_OVERRIDE;
34 void CheckNumSheets();
35 void CheckPrefix(Edit* pEdit);
36 void OnFocusPrefixInput(Edit* pEdit);
38 DECL_LINK(NumModifiedHdl, void *);
39 DECL_LINK( PrefixModifiedHdl, Edit* );
40 DECL_LINK( PrefixEditOnFocusHdl, Edit* );
42 private:
43 VclPtr<NumericField> m_pEdNSheets;
44 VclPtr<Edit> m_pEdSheetPrefix;
46 // Stores old Sheet Prefix
47 OUString maOldPrefixValue;
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */