KTextEditor
katetextbuffer.h
61 explicit TextBuffer(KTextEditor::DocumentPrivate *parent, int blockSize = 64, bool alwaysUseKAuth = false);
189 virtual bool load(const QString &filename, bool &encodingErrors, bool &tooLongLinesWrapped, int &longestLineLoaded, bool enforceTextCodec);
301 * Query information from the last editing transaction: was the number of lines of the buffer changed?
343 * Insert text at given cursor position. Does nothing if text is empty, beside some consistency checks.
464 void notifyAboutRangeChange(KTextEditor::View *view, KTextEditor::LineRange lineRange, bool needsRepaint);
514 QVector<TextRange *> rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
bool rangePointerValid(TextRange *range) const
Check if the given range pointer is still valid.
Definition: katetextbuffer.h:525
void setFallbackTextCodec(QTextCodec *codec)
Set fallback codec for this buffer to use for load.
Definition: katetextbuffer.h:98
void setEncodingProberType(KEncodingProber::ProberType proberType)
Set encoding prober type for this buffer to use for load.
Definition: katetextbuffer.h:80
bool editingChangedBuffer() const
Query information from the last editing transaction: was the content of the buffer changed?...
Definition: katetextbuffer.h:295
void setEndOfLineMode(EndOfLineMode endOfLineMode)
Set end of line mode for this buffer, not allowed to be set to unknown.
Definition: katetextbuffer.h:153
An object representing lines from a start line to an end line.
Definition: linerange.h:37
An object representing a section of text, from one Cursor to another.
Definition: include/ktexteditor/range.h:44
int editingLastLines() const
Query the number of lines of this buffer before the ongoing editing transactions.
Definition: katetextbuffer.h:285
int editingMaximalLineChanged() const
Get maximal line number changed by last editing transaction.
Definition: katetextbuffer.h:323
QVector< TextRange * > rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
Return the ranges which affect the given line.
Definition: katetextbuffer.h:514
qint64 editingLastRevision() const
Query the revision of this buffer before the ongoing editing transactions.
Definition: katetextbuffer.h:276
KEncodingProber::ProberType encodingProberType() const
Get encoding prober type for this buffer.
Definition: katetextbuffer.h:89
QTextCodec * fallbackTextCodec() const
Get fallback codec for this buffer.
Definition: katetextbuffer.h:107
KTextEditor::DocumentPrivate * document() const
Gets the document to which this buffer is bound.
Definition: katetextbuffer.h:496
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:22
Class representing the editing history of a TextBuffer.
Definition: katetexthistory.h:25
bool editingChangedNumberOfLines() const
Query information from the last editing transaction: was the number of lines of the buffer changed?...
Definition: katetextbuffer.h:305
int editingTransactions() const
Query the number of editing transactions running atm.
Definition: katetextbuffer.h:267
void setGenerateByteOrderMark(bool generateByteOrderMark)
Generate byte order mark on save.
Definition: katetextbuffer.h:134
int editingMinimalLineChanged() const
Get minimal line number changed by last editing transaction.
Definition: katetextbuffer.h:314
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:55:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:55:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.