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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_MISC_IMPFNOTE_HXX
20 #define INCLUDED_SW_SOURCE_UI_MISC_IMPFNOTE_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <vcl/weld.hxx>
24 #include <numberingtypelistbox.hxx>
26 enum SwFootnoteNum
: unsigned;
29 class SwEndNoteOptionPage
: public SfxTabPage
38 std::unique_ptr
<SwNumberingTypeListBox
> m_xNumViewBox
;
39 std::unique_ptr
<weld::Label
> m_xOffsetLbl
;
40 std::unique_ptr
<weld::SpinButton
> m_xOffsetField
;
41 std::unique_ptr
<weld::ComboBox
> m_xNumCountBox
;
42 std::unique_ptr
<weld::Entry
> m_xPrefixED
;
43 std::unique_ptr
<weld::Entry
> m_xSuffixED
;
44 std::unique_ptr
<weld::Label
> m_xPosFT
;
45 std::unique_ptr
<weld::RadioButton
> m_xPosPageBox
;
46 std::unique_ptr
<weld::RadioButton
> m_xPosChapterBox
;
47 std::unique_ptr
<weld::Widget
> m_xStylesContainer
;
48 std::unique_ptr
<weld::ComboBox
> m_xParaTemplBox
;
49 std::unique_ptr
<weld::Label
> m_xPageTemplLbl
;
50 std::unique_ptr
<weld::ComboBox
> m_xPageTemplBox
;
51 std::unique_ptr
<weld::ComboBox
> m_xFootnoteCharAnchorTemplBox
;
52 std::unique_ptr
<weld::ComboBox
> m_xFootnoteCharTextTemplBox
;
53 std::unique_ptr
<weld::Entry
> m_xContEdit
;
54 std::unique_ptr
<weld::Entry
> m_xContFromEdit
;
56 inline void SelectNumbering(SwFootnoteNum eNum
);
57 SwFootnoteNum
GetNumbering() const;
59 DECL_LINK(PosPageHdl
, weld::Button
&, void);
60 DECL_LINK(PosChapterHdl
, weld::Button
&, void);
61 DECL_LINK(NumCountHdl
, weld::ComboBox
&, void);
64 SwEndNoteOptionPage(weld::Container
* pPage
, weld::DialogController
* pController
, bool bEndNote
, const SfxItemSet
&rSet
);
65 virtual ~SwEndNoteOptionPage() override
;
67 static std::unique_ptr
<SfxTabPage
> Create(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
*rSet
);
68 virtual bool FillItemSet(SfxItemSet
*rSet
) override
;
69 virtual void Reset( const SfxItemSet
* ) override
;
71 void SetShell( SwWrtShell
&rShell
);
74 class SwFootNoteOptionPage
: public SwEndNoteOptionPage
77 SwFootNoteOptionPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
&rSet
);
78 static std::unique_ptr
<SfxTabPage
> Create(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
*rSet
);
79 virtual ~SwFootNoteOptionPage() override
;
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */