]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.h
fix crash due to invalidated iterator
[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         virtual kb_action getLfun() const { return LFUN_TABULAR_INSERT; }
37
38         ///
39         typedef std::pair<size_t, size_t> rowsCols;
40         ///
41         rowsCols & params() { return params_; }
42
43 private:
44         /// rows, cols params
45         rowsCols params_;
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // CONTROLTABULARCREATE_H