xref: /AOO41X/main/sw/source/ui/misc/impfnote.hxx (revision 1d2dbeb0b7301723c6d13094e87a8714ef81a328)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _IMPFNOTE_HXX
24 #define _IMPFNOTE_HXX
25 
26 #include <sfx2/tabdlg.hxx>
27 #ifndef _BUTTON_HXX //autogen
28 #include <vcl/button.hxx>
29 #endif
30 #ifndef _LSTBOX_HXX //autogen
31 #include <vcl/lstbox.hxx>
32 #endif
33 #ifndef _FIXED_HXX //autogen
34 #include <vcl/fixed.hxx>
35 #endif
36 #ifndef _FIELD_HXX //autogen
37 #include <vcl/field.hxx>
38 #endif
39 #include <numberingtypelistbox.hxx>
40 
41 class SwWrtShell;
42 
43 class SwEndNoteOptionPage : public SfxTabPage
44 {
45     FixedLine       aNumFL;
46     FixedText       aNumTypeFT;
47     SwNumberingTypeListBox   aNumViewBox;
48     FixedText       aOffsetLbl;
49     NumericField    aOffsetFld;
50     FixedText       aNumCountFT;
51     ListBox         aNumCountBox;
52     FixedText       aPrefixFT;
53     Edit            aPrefixED;
54     FixedText       aSuffixFT;
55     Edit            aSuffixED;
56     FixedText       aPosFT;
57     RadioButton     aPosPageBox;
58     RadioButton     aPosChapterBox;
59 
60     FixedLine        aTemplFL;
61     FixedText       aParaTemplLbl;
62     ListBox         aParaTemplBox;
63     FixedText       aPageTemplLbl;
64     ListBox         aPageTemplBox;
65 
66     FixedLine        aCharTemplFL;
67     FixedText       aFtnCharAnchorTemplLbl;
68     ListBox         aFtnCharAnchorTemplBox;
69     FixedText       aFtnCharTextTemplLbl;
70     ListBox         aFtnCharTextTemplBox;
71 
72     FixedLine aContFL;
73     FixedText aContLbl;
74     Edit aContEdit;
75     FixedText aContFromLbl;
76     Edit aContFromEdit;
77 
78     String aNumDoc;
79     String aNumPage;
80     String aNumChapter;
81     SwWrtShell *pSh;
82     sal_Bool    bPosDoc;
83     sal_Bool    bEndNote;
84 
85     inline void SelectNumbering(int eNum);
86     int GetNumbering() const;
87 
88     DECL_LINK( PosPageHdl, Button * );
89     DECL_LINK( PosChapterHdl, Button * );
90     DECL_LINK( NumCountHdl, ListBox * );
91 
92 
93 public:
94     SwEndNoteOptionPage( Window *pParent, sal_Bool bEndNote,
95                          const SfxItemSet &rSet );
96     ~SwEndNoteOptionPage();
97 
98     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
99     virtual sal_Bool FillItemSet(SfxItemSet &rSet);
100     virtual void Reset( const SfxItemSet& );
101 
102     void SetShell( SwWrtShell &rShell );
103 };
104 
105 class SwFootNoteOptionPage : public SwEndNoteOptionPage
106 {
107     SwFootNoteOptionPage( Window *pParent, const SfxItemSet &rSet );
108     ~SwFootNoteOptionPage();
109 
110 public:
111     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
112 };
113 
114 
115 
116 #endif
117