X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.h;h=2d855ecc8fa53b0b954996f753f1369f151b3210;hb=f16b2cab75752e7b0fbec5520e231b068eb29072;hp=4c8ab94a6ec011a950d68f3bfc883c4fca4ac46f;hpb=ed3d9544a331a7c28730089e7b059eea592584c4;p=lyx.git diff --git a/src/Text.h b/src/Text.h index 4c8ab94a6e..2d855ecc8f 100644 --- a/src/Text.h +++ b/src/Text.h @@ -123,14 +123,16 @@ public: /// docstring asString(pit_type beg, pit_type end, int options = AS_STR_NONE) const; - /// Appends a possibly abbreviated representation of our text - /// to \param os, where \param maxlen defines the maximum size - /// of \param os. If \param shorten is true, then we will shorten - /// \param os to maxlen chars and replace the final three by "..., - /// if \param os is longer than maxlen chars. - /// if \param maxlen is passed as 0, then it is ignored. (In fact, - /// it is reset to the maximum value for size_t.) - void forOutliner(docstring & os, size_t maxlen, bool shorten = true) const; + + /// truncates str to maxlenwith an ellipsis and replaces the characters '\n' + /// and '\t' with spaces + static void shortenForOutliner(docstring & str, size_t const maxlen); + + /// Appends a possibly abbreviated representation of our text to \param os, + /// where \param maxlen defines the maximum size of \param os. If \param + /// shorten is true, then os is shortened as above + void forOutliner(docstring & os, size_t const maxlen, + bool const shorten = true) const; /// insert a character at cursor position /// FIXME: replace Cursor with DocIterator. @@ -188,11 +190,6 @@ public: void setCursorIntern(Cursor & cur, pit_type par, pos_type pos, bool setfont = true, bool boundary = false); - /// - void recUndo(Cursor & cur, pit_type first, pit_type last) const; - /// - void recUndo(Cursor & cur, pit_type first) const; - /// Move cursor one position backwards /** * Returns true if an update is needed after the move. @@ -247,7 +244,7 @@ public: /// bool selectWordWhenUnderCursor(Cursor & cur, word_location); /// Change the case of the word at cursor position. - void changeCase(Cursor & cur, TextCase action); + void changeCase(Cursor & cur, TextCase action, bool partial); /// Transposes the character at the cursor with the one before it void charsTranspose(Cursor & cur); @@ -378,8 +375,6 @@ private: InsetText * owner_; /// ParagraphList pars_; - /// - bool autoBreakRows_; /// position of the text in the buffer. DocIterator macrocontext_position_; };