enum InsetLayoutTags {
IL_FONT = 1,
+ IL_DECORATION,
IL_LABELFONT,
IL_LABELSTRING,
IL_LATEXNAME,
void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
{
keyword_item elementTags[] = {
+ { "decoration", IL_DECORATION },
{ "end", IL_END },
{ "font", IL_FONT },
{ "labelfont", IL_LABELFONT },
string lyxtype;
docstring labelstring;
string latextype;
+ string decoration;
string latexname;
string latexparam;
Font font(Font::ALL_INHERIT);
lexrc.next();
labelstring = lexrc.getDocString();
break;
+ case IL_DECORATION:
+ lexrc.next();
+ decoration = lexrc.getString();
+ break;
case IL_LATEXNAME:
lexrc.next();
latexname = lexrc.getString();
il.name = to_ascii(name);
il.lyxtype = lyxtype;
il.labelstring = labelstring;
+ il.decoration = decoration;
il.latextype = latextype;
il.latexname = latexname;
il.latexparam = latexparam;
}
+InsetCollapsable::Decoration InsetCharStyle::decoration() const
+{
+ if (layout_.decoration == "classic")
+ return Classic;
+ if (layout_.decoration == "minimalistic")
+ return Minimalistic;
+ if (layout_.decoration == "conglomerate")
+ return Conglomerate;
+ return Conglomerate;
+}
+
+
int InsetCharStyle::plaintext(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
///
bool forceDefaultParagraphs(idx_type) const { return true; }
///
- virtual Decoration decoration() const { return Conglomerate; }
+ virtual Decoration decoration() const;
///
int plaintext(Buffer const &, odocstream &,