]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlDocument.h
new tabular dialog + new widget. more bullet stuff (not finished yet though).
[lyx.git] / src / frontends / controllers / ControlDocument.h
1 // -*- C++ -*-
2 /**
3  * \file ControlDocument.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLDOCUMENT_H
13 #define CONTROLDOCUMENT_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <boost/scoped_ptr.hpp>
20 #include "ControlDialog_impl.h"
21 #include "LString.h"
22 #include "bufferparams.h"
23
24 #include <vector>
25
26 class Language;
27
28
29 /** A controller for Document dialogs.
30  */
31 class ControlDocument : public ControlDialogBD {
32 public:
33         ///
34         ControlDocument(LyXView &, Dialogs &);
35         ///
36         ~ControlDocument();
37         ///
38         void setLanguage();
39         ///
40         LyXTextClass textClass();
41         ///
42         BufferParams & params();
43         ///
44         void saveAsDefault();
45         ///
46         bool classApply();
47 private:
48         /// apply settings
49         void apply();
50         /// set the params before show or update
51         void setParams();
52         ///
53         boost::scoped_ptr<BufferParams> bp_;
54 };
55
56 #endif // CONTROLDOCUMENT_H