LibreOffice Module sw (master) 1
impfnote.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SW_SOURCE_UI_MISC_IMPFNOTE_HXX
20#define INCLUDED_SW_SOURCE_UI_MISC_IMPFNOTE_HXX
21
22#include <sfx2/tabdlg.hxx>
23#include <vcl/weld.hxx>
25
26enum SwFootnoteNum : unsigned;
27class SwWrtShell;
28
30{
31 OUString m_aNumDoc;
32 OUString m_aNumPage;
33 OUString m_aNumChapter;
37
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;
54
55 inline void SelectNumbering(SwFootnoteNum eNum);
57
58 DECL_LINK(ToggleHdl, weld::Toggleable&, void);
59 DECL_LINK(NumCountHdl, weld::ComboBox&, void);
60
61public:
62 SwEndNoteOptionPage(weld::Container* pPage, weld::DialogController* pController, bool bEndNote, const SfxItemSet &rSet);
63 virtual ~SwEndNoteOptionPage() override;
64
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;
68
69 void SetShell( SwWrtShell &rShell );
70};
71
73{
74public:
76 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
77 virtual ~SwFootNoteOptionPage() override;
78};
79
80#endif
81
82/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xPageTemplLbl
Definition: impfnote.hxx:48
std::unique_ptr< weld::RadioButton > m_xPosPageBox
Definition: impfnote.hxx:44
std::unique_ptr< weld::Entry > m_xPrefixED
Definition: impfnote.hxx:42
OUString m_aNumPage
Definition: impfnote.hxx:32
std::unique_ptr< weld::SpinButton > m_xOffsetField
Definition: impfnote.hxx:40
std::unique_ptr< weld::ComboBox > m_xParaTemplBox
Definition: impfnote.hxx:47
std::unique_ptr< weld::Entry > m_xContEdit
Definition: impfnote.hxx:52
std::unique_ptr< weld::ComboBox > m_xFootnoteCharAnchorTemplBox
Definition: impfnote.hxx:50
std::unique_ptr< weld::ComboBox > m_xPageTemplBox
Definition: impfnote.hxx:49
OUString m_aNumDoc
Definition: impfnote.hxx:31
std::unique_ptr< weld::Label > m_xOffsetLbl
Definition: impfnote.hxx:39
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: docfnote.cxx:212
std::unique_ptr< weld::Entry > m_xSuffixED
Definition: impfnote.hxx:43
virtual void Reset(const SfxItemSet *) override
Definition: docfnote.cxx:110
OUString m_aNumChapter
Definition: impfnote.hxx:33
virtual ~SwEndNoteOptionPage() override
Definition: docfnote.cxx:106
void SelectNumbering(SwFootnoteNum eNum)
Definition: docfnote.cxx:219
void SetShell(SwWrtShell &rShell)
Definition: docfnote.cxx:246
DECL_LINK(NumCountHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xFootnoteCharTextTemplBox
Definition: impfnote.hxx:51
std::unique_ptr< weld::Entry > m_xContFromEdit
Definition: impfnote.hxx:53
std::unique_ptr< weld::Widget > m_xStylesContainer
Definition: impfnote.hxx:46
SwFootnoteNum GetNumbering() const
Definition: docfnote.cxx:240
std::unique_ptr< weld::RadioButton > m_xPosChapterBox
Definition: impfnote.hxx:45
SwWrtShell * m_pSh
Definition: impfnote.hxx:34
std::unique_ptr< weld::ComboBox > m_xNumCountBox
Definition: impfnote.hxx:41
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: docfnote.cxx:333
SwEndNoteOptionPage(weld::Container *pPage, weld::DialogController *pController, bool bEndNote, const SfxItemSet &rSet)
Definition: docfnote.cxx:67
std::unique_ptr< SwNumberingTypeListBox > m_xNumViewBox
Definition: impfnote.hxx:38
DECL_LINK(ToggleHdl, weld::Toggleable &, void)
virtual ~SwFootNoteOptionPage() override
Definition: docfnote.cxx:384
SwFootNoteOptionPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: docfnote.cxx:379
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: docfnote.cxx:388
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
SwFootnoteNum
Definition: ftninfo.hxx:86
static SfxItemSet & rSet