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