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