]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormDocument.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / frontends / kde / FormDocument.h
1 /**
2  * \file FormDocument.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8 #ifndef FORMDOCUMENT_H
9 #define FORMDOCUMENT_H
10
11 #include <vector>
12
13 #include "DialogBase.h"
14 #include "LString.h"
15 #include "boost/utility.hpp"
16
17 class Dialogs;
18 class LyXView;
19 class DocDialog;
20 class BufferParams;
21
22 /**
23  * \brief the LyXian side of the complex Document dialog
24  */
25 class FormDocument : public DialogBase, public noncopyable {
26 public:
27         FormDocument(LyXView *, Dialogs *);
28  
29         ~FormDocument();
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         /// change the doc class
38         bool changeClass(BufferParams & params, int new_class);
39         
40 private:
41         /// Create the dialog if necessary, update it and display it.
42         void show();
43         /// Hide the dialog.
44         void hide();
45
46         /// Real GUI implementation.
47         DocDialog * dialog_;
48
49         /// the LyXView we belong to
50         LyXView * lv_;
51
52         /// Used so we can get at the signals we have to connect to.
53         Dialogs * d_;
54         
55         /// Hide connection.
56         Connection h_;
57         
58         /// is the buffer readonly ?
59         bool readonly;
60 };
61
62 #endif // FORMDOCUMENT_H