Kate
katedocument.h
Go to the documentation of this file.
103 friend class KateDocumentTest;
107 explicit KateDocument (bool bSingleViewMode=false, bool bBrowserView=false, bool bReadOnly=false,
157 // Invalid covariant returns my a$$... for some reason gcc won't let me return a KateView above!
173 virtual bool insertText ( const KTextEditor::Cursor &position, const QString &s, bool block = false );
174 virtual bool insertText ( const KTextEditor::Cursor &position, const QStringList &text, bool block = false );
182 virtual bool replaceText ( const KTextEditor::Range &range, const QString &s, bool block = false );
200 void charactersSemiInteractivelyInserted(const KTextEditor::Cursor& position, const QString& text);
443 // KTextEditor::SessionConfigInterface and KTextEditor::ParameterizedSessionConfigInterface stuff
448 virtual void readParameterizedSessionConfig (const KConfigGroup&, unsigned long configParameters);
489 void markToolTipRequested( KTextEditor::Document* document, KTextEditor::Mark mark, QPoint position, bool& handled );
491 void markContextMenuRequested( KTextEditor::Document* document, KTextEditor::Mark mark, QPoint pos, bool& handled );
496 void markChanged( KTextEditor::Document*, KTextEditor::Mark, KTextEditor::MarkInterface::MarkChangeAction );
556 virtual KTextEditor::MovingCursor *newMovingCursor (const KTextEditor::Cursor &position, KTextEditor::MovingCursor::InsertBehavior insertBehavior = KTextEditor::MovingCursor::MoveOnInsert);
565 virtual KTextEditor::MovingRange *newMovingRange (const KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors = KTextEditor::MovingRange::DoNotExpand
566 , KTextEditor::MovingRange::EmptyBehavior emptyBehavior = KTextEditor::MovingRange::AllowEmpty);
600 virtual void transformCursor (KTextEditor::Cursor &cursor, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1);
610 virtual void transformCursor (int& line, int& column, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1);
620 virtual void transformRange (KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors, KTextEditor::MovingRange::EmptyBehavior emptyBehavior, qint64 fromRevision, qint64 toRevision = -1);
795 bool removeStartStopCommentFromRegion(const KTextEditor::Cursor &start, const KTextEditor::Cursor &end, int attrib=0);
824 void newBracketMark( const KTextEditor::Cursor& start, KTextEditor::Range& bm, int maxLines = -1 );
869 void modifiedOnDisk (KTextEditor::Document *doc, bool isModified, KTextEditor::ModificationInterface::ModifiedOnDiskReason reason);
1090 virtual KTextEditor::Attribute::Ptr defaultStyle(const KTextEditor::HighlightInterface::DefaultStyle ds) const;
1091 virtual QList< KTextEditor::HighlightInterface::AttributeBlock > lineAttributes(const unsigned int line);
virtual const QString & documentName() const
Definition: katedocument.h:828
virtual void unlockRevision(qint64 revision)=0
virtual void setConfigValue(const QString &key, const QVariant &value)=0
virtual bool insertText(const Cursor &position, const QString &text, bool block=false)=0
virtual bool postMessage(Message *message)=0
virtual bool setMode(const QString &name)=0
void markToolTipRequested(KTextEditor::Document *document, KTextEditor::Mark mark, QPoint position, bool &handled)
virtual bool saveAs(const KUrl &url)
virtual void removeMark(int line, uint markType)=0
virtual void setMarkPixmap(MarkTypes mark, const QPixmap &pixmap)=0
virtual QStringList highlightingModes() const =0
KAction * print(const QObject *recvr, const char *slot, QObject *parent)
virtual void setMarkDescription(MarkTypes mark, const QString &text)=0
virtual QString highlightingModeAt(const Cursor &position)=0
void aboutToInvalidateMovingInterfaceContent(KTextEditor::Document *document)
KAction * undo(const QObject *recvr, const char *slot, QObject *parent)
virtual void discardDataRecovery()=0
virtual void setModifiedOnDiskWarning(bool on)=0
virtual const QList< View * > & views() const =0
virtual KTextEditor::View * activeView() const
Definition: katedocument.h:156
virtual uint editableMarks() const =0
EmptyBehavior
void rememberUserDidSetIndentationMode()
set indentation mode by user this will remember that a user did set it and will avoid reset on save ...
Definition: katedocument.h:952
virtual bool openFile()
virtual void writeParameterizedSessionConfig(KConfigGroup &config, unsigned long parameters)=0
void markContextMenuRequested(KTextEditor::Document *document, KTextEditor::Mark mark, QPoint pos, bool &handled)
virtual void transformRange(KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors, MovingRange::EmptyBehavior emptyBehavior, qint64 fromRevision, qint64 toRevision=-1)=0
virtual QList< AttributeBlock > lineAttributes(const unsigned int line)=0
virtual bool save()
virtual MovingRange * newMovingRange(const Range &range, MovingRange::InsertBehaviors insertBehaviors=MovingRange::DoNotExpand, MovingRange::EmptyBehavior emptyBehavior=MovingRange::AllowEmpty)=0
virtual Cursor documentEnd() const =0
virtual bool documentReload()=0
virtual void modifiedOnDisk(KTextEditor::Document *document, bool isModified, KTextEditor::ModificationInterface::ModifiedOnDiskReason reason)=0
virtual void clearMarks()=0
virtual bool clear()=0
virtual void rangeEmpty(MovingRange *range)
virtual Attribute::Ptr defaultStyle(const DefaultStyle ds) const =0
void setModified()
void userSetEncodingForNextReload()
User did set encoding for next reload => enforce it!
Definition: katedocument.h:960
virtual bool queryClose()
virtual bool setText(const QString &text)=0
virtual QString highlightingMode() const =0
QString indent(QString text, int spaces)
virtual bool insertLine(int line, const QString &text)=0
KAction * paste(const QObject *recvr, const char *slot, QObject *parent)
virtual bool insertLines(int line, const QStringList &text)=0
virtual bool saveFile()=0
virtual qint64 revision() const =0
virtual void writeSessionConfig(KConfigGroup &config)=0
virtual AnnotationModel * annotationModel() const =0
virtual bool replaceText(const KTextEditor::Range &r, const QStringList &l, bool b)
Definition: katedocument.h:185
virtual void recoverData()=0
InsertBehavior
MarkChangeAction
virtual void setModifiedOnDisk(ModifiedOnDiskReason reason)=0
virtual bool removeText(const Range &range, bool block=false)=0
void markClicked(KTextEditor::Document *document, KTextEditor::Mark mark, bool &handled)
virtual void clearMark(int line)=0
virtual QString mode() const =0
virtual bool removeLine(int line)=0
static Range invalid()
virtual void setEditableMarks(uint markMask)=0
virtual void markChanged(KTextEditor::Document *document, KTextEditor::Mark mark, KTextEditor::MarkInterface::MarkChangeAction action)=0
KAction * redo(const QObject *recvr, const char *slot, QObject *parent)
QList< QPair< KTextEditor::MovingRange *, QString > > m_dictionaryRanges
Definition: katedocument.h:1149
virtual MovingCursor * newMovingCursor(const Cursor &position, MovingCursor::InsertBehavior insertBehavior=MovingCursor::MoveOnInsert)=0
virtual void setAnnotationModel(AnnotationModel *model)=0
virtual bool isDataRecoveryAvailable() const =0
virtual QStringList configKeys() const =0
virtual QVariant configValue(const QString &key)=0
virtual bool documentSave()=0
Definition: katedocument.h:734
Definition: kateview.h:78
virtual void setMark(int line, uint markType)=0
virtual QString text() const =0
Definition: katedocument.h:74
virtual View * createView(QWidget *parent)=0
virtual bool setHighlightingMode(const QString &name)=0
virtual bool setEncoding(const QString &encoding)=0
virtual int totalCharacters() const =0
ModifiedOnDiskReason
virtual QString line(int line) const =0
DeleteJob * del(const KUrl &src, JobFlags flags=DefaultFlags)
EncodedCharaterInsertionPolicy
Definition: katedocument.h:1144
virtual QStringList modes() const =0
virtual QVector< KTextEditor::Range > searchText(const KTextEditor::Range &range, const QString &pattern, const Search::SearchOptions options=Search::Default)=0
virtual void variableChanged(Document *document, const QString &variable, const QString &value)=0
virtual uint mark(int line)=0
virtual QString variable(const QString &name) const =0
virtual QString highlightingModeSection(int index) const =0
void aboutToDeleteMovingInterfaceContent(KTextEditor::Document *document)
virtual void rangeInvalid(MovingRange *range)
virtual QChar character(const Cursor &position) const =0
virtual int lineLength(int line) const =0
DefaultStyle
Definition: katehighlight.h:119
virtual const QHash< int, KTextEditor::Mark * > & marks()=0
QSharedPointer< TextLineData > TextLine
The normal world only accesses the text lines with shared pointers.
Definition: katetextline.h:443
virtual void addMark(int line, uint markType)=0
virtual QStringList embeddedHighlightingModes() const =0
virtual void setReadWrite(bool readwrite=true)
virtual QString modeSection(int index) const =0
Definition: kateconfig.h:145
virtual void slotModifiedOnDisk(View *view=0)=0
virtual void marksChanged(KTextEditor::Document *document)=0
virtual const QString & encoding() const =0
virtual void transformCursor(KTextEditor::Cursor &cursor, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision=-1)=0
virtual void readSessionConfig(const KConfigGroup &config)=0
virtual void readParameterizedSessionConfig(const KConfigGroup &config, unsigned long parameters)=0
KateOnTheFlyChecker * m_onTheFlyChecker
Definition: katedocument.h:1147
virtual Search::SearchOptions supportedSearchOptions() const =0
virtual QStringList textLines(const Range &range, bool block=false) const =0
virtual qint64 lastSavedRevision() const =0
virtual bool replaceText(const Range &range, const QString &text, bool block=false)
Definition: ontheflycheck.h:40
virtual QString markDescription(MarkTypes mark) const =0
virtual QString mimeType()=0
virtual bool documentSaveAs()=0
virtual int lines() const =0
virtual void lockRevision(qint64 revision)=0
virtual QPixmap markPixmap(MarkTypes mark) const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.