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