merge the formfield patch from ooo-build
[ooovba.git] / sw / source / ui / misc / impfnote.hxx
blob989a2fd17700e23f11c3f8193336e3687e66928e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: impfnote.hxx,v $
10 * $Revision: 1.8 $
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 ************************************************************************/
30 #ifndef _IMPFNOTE_HXX
31 #define _IMPFNOTE_HXX
33 #include <sfx2/tabdlg.hxx>
34 #ifndef _BUTTON_HXX //autogen
35 #include <vcl/button.hxx>
36 #endif
37 #ifndef _LSTBOX_HXX //autogen
38 #include <vcl/lstbox.hxx>
39 #endif
40 #ifndef _FIXED_HXX //autogen
41 #include <vcl/fixed.hxx>
42 #endif
43 #ifndef _FIELD_HXX //autogen
44 #include <vcl/field.hxx>
45 #endif
46 #include <numberingtypelistbox.hxx>
48 class SwWrtShell;
50 class SwEndNoteOptionPage : public SfxTabPage
52 FixedText aNumTypeFT;
53 SwNumberingTypeListBox aNumViewBox;
54 FixedText aOffsetLbl;
55 NumericField aOffsetFld;
56 FixedText aNumCountFT;
57 ListBox aNumCountBox;
58 FixedText aPrefixFT;
59 Edit aPrefixED;
60 FixedText aSuffixFT;
61 Edit aSuffixED;
62 FixedText aPosFT;
63 RadioButton aPosPageBox;
64 RadioButton aPosChapterBox;
65 FixedLine aNumFL;
67 FixedText aParaTemplLbl;
68 ListBox aParaTemplBox;
69 FixedText aPageTemplLbl;
70 ListBox aPageTemplBox;
71 FixedLine aTemplFL;
73 FixedText aFtnCharAnchorTemplLbl;
74 ListBox aFtnCharAnchorTemplBox;
75 FixedText aFtnCharTextTemplLbl;
76 ListBox aFtnCharTextTemplBox;
77 FixedLine aCharTemplFL;
79 FixedText aContLbl;
80 Edit aContEdit;
81 FixedText aContFromLbl;
82 Edit aContFromEdit;
83 FixedLine aContFL;
85 String aNumDoc;
86 String aNumPage;
87 String aNumChapter;
88 SwWrtShell *pSh;
89 BOOL bPosDoc;
90 BOOL bEndNote;
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 * );
100 public:
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();
117 public:
118 static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
123 #endif