]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.cpp
BufferParams.h: add comment
[lyx.git] / src / paragraph_funcs.cpp
index 3d9aa012a6a8b5100b339d75ce8272b7d8a8a6a5..cbac6caee1b9a5a15ea01bc2627186d9e23f19f9 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "BufferParams.h"
 #include "debug.h"
-#include "LyXText.h"
+#include "Text.h"
 #include "Paragraph.h"
 #include "ParagraphParameters.h"
 
@@ -71,7 +71,7 @@ void breakParagraph(BufferParams const & bparams,
 
        // without doing that we get a crash when typing <Return> at the
        // end of a paragraph
-       tmp->layout(bparams.getLyXTextClass().defaultLayout());
+       tmp->layout(bparams.getTextClass().defaultLayout());
        // remember to set the inset_owner
        tmp->setInsetOwner(par.inInset());
 
@@ -135,7 +135,7 @@ void breakParagraph(BufferParams const & bparams,
 
        if (!isempty) {
                par.params().clear();
-               par.layout(bparams.getLyXTextClass().defaultLayout());
+               par.layout(bparams.getTextClass().defaultLayout());
        }
 
        // layout stays the same with latex-environments
@@ -258,7 +258,7 @@ int getEndLabel(pit_type p, ParagraphList const & pars)
        pit_type pit = p;
        depth_type par_depth = pars[p].getDepth();
        while (pit != pit_type(pars.size())) {
-               LyXLayout_ptr const & layout = pars[pit].layout();
+               Layout_ptr const & layout = pars[pit].layout();
                int const endlabeltype = layout->endlabeltype;
 
                if (endlabeltype != END_LABEL_NO_LABEL) {