1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <sfx2/tabdlg.hxx>
23 #include <vcl/button.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/fixed.hxx>
26 #include <vcl/field.hxx>
27 #include <numberingtypelistbox.hxx>
31 class SwEndNoteOptionPage
: public SfxTabPage
33 SwNumberingTypeListBox
* m_pNumViewBox
;
34 FixedText
* m_pOffsetLbl
;
35 NumericField
* m_pOffsetFld
;
36 ListBox
* m_pNumCountBox
;
40 RadioButton
* m_pPosPageBox
;
41 RadioButton
* m_pPosChapterBox
;
43 VclContainer
*m_pStylesContainer
;
45 ListBox
* m_pParaTemplBox
;
46 FixedText
* m_pPageTemplLbl
;
47 ListBox
* m_pPageTemplBox
;
49 ListBox
* m_pFtnCharAnchorTemplBox
;
50 ListBox
* m_pFtnCharTextTemplBox
;
53 Edit
* m_pContFromEdit
;
62 inline void SelectNumbering(int eNum
);
63 int GetNumbering() const;
65 DECL_LINK(PosPageHdl
, void *);
66 DECL_LINK(PosChapterHdl
, void *);
67 DECL_LINK(NumCountHdl
, void *);
71 SwEndNoteOptionPage( Window
*pParent
, bool bEndNote
,
72 const SfxItemSet
&rSet
);
73 ~SwEndNoteOptionPage();
75 static SfxTabPage
*Create(Window
*pParent
, const SfxItemSet
&rSet
);
76 virtual sal_Bool
FillItemSet(SfxItemSet
&rSet
);
77 virtual void Reset( const SfxItemSet
& );
79 void SetShell( SwWrtShell
&rShell
);
82 class SwFootNoteOptionPage
: public SwEndNoteOptionPage
84 SwFootNoteOptionPage( Window
*pParent
, const SfxItemSet
&rSet
);
85 ~SwFootNoteOptionPage();
88 static SfxTabPage
*Create(Window
*pParent
, const SfxItemSet
&rSet
);
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */