X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFlex.cpp;h=279f9940542a2327f2fd1d300e5cf3b1bb4bf3b7;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=2b2664c66fe07fefb45dc08ea16207d525c7eb1f;hpb=8d5bcad7671a25af02f9f64a3373328fc5162aff;p=lyx.git diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp index 2b2664c66f..279f994054 100644 --- a/src/insets/InsetFlex.cpp +++ b/src/insets/InsetFlex.cpp @@ -45,8 +45,8 @@ InsetFlex::InsetFlex(BufferParams const & bp, name_(layoutName) { setLayout(tc); // again, because now the name is initialized - packages_ = getLayout().requires; - preamble_ = getLayout().preamble; + packages_ = getLayout().requires(); + preamble_ = getLayout().preamble(); } @@ -61,12 +61,6 @@ Inset * InsetFlex::clone() const } -bool InsetFlex::undefined() const -{ - return getLayout().labelstring == from_utf8("UNDEFINED"); -} - - docstring const InsetFlex::editMessage() const { return _("Opened Flex Inset"); @@ -117,8 +111,8 @@ int InsetFlex::docbook(Buffer const & buf, odocstream & os, ParagraphList::const_iterator end = paragraphs().end(); if (!undefined()) - sgml::openTag(os, getLayout().latexname, - par->getID(buf, runparams) + getLayout().latexparam); + sgml::openTag(os, getLayout().latexname(), + par->getID(buf, runparams) + getLayout().latexparam()); for (; par != end; ++par) { par->simpleDocBookOnePar(buf, os, runparams, @@ -127,7 +121,7 @@ int InsetFlex::docbook(Buffer const & buf, odocstream & os, } if (!undefined()) - sgml::closeTag(os, getLayout().latexname); + sgml::closeTag(os, getLayout().latexname()); return 0; }