xref: /trunk/main/sw/source/ui/misc/impfnote.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _IMPFNOTE_HXX
28 #define _IMPFNOTE_HXX
29 
30 #include <sfx2/tabdlg.hxx>
31 #ifndef _BUTTON_HXX //autogen
32 #include <vcl/button.hxx>
33 #endif
34 #ifndef _LSTBOX_HXX //autogen
35 #include <vcl/lstbox.hxx>
36 #endif
37 #ifndef _FIXED_HXX //autogen
38 #include <vcl/fixed.hxx>
39 #endif
40 #ifndef _FIELD_HXX //autogen
41 #include <vcl/field.hxx>
42 #endif
43 #include <numberingtypelistbox.hxx>
44 
45 class SwWrtShell;
46 
47 class SwEndNoteOptionPage : public SfxTabPage
48 {
49     FixedLine       aNumFL;
50     FixedText       aNumTypeFT;
51     SwNumberingTypeListBox   aNumViewBox;
52     FixedText       aOffsetLbl;
53     NumericField    aOffsetFld;
54     FixedText       aNumCountFT;
55     ListBox         aNumCountBox;
56     FixedText       aPrefixFT;
57     Edit            aPrefixED;
58     FixedText       aSuffixFT;
59     Edit            aSuffixED;
60     FixedText       aPosFT;
61     RadioButton     aPosPageBox;
62     RadioButton     aPosChapterBox;
63 
64     FixedLine        aTemplFL;
65     FixedText       aParaTemplLbl;
66     ListBox         aParaTemplBox;
67     FixedText       aPageTemplLbl;
68     ListBox         aPageTemplBox;
69 
70     FixedLine        aCharTemplFL;
71     FixedText       aFtnCharAnchorTemplLbl;
72     ListBox         aFtnCharAnchorTemplBox;
73     FixedText       aFtnCharTextTemplLbl;
74     ListBox         aFtnCharTextTemplBox;
75 
76     FixedLine aContFL;
77     FixedText aContLbl;
78     Edit aContEdit;
79     FixedText aContFromLbl;
80     Edit aContFromEdit;
81 
82     String aNumDoc;
83     String aNumPage;
84     String aNumChapter;
85     SwWrtShell *pSh;
86     sal_Bool    bPosDoc;
87     sal_Bool    bEndNote;
88 
89     inline void SelectNumbering(int eNum);
90     int GetNumbering() const;
91 
92     DECL_LINK( PosPageHdl, Button * );
93     DECL_LINK( PosChapterHdl, Button * );
94     DECL_LINK( NumCountHdl, ListBox * );
95 
96 
97 public:
98     SwEndNoteOptionPage( Window *pParent, sal_Bool bEndNote,
99                          const SfxItemSet &rSet );
100     ~SwEndNoteOptionPage();
101 
102     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
103     virtual sal_Bool FillItemSet(SfxItemSet &rSet);
104     virtual void Reset( const SfxItemSet& );
105 
106     void SetShell( SwWrtShell &rShell );
107 };
108 
109 class SwFootNoteOptionPage : public SwEndNoteOptionPage
110 {
111     SwFootNoteOptionPage( Window *pParent, const SfxItemSet &rSet );
112     ~SwFootNoteOptionPage();
113 
114 public:
115     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
116 };
117 
118 
119 
120 #endif
121