]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
Transfer current_font and real_current_font from Text to Cursor.
[lyx.git] / src / CutAndPaste.h
index d1162cb16500b13b4f5625aae79cb5c434bc29d2..e3fccedb76bc7fef0a3037d09bc1e8de319f06aa 100644 (file)
@@ -15,6 +15,7 @@
 #define CUTANDPASTE_H
 
 #include "support/docstring.h"
+#include "TextClass_ptr.h"
 
 #include <vector>
 
@@ -89,15 +90,15 @@ void pasteFromStack(Cursor & cur, ErrorList & errorList, size_t sel_index);
 /// Paste the paragraph list \p parlist at the position given by \p cur.
 /// Does not handle undo. Does only work in text, not mathed.
 void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
-                       textclass_type textclass, ErrorList & errorList);
+                       TextClass_ptr textclass, ErrorList & errorList);
 
 
 /** Needed to switch between different classes. This works
  *  for a list of paragraphs beginning with the specified par.
  *  It changes layouts and character styles.
  */
-void switchBetweenClasses(textclass_type c1, textclass_type c2,
-                         InsetText & in, ErrorList &);
+void switchBetweenClasses(TextClass_ptr const & c1, 
+       TextClass_ptr const & c2, InsetText & in, ErrorList &);
 
 /// Get the current selection as a string. Does not change the selection.
 /// Does only work if the whole selection is in mathed.