]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.C
Remove the XOpenIM test as lyxlookup.C has been buried.
[lyx.git] / src / bufferparams.C
index b24ee8e69d0bc981c1d52c7013e2da4c1705ba93..3ccf77567bc15e051102550e737986894c662732 100644 (file)
@@ -22,6 +22,7 @@
 #include "lyxrc.h"
 #include "language.h"
 #include "lyxtextclasslist.h"
+#include "lyxlex.h"
 
 #include "support/lyxlib.h"
 #include "support/lstrings.h"
@@ -80,7 +81,7 @@ void BufferParams::writeFile(ostream & os) const
        // then the the preamble
        if (!preamble.empty()) {
                // remove '\n' from the end of preamble
-               string const tmppreamble = strip(preamble, '\n');
+               string const tmppreamble = rtrim(preamble, "\n");
                os << "\\begin_preamble\n"
                   << tmppreamble
                   << "\n\\end_preamble\n";
@@ -233,6 +234,12 @@ bool BufferParams::hasClassDefaults() const
 }
 
 
+LyXTextClass const & BufferParams::getLyXTextClass() const
+{
+       return textclasslist[textclass];
+}
+
+
 void BufferParams::readPreamble(LyXLex & lex)
 {
        if (lex.getString() != "\\begin_preamble")