]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / buffer.C
index 2944521d08d635f7451c7bd9f0faca8009437020..b6f6f67c1ed82ed01762c6a780a2fb68ae2f1305 100644 (file)
@@ -199,8 +199,8 @@ public:
 
 Buffer::Impl::Impl(Buffer & parent, FileName const & file, bool readonly_)
        : lyx_clean(true), bak_clean(true), unnamed(false), read_only(readonly_),
-         filename(file), file_fully_loaded(false), inset(params),
-         toc_backend(&parent), messages(0)
+         filename(file), messages(0), file_fully_loaded(false), inset(params),
+         toc_backend(&parent)
 {
        inset.setAutoBreakRows(true);
        lyxvc.buffer(&parent);
@@ -1472,18 +1472,6 @@ docstring const Buffer::B_(string const & l10n) const
 }
 
 
-docstring const Buffer::translateLabel(docstring const & label) const
-{
-       if (support::isAscii(label))
-               // Probably standard layout, try to translate
-               return B_(to_ascii(label));
-       else
-               // This must be a user defined layout. We cannot translate
-               // this, since gettext accepts only ascii keys.
-               return label;
-}
-
-
 bool Buffer::isClean() const
 {
        return pimpl_->lyx_clean;
@@ -1684,7 +1672,7 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
        OutputParams runparams;
        runparams.nice = true;
        runparams.flavor = OutputParams::LATEX;
-       runparams.linelen = lyxrc.ascii_linelen;
+       runparams.linelen = lyxrc.plaintext_linelen;
        // No side effect of file copying and image conversion
        runparams.dryrun = true;