1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: impfnote.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <sfx2/tabdlg.hxx>
34 #ifndef _BUTTON_HXX //autogen
35 #include <vcl/button.hxx>
37 #ifndef _LSTBOX_HXX //autogen
38 #include <vcl/lstbox.hxx>
40 #ifndef _FIXED_HXX //autogen
41 #include <vcl/fixed.hxx>
43 #ifndef _FIELD_HXX //autogen
44 #include <vcl/field.hxx>
46 #include <numberingtypelistbox.hxx>
50 class SwEndNoteOptionPage
: public SfxTabPage
53 SwNumberingTypeListBox aNumViewBox
;
55 NumericField aOffsetFld
;
56 FixedText aNumCountFT
;
63 RadioButton aPosPageBox
;
64 RadioButton aPosChapterBox
;
67 FixedText aParaTemplLbl
;
68 ListBox aParaTemplBox
;
69 FixedText aPageTemplLbl
;
70 ListBox aPageTemplBox
;
73 FixedText aFtnCharAnchorTemplLbl
;
74 ListBox aFtnCharAnchorTemplBox
;
75 FixedText aFtnCharTextTemplLbl
;
76 ListBox aFtnCharTextTemplBox
;
77 FixedLine aCharTemplFL
;
81 FixedText aContFromLbl
;
92 inline void SelectNumbering(int eNum
);
93 int GetNumbering() const;
95 DECL_LINK( PosPageHdl
, Button
* );
96 DECL_LINK( PosChapterHdl
, Button
* );
97 DECL_LINK( NumCountHdl
, ListBox
* );
101 SwEndNoteOptionPage( Window
*pParent
, BOOL bEndNote
,
102 const SfxItemSet
&rSet
);
103 ~SwEndNoteOptionPage();
105 static SfxTabPage
*Create(Window
*pParent
, const SfxItemSet
&rSet
);
106 virtual BOOL
FillItemSet(SfxItemSet
&rSet
);
107 virtual void Reset( const SfxItemSet
& );
109 void SetShell( SwWrtShell
&rShell
);
112 class SwFootNoteOptionPage
: public SwEndNoteOptionPage
114 SwFootNoteOptionPage( Window
*pParent
, const SfxItemSet
&rSet
);
115 ~SwFootNoteOptionPage();
118 static SfxTabPage
*Create(Window
*pParent
, const SfxItemSet
&rSet
);