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
168 KTEXTEDITOR_EXPORT QList<TextRange *> rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const;
170 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 removeCursor(Kate::TextCursor *cursor)
Remove cursor from this block.
Definition katetextblock.h:193
void wrapLine(const KTextEditor::Cursor position, int fixStartLinesStartIndex)
Wrap line at given cursor position.
Definition katetextblock.cpp:74
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:572
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:616
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:181
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 Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.