KTextEditor
katetextblock.h
69 * Transfer all non text attributes for the given line from the given text line to the one in the block.
122 * @param previousBlock previous block, if any, if we unwrap first line in block, we need to have this
123 * @param fixStartLinesStartIndex start index to fix start lines, normally this is this block or the previous one
163 * This is used in destructor of TextBuffer, for fast cleanup. Only stuff remaining afterwards are cursors which are
169 * Clear the block content, delete all lines, move all cursors not bound to range to given block at 0,0.
182 KTEXTEDITOR_EXPORT QList<TextRange *> rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const;
184 KTEXTEDITOR_NO_EXPORT void rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly, QList<TextRange *> &outRanges) const;
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
void clearBlockContent(TextBlock *targetBlock)
Clear the block content, delete all lines, move all cursors not bound to range to given block at 0,...
Definition katetextblock.cpp:596
void removeCursor(Kate::TextCursor *cursor)
Remove cursor from this block.
Definition katetextblock.h:207
void wrapLine(const KTextEditor::Cursor position, int fixStartLinesStartIndex)
Wrap line at given cursor position.
Definition katetextblock.cpp:74
void deleteBlockContent()
Delete the block content, delete all lines and delete all cursors not bound to ranges.
Definition katetextblock.cpp:572
void insertText(const KTextEditor::Cursor position, const QString &text)
Insert text at given cursor position.
Definition katetextblock.cpp:347
void mergeBlock(TextBlock *targetBlock)
Merge this block with given one, the given one must be a direct predecessor.
Definition katetextblock.cpp:543
void removeText(KTextEditor::Range range, QString &removedText)
Remove text at given range.
Definition katetextblock.cpp:416
KTEXTEDITOR_EXPORT QList< TextRange * > rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
Return all ranges in this block which might intersect the given line.
Definition katetextblock.cpp:620
void appendLine(const QString &textOfLine)
Append a new line with given text.
Definition katetextblock.cpp:55
void setLineMetaData(int line, const TextLine &textLine)
Transfer all non text attributes for the given line from the given text line to the one in the block.
Definition katetextblock.cpp:44
void markModifiedLinesAsSaved()
Flag all modified text lines as saved on disk.
Definition katetextblock.cpp:664
void unwrapLine(int line, TextBlock *previousBlock, int fixStartLinesStartIndex)
Unwrap given line.
Definition katetextblock.cpp:178
void splitBlock(int fromLine, TextBlock *newBlock)
Split given block.
Definition katetextblock.cpp:497
TextBlock(TextBuffer *buffer, int blockIndex)
Construct an empty text block.
Definition katetextblock.cpp:14
void debugPrint(int blockIndex) const
Debug output, print whole block content with line numbers and line length.
Definition katetextblock.cpp:485
void insertCursor(Kate::TextCursor *cursor)
Insert cursor into this block.
Definition katetextblock.h:195
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:51:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:51:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.