]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Move OS specific code to proper place. Also make sure that no other
[lyx.git] / src / output_latex.cpp
index cc551d8d1d65e49559a12d38c7d90adb74126ae2..2f4e765ebacdba2f7f1f0fcbe34b5c9bf53574a6 100644 (file)
@@ -21,7 +21,6 @@
 #include "LyXRC.h"
 #include "OutputParams.h"
 #include "Paragraph.h"
-#include "paragraph_funcs.h"
 #include "ParagraphParameters.h"
 #include "TextClass.h"
 #include "TexRow.h"
@@ -75,7 +74,7 @@ TeXDeeper(Buffer const & buf,
 
        ParagraphList const & paragraphs = text.paragraphs();
 
-       bool const force_plain_layout = text.inset()->forcePlainLayout();
+       bool const force_plain_layout = text.inset().forcePlainLayout();
        while (par != paragraphs.end() &&
                                        par->params().depth() == pit->params().depth()) {
                // FIXME This test should not be necessary.
@@ -109,7 +108,7 @@ TeXEnvironment(Buffer const & buf,
 
        // FIXME This test should not be necessary.
        // We should perhaps issue an error if it is.
-       Layout const & style = text.inset()->forcePlainLayout() ?
+       Layout const & style = text.inset().forcePlainLayout() ?
                bparams.documentClass().plainLayout() : pit->layout();
 
        ParagraphList const & paragraphs = text.paragraphs();
@@ -314,7 +313,7 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
 
        if (runparams.verbatim) {
                int const dist = distance(paragraphs.begin(), pit);
-               Font const outerfont = outerFont(dist, paragraphs);
+               Font const outerfont = text.outerFont(dist);
 
                // No newline if only one paragraph in this lyxtext
                if (dist > 0) {
@@ -329,7 +328,7 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
 
        // FIXME This check should not really be needed.
        // Perhaps we should issue an error if it is.
-       Layout const style = text.inset()->forcePlainLayout() ?
+       Layout const style = text.inset().forcePlainLayout() ?
                bparams.documentClass().plainLayout() : pit->layout();
 
        runparams.moving_arg |= style.needprotect;
@@ -557,8 +556,7 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
                break;
        }
 
-       Font const outerfont = outerFont(distance(paragraphs.begin(), pit),
-                         paragraphs);
+       Font const outerfont = text.outerFont(distance(paragraphs.begin(), pit));
 
        // FIXME UNICODE
        os << from_utf8(everypar);
@@ -830,7 +828,7 @@ void latexParagraphs(Buffer const & buf,
                lastpar = par;
                // FIXME This check should not be needed. We should
                // perhaps issue an error if it is.
-               Layout const & layout = text.inset()->forcePlainLayout() ?
+               Layout const & layout = text.inset().forcePlainLayout() ?
                                tclass.plainLayout() : par->layout();
 
                if (layout.intitle) {