4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Martin Vermeer
10 * Full author contact details are available in file CREDITS.
13 #ifndef INSET_LAYOUT_H
14 #define INSET_LAYOUT_H
16 #include "ColorCode.h"
19 #include "support/docstring.h"
34 enum InsetDecoration {
41 bool read(Lexer & lexrc);
43 docstring name() const { return name_; };
45 std::string lyxtype() const { return lyxtype_; };
47 docstring labelstring() const { return labelstring_; };
49 InsetDecoration decoration() const { return decoration_; };
51 std::string latextype() const { return latextype_; };
53 std::string latexname() const { return latexname_; };
55 std::string latexparam() const { return latexparam_; };
57 FontInfo font() const { return font_; };
59 FontInfo labelfont() const { return labelfont_; };
61 ColorCode bgcolor() const { return bgcolor_; };
63 std::string preamble() const { return preamble_; };
65 std::set<std::string> requires() const { return requires_; };
67 bool isMultiPar() const { return multipar_; };
69 bool isPassThru() const { return passthru_; };
71 bool isNeedProtect() const { return needprotect_; };
73 bool isFreeSpacing() const { return freespacing_; };
75 bool isKeepEmpty() const { return keepempty_; };
77 bool isForceLtr() const { return forceltr_; };
84 docstring labelstring_;
86 InsetDecoration decoration_;
88 std::string latextype_;
90 std::string latexname_;
92 std::string latexparam_;
100 std::string preamble_;
102 std::set<std::string> requires_;