#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/ktexteditor/ktexteditor.h>
Inheritance diagram for KTextEditor::Document:

Public Slots | |
| virtual void | setText (const QString &t)=0 |
Signals | |
| void | textChanged () |
| void | deleted (int startLine, int endLine) |
| void | inserted (int startLine, int endLine) |
Public Member Functions | |
| Document (QObject *parent=0, const char *name=0) | |
| virtual | ~Document () |
| virtual View * | createView (QWidget *parent, const char *name=0)=0 |
| virtual QList< View > | views () const |
| virtual QString | textLine (int line) const =0 |
| virtual void | setSelection (int row_from, int col_from, int row_to, int col_t)=0 |
| virtual bool | hasSelection () const =0 |
| virtual QString | selection () const =0 |
| virtual int | numLines () const =0 |
| virtual void | insertLine (const QString &s, int line=-1)=0 |
| virtual void | insertAt (const QString &s, int line, int col, bool mark=FALSE)=0 |
| virtual void | removeLine (int line)=0 |
| virtual QString | text () const =0 |
| virtual int | length () const =0 |
Protected Member Functions | |
| virtual void | addView (View *view) |
| virtual void | removeView (View *view) |
Protected Attributes | |
| QList< View > | m_views |
Private Slots | |
| void | slotViewDestroyed () |
Private Attributes | |
| DocumentPrivate * | d |
|
||||||||||||
|
|
|
|
Reimplemented in Kate::Document. |
|
|
Call this method in your document implementation whenever you created a new view. (like in createView ) Referenced by KateDocument::addView(). |
|
||||||||||||
|
Create a view that will display the document data. You can create as many views as you like. When the user modifies data in one view then all other views will be updated as well. Implemented in KateDocument. |
|
||||||||||||
|
Referenced by KateDocument::clearRedo(). |
|
|
Implemented in KateDocument. |
|
||||||||||||||||||||
|
Add the line(s) into the document at the given line and column. Implemented in KateDocument. |
|
||||||||||||
|
|
|
||||||||||||
|
Insert line(s) at the given line number. If the line number is -1 (the default) then the line is added to end of the document Implemented in KateDocument. |
|
|
Implemented in KateDocument. |
|
|
Implemented in KateDocument. |
|
|
Implemented in KateDocument. |
|
|
Call this method in your document implementation whenever you delete a view. Referenced by KateDocument::removeView(). |
|
|
Implemented in KateDocument. |
|
||||||||||||||||||||
|
Implemented in KateDocument. |
|
|
Set the given text into the view. Warning: This will overwrite any data currently held in this view. Implemented in KateDocument. |
|
|
The view emits a destroyed() signal which is connected to this slot and removed from our internal list. Note: The view* is obtained from the QObject::sender() method. Reimplemented in KateDocument. Referenced by Document::addView(), Document::removeView(), and Document::~Document(). |
|
|
Implemented in KateDocument. |
|
|
When the user changes the text then this signal is emitted TODO: - explain why and what type of change trigger this? Referenced by KateDocument::recordEnd(). |
|
|
Implemented in KateDocument. |
|
|
|
Definition at line 233 of file ktexteditor.h. Referenced by Document::~Document(). |
|
|
Definition at line 221 of file ktexteditor.h. Referenced by Document::addView(), Document::removeView(), Document::slotViewDestroyed(), Document::views(), Document::~Document(), KateDocument::newUndo(), KateDocument::setModified(), KateDocument::setReadOnly(), and KateDocument::~KateDocument(). |
1.4.2