]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLayout.h
08cab983d405366a584cae9e78b5850f2192ef9e
[lyx.git] / src / insets / InsetLayout.h
1 // -*- C++ -*-
2 /**
3  * \file InsetLayout.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Martin Vermeer
8  * \author Richard Heck
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef INSET_LAYOUT_H
14 #define INSET_LAYOUT_H
15
16 #include "ColorCode.h"
17 #include "FontInfo.h"
18
19 #include "support/docstring.h"
20
21 #include <set>
22 #include <string>
23
24 namespace lyx {
25
26 ///
27 class InsetLayout {
28 public:
29         ///
30         InsetLayout();
31         ///
32         std::string name() const { return name_; };
33         ///
34         std::string lyxtype() const { return lyxtype_; };
35         ///
36         docstring labelstring() const { return labelstring_; };
37         ///
38         //FIXME This could be an enum
39         std::string decoration() const { return decoration_; };
40         ///
41         std::string latextype() const { return latextype_; };
42         ///
43         std::string latexname() const { return latexname_; };
44         ///
45         std::string latexparam() const { return latexparam_; };
46         ///
47         FontInfo font() const { return font_; };
48         ///
49         FontInfo labelfont() const { return labelfont_; };
50         ///
51         ColorCode bgcolor() const { return bgcolor_; };
52         ///
53         std::string preamble() const { return preamble_; };
54         ///
55         std::set<std::string> requires() const { return requires_; };
56         ///
57         bool isMultiPar() const { return multipar_; };
58         ///
59         bool isPassThru() const { return passthru_; };
60         ///
61         bool isNeedProtect() const { return needprotect_; };
62         ///
63         bool isFreeSpacing() const { return freespacing_; };
64         ///
65         bool isKeepEmpty() const { return keepempty_; };
66         ///
67         bool isForceLtr() const { return forceltr_; };
68 private:
69         ///
70         std::string name_;
71         ///
72         std::string lyxtype_;
73         ///
74         docstring labelstring_;
75         ///
76         std::string decoration_;
77         ///
78         std::string latextype_;
79         ///
80         std::string latexname_;
81         ///
82         std::string latexparam_;
83         ///
84         FontInfo font_;
85         ///
86         FontInfo labelfont_;
87         ///
88         ColorCode bgcolor_;
89         ///
90         std::string preamble_;
91         ///
92         std::set<std::string> requires_;
93         ///
94         bool multipar_;
95         ///
96         bool passthru_;
97         ///
98         bool needprotect_;
99         ///
100         bool freespacing_;
101         ///
102         bool keepempty_;
103         ///
104         bool forceltr_;
105         
106         //FIXME This will be removed.
107         friend class TextClass;
108 };
109
110 } // namespace lyx
111
112 #endif