]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.h
some support for pch
[lyx.git] / src / frontends / controllers / ControlTabularCreate.h
1 // -*- C++ -*-
2 /**
3  * \file ControlTabularCreate.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author unknown
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLTABULARCREATE_H
13 #define CONTROLTABULARCREATE_H
14
15 #include "Dialog.h"
16 #include <utility>
17
18 namespace lyx {
19 namespace frontend {
20
21 /** A controller for the TabularCreate Dialog.
22  */
23 class ControlTabularCreate : public Dialog::Controller {
24 public:
25         ///
26         ControlTabularCreate(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         /// clean-up on hide.
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35
36         ///
37         typedef std::pair<unsigned int, unsigned int> rowsCols;
38         ///
39         rowsCols & params() { return params_; }
40
41 private:
42         /// rows, cols params
43         rowsCols params_;
44 };
45
46 } // namespace frontend
47 } // namespace lyx
48
49 #endif // CONTROLTABULARCREATE_H