]> git.lyx.org Git - lyx.git/blobdiff - src/textcursor.h
zlib stuff
[lyx.git] / src / textcursor.h
index dad6348cb9e35601a28c9f967f3138f8e54333e9..530bb22840c67cd9f8ea2f6fe007e775f43fb51a 100644 (file)
@@ -16,6 +16,9 @@
 #ifndef TEXTCURSOR_H
 #define TEXTCURSOR_H
 
+// Do not even think of forward declaring LyXText/BufferView etc here!
+// If you need Paragraph proper, go to text_func.h
+
 /** The cursor.
        Later this variable has to be removed. There should be now internal
        cursor in a text (and thus not in a buffer). By keeping this it is
@@ -56,6 +59,13 @@ private:
 };
 
 struct TextCursor {
+       /// returns true if selection was set previously
+       bool setSelection();
+       ///
+       void clearSelection();
+       ///
+       string const selectionAsString(Buffer const * buffer, bool label) const;
+
        // actual cursor position
        LyXCursor cursor;