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