android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / ui / misc / impfnote.hxx
blobeb5c491a45f9f45e4a57e7912b0df1b66459161e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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;
27 class SwWrtShell;
29 class SwEndNoteOptionPage : public SfxTabPage
31 OUString m_aNumDoc;
32 OUString m_aNumPage;
33 OUString m_aNumChapter;
34 SwWrtShell *m_pSh;
35 bool m_bPosDoc;
36 bool m_bEndNote;
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::RadioButton> m_xPosPageBox;
45 std::unique_ptr<weld::RadioButton> m_xPosChapterBox;
46 std::unique_ptr<weld::Widget> m_xStylesContainer;
47 std::unique_ptr<weld::ComboBox> m_xParaTemplBox;
48 std::unique_ptr<weld::Label> m_xPageTemplLbl;
49 std::unique_ptr<weld::ComboBox> m_xPageTemplBox;
50 std::unique_ptr<weld::ComboBox> m_xFootnoteCharAnchorTemplBox;
51 std::unique_ptr<weld::ComboBox> m_xFootnoteCharTextTemplBox;
52 std::unique_ptr<weld::Entry> m_xContEdit;
53 std::unique_ptr<weld::Entry> m_xContFromEdit;
55 inline void SelectNumbering(SwFootnoteNum eNum);
56 SwFootnoteNum GetNumbering() const;
58 DECL_LINK(ToggleHdl, weld::Toggleable&, void);
59 DECL_LINK(NumCountHdl, weld::ComboBox&, void);
61 public:
62 SwEndNoteOptionPage(weld::Container* pPage, weld::DialogController* pController, bool bEndNote, const SfxItemSet &rSet);
63 virtual ~SwEndNoteOptionPage() override;
65 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
66 virtual bool FillItemSet(SfxItemSet *rSet) override;
67 virtual void Reset( const SfxItemSet* ) override;
69 void SetShell( SwWrtShell &rShell );
72 class SwFootNoteOptionPage : public SwEndNoteOptionPage
74 public:
75 SwFootNoteOptionPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rSet );
76 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
77 virtual ~SwFootNoteOptionPage() override;
80 #endif
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */