]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
don't copy if a reference is fine
[lyx.git] / src / CutAndPaste.h
index 13ff9ed33db059c5371f550828d93cbd0a26c98f..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();
@@ -43,9 +44,10 @@ public:
            return value is the number of wrong conversions
        */
        static
-       int SwitchLayoutsBetweenClasses(LyXTextClassList::size_type class1,
-                                    LyXTextClassList::size_type class2,
-                                    Paragraph * par);
+       int SwitchLayoutsBetweenClasses(lyx::textclass_type class1,
+                                       lyx::textclass_type class2,
+                                       Paragraph * par,
+                                       BufferParams const & bparams);
        ///
        static
        bool checkPastePossible(Paragraph *);