]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiPhantom.h
Hack to display section symbol
[lyx.git] / src / frontends / qt / GuiPhantom.h
1 // -*- C++ -*-
2 /**
3  * \file GuiPhantom.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Uwe Stöhr
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIPHANTOM_H
13 #define GUIPHANTOM_H
14
15 #include "GuiDialog.h"
16 #include "insets/InsetPhantom.h"
17 #include "ui_PhantomUi.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiPhantom : public GuiDialog, public Ui::PhantomUi
23 {
24         Q_OBJECT
25 public:
26         GuiPhantom(GuiView & lv);
27 private Q_SLOTS:
28         void change_adaptor();
29 private:
30         /// Apply changes
31         void applyView() override;
32         /// Update dialog before showing it
33         void updateContents() override;
34         ///
35         bool initialiseParams(std::string const & data) override;
36         ///
37         void clearParams() override;
38         ///
39         void dispatchParams() override;
40         ///
41         bool isBufferDependent() const override { return true; }
42 private:
43         ///
44         InsetPhantomParams params_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GUIPHANTOM_H