]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
do what the FIXME suggested
[lyx.git] / src / CutAndPaste.h
index 5cfb5214923c2f60ab99aeff37e4f6b1e0670ece..3796966f0969ef1d22e1ae0f748414ec7da5a847 100644 (file)
@@ -14,8 +14,6 @@
 #ifndef CUTANDPASTE_H
 #define CUTANDPASTE_H
 
-#include "TextClassPtr.h"
-
 #include "support/docstring.h"
 
 #include "frontends/Clipboard.h"
@@ -26,7 +24,7 @@ using lyx::frontend::Clipboard;
 
 namespace lyx {
 
-class Buffer;
+class DocumentClass;
 class ErrorList;
 class InsetText;
 class Cursor;
@@ -35,11 +33,11 @@ class ParagraphList;
 namespace cap {
 
 /// Get all elements of the cut buffer in plain text format.
-std::vector<docstring> const availableSelections(Buffer const & buffer);
+std::vector<docstring> availableSelections();
 /// Get the number of available elements in the cut buffer.
 size_type numberOfSelections();
 /// Get the sel_index-th element of the cut buffer in plain text format.
-docstring getSelection(Buffer const & buffer, size_t sel_index);
+docstring selection(size_t sel_index);
 
 /**
  * Replace using the font of the first selected character and select
@@ -101,15 +99,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,
-                       TextClassPtr textclass, ErrorList & errorList);
+                       DocumentClass const * const 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(TextClassPtr const & c1, 
-       TextClassPtr const & c2, InsetText & in, ErrorList &);
+void switchBetweenClasses(DocumentClass const * const c1, 
+                       DocumentClass const * 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.