]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTabularCreate.h
John's TabularCreate patch. I think I'm now up to date. Have a great Easter!
[lyx.git] / src / frontends / controllers / ControlTabularCreate.h
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *           Copyright 2001 The LyX Team.
7  *
8  *======================================================
9  *
10  * \file ControlTabularCreate.h
11  */
12
13 #ifndef CONTROLTABULARCREATE_H
14 #define CONTROLTABULARCREATE_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include <utility>
21  
22 #include "ControlDialogs.h"
23
24 /** A controller for the TabularCreate Dialog.
25  */
26 class ControlTabularCreate : public ControlDialog<ControlConnectBD> {
27 public:
28         /// 
29         ControlTabularCreate(LyXView &, Dialogs &);
30  
31         typedef std::pair<unsigned int, unsigned int> rowsCols;
32
33         ///
34         rowsCols & params();
35
36 private:
37         /// Apply from dialog
38         virtual void apply();
39
40         /// set the params before show or update
41         virtual void setParams();
42     
43         /// rows, cols params
44         rowsCols params_;
45 };
46
47 #endif // CONTROLTABULARCREATE_H