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>
24 #include <numberingtypelistbox.hxx>
25 
26 enum SwFootnoteNum : unsigned;
27 class SwWrtShell;
28 
30 {
31  OUString aNumDoc;
32  OUString aNumPage;
33  OUString aNumChapter;
35  bool bPosDoc;
36  bool const bEndNote;
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::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;
55 
56  inline void SelectNumbering(SwFootnoteNum eNum);
58 
59  DECL_LINK(PosPageHdl, weld::Button&, void);
60  DECL_LINK(PosChapterHdl, weld::Button&, void);
61  DECL_LINK(NumCountHdl, weld::ComboBox&, void);
62 
63 public:
64  SwEndNoteOptionPage(weld::Container* pPage, weld::DialogController* pController, bool bEndNote, const SfxItemSet &rSet);
65  virtual ~SwEndNoteOptionPage() override;
66 
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;
70 
71  void SetShell( SwWrtShell &rShell );
72 };
73 
75 {
76 public:
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;
80 };
81 
82 #endif
83 
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Entry > m_xPrefixED
Definition: impfnote.hxx:42
std::unique_ptr< weld::RadioButton > m_xPosChapterBox
Definition: impfnote.hxx:46
std::unique_ptr< weld::ComboBox > m_xFootnoteCharAnchorTemplBox
Definition: impfnote.hxx:51
SwFootnoteNum
Definition: ftninfo.hxx:84
std::unique_ptr< weld::Entry > m_xContFromEdit
Definition: impfnote.hxx:54
SwFootnoteNum GetNumbering() const
Definition: docfnote.cxx:240
SwFootNoteOptionPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: docfnote.cxx:372
OUString aNumChapter
Definition: impfnote.hxx:33
std::unique_ptr< weld::Entry > m_xContEdit
Definition: impfnote.hxx:53
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: docfnote.cxx:326
std::unique_ptr< weld::Entry > m_xSuffixED
Definition: impfnote.hxx:43
std::unique_ptr< SwNumberingTypeListBox > m_xNumViewBox
Definition: impfnote.hxx:38
Used by the UI to modify the document model.
Definition: wrtsh.hxx:90
std::unique_ptr< weld::ComboBox > m_xNumCountBox
Definition: impfnote.hxx:41
SwEndNoteOptionPage(weld::Container *pPage, weld::DialogController *pController, bool bEndNote, const SfxItemSet &rSet)
Definition: docfnote.cxx:66
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
virtual ~SwFootNoteOptionPage() override
Definition: docfnote.cxx:377
std::unique_ptr< weld::ComboBox > m_xFootnoteCharTextTemplBox
Definition: impfnote.hxx:52
std::unique_ptr< weld::ComboBox > m_xParaTemplBox
Definition: impfnote.hxx:48
std::unique_ptr< weld::Label > m_xPageTemplLbl
Definition: impfnote.hxx:49
virtual ~SwEndNoteOptionPage() override
Definition: docfnote.cxx:106
DECL_LINK(PosPageHdl, weld::Button &, void)
std::unique_ptr< weld::SpinButton > m_xOffsetField
Definition: impfnote.hxx:40
bool const bEndNote
Definition: impfnote.hxx:36
virtual void Reset(const SfxItemSet *) override
Definition: docfnote.cxx:110
void SetShell(SwWrtShell &rShell)
Definition: docfnote.cxx:246
std::unique_ptr< weld::Label > m_xPosFT
Definition: impfnote.hxx:44
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: docfnote.cxx:381
std::unique_ptr< weld::ComboBox > m_xPageTemplBox
Definition: impfnote.hxx:50
void SelectNumbering(SwFootnoteNum eNum)
Definition: docfnote.cxx:219
std::unique_ptr< weld::Widget > m_xStylesContainer
Definition: impfnote.hxx:47
SwWrtShell * pSh
Definition: impfnote.hxx:34
std::unique_ptr< weld::RadioButton > m_xPosPageBox
Definition: impfnote.hxx:45