]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
layout as layout
[lyx.git] / src / LaTeXFeatures.C
index 8af355106ca04121f04098f32de5b3189c6a0087..2010eca80c4a3d2d0f84a1234f51327b30411570 100644 (file)
@@ -311,14 +311,22 @@ string const LaTeXFeatures::getMacros() const
        // floats
        getFloatDefinitions(macros);
 
+       return macros.str().c_str();
+}
+
+
+string const LaTeXFeatures::getBabelOptions() const
+{
+       ostringstream tmp;
+
        for (LanguageList::const_iterator cit = UsedLanguages.begin();
             cit != UsedLanguages.end(); ++cit)
                if (!(*cit)->latex_options().empty())
-                       macros << (*cit)->latex_options() << '\n';
+                       tmp << (*cit)->latex_options() << '\n';
        if (!params.language->latex_options().empty())
-               macros << params.language->latex_options() << '\n';
+               tmp << params.language->latex_options() << '\n';
 
-       return macros.str().c_str();
+       return tmp.str().c_str();
 }
 
 
@@ -333,7 +341,7 @@ string const LaTeXFeatures::getTClassPreamble() const
        set<string>::const_iterator cit = layout.begin();
        set<string>::const_iterator end = layout.end();
        for (; cit != end; ++cit) {
-               tcpreamble << tclass[*cit].preamble();
+               tcpreamble << tclass[*cit]->preamble();
        }
 
        return tcpreamble.str().c_str();