]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiLine.h
InsetLine: support for the LaTeX command \rule; kick out the hardcoded \lyxline;...
[lyx.git] / src / frontends / qt4 / GuiLine.h
1 // -*- C++ -*-
2 /**
3  * \file GuiLine.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 GUILINE_H
13 #define GUILINE_H
14
15 #include "GuiDialog.h"
16 #include "ui_LineUi.h"
17
18 #include "insets/InsetCommandParams.h"
19
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiLine : public GuiDialog, public Ui::LineUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiLine(GuiView & lv);
30
31 private Q_SLOTS:
32         void change_adaptor();
33
34 private:
35         /// Apply changes
36         void applyView();
37         /// Update dialog before showing it
38         bool initialiseParams(std::string const & data);
39         ///
40         void paramsToDialog(InsetCommandParams const & icp);
41         ///
42         void clearParams() { params_.clear(); }
43         ///
44         void dispatchParams();
45         ///
46         bool isBufferDependent() const { return true; }
47         ///
48         bool isValid() const;
49
50         ///
51         InsetCommandParams params_;
52 };
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #endif // GUILINE_H