]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
More ascii-export fixes and when making copy of single tabular cells now the
[lyx.git] / src / CutAndPaste.h
index 3835d553fe8969e53c153679350a2ac275f55ed9..a139c5970e759ed198eda1dcd3d0cc453cd2dcbf 100644 (file)
@@ -4,7 +4,7 @@
  * 
  *           LyX, The Document Processor
  *      
- *           Copyright 1995-2000 the LyX Team.
+ *           Copyright 1995-2001 the LyX Team.
  *
  * ====================================================== */
 
 
 #include "layout.h"
 
-class LyXParagraph;
+class Paragraph;
 
 ///
 class CutAndPaste {
 public:
        ///
        static
-       bool cutSelection(LyXParagraph * startpar, LyXParagraph ** endpar,
-                         int start, int & end,
-                         char tc, bool doclear = false);
+       bool cutSelection(Paragraph * startpar, Paragraph ** endpar,
+                      int start, int & end, char tc, bool doclear = false,
+                                         bool realcut = true);
        ///
        static
-       bool copySelection(LyXParagraph * startpar, LyXParagraph * endpar,
-                          int start, int end, char tc);
+       bool copySelection(Paragraph * startpar, Paragraph * endpar,
+                       int start, int end, char tc);
        ///
        static
-       bool pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar,
-                           int & pos, char tc);
+       bool pasteSelection(Paragraph ** par, Paragraph ** endpar,
+                        int & pos, char tc);
        ///
        static
        int nrOfParagraphs();
@@ -43,12 +43,13 @@ public:
            return value is the number of wrong conversions
        */
        static
-       int SwitchLayoutsBetweenClasses(LyXTextClassList::size_type class1,
-                                       LyXTextClassList::size_type class2,
-                                       LyXParagraph * par);
+       int SwitchLayoutsBetweenClasses(lyx::textclass_type class1,
+                                       lyx::textclass_type class2,
+                                       Paragraph * par,
+                                       BufferParams const & bparams);
        ///
        static
-       bool checkPastePossible(LyXParagraph *);
+       bool checkPastePossible(Paragraph *);
 };
 
 #endif