]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetFlex.cpp
index bb59337a16da0e2fde4247b6ee783dc5ecccad38..279f9940542a2327f2fd1d300e5cf3b1bb4bf3b7 100644 (file)
@@ -30,9 +30,6 @@
 #include "paragraph_funcs.h"
 #include "sgml.h"
 
-#include "frontends/FontMetrics.h"
-#include "frontends/Painter.h"
-
 #include "support/convert.h"
 
 #include <sstream>
@@ -48,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();
 }
 
 
@@ -64,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");
@@ -120,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,
@@ -130,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;
 }