]> git.lyx.org Git - features.git/blob - src/frontends/qt4/GuiTabular.h
* InsetTabular cleanup:
[features.git] / src / frontends / qt4 / GuiTabular.h
1 // -*- C++ -*-
2 /**
3  * \file GuiTabular.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  * \author Jürgen Spitzmüller
10  * \author Herbert Voß
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef GUITABULAR_H
16 #define GUITABULAR_H
17
18 #include "InsetParamsWidget.h"
19 #include "ui_TabularUi.h"
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiTabular : public InsetParamsWidget, public Ui::TabularUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiTabular(QWidget * parent = 0);
30
31 private Q_SLOTS:
32         void checkEnabled();
33         void borderSet_clicked();
34         void borderUnset_clicked();
35
36 private:
37         /// \name InsetParamsWidget inherited methods
38         //@{
39         InsetCode insetCode() const { return TABULAR_CODE; }
40         FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
41         void paramsToDialog(Inset const *);
42         docstring dialogToParams() const;
43         //@}
44
45         ///
46         void setHAlign(std::string & param_str) const;
47         ///
48         void setVAlign(std::string & param_str) const;
49         ///
50         void setTableAlignment(std::string & param_str) const;
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // GUITABULAR_H