]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.h
restore comment about boost::shared_ptr and dtor.
[lyx.git] / src / CutAndPaste.h
index c4299654127c579fdfe7d0a6ec84facfffd15d6e..3796966f0969ef1d22e1ae0f748414ec7da5a847 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef CUTANDPASTE_H
 #define CUTANDPASTE_H
 
-#include "support/types.h"
 #include "support/docstring.h"
 
 #include "frontends/Clipboard.h"
@@ -25,21 +24,20 @@ using lyx::frontend::Clipboard;
 
 namespace lyx {
 
-class Buffer;
-class Cursor;
+class DocumentClass;
 class ErrorList;
 class InsetText;
+class Cursor;
 class ParagraphList;
-class TextClassIndex;
 
 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,
-                       TextClassIndex const & 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(TextClassIndex const & c1, TextClassIndex 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.
@@ -139,7 +137,6 @@ void selClearOrDel(Cursor & cur);
 void dirtyTabularStack(bool b);
 /// is the tabular paste stack newer than the ordinary one?
 bool tabularStackDirty();
-
 } // namespace cap
 } // namespce lyx