]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormParagraph.h
More preference work from Angus
[lyx.git] / src / frontends / kde / FormParagraph.h
1 /* FormParagraph.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 FORMPARAGRAPH_H
16 #define FORMPARAGRAPH_H
17
18 #include "DialogBase.h"
19 #include "LString.h"
20 #include "boost/utility.hpp"
21 #include "insets/inseturl.h"
22
23 class Dialogs;
24 class LyXView;
25 class ParaDialog;
26
27 class FormParagraph : public DialogBase, public noncopyable {
28 public: 
29         /**@name Constructors and Destructors */
30         //@{
31         ///
32         FormParagraph(LyXView *, Dialogs *);
33         /// 
34         ~FormParagraph();
35         //@}
36
37         /// Apply changes
38         void apply();
39         /// Update the dialog.
40         void update(bool switched = false);
41         /// close the connections
42         void close();
43  
44 private: 
45         /// Create the dialog if necessary, update it and display it.
46         void show();
47         /// Hide the dialog.
48         void hide();
49
50         /// Real GUI implementation.
51         ParaDialog * dialog_;
52
53         /// the LyXView we belong to
54         LyXView * lv_;
55  
56         /// Used so we can get at the signals we have to connect to.
57         Dialogs * d_;
58         
59         /// Hide connection.
60         Connection h_;
61         
62         /// readonly file or not
63         bool readonly; 
64 };
65
66 #endif