]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.cpp
* Only enter inset which return true on isActive(). This is the behavior in the curso...
[lyx.git] / src / paragraph_funcs.cpp
index 3a6969b281431e1fbf6d6a82d1a5568eed2fc700..66ff44d749a1f35fbd90ef1898ff3054d3c31cd8 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());
 
@@ -118,7 +118,7 @@ void breakParagraph(BufferParams const & bparams,
        // Move over the end-of-par change information
        tmp->setChange(tmp->size(), par.lookupChange(par.size()));
        par.setChange(par.size(), Change(bparams.trackChanges ?
-                                          Change::INSERTED : Change::UNCHANGED));
+                                          Change::INSERTED : Change::UNCHANGED));
 
        if (pos) {
                // Make sure that we keep the language when
@@ -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
@@ -171,7 +171,7 @@ void breakParagraphConservative(BufferParams const & bparams,
                // Move over the end-of-par change information
                tmp.setChange(tmp.size(), par.lookupChange(par.size()));
                par.setChange(par.size(), Change(bparams.trackChanges ?
-                                          Change::INSERTED : Change::UNCHANGED));
+                                          Change::INSERTED : Change::UNCHANGED));
        }
 }