Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef SC_TPHF_HXX
30 : : #define SC_TPHF_HXX
31 : :
32 : :
33 : : #include <svx/hdft.hxx>
34 : :
35 : : class ScStyleDlg;
36 : :
37 : : //========================================================================
38 : :
39 : : class ScHFPage : public SvxHFPage
40 : : {
41 : : public:
42 : : virtual ~ScHFPage();
43 : :
44 : : virtual void Reset( const SfxItemSet& rSet );
45 : : virtual sal_Bool FillItemSet( SfxItemSet& rOutSet );
46 : :
47 : 0 : void SetPageStyle( const String& rName ) { aStrPageStyle = rName; }
48 : 0 : void SetStyleDlg ( const ScStyleDlg* pDlg ) { pStyleDlg = pDlg; }
49 : :
50 : : protected:
51 : : ScHFPage( Window* pParent,
52 : : sal_uInt16 nResId,
53 : : const SfxItemSet& rSet,
54 : : sal_uInt16 nSetId );
55 : :
56 : : virtual void ActivatePage();
57 : : virtual void DeactivatePage();
58 : : virtual void ActivatePage( const SfxItemSet& rSet );
59 : : virtual int DeactivatePage( SfxItemSet* pSet = 0 );
60 : :
61 : : private:
62 : : PushButton aBtnEdit;
63 : : SfxItemSet aDataSet;
64 : : String aStrPageStyle;
65 : : sal_uInt16 nPageUsage;
66 : : const ScStyleDlg* pStyleDlg;
67 : :
68 : : #ifdef _TPHF_CXX
69 : : private:
70 : : DECL_LINK(BtnHdl, void *);
71 : : DECL_LINK( HFEditHdl, void* );
72 : : DECL_LINK(TurnOnHdl, void *);
73 : : #endif
74 : : };
75 : :
76 : : //========================================================================
77 : :
78 : 0 : class ScHeaderPage : public ScHFPage
79 : : {
80 : : public:
81 : : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
82 : : static sal_uInt16* GetRanges();
83 : :
84 : : private:
85 : : ScHeaderPage( Window* pParent, const SfxItemSet& rSet );
86 : : };
87 : :
88 : : //========================================================================
89 : :
90 : 0 : class ScFooterPage : public ScHFPage
91 : : {
92 : : public:
93 : : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
94 : : static sal_uInt16* GetRanges();
95 : :
96 : : private:
97 : : ScFooterPage( Window* pParent, const SfxItemSet& rSet );
98 : : };
99 : :
100 : :
101 : : #endif // SC_TPHF_HXX
102 : :
103 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|