]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlDocument.h
Finish the task of removing all cruft from the header files.
[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 #include "ControlDialog_impl.h"
16 #include "bufferparams.h"
17
18 #include <boost/scoped_ptr.hpp>
19
20 class Language;
21
22
23 /** A controller for Document dialogs.
24  */
25 class ControlDocument : public ControlDialogBD {
26 public:
27         ///
28         ControlDocument(LyXView &, Dialogs &);
29         ///
30         ~ControlDocument();
31         ///
32         void setLanguage();
33         ///
34         LyXTextClass textClass();
35         ///
36         BufferParams & params();
37         ///
38         void saveAsDefault();
39         ///
40         void classApply();
41         ///
42         bool loadTextclass(lyx::textclass_type tc) const;
43 private:
44         /// apply settings
45         void apply();
46         /// set the params before show or update
47         void setParams();
48         ///
49         boost::scoped_ptr<BufferParams> bp_;
50 };
51
52 #endif // CONTROLDOCUMENT_H