KTextEditor
katetextbuffer.h
192 virtual bool load(const QString &filename, bool &encodingErrors, bool &tooLongLinesWrapped, int &longestLineLoaded, bool enforceTextCodec);
231 * Transfer all non text attributes for the given line from the given text line to the one in the buffer.
321 * Query information from the last editing transaction: was the number of lines of the buffer changed?
363 * Insert text at given cursor position. Does nothing if text is empty, beside some consistency checks.
447 void notifyAboutRangeChange(KTextEditor::View *view, KTextEditor::LineRange lineRange, bool needsRepaint, TextRange *deletedRange = nullptr);
501 QList<TextRange *> rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
509 void rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly, QList<TextRange *> &outRanges) const;
Backend of KTextEditor::Document related public KTextEditor interfaces.
Definition katedocument.h:68
An object representing lines from a start line to an end line.
Definition linerange.h:41
A range that is bound to a specific Document, and maintains its position.
Definition movingrange.h:131
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
void setEncodingProberType(KEncodingProber::ProberType proberType)
Set encoding prober type for this buffer to use for load.
Definition katetextbuffer.h:83
qint64 editingLastRevision() const
Query the revision of this buffer before the ongoing editing transactions.
Definition katetextbuffer.h:296
KEncodingProber::ProberType encodingProberType() const
Get encoding prober type for this buffer.
Definition katetextbuffer.h:92
QList< TextRange * > rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
Return the ranges which affect the given line.
Definition katetextbuffer.h:501
int editingMaximalLineChanged() const
Get maximal line number changed by last editing transaction.
Definition katetextbuffer.h:343
void setFallbackTextCodec(const QString &codec)
Set fallback codec for this buffer to use for load.
Definition katetextbuffer.h:101
bool editingChangedNumberOfLines() const
Query information from the last editing transaction: was the number of lines of the buffer changed?...
Definition katetextbuffer.h:325
bool editingChangedBuffer() const
Query information from the last editing transaction: was the content of the buffer changed?...
Definition katetextbuffer.h:315
void setEndOfLineMode(EndOfLineMode endOfLineMode)
Set end of line mode for this buffer, not allowed to be set to unknown.
Definition katetextbuffer.h:156
void loaded(const QString &filename, bool encodingErrors)
Buffer loaded successfully a file.
int editingTransactions() const
Query the number of editing transactions running atm.
Definition katetextbuffer.h:287
KTextEditor::DocumentPrivate * document() const
Gets the document to which this buffer is bound.
Definition katetextbuffer.h:483
int editingMinimalLineChanged() const
Get minimal line number changed by last editing transaction.
Definition katetextbuffer.h:334
void setGenerateByteOrderMark(bool generateByteOrderMark)
Generate byte order mark on save.
Definition katetextbuffer.h:137
int editingLastLines() const
Query the number of lines of this buffer before the ongoing editing transactions.
Definition katetextbuffer.h:305
Class representing the editing history of a TextBuffer.
Definition katetexthistory.h:24
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 Sat Dec 21 2024 17:01:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.