]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlDocument.h
Use a control-view split for the xforms document dialog.
[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         void classApply();
47         ///
48         bool loadTextclass(lyx::textclass_type tc) const;
49 private:
50         /// apply settings
51         void apply();
52         /// set the params before show or update
53         void setParams();
54         ///
55         boost::scoped_ptr<BufferParams> bp_;
56 };
57
58 #endif // CONTROLDOCUMENT_H