]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormParagraph.h
implement getLabelList
[lyx.git] / src / frontends / qt2 / FormParagraph.h
1 /**
2  * \file FormParagraph.h
3  * Copyright 2001 LyX Team
4  * see the file COPYING
5  *
6  * \author John Levon, moz@compsoc.man.ac.uk
7  */
8
9 #ifndef FORMPARAGRAPH_H
10 #define FORMPARAGRAPH_H
11
12 #include "DialogBase.h"
13 #include "LString.h"
14 #include "boost/utility.hpp"
15
16 class Dialogs;
17 class LyXView;
18 class ParagraphDlgImpl;
19
20 class FormParagraph : public DialogBase {
21 public: 
22         /**@name Constructors and Destructors */
23         //@{
24         ///
25         FormParagraph(LyXView *, Dialogs *);
26         /// 
27         ~FormParagraph();
28         //@}
29
30         /// Apply changes
31         void apply();
32         /// Update the dialog.
33         void update(bool switched = false);
34         /// Close the connections
35         void close();
36  
37 private: 
38         /// Create the dialog if necessary, update it and display it.
39         void show();
40         /// Hide the dialog.
41         void hide();
42
43         /// Real GUI implementation.
44         ParagraphDlgImpl * dialog_;
45
46         /// the LyXView we belong to
47         LyXView * lv_;
48  
49         /// Used so we can get at the signals we have to connect to.
50         Dialogs * d_;
51         
52         /// Hide connection.
53    SigC::Connection h_;
54         
55         /// readonly file or not
56         bool readonly; 
57 };
58
59 #endif