]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
don't copy if a reference is fine
[lyx.git] / src / CutAndPaste.h
index 0eaceb16edc45a020cc7a03adeb5a3c9a90906af..32f9a767bf44d0c3f833d67e216e84f458aac35d 100644 (file)
 #pragma interface
 #endif
 
-#include "layout.h"
+#include "support/types.h"
 
 class Paragraph;
+class BufferParams;
 
 ///
 class CutAndPaste {
@@ -25,16 +26,16 @@ public:
        ///
        static
        bool cutSelection(Paragraph * startpar, Paragraph ** endpar,
-                      int start, int & end, char tc, bool doclear = false,
-                                         bool realcut = true);
+                         int start, int & end, char tc, bool doclear = false,
+                         bool realcut = true);
        ///
        static
        bool copySelection(Paragraph * startpar, Paragraph * endpar,
-                       int start, int end, char tc);
+                          int start, int end, char tc);
        ///
        static
        bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
-                        int & pos, char tc);
+                           int & pos, char tc);
        ///
        static
        int nrOfParagraphs();
@@ -45,7 +46,8 @@ public:
        static
        int SwitchLayoutsBetweenClasses(lyx::textclass_type class1,
                                        lyx::textclass_type class2,
-                                       Paragraph * par);
+                                       Paragraph * par,
+                                       BufferParams const & bparams);
        ///
        static
        bool checkPastePossible(Paragraph *);