]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormTabularCreate.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / qt2 / FormTabularCreate.h
1 /* FormTabularCreate.h
2  * (C) 2000 LyX Team
3  * John Levon, moz@compsoc.man.ac.uk
4  */
5
6 /***************************************************************************
7  *                                                                         *
8  *   This program is free software; you can redistribute it and/or modify  *
9  *   it under the terms of the GNU General Public License as published by  *
10  *   the Free Software Foundation; either version 2 of the License, or     *
11  *   (at your option) any later version.                                   *
12  *                                                                         *
13  ***************************************************************************/
14
15 #ifndef FORMTABULARCREATE_H
16 #define FORMTABULARCREATE_H
17
18 #include "DialogBase.h"
19 #include "LString.h"
20 #include "boost/utility.hpp"
21
22 class Dialogs;
23 class LyXView; 
24 class TabularCreateDlgImpl;
25
26 class FormTabularCreate : public DialogBase, public noncopyable {
27 public: 
28         /**@name Constructors and Destructors */
29         //@{
30         ///
31         FormTabularCreate(LyXView *, Dialogs *);
32         /// 
33         ~FormTabularCreate();
34         //@}
35
36         /// create the table 
37         void apply(int rows, int cols);
38         /// close the connections
39         void close();
40  
41 private:
42         /// Create the dialog if necessary, update it and display it.
43         void show();
44         /// Hide the dialog.
45         void hide();
46  
47         /// Real GUI implementation.
48         TabularCreateDlgImpl * dialog_;
49
50         /// the LyXView we belong to
51         LyXView * lv_;
52  
53         /** Which Dialogs do we belong to?
54             Used so we can get at the signals we have to connect to.
55         */
56         Dialogs * d_;
57         
58         /// Hide connection.
59         Connection h_;
60 };
61
62 #endif