]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QParagraph.h
ws cleanup
[lyx.git] / src / frontends / qt2 / QParagraph.h
1 // -*- C++ -*-
2 /**
3  * \file QParagraph.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 QPARAGRAPH_H
11 #define QPARAGRAPH_H
12
13 #include "DialogBase.h"
14 #include "LString.h"
15 #include "boost/utility.hpp"
16
17 class Dialogs;
18 class LyXView;
19 class QParagraphDialog;
20
21 class QParagraph : public DialogBase {
22 public:
23         QParagraph(LyXView *, Dialogs *);
24         ~QParagraph();
25
26         /// Apply changes
27         void apply();
28         /// Update the dialog.
29         void update(bool switched = false);
30         /// Close the connections
31         void close();
32
33 private:
34         /// Create the dialog if necessary, update it and display it.
35         void show();
36         /// Hide the dialog.
37         void hide();
38
39         /// Real GUI implementation.
40         QParagraphDialog * dialog_;
41
42         /// the LyXView we belong to
43         LyXView * lv_;
44
45         /// Used so we can get at the signals we have to connect to.
46         Dialogs * d_;
47
48         /// Hide connection.
49         SigC::Connection h_;
50
51         /// readonly file or not
52         bool readonly;
53 };
54
55 #endif // QPARAGRAPH_H