]> git.lyx.org Git - lyx.git/blob - src/insets/InsetLayout.h
21d11a6f3a5c1ba71d2accd3b8e646d9932168a7
[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 class Lexer;
27         
28 ///
29 class InsetLayout {
30 public:
31         ///
32         InsetLayout();
33         ///
34         bool read(Lexer & lexrc);
35         ///
36         docstring name() const { return name_; };
37         ///
38         std::string lyxtype() const { return lyxtype_; };
39         ///
40         docstring labelstring() const { return labelstring_; };
41         ///
42         //FIXME This could be an enum
43         std::string decoration() const { return decoration_; };
44         ///
45         std::string latextype() const { return latextype_; };
46         ///
47         std::string latexname() const { return latexname_; };
48         ///
49         std::string latexparam() const { return latexparam_; };
50         ///
51         FontInfo font() const { return font_; };
52         ///
53         FontInfo labelfont() const { return labelfont_; };
54         ///
55         ColorCode bgcolor() const { return bgcolor_; };
56         ///
57         std::string preamble() const { return preamble_; };
58         ///
59         std::set<std::string> requires() const { return requires_; };
60         ///
61         bool isMultiPar() const { return multipar_; };
62         ///
63         bool isPassThru() const { return passthru_; };
64         ///
65         bool isNeedProtect() const { return needprotect_; };
66         ///
67         bool isFreeSpacing() const { return freespacing_; };
68         ///
69         bool isKeepEmpty() const { return keepempty_; };
70         ///
71         bool isForceLtr() const { return forceltr_; };
72 private:
73         ///
74         docstring name_;
75         ///
76         std::string lyxtype_;
77         ///
78         docstring labelstring_;
79         ///
80         std::string decoration_;
81         ///
82         std::string latextype_;
83         ///
84         std::string latexname_;
85         ///
86         std::string latexparam_;
87         ///
88         FontInfo font_;
89         ///
90         FontInfo labelfont_;
91         ///
92         ColorCode bgcolor_;
93         ///
94         std::string preamble_;
95         ///
96         std::set<std::string> requires_;
97         ///
98         bool multipar_;
99         ///
100         bool passthru_;
101         ///
102         bool needprotect_;
103         ///
104         bool freespacing_;
105         ///
106         bool keepempty_;
107         ///
108         bool forceltr_;
109 };
110
111 } // namespace lyx
112
113 #endif