summaryrefslogtreecommitdiffstats
path: root/scribus/text/storytext.h
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/text/storytext.h')
-rw-r--r--scribus/text/storytext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/scribus/text/storytext.h b/scribus/text/storytext.h
index 420c3c7..b77779b 100644
--- a/scribus/text/storytext.h
+++ b/scribus/text/storytext.h
@@ -137,7 +137,15 @@ class SCRIBUS_API StoryText : public QObject, public SaxIO
void hyphenateWord(int pos, uint len, char* hyphens);
+ // Retrieve length of story text
int length() const;
+
+ // Get content at specific position as plain text
+ // Internal paragraph separator are converted to
+ // unix new lines for better compatibility with
+ // text editors
+ QString plainText() const;
+
// Get char at current cursor position
QChar text() const;
// Get char at specific position