Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

KateDocument Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/document/katedocument.h>

Inheritance diagram for KateDocument:

Inheritance graph
[legend]
Collaboration diagram for KateDocument:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Eol_settings { eolUnix = 0, eolDos = 1, eolMacintosh = 2 }

Public Slots

virtual void setText (const QString &)
void reloadFile ()
void flush ()
void applyWordWrap ()

Signals

void selectionChanged ()
void highlightChanged ()
void modifiedChanged ()
void preHighlightChanged (long)
void modStateChanged (KateDocument *doc)
void nameChanged (KateDocument *doc)
void fileNameChanged ()

Public Member Functions

 KateDocument (bool bSingleViewMode=false, bool bBrowserView=false, QWidget *parentWidget=0, const char *widgetName=0, QObject *=0, const char *=0)
 ~KateDocument ()
void setFont (QFont font)
QFont getFont ()
CachedFontMetrics getFontMetrics ()
virtual bool saveFile ()
virtual KTextEditor::ViewcreateView (QWidget *parent, const char *name)
virtual QString textLine (int line) const
virtual void insertLine (const QString &s, int line=-1)
void insert_Line (const QString &s, int line=-1, bool update=true)
void remove_Line (int line, bool update=true)
void replaceLine (const QString &s, int line=-1)
virtual void insertAt (const QString &s, int line, int col, bool mark=FALSE)
virtual void removeLine (int line)
virtual int length () const
virtual void setSelection (int row_from, int col_from, int row_to, int col_t)
virtual bool hasSelection () const
virtual QString selection () const
virtual int numLines () const
int lastLine () const
TextLine::Ptr getTextLine (int line) const
int textLength (int line)
void setTabWidth (int)
int tabWidth ()
void setReadOnly (bool)
bool isReadOnly () const
void setNewDoc (bool)
bool isNewDoc () const
virtual void setReadWrite (bool)
virtual bool isReadWrite () const
virtual void setModified (bool)
virtual bool isModified () const
void setSingleSelection (bool ss)
bool singleSelection ()
void readConfig ()
void writeConfig ()
void readSessionConfig (KateConfig *)
void writeSessionConfig (KateConfig *)
bool hasBrowserExtension () const
Highlighthighlight ()
int highlightNum ()
int numAttribs ()
Attributeattribs ()
void setDontChangeHlOnSave ()
virtual void addView (KTextEditor::View *)
virtual void removeView (KTextEditor::View *)
bool ownedView (KateView *)
bool isLastView (int numViews)
int getTextLineCount ()
int textWidth (const TextLine::Ptr &, int cursorX)
int textWidth (PointStruc &cursor)
int textWidth (bool wrapCursor, PointStruc &cursor, int xPos)
int textPos (const TextLine::Ptr &, int xPos)
int textWidth ()
int textHeight ()
void insert (VConfig &, const QString &)
void insertFile (VConfig &, QIODevice &)
int currentColumn (PointStruc &cursor)
bool insertChars (VConfig &, const QString &chars)
void newLine (VConfig &)
void killLine (VConfig &)
void backspace (VConfig &)
void del (VConfig &)
void clear ()
void cut (VConfig &)
void copy (int flags)
void paste (VConfig &)
void toggleRect (int, int, int, int)
void selectTo (VConfig &c, PointStruc &cursor, int cXPos)
void selectAll ()
void deselectAll ()
void invertSelection ()
void selectWord (PointStruc &cursor, int flags)
void selectLength (PointStruc &cursor, int length, int flags)
void indent (VConfig &c)
void unIndent (VConfig &c)
void cleanIndent (VConfig &c)
void doIndent (VConfig &, int change)
void optimizeLeadingSpace (int line, int flags, int change)
void comment (VConfig &c)
void unComment (VConfig &c)
void doComment (VConfig &, int change)
virtual QString text () const
QString getWord (PointStruc &cursor)
long needPreHighlight (long till)
bool hasMarkedText ()
QString markedText (int flags)
void delMarkedText (VConfig &)
void tagLineRange (int line, int x1, int x2)
void tagLines (int start, int end)
void tagAll ()
void updateLines (int startLine=0, int endLine=0xffffff, int flags=0, int cursorY=-1)
void updateMaxLength (TextLine::Ptr &)
void updateViews (KateView *exclude=0L)
QColor & cursorCol (int x, int y)
void paintTextLine (QPainter &, int line, int xStart, int xEnd, bool showTabs)
void paintTextLine (QPainter &, int line, int y, int xStart, int xEnd, bool showTabs)
bool doSearch (SConfig &s, const QString &searchFor)
void tagLine (int line)
void insLine (int line)
void delLine (int line)
void optimizeSelection ()
void doAction (KateAction *)
void doReplace (KateAction *)
void doWordWrap (KateAction *)
void doWordUnWrap (KateAction *)
void doNewLine (KateAction *)
void doDelLine (KateAction *)
void doInsLine (KateAction *)
void doKillLine (KateAction *)
void newUndo ()
void recordStart (VConfig &, int newUndoType)
void recordStart (KateView *, PointStruc &, int flags, int newUndoType, bool keepModal=false, bool mergeUndo=false)
void recordAction (KateAction::Action, PointStruc &)
void recordInsert (VConfig &, const QString &text)
void recordReplace (VConfig &, int len, const QString &text)
void recordInsert (PointStruc &, const QString &text)
void recordDelete (PointStruc &, int len)
void recordReplace (PointStruc &, int len, const QString &text)
void recordEnd (VConfig &)
void recordEnd (KateView *, PointStruc &, int flags)
void doActionGroup (KateActionGroup *, int flags, bool undo=false)
int nextUndoType ()
int nextRedoType ()
void undoTypeList (QValueList< int > &lst)
void redoTypeList (QValueList< int > &lst)
void undo (VConfig &, int count=1)
void redo (VConfig &, int count=1)
void clearRedo ()
void setUndoSteps (int steps)
void setPseudoModal (QWidget *)
void newBracketMark (PointStruc &, BracketMark &)
void isModOnHD (bool forceReload=false)
uint docID ()
QString docName ()
void setDocName (QString docName)
void setDocFile (QString docFile)
KateCmdcmd ()
void setEncoding (QString e)
QString encoding ()
void setWordWrap (bool on)
bool wordWrap ()
void setWordWrapAt (uint col)
uint wordWrapAt ()
QList< Kate::Markmarks ()
void open (const QString &name=0)
void wrapText (uint col)

Public Attributes

bool m_bSingleViewMode

Protected Slots

void hlChanged ()
void clipboardChanged ()
void slotBufferChanged ()
void slotBufferHighlight (long, long)
void doPreHighlight ()

Protected Member Functions

void setHighlight (int n)
void makeAttribs ()
void updateFontData ()

Protected Attributes

QFont myFont
QFont myFontBold
QFont myFontItalic
QFont myFontBI
CachedFontMetrics myFontMetrics
CachedFontMetrics myFontMetricsBold
CachedFontMetrics myFontMetricsItalic
CachedFontMetrics myFontMetricsBI
bool m_bBrowserView
long PreHighlightedTill
long RequestPreHighlightTill
KWBufferbuffer
QColor colors [2]
HlManagerhlManager
Highlightm_highlight
int m_numAttribs
Attributem_attribs
int eolMode
int tabChars
int m_tabWidth
int fontHeight
int fontAscent
QList< KateViewviews
bool newDocGeometry
TextLine::Ptr longestLine
float maxLength
PointStruc select
PointStruc anchor
int aXPos
int selectStart
int selectEnd
bool oldMarkState
bool m_singleSelection
bool readOnly
bool newDoc
bool modified
bool myWordWrap
uint myWordWrapAt
QList< KateActionGroupundoList
int currentUndo
int undoState
int undoSteps
int tagStart
int tagEnd
int undoCount
QWidget * pseudoModal

Static Protected Attributes

static QStringList searchForList = QStringList()
static QStringList replaceWithList = QStringList()
static uint uniqueID = 0
static const int maxAttribs = 32

Private Slots

void slotViewDestroyed ()
void slotModChanged ()

Private Member Functions

void setMTime ()
void openURL (const QString &filename)
KateDocPrivated (const KateDocument *foo)
void delete_d (const KateDocument *foo)

Static Private Member Functions

static void cleanup_d_ptr ()

Private Attributes

uint myDocID
QFileInfofileInfo
QDateTime mTime
QString myDocName
QString m_url
QString m_file
KateCmdmyCmd
QString myEncoding

Static Private Attributes

static QPtrDict< KateDocPrivate > * d_ptr = 0

Friends

class KateViewInternal
class KateView
class KateIconBorder

Classes

class  KateDocPrivate

Detailed Description

The text document. It contains the textlines, controls the document changing operations and does undo/redo. WARNING: do not change the text contents directly in methods where this is not explicitly permitted. All changes have to be made with some basic operations, which are recorded by the undo/redo system.
See also:
TextLine
Author:
Jochen Wilhelmy

Definition at line 153 of file katedocument.h.


Member Enumeration Documentation

enum KateDocument::Eol_settings
 

Enumeration values:
eolUnix 
eolDos 
eolMacintosh 

Definition at line 517 of file katedocument.h.


Constructor & Destructor Documentation

KateDocument::KateDocument bool  bSingleViewMode = false,
bool  bBrowserView = false,
QWidget *  parentWidget = 0,
const char *  widgetName = 0,
QObject *  = 0,
const char *  = 0
 

Definition at line 137 of file katedocument.cpp.

References KGlobalSettings::baseColor(), buffer, clear(), QTextCodec::codecForLocale(), colors, d(), fileInfo, QString::fromLatin1(), KGlobalSettings::generalFont(), KGlobalSettings::highlightColor(), hlChanged(), hlManager, m_attribs, m_bBrowserView, m_bSingleViewMode, m_highlight, m_singleSelection, m_url, maxAttribs, maxLength, modified, modifiedChanged(), myCmd, myDocID, myDocName, myEncoding, name, newDoc, newDocGeometry, QString::null, PreHighlightedTill, pseudoModal, readConfig(), readOnly, RequestPreHighlightTill, setFont(), setHighlight(), setReadOnly(), slotBufferChanged(), slotBufferHighlight(), slotModChanged(), tabChars, undoList, undoState, undoSteps, and uniqueID.

KateDocument::~KateDocument  ) 
 

Definition at line 279 of file katedocument.cpp.

References delete_d(), m_bSingleViewMode, m_highlight, KTextEditor::Document::m_views, Highlight::release(), and writeConfig().


Member Function Documentation

void KateDocument::addView KTextEditor::View  )  [virtual]
 

Definition at line 719 of file katedocument.cpp.

References KTextEditor::Document::addView(), slotViewDestroyed(), and KTextEditor::Document::views().

Referenced by KateView::KateView().

void KateDocument::applyWordWrap  )  [slot]
 

Definition at line 3172 of file katedocument.cpp.

References myWordWrapAt, and wrapText().

Attribute* KateDocument::attribs  )  [inline]
 

Definition at line 257 of file katedocument.h.

References m_attribs.

void KateDocument::backspace VConfig  ) 
 

Definition at line 1100 of file katedocument.cpp.

References KateView::cfBackspaceIndents, VConfig::cursor, KateAction::delLine, VConfig::flags, getTextLine(), l, pos, recordAction(), recordDelete(), recordEnd(), recordStart(), textLine(), KateActionGroup::ugDelChar, KateActionGroup::ugDelLine, PointStruc::x, Opie::MM::y, and PointStruc::y.

Referenced by KateViewInternal::doEditCommand().

void KateDocument::cleanIndent VConfig c  )  [inline]
 

Definition at line 309 of file katedocument.h.

References doIndent().

Referenced by KateViewInternal::doEditCommand().

static void KateDocument::cleanup_d_ptr  )  [inline, static, private]
 

Definition at line 541 of file katedocument.h.

References d_ptr.

void KateDocument::clear  ) 
 

Definition at line 1163 of file katedocument.cpp.

References buffer, KWBuffer::clear(), currentUndo, eolMode, eolUnix, KWBuffer::line(), longestLine, maxLength, newUndo(), oldMarkState, select, selectEnd, selectStart, setModified(), setPseudoModal(), KateView::tagAll(), undoList, KateView::updateCursor(), KTextEditor::Document::views(), PointStruc::x, and PointStruc::y.

Referenced by flush(), KateDocument(), and setText().

void KateDocument::clearRedo  ) 
 

Definition at line 2879 of file katedocument.cpp.

References currentUndo, KTextEditor::Document::deleted(), newUndo(), and undoList.

void KateDocument::clipboardChanged  )  [protected, slot]
 

Definition at line 3007 of file katedocument.cpp.

References deselectAll(), m_singleSelection, and updateViews().

Referenced by copy().

KateCmd* KateDocument::cmd  )  [inline]
 

Definition at line 482 of file katedocument.h.

void KateDocument::comment VConfig c  )  [inline]
 

Definition at line 316 of file katedocument.h.

References doComment().

Referenced by KateViewInternal::doEditCommand().

void KateDocument::copy int  flags  ) 
 

Definition at line 1202 of file katedocument.cpp.

References clipboardChanged(), QString::isEmpty(), m_singleSelection, markedText(), s, selectEnd, and selectStart.

Referenced by cut(), and KateViewInternal::doEditCommand().

KTextEditor::View * KateDocument::createView QWidget *  parent,
const char *  name
[virtual]
 

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.

Implements KTextEditor::Document.

Definition at line 371 of file katedocument.cpp.

References KateView.

Referenced by TinyKate::open(), and TinyKate::slotNew().

int KateDocument::currentColumn PointStruc cursor  ) 
 

Definition at line 941 of file katedocument.cpp.

References getTextLine(), tabChars, PointStruc::x, and PointStruc::y.

Referenced by KateView::currentColumn().

QColor & KateDocument::cursorCol int  x,
int  y
 

Definition at line 1991 of file katedocument.cpp.

References Attribute::col, getTextLine(), m_attribs, Attribute::selCol, taAttrMask, taSelected, and textLine().

Referenced by KateViewInternal::paintBracketMark(), and KateViewInternal::paintCursor().

void KateDocument::cut VConfig  ) 
 

Definition at line 1194 of file katedocument.cpp.

References copy(), delMarkedText(), VConfig::flags, selectEnd, and selectStart.

Referenced by KateViewInternal::doEditCommand().

KateDocPrivate* KateDocument::d const KateDocument foo  )  [inline, private]
 

Definition at line 546 of file katedocument.h.

References d_ptr.

Referenced by KateDocument(), saveFile(), and setDontChangeHlOnSave().

void KateDocument::del VConfig  ) 
 

Definition at line 1144 of file katedocument.cpp.

References KateView::cfRemoveSpaces, VConfig::cursor, KateAction::delLine, VConfig::flags, getTextLine(), lastLine(), len, recordAction(), recordDelete(), recordEnd(), recordStart(), textLine(), KateActionGroup::ugDelChar, KateActionGroup::ugDelLine, PointStruc::x, and PointStruc::y.

Referenced by KateViewInternal::doEditCommand().

void KateDocument::delete_d const KateDocument foo  )  [inline, private]
 

Definition at line 560 of file katedocument.h.

References d_ptr.

Referenced by ~KateDocument().

void KateDocument::delLine int  line  ) 
 

Definition at line 2365 of file katedocument.cpp.

References KateView::delLine(), newDocGeometry, selectEnd, selectStart, tagEnd, tagStart, and KTextEditor::Document::views().

Referenced by doDelLine(), and doKillLine().

void KateDocument::delMarkedText VConfig  ) 
 

Definition at line 1846 of file katedocument.cpp.

References KateAction::delLine, end, getTextLine(), recordAction(), recordDelete(), recordEnd(), recordStart(), select, selectEnd, selectStart, textLine(), KateActionGroup::ugDelBlock, and PointStruc::x.

Referenced by cut(), KateViewInternal::doEditCommand(), insertChars(), and KateView::keyPressEvent().

void KateDocument::deselectAll  ) 
 

Definition at line 1443 of file katedocument.cpp.

References getTextLine(), select, selectEnd, selectionChanged(), selectStart, tagLines(), textLine(), and PointStruc::x.

Referenced by KateViewInternal::changeState(), clipboardChanged(), doActionGroup(), KateViewInternal::doEditCommand(), selectLength(), selectTo(), selectWord(), and KateViewInternal::updateCursor().

void KateDocument::doAction KateAction  ) 
 

Definition at line 2398 of file katedocument.cpp.

References KateAction::delLine, doDelLine(), doInsLine(), doKillLine(), doNewLine(), doReplace(), doWordUnWrap(), doWordWrap(), KateAction::insLine, KateAction::killLine, KateAction::newLine, KateAction::replace, KateAction::wordUnWrap, and KateAction::wordWrap.

Referenced by doActionGroup(), and recordAction().

void KateDocument::doActionGroup KateActionGroup ,
int  flags,
bool  undo = false
 

Definition at line 2769 of file katedocument.cpp.

References KateActionGroup::action, KateView::cfPersistent, deselectAll(), doAction(), KateActionGroup::insertAction(), newUndo(), KateAction::next, optimizeSelection(), setModified(), setPseudoModal(), tagEnd, tagStart, and updateLines().

Referenced by redo(), and undo().

uint KateDocument::docID  )  [inline, virtual]
 

Returns the document ID.

Reimplemented from Kate::Document.

Definition at line 453 of file katedocument.h.

References myDocID.

QString KateDocument::docName  )  [inline]
 

Definition at line 454 of file katedocument.h.

References myDocName.

Referenced by TinyKate::slotSave().

void KateDocument::doComment VConfig ,
int  change
 

Definition at line 1631 of file katedocument.cpp.

References KateView::cfPersistent, col, VConfig::cursor, end, TextLine::endingWith(), QString::find(), QString::findRev(), VConfig::flags, Highlight::getCommentEnd(), Highlight::getCommentSingleLineStart(), Highlight::getCommentStart(), KateView::getCursorPosition(), getTextLine(), hasMarkedText(), KateView::insertText(), KateView::keyDelete(), TextLine::length(), QString::length(), m_highlight, KateView::markedText(), recordEnd(), recordReplace(), recordStart(), QString::remove(), start, TextLine::startingWith(), KateActionGroup::ugComment, KateActionGroup::ugUncomment, VConfig::view, PointStruc::x, and PointStruc::y.

Referenced by comment(), and unComment().

void KateDocument::doDelLine KateAction  ) 
 

Definition at line 2501 of file katedocument.cpp.

References KateAction::action, buffer, KWBuffer::changeLine(), KateAction::cursor, delLine(), getTextLine(), longestLine, KateAction::newLine, KWBuffer::removeLine(), tagLine(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by doAction().

void KateDocument::doIndent VConfig ,
int  change
 

Definition at line 1525 of file katedocument.cpp.

References KateView::cfKeepIndentProfile, KateView::cfPersistent, VConfig::cursor, VConfig::flags, getTextLine(), optimizeLeadingSpace(), recordEnd(), recordStart(), selectEnd, selectStart, tabChars, textLine(), KateActionGroup::ugIndent, KateActionGroup::ugUnindent, VConfig::view, PointStruc::x, and PointStruc::y.

Referenced by cleanIndent(), indent(), and unIndent().

void KateDocument::doInsLine KateAction  ) 
 

Definition at line 2520 of file katedocument.cpp.

References KateAction::action, buffer, KateAction::cursor, KWBuffer::insertLine(), insLine(), KateAction::killLine, and PointStruc::y.

Referenced by doAction().

void KateDocument::doKillLine KateAction  ) 
 

Definition at line 2529 of file katedocument.cpp.

References KateAction::action, buffer, KateAction::cursor, delLine(), getTextLine(), KateAction::insLine, longestLine, KWBuffer::removeLine(), tagLine(), textLine(), and PointStruc::y.

Referenced by doAction().

void KateDocument::doNewLine KateAction  ) 
 

Definition at line 2483 of file katedocument.cpp.

References KateAction::action, buffer, KWBuffer::changeLine(), KateAction::cursor, KateAction::delLine, getTextLine(), KWBuffer::insertLine(), insLine(), newLine(), selectEnd, tagLine(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by doAction().

void KateDocument::doPreHighlight  )  [protected, slot]
 

Definition at line 263 of file katedocument.cpp.

References max, numLines(), preHighlightChanged(), PreHighlightedTill, RequestPreHighlightTill, and updateLines().

Referenced by needPreHighlight().

void KateDocument::doReplace KateAction  ) 
 

Definition at line 2429 of file katedocument.cpp.

References buffer, KWBuffer::changeLine(), KateAction::cursor, getTextLine(), l, KateAction::len, QString::length(), tagLine(), KateAction::text, textLine(), QString::unicode(), PointStruc::x, and PointStruc::y.

Referenced by doAction().

bool KateDocument::doSearch SConfig s,
const QString searchFor
 

Definition at line 2193 of file katedocument.cpp.

References col, SConfig::cursor, SConfig::flags, getTextLine(), QString::isEmpty(), Highlight::isInWord(), lastLine(), m_highlight, SConfig::matchedLength, pos, SConfig::search(), selectEnd, selectStart, KateView::sfBackward, KateView::sfSelected, KateView::sfWholeWords, KateView::sfWrapped, SConfig::startCursor, t, text(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by KateView::doReplaceAction(), and KateView::findAgain().

void KateDocument::doWordUnWrap KateAction  ) 
 

Definition at line 2467 of file katedocument.cpp.

References KateAction::action, buffer, KWBuffer::changeLine(), KateAction::cursor, getTextLine(), KateAction::len, tagLine(), textLine(), KateAction::wordWrap, PointStruc::x, and PointStruc::y.

Referenced by doAction().

void KateDocument::doWordWrap KateAction  ) 
 

Definition at line 2450 of file katedocument.cpp.

References KateAction::action, buffer, KWBuffer::changeLine(), KateAction::cursor, getTextLine(), KateAction::len, selectEnd, tagLine(), textLine(), KateAction::wordUnWrap, PointStruc::x, and PointStruc::y.

Referenced by doAction().

QString KateDocument::encoding  )  [inline]
 

Definition at line 489 of file katedocument.h.

References myEncoding.

void KateDocument::fileNameChanged  )  [signal]
 

The file has been saved (perhaps the name has changed). The main window can use this to change its caption

Referenced by flush(), openURL(), saveFile(), and setDocFile().

void KateDocument::flush  )  [virtual, slot]
 

Reimplemented from Kate::Document.

Definition at line 3101 of file katedocument.cpp.

References clear(), fileInfo, fileNameChanged(), isReadOnly(), m_url, QString::null, QFileInfo::setFile(), setMTime(), and updateViews().

Referenced by KateView::flush().

QFont KateDocument::getFont  )  [inline]
 

Definition at line 170 of file katedocument.h.

References myFont.

Referenced by KateView::configDialog(), KateView::slotDecFontSizes(), and KateView::slotIncFontSizes().

CachedFontMetrics KateDocument::getFontMetrics  )  [inline]
 

Definition at line 171 of file katedocument.h.

References myFontMetrics.

TextLine::Ptr KateDocument::getTextLine int  line  )  const
 

gets the given line

Returns:
the TextLine object at the given line
See also:
TextLine

Definition at line 516 of file katedocument.cpp.

References buffer, and KWBuffer::line().

Referenced by backspace(), KateViewInternal::changeState(), KateView::clearBookmarks(), currentColumn(), KateView::currentTextLine(), cursorCol(), del(), delMarkedText(), deselectAll(), doComment(), doDelLine(), doIndent(), doKillLine(), doNewLine(), doReplace(), doSearch(), doWordUnWrap(), doWordWrap(), KateView::exposeFound(), getWord(), KateViewInternal::home(), KateView::initSearch(), insert(), insertChars(), invertSelection(), KateViewInternal::isTargetSelected(), markedText(), marks(), KateIconBorder::mousePressEvent(), newBracketMark(), newLine(), optimizeLeadingSpace(), optimizeSelection(), paintTextLine(), readSessionConfig(), recordReplace(), saveFile(), selectAll(), selection(), selectLength(), selectTo(), selectWord(), textLength(), KateView::textLine(), textLine(), textWidth(), KateView::toggleBookmark(), toggleRect(), updateLines(), updateMaxLength(), KateView::word(), KateViewInternal::wordLeft(), KateViewInternal::wordRight(), and wrapText().

int KateDocument::getTextLineCount  )  [inline]
 

Definition at line 275 of file katedocument.h.

References numLines().

QString KateDocument::getWord PointStruc cursor  ) 
 

Definition at line 1753 of file katedocument.cpp.

References end, getTextLine(), Highlight::isInWord(), len, m_highlight, start, textLine(), PointStruc::x, and PointStruc::y.

Referenced by KateView::currentWord(), and KateView::word().

bool KateDocument::hasBrowserExtension  )  const [inline]
 

Definition at line 235 of file katedocument.h.

References m_bBrowserView.

bool KateDocument::hasMarkedText  )  [inline]
 

Definition at line 328 of file katedocument.h.

References selectEnd, and selectStart.

Referenced by doComment(), KateViewInternal::doEditCommand(), KateView::find(), KateView::hasMarkedText(), KateViewInternal::keyPressEvent(), KateView::replace(), and updateViews().

bool KateDocument::hasSelection  )  const [virtual]
 

Implements KTextEditor::Document.

Definition at line 446 of file katedocument.cpp.

References selectEnd, and selectStart.

Highlight* KateDocument::highlight  )  [inline]
 

Definition at line 254 of file katedocument.h.

References m_highlight.

Referenced by KateViewInternal::wordLeft(), and KateViewInternal::wordRight().

void KateDocument::highlightChanged  )  [signal]
 

Referenced by setHighlight().

int KateDocument::highlightNum  )  [inline]
 

Definition at line 255 of file katedocument.h.

References HlManager::findHl(), hlManager, and m_highlight.

Referenced by KateView::getHl().

void KateDocument::hlChanged  )  [protected, slot]
 

Definition at line 713 of file katedocument.cpp.

References makeAttribs(), and updateViews().

Referenced by KateDocument().

void KateDocument::indent VConfig c  )  [inline]
 

Definition at line 307 of file katedocument.h.

References doIndent().

Referenced by KateViewInternal::doEditCommand(), and KateViewInternal::keyPressEvent().

void KateDocument::insert VConfig ,
const QString
 

Definition at line 861 of file katedocument.cpp.

References buf, KateView::cfVerticalSelect, VConfig::cursor, VConfig::flags, getTextLine(), KateAction::insLine, QString::isEmpty(), QChar::isPrint(), QString::length(), KateAction::newLine, numLines(), pos, recordAction(), recordEnd(), recordInsert(), recordStart(), textPos(), textWidth(), QString::truncate(), KateActionGroup::ugPaste, PointStruc::x, and PointStruc::y.

Referenced by insertAt(), KateView::insertText(), and paste().

void KateDocument::insert_Line const QString s,
int  line = -1,
bool  update = true
 

Definition at line 395 of file katedocument.cpp.

References buffer, Opie::Core::endl(), KWBuffer::insertLine(), kdDebug(), QString::length(), newDocGeometry, QString::unicode(), updateLines(), and updateViews().

Referenced by insertLine(), and replaceLine().

void KateDocument::insertAt const QString s,
int  line,
int  col,
bool  mark = FALSE
[virtual]
 

Add the line(s) into the document at the given line and column.

Implements KTextEditor::Document.

Definition at line 409 of file katedocument.cpp.

References VConfig::cursor, VConfig::cXPos, VConfig::flags, insert(), VConfig::view, PointStruc::x, and PointStruc::y.

bool KateDocument::insertChars VConfig ,
const QString chars
 

Definition at line 945 of file katedocument.cpp.

References buf, KateView::cfAutoBrackets, KateView::cfOvr, KateView::cfReplaceTabs, delMarkedText(), getTextLine(), QString::insert(), QString::isEmpty(), QChar::isPrint(), isSpace(), l, lastLine(), length(), QString::length(), myWordWrap, myWordWrapAt, KateAction::newLine, pos, recordAction(), recordEnd(), recordInsert(), recordReplace(), recordStart(), s, tabChars, textLine(), KateActionGroup::ugInsChar, KateAction::wordWrap, PointStruc::x, and PointStruc::y.

Referenced by KateViewInternal::keyPressEvent().

void KateDocument::insertFile VConfig ,
QIODevice
 

Definition at line 911 of file katedocument.cpp.

References QTextStream::atEnd(), buf, VConfig::cursor, KateAction::newLine, recordAction(), recordEnd(), recordInsert(), recordStart(), stream, QString::truncate(), KateActionGroup::ugPaste, PointStruc::x, and PointStruc::y.

void KateDocument::insertLine const QString s,
int  line = -1
[virtual]
 

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

Implements KTextEditor::Document.

Definition at line 391 of file katedocument.cpp.

References insert_Line().

void KateDocument::insLine int  line  ) 
 

Definition at line 2351 of file katedocument.cpp.

References KateView::insLine(), newDocGeometry, selectEnd, selectStart, tagEnd, tagStart, and KTextEditor::Document::views().

Referenced by doInsLine(), and doNewLine().

void KateDocument::invertSelection  ) 
 

Definition at line 1460 of file katedocument.cpp.

References getTextLine(), lastLine(), optimizeSelection(), select, selectEnd, selectionChanged(), selectStart, tagLines(), textLine(), and PointStruc::x.

Referenced by KateViewInternal::doEditCommand().

bool KateDocument::isLastView int  numViews  ) 
 

Definition at line 742 of file katedocument.cpp.

References KTextEditor::Document::views().

Referenced by KateView::isLastView().

bool KateDocument::isModified  )  const [virtual]
 

Definition at line 593 of file katedocument.cpp.

References modified.

void KateDocument::isModOnHD bool  forceReload = false  ) 
 

Tjecks if the file on disk is newer than document contents. If forceReload is true, the document is reloaded without asking the user, otherwise [default] the user is asked what to do.

Definition at line 3047 of file katedocument.cpp.

References KMessageBox::Continue, fileInfo, QFileInfo::fileName(), i18n, QFileInfo::lastModified(), m_url, mTime, QFileInfo::refresh(), reloadFile(), setMTime(), and KMessageBox::warningContinueCancel().

bool KateDocument::isNewDoc  )  const
 

Definition at line 577 of file katedocument.cpp.

References newDoc.

bool KateDocument::isReadOnly  )  const
 

Definition at line 559 of file katedocument.cpp.

References readOnly.

Referenced by flush().

virtual bool KateDocument::isReadWrite  )  const [inline, virtual]
 

Definition at line 224 of file katedocument.h.

void KateDocument::killLine VConfig  ) 
 

Definition at line 1089 of file katedocument.cpp.

References VConfig::cursor, KateAction::killLine, lastLine(), recordAction(), recordDelete(), recordEnd(), recordStart(), KateActionGroup::ugDelLine, PointStruc::x, and PointStruc::y.

Referenced by KateViewInternal::doEditCommand().

int KateDocument::lastLine  )  const [inline]
 

gets the last line number (numLines() -1)

Definition at line 203 of file katedocument.h.

References numLines().

Referenced by KateViewInternal::bottom(), KateViewInternal::bottom_end(), KateViewInternal::bottomOfView(), KateView::continueSearch(), KateViewInternal::cursorDown(), KateViewInternal::cursorRight(), del(), doSearch(), KateView::initSearch(), insertChars(), invertSelection(), killLine(), newBracketMark(), KateViewInternal::pageDown(), paintTextLine(), KateViewInternal::scrollDown(), selectAll(), textWidth(), updateLines(), KateView::word(), and KateViewInternal::wordRight().

int KateDocument::length  )  const [virtual]
 

Returns:
the number of characters in the document

Implements KTextEditor::Document.

Definition at line 437 of file katedocument.cpp.

References text().

Referenced by insertChars().

void KateDocument::makeAttribs  )  [protected]
 

Definition at line 686 of file katedocument.cpp.

References hlManager, m_attribs, m_highlight, m_numAttribs, HlManager::makeAttribs(), maxAttribs, odebug, oendl, updateFontData(), and updateLines().

Referenced by hlChanged(), and setHighlight().

QString KateDocument::markedText int  flags  ) 
 

Definition at line 1789 of file katedocument.cpp.

References KateView::cfVerticalSelect, end, getTextLine(), i, len, s, selectEnd, selectStart, start, and textLine().

Referenced by copy(), and KateView::markedText().

QList< Kate::Mark > KateDocument::marks  )  [virtual]
 

A list of all marks in a document. Use binary comparing to find marks of a specific type.

Reimplemented from Kate::Document.

Definition at line 3081 of file katedocument.cpp.

References getTextLine(), i, Kate::Mark::line, list, numLines(), and Kate::Mark::type.

Referenced by KateView::bookmarkMenuAboutToShow(), KateView::clearBookmarks(), and writeSessionConfig().

void KateDocument::modifiedChanged  )  [signal]
 

Referenced by KateDocument(), and setModified().

void KateDocument::modStateChanged KateDocument doc  )  [signal]
 

Referenced by slotModChanged().

void KateDocument::nameChanged KateDocument doc  )  [signal]
 

Referenced by setDocName().

long KateDocument::needPreHighlight long  till  ) 
 

Definition at line 245 of file katedocument.cpp.

References doPreHighlight(), max, numLines(), PreHighlightedTill, and RequestPreHighlightTill.

Referenced by KateView::gotoLine(), KateView::gotoMark(), and KateViewInternal::paintEvent().

void KateDocument::newBracketMark PointStruc ,
BracketMark
 

Definition at line 2915 of file katedocument.cpp.

References Attribute::bold, QMap< Key, T >::count(), BracketMark::cursor, BracketMark::eXPos, getTextLine(), Attribute::italic, lastLine(), m_attribs, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, BracketMark::sXPos, textLine(), textWidth(), CachedFontMetrics::width(), PointStruc::x, Opie::MM::x, and PointStruc::y.

Referenced by KateViewInternal::changeState(), and KateViewInternal::updateCursor().

void KateDocument::newLine VConfig  ) 
 

Definition at line 1051 of file katedocument.cpp.

References KateView::cfAutoIndent, KateView::cfSpaceIndent, VConfig::cursor, VConfig::flags, getTextLine(), QString::length(), KateAction::newLine, pos, recordAction(), recordEnd(), recordInsert(), recordStart(), s, tabChars, tabString(), textLine(), KateActionGroup::ugInsLine, PointStruc::x, Opie::MM::y, and PointStruc::y.

Referenced by KateViewInternal::doEditCommand(), and doNewLine().

void KateDocument::newUndo  ) 
 

Definition at line 2541 of file katedocument.cpp.

References currentUndo, KTextEditor::Document::m_views, undoList, and undoState.

Referenced by clear(), clearRedo(), doActionGroup(), recordEnd(), redo(), and undo().

int KateDocument::nextRedoType  ) 
 

Definition at line 2805 of file katedocument.cpp.

References currentUndo, g, KateActionGroup::ugNone, undoList, and KateActionGroup::undoType.

Referenced by KateView::nextRedoType().

int KateDocument::nextUndoType  ) 
 

Definition at line 2796 of file katedocument.cpp.

References currentUndo, g, KateActionGroup::ugNone, undoList, and KateActionGroup::undoType.

Referenced by KateView::nextUndoType().

int KateDocument::numAttribs  )  [inline]
 

Definition at line 256 of file katedocument.h.

References m_numAttribs.

int KateDocument::numLines  )  const [virtual]
 

gets the number of lines

Implements KTextEditor::Document.

Definition at line 510 of file katedocument.cpp.

References buffer, and KWBuffer::count().

Referenced by doPreHighlight(), getTextLineCount(), KateView::gotoLine(), insert(), lastLine(), marks(), needPreHighlight(), KateView::numLines(), KateIconBorder::paintEvent(), readSessionConfig(), saveFile(), textHeight(), textWidth(), updateMaxLength(), and wrapText().

void KateDocument::open const QString name = 0  ) 
 

Definition at line 3116 of file katedocument.cpp.

References openURL().

Referenced by TinyKate::open().

void KateDocument::openURL const QString filename  )  [private]
 

Definition at line 293 of file katedocument.cpp.

References buffer, KWBuffer::clear(), QTextCodec::codecForLocale(), QFileInfo::exists(), fileInfo, fileNameChanged(), hlManager, KWBuffer::insertFile(), QFileInfo::isReadable(), m_file, myWordWrap, myWordWrapAt, odebug, oendl, QFileInfo::setFile(), setHighlight(), setMTime(), updateLines(), updateViews(), HlManager::wildcardFind(), and wrapText().

Referenced by open().

void KateDocument::optimizeLeadingSpace int  line,
int  flags,
int  change
 

Definition at line 1580 of file katedocument.cpp.

References KateView::cfKeepExtraSpaces, KateView::cfSpaceIndent, QString::fill(), getTextLine(), len, recordReplace(), s, tabChars, textLine(), PointStruc::x, and PointStruc::y.

Referenced by doIndent().

void KateDocument::optimizeSelection  ) 
 

Definition at line 2379 of file katedocument.cpp.

References getTextLine(), selectEnd, selectStart, and textLine().

Referenced by doActionGroup(), invertSelection(), recordEnd(), and selectTo().

bool KateDocument::ownedView KateView  ) 
 

Definition at line 737 of file katedocument.cpp.

References KTextEditor::Document::views().

void KateDocument::paintTextLine QPainter &  ,
int  line,
int  y,
int  xStart,
int  xEnd,
bool  showTabs
 

Definition at line 2006 of file katedocument.cpp.

References Attribute::bold, Attribute::col, colors, fontAscent, fontHeight, getTextLine(), Attribute::italic, lastLine(), len, m_attribs, m_tabWidth, myFont, myFontBI, myFontBold, myFontItalic, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, s, Attribute::selCol, str, QConstString::string(), taAttrMask, taSelected, textLine(), CachedFontMetrics::width(), and Opie::MM::x.

void KateDocument::paintTextLine QPainter &  ,
int  line,
int  xStart,
int  xEnd,
bool  showTabs
 

Definition at line 2001 of file katedocument.cpp.

Referenced by KateViewInternal::paintCursor(), KateViewInternal::paintEvent(), and KateViewInternal::paintTextLines().

void KateDocument::paste VConfig  ) 
 

Definition at line 1222 of file katedocument.cpp.

References insert(), QString::isEmpty(), and s.

Referenced by KateViewInternal::doEditCommand().

void KateDocument::preHighlightChanged long   )  [signal]
 

Referenced by doPreHighlight().

void KateDocument::readConfig  )  [virtual]
 

Read document config.

Reimplemented from Kate::Document.

Definition at line 597 of file katedocument.cpp.

References QTextCodec::codecForLocale(), colors, KGlobal::config(), QString::fromLatin1(), m_singleSelection, myEncoding, myFont, myWordWrap, myWordWrapAt, name, KateConfig::readBoolEntry(), KateConfig::readColorEntry(), KateConfig::readEntry(), KateConfig::readFontEntry(), KateConfig::readNumEntry(), setFont(), KateConfig::setGroup(), setTabWidth(), setUndoSteps(), and wrapText().

Referenced by KateDocument().

void KateDocument::readSessionConfig KateConfig config  )  [virtual]
 

Read document session config.

Reimplemented from Kate::Document.

Definition at line 635 of file katedocument.cpp.

References Kate::Document::Bookmark, QValueList< T >::count(), getTextLine(), hlManager, i, l, m_url, HlManager::nameFind(), numLines(), and setHighlight().

void KateDocument::recordAction KateAction::Action  ,
PointStruc
 

Definition at line 2627 of file katedocument.cpp.

References doAction(), and undoList.

Referenced by backspace(), del(), delMarkedText(), insert(), insertChars(), insertFile(), killLine(), and newLine().

void KateDocument::recordDelete PointStruc ,
int  len
 

Definition at line 2659 of file katedocument.cpp.

References QString::null, and recordReplace().

Referenced by backspace(), del(), delMarkedText(), and killLine().

void KateDocument::recordEnd KateView ,
PointStruc ,
int  flags
 

Definition at line 2697 of file katedocument.cpp.

References KateActionGroup::action, currentUndo, KateActionGroup::end, g, newUndo(), optimizeSelection(), setModified(), tagEnd, tagStart, KTextEditor::Document::textChanged(), undoCount, undoList, KateView::updateCursor(), updateLines(), and PointStruc::y.

void KateDocument::recordEnd VConfig  ) 
 

Definition at line 2693 of file katedocument.cpp.

References VConfig::cursor, VConfig::flags, and VConfig::view.

Referenced by backspace(), del(), delMarkedText(), doComment(), doIndent(), KateView::doReplaceAction(), insert(), insertChars(), insertFile(), killLine(), and newLine().

void KateDocument::recordInsert PointStruc ,
const QString text
 

Definition at line 2655 of file katedocument.cpp.

References recordReplace().

void KateDocument::recordInsert VConfig ,
const QString text
 

Definition at line 2635 of file katedocument.cpp.

References recordReplace().

Referenced by insert(), insertChars(), insertFile(), and newLine().

void KateDocument::recordReplace PointStruc ,
int  len,
const QString text
 

Definition at line 2663 of file katedocument.cpp.

References KateAction::action, buffer, KWBuffer::changeLine(), KateAction::cursor, getTextLine(), QString::insert(), QString::isEmpty(), l, KateAction::len, QString::length(), KateAction::replace, tagLine(), KateAction::text, textLine(), undoList, QString::unicode(), updateMaxLength(), PointStruc::x, and PointStruc::y.

void KateDocument::recordReplace VConfig ,
int  len,
const QString text
 

Definition at line 2639 of file katedocument.cpp.

References KateView::cfSpaceIndent, VConfig::cursor, VConfig::flags, getTextLine(), QString::length(), s, tabChars, tabString(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by doComment(), KateView::doReplaceAction(), insertChars(), optimizeLeadingSpace(), recordDelete(), and recordInsert().

void KateDocument::recordStart KateView ,
PointStruc ,
int  flags,
int  newUndoType,
bool  keepModal = false,
bool  mergeUndo = false
 

Definition at line 2558 of file katedocument.cpp.

References KateView::cfGroupUndo, currentUndo, KateActionGroup::end, g, setPseudoModal(), tagEnd, tagStart, KateActionGroup::ugDelChar, KateActionGroup::ugDelLine, KateActionGroup::ugInsChar, KateActionGroup::ugInsLine, undoCount, undoList, undoSteps, KateActionGroup::undoType, PointStruc::x, and PointStruc::y.

void KateDocument::recordStart VConfig ,
int  newUndoType
 

Definition at line 2554 of file katedocument.cpp.

References VConfig::cursor, VConfig::flags, and VConfig::view.

Referenced by backspace(), del(), delMarkedText(), doComment(), doIndent(), KateView::doReplaceAction(), insert(), insertChars(), insertFile(), killLine(), and newLine().

void KateDocument::redo VConfig ,
int  count = 1
 

Definition at line 2854 of file katedocument.cpp.

References currentUndo, doActionGroup(), KateActionGroup::end, VConfig::flags, g, newUndo(), setModified(), undoList, KateView::updateCursor(), and VConfig::view.

Referenced by KateViewInternal::doEditCommand(), and KateView::redoMultiple().

void KateDocument::redoTypeList QValueList< int > &  lst  ) 
 

Definition at line 2822 of file katedocument.cpp.

References currentUndo, i, and undoList.

Referenced by KateView::redoTypeList().

void KateDocument::reloadFile  )  [slot]
 

Reloads the current document from disk if possible

Definition at line 3065 of file katedocument.cpp.

References fileInfo, QFileInfo::fileName(), and setMTime().

Referenced by isModOnHD().

void KateDocument::remove_Line int  line,
bool  update = true
 

Definition at line 424 of file katedocument.cpp.

References buffer, Opie::Core::endl(), kdDebug(), KWBuffer::removeLine(), updateLines(), and updateViews().

Referenced by removeLine(), and replaceLine().

void KateDocument::removeLine int  line  )  [virtual]
 

Implements KTextEditor::Document.

Definition at line 420 of file katedocument.cpp.

References remove_Line().

void KateDocument::removeView KTextEditor::View  )  [virtual]
 

Definition at line 725 of file katedocument.cpp.

References KTextEditor::Document::removeView(), slotViewDestroyed(), and KTextEditor::Document::views().

Referenced by KateView::~KateView().

void KateDocument::replaceLine const QString s,
int  line = -1
 

Definition at line 385 of file katedocument.cpp.

References insert_Line(), and remove_Line().

bool KateDocument::saveFile  )  [virtual]
 

Definition at line 329 of file katedocument.cpp.

References QTextCodec::codecForLocale(), d(), eolDos, eolMacintosh, eolMode, eolUnix, f, fileInfo, fileNameChanged(), getTextLine(), hlManager, IO_Ok, IO_WriteOnly, m_file, numLines(), QFile::open(), QTextStream::RawUnicode, QTextStream::setCodec(), QTextStream::setEncoding(), QFileInfo::setFile(), setHighlight(), setMTime(), stream, and HlManager::wildcardFind().

Referenced by TinyKate::slotSave(), and TinyKate::slotSaveAs().

void KateDocument::selectAll  ) 
 

Definition at line 1421 of file katedocument.cpp.

References getTextLine(), lastLine(), select, selectEnd, selectionChanged(), selectStart, tagLines(), textLine(), and PointStruc::x.

Referenced by KateViewInternal::doEditCommand().

QString KateDocument::selection  )  const [virtual]
 

Implements KTextEditor::Document.

Definition at line 451 of file katedocument.cpp.

References KateView::cfVerticalSelect, end, flags, getTextLine(), i, len, s, selectEnd, selectStart, start, and textLine().

void KateDocument::selectionChanged  )  [signal]
 

Referenced by deselectAll(), invertSelection(), selectAll(), selectLength(), selectTo(), selectWord(), and toggleRect().

void KateDocument::selectLength PointStruc cursor,
int  length,
int  flags
 

Definition at line 1505 of file katedocument.cpp.

References anchor, KateView::cfKeepSelection, deselectAll(), end, getTextLine(), select, selectEnd, selectionChanged(), selectStart, start, tagLines(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by KateView::exposeFound().

void KateDocument::selectTo VConfig c,
PointStruc cursor,
int  cXPos
 

Definition at line 1320 of file katedocument.cpp.

References anchor, aXPos, KateView::cfKeepSelection, KateView::cfVerticalSelect, KateView::cfXorSelect, VConfig::cursor, VConfig::cXPos, deselectAll(), VConfig::flags, getTextLine(), optimizeSelection(), select, selectEnd, selectionChanged(), selectStart, tagLineRange(), tagLines(), textLine(), toggleRect(), Opie::MM::x, PointStruc::x, Opie::MM::y, and PointStruc::y.

Referenced by KateViewInternal::changeState().

void KateDocument::selectWord PointStruc cursor,
int  flags
 

Definition at line 1482 of file katedocument.cpp.

References anchor, KateView::cfKeepSelection, deselectAll(), end, getTextLine(), Highlight::isInWord(), len, m_highlight, select, selectEnd, selectionChanged(), selectStart, start, tagLines(), textLine(), PointStruc::x, and PointStruc::y.

Referenced by KateViewInternal::mouseDoubleClickEvent().

void KateDocument::setDocFile QString  docFile  ) 
 

Definition at line 3033 of file katedocument.cpp.

References fileNameChanged(), and m_file.

Referenced by TinyKate::slotSaveAs().

void KateDocument::setDocName QString  docName  ) 
 

Definition at line 3027 of file katedocument.cpp.

References myDocName, and nameChanged().

Referenced by TinyKate::open(), and TinyKate::slotSaveAs().

void KateDocument::setDontChangeHlOnSave  ) 
 

Definition at line 213 of file katedocument.cpp.

References d().

Referenced by KateView::setDontChangeHlOnSave(), and KateView::setHl().

void KateDocument::setEncoding QString  e  )  [inline]
 

Definition at line 488 of file katedocument.h.

References myEncoding.

Referenced by KateView::setEncoding().

void KateDocument::setFont QFont  font  ) 
 

Definition at line 218 of file katedocument.cpp.

References Opie::Core::endl(), kdDebug(), maxLength, myFont, myFontBI, myFontBold, myFontItalic, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, updateFontData(), updateViews(), and CachedFontMetrics::width().

Referenced by KateView::configDialog(), KateDocument(), readConfig(), KateView::slotDecFontSizes(), and KateView::slotIncFontSizes().

void KateDocument::setHighlight int  n  )  [protected]
 

Definition at line 667 of file katedocument.cpp.

References HlManager::getHl(), highlightChanged(), hlManager, m_highlight, makeAttribs(), PreHighlightedTill, Highlight::release(), RequestPreHighlightTill, updateLines(), and Highlight::use().

Referenced by KateDocument(), openURL(), readSessionConfig(), saveFile(), and KateView::setHl().

void KateDocument::setModified bool   )  [virtual]
 

Definition at line 581 of file katedocument.cpp.

References KTextEditor::Document::m_views, modified, and modifiedChanged().

Referenced by clear(), doActionGroup(), recordEnd(), redo(), KateView::setEol(), KateView::setModified(), and undo().

void KateDocument::setMTime  )  [private]
 

updates mTime to reflect file on fs. called from constructor and from saveFile.

Definition at line 3039 of file katedocument.cpp.

References fileInfo, QFileInfo::fileName(), QFileInfo::lastModified(), mTime, and QFileInfo::refresh().

Referenced by flush(), isModOnHD(), openURL(), reloadFile(), and saveFile().

void KateDocument::setNewDoc bool   ) 
 

Definition at line 563 of file katedocument.cpp.

References newDoc.

void KateDocument::setPseudoModal QWidget *   ) 
 

Definition at line 2897 of file katedocument.cpp.

References pseudoModal.

Referenced by clear(), KateView::deleteReplacePrompt(), doActionGroup(), KateView::doReplaceAction(), and recordStart().

void KateDocument::setReadOnly bool   ) 
 

Definition at line 547 of file katedocument.cpp.

References KTextEditor::Document::m_views, and readOnly.

Referenced by KateDocument(), and KateView::setReadOnly().

virtual void KateDocument::setReadWrite bool   )  [inline, virtual]
 

Definition at line 223 of file katedocument.h.

void KateDocument::setSelection int  row_from,
int  col_from,
int  row_to,
int  col_t
[virtual]
 

Implements KTextEditor::Document.

Definition at line 442 of file katedocument.cpp.

void KateDocument::setSingleSelection bool  ss  )  [inline]
 

Definition at line 227 of file katedocument.h.

References m_singleSelection.

Referenced by KateView::setConfig().

void KateDocument::setTabWidth int   ) 
 

Definition at line 528 of file katedocument.cpp.

References buffer, QMap< Key, T >::count(), i, len, KWBuffer::line(), longestLine, maxLength, tabChars, textLine(), textWidth(), and updateFontData().

Referenced by readConfig(), and KateView::setTabWidth().

void KateDocument::setText const QString  )  [virtual, slot]
 

Set the given text into the view. Warning: This will overwrite any data currently held in this view.

Implements KTextEditor::Document.

Definition at line 1765 of file katedocument.cpp.

References buffer, clear(), KWBuffer::insertLine(), QChar::isPrint(), KWBuffer::line(), pos, textLine(), and updateLines().

Referenced by KateView::setText().

void KateDocument::setUndoSteps int  steps  ) 
 

Definition at line 2892 of file katedocument.cpp.

References undoSteps.

Referenced by readConfig(), and KateView::setUndoSteps().

void KateDocument::setWordWrap bool  on  ) 
 

Definition at line 3156 of file katedocument.cpp.

References myWordWrap, myWordWrapAt, and wrapText().

void KateDocument::setWordWrapAt uint  col  ) 
 

Definition at line 3164 of file katedocument.cpp.

References myWordWrap, myWordWrapAt, and wrapText().

bool KateDocument::singleSelection  )  [inline]
 

Definition at line 228 of file katedocument.h.

References m_singleSelection.

Referenced by KateView::config().

void KateDocument::slotBufferChanged  )  [protected, slot]
 

Definition at line 1963 of file katedocument.cpp.

References newDocGeometry, and updateViews().

Referenced by KateDocument().

void KateDocument::slotBufferHighlight long  ,
long 
[protected, slot]
 

Definition at line 1969 of file katedocument.cpp.

References Opie::Core::endl(), kdDebug(), and updateLines().

Referenced by KateDocument().

void KateDocument::slotModChanged  )  [private, slot]
 

Definition at line 3076 of file katedocument.cpp.

References modStateChanged().

Referenced by KateDocument().

void KateDocument::slotViewDestroyed  )  [private, slot]
 

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 from KTextEditor::Document.

Definition at line 732 of file katedocument.cpp.

References KTextEditor::Document::views().

Referenced by addView(), and removeView().

int KateDocument::tabWidth  )  [inline]
 

Definition at line 218 of file katedocument.h.

References tabChars.

Referenced by updateFontData().

void KateDocument::tagAll  ) 
 

Definition at line 1897 of file katedocument.cpp.

References KTextEditor::Document::views().

Referenced by KateView::applyColors().

void KateDocument::tagLine int  line  ) 
 

Definition at line 2345 of file katedocument.cpp.

References tagEnd, and tagStart.

Referenced by doDelLine(), doKillLine(), doNewLine(), doReplace(), doWordUnWrap(), doWordWrap(), and recordReplace().

void KateDocument::tagLineRange int  line,
int  x1,
int  x2
 

Definition at line 1881 of file katedocument.cpp.

References KTextEditor::Document::views().

Referenced by selectTo(), and toggleRect().

void KateDocument::tagLines int  start,
int  end
 

Definition at line 1889 of file katedocument.cpp.

References KTextEditor::Document::views().

Referenced by KateViewInternal::changeState(), KateView::clearBookmarks(), deselectAll(), invertSelection(), KateIconBorder::mousePressEvent(), selectAll(), selectLength(), selectTo(), selectWord(), KateView::toggleBookmark(), and updateLines().

QString KateDocument::text  )  const [virtual]
 

Returns:
the complete document as a single QString

Implements KTextEditor::Document.

Definition at line 1738 of file katedocument.cpp.

References QString::append(), buffer, QMap< Key, T >::count(), i, QString::insert(), QString::length(), KWBuffer::line(), s, and textLine().

Referenced by doSearch(), length(), KateView::text(), and wrapText().

int KateDocument::textHeight  ) 
 

Definition at line 857 of file katedocument.cpp.

References fontHeight, and numLines().

Referenced by KateViewInternal::updateView().

int KateDocument::textLength int  line  ) 
 

get the length in pixels of the given line

Definition at line 522 of file katedocument.cpp.

References getTextLine(), and textLine().

Referenced by KateViewInternal::bottom_end(), KateViewInternal::cursorDown(), KateViewInternal::cursorLeft(), KateViewInternal::cursorRight(), and KateViewInternal::end().

QString KateDocument::textLine int  line  )  const [virtual]
 

Returns:
All the text from the requested line.

Implements KTextEditor::Document.

Definition at line 376 of file katedocument.cpp.

References getTextLine(), and l.

Referenced by backspace(), cursorCol(), del(), delMarkedText(), deselectAll(), doDelLine(), doIndent(), doKillLine(), doNewLine(), doReplace(), doSearch(), doWordUnWrap(), doWordWrap(), getWord(), insertChars(), invertSelection(), markedText(), newBracketMark(), newLine(), optimizeLeadingSpace(), optimizeSelection(), paintTextLine(), recordReplace(), selectAll(), selection(), selectLength(), selectTo(), selectWord(), setTabWidth(), setText(), text(), textLength(), textWidth(), toggleRect(), and updateLines().

int KateDocument::textPos const TextLine::Ptr ,
int  xPos
 

Definition at line 821 of file katedocument.cpp.

References Attribute::bold, Attribute::italic, m_attribs, m_tabWidth, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, CachedFontMetrics::width(), and Opie::MM::x.

Referenced by insert(), KateViewInternal::isTargetSelected(), and KateView::word().

int KateDocument::textWidth  ) 
 

Definition at line 853 of file katedocument.cpp.

References maxLength.

Referenced by insert(), newBracketMark(), setTabWidth(), textWidth(), and updateMaxLength().

int KateDocument::textWidth bool  wrapCursor,
PointStruc cursor,
int  xPos
 

Definition at line 781 of file katedocument.cpp.

References Attribute::bold, getTextLine(), Attribute::italic, lastLine(), len, m_attribs, m_tabWidth, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, textLine(), CachedFontMetrics::width(), PointStruc::x, Opie::MM::x, and PointStruc::y.

int KateDocument::textWidth PointStruc cursor  ) 
 

Definition at line 771 of file katedocument.cpp.

References getTextLine(), lastLine(), numLines(), and textWidth().

int KateDocument::textWidth const TextLine::Ptr ,
int  cursorX
 

Definition at line 746 of file katedocument.cpp.

References Attribute::bold, Attribute::italic, m_attribs, m_tabWidth, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, CachedFontMetrics::width(), and Opie::MM::x.

Referenced by KateViewInternal::bottom(), KateViewInternal::bottom_end(), KateViewInternal::cursorDown(), KateViewInternal::cursorLeft(), KateViewInternal::cursorRight(), KateViewInternal::cursorUp(), KateViewInternal::end(), KateView::exposeFound(), KateViewInternal::home(), KateViewInternal::pageDown(), KateViewInternal::pageUp(), KateViewInternal::placeCursor(), KateViewInternal::scrollDown(), KateViewInternal::scrollUp(), KateViewInternal::top(), KateViewInternal::updateCursor(), KateViewInternal::updateView(), KateViewInternal::wordLeft(), and KateViewInternal::wordRight().

void KateDocument::toggleRect int  ,
int  ,
int  ,
int 
 

Definition at line 1229 of file katedocument.cpp.

References Attribute::bold, getTextLine(), Attribute::italic, m_attribs, m_tabWidth, myFontMetrics, myFontMetricsBI, myFontMetricsBold, myFontMetricsItalic, s, selectEnd, selectionChanged(), selectStart, t, tagLineRange(), textLine(), CachedFontMetrics::width(), and Opie::MM::x.

Referenced by selectTo().

void KateDocument::unComment VConfig c  )  [inline]
 

Definition at line 317 of file katedocument.h.

References doComment().

Referenced by KateViewInternal::doEditCommand().

void KateDocument::undo VConfig ,
int  count = 1
 

Definition at line 2829 of file katedocument.cpp.

References currentUndo, doActionGroup(), g, newUndo(), setModified(), KateActionGroup::start, and undoList.

Referenced by KateViewInternal::doEditCommand(), and KateView::undoMultiple().

void KateDocument::undoTypeList QValueList< int > &  lst  ) 
 

Definition at line 2815 of file katedocument.cpp.

References currentUndo, i, and undoList.

Referenced by KateView::undoTypeList().

void KateDocument::unIndent VConfig c  )  [inline]
 

Definition at line 308 of file katedocument.h.

References doIndent().

Referenced by KateViewInternal::doEditCommand(), and KateViewInternal::keyPressEvent().

void KateDocument::updateFontData  )  [protected]
 

Definition at line 693 of file katedocument.cpp.

References KateViewInternal::drawBuffer, fontAscent, fontHeight, m_tabWidth, myFontMetrics, KateView::myViewInternal, tabChars, tabWidth(), KateView::tagAll(), KateView::updateCursor(), KTextEditor::Document::views(), and CachedFontMetrics::width().

Referenced by makeAttribs(), setFont(), and setTabWidth().

void KateDocument::updateLines int  startLine = 0,
int  endLine = 0xffffff,
int  flags = 0,
int  cursorY = -1
 

Definition at line 1905 of file katedocument.cpp.

References buffer, KateView::cfRemoveSpaces, Highlight::doHighlight(), Opie::Core::endl(), getTextLine(), kdDebug(), lastLine(), KWBuffer::line(), m_highlight, tagLines(), textLine(), and updateMaxLength().

Referenced by doActionGroup(), doPreHighlight(), insert_Line(), makeAttribs(), openURL(), recordEnd(), remove_Line(), setHighlight(), setText(), slotBufferHighlight(), and wrapText().

void KateDocument::updateMaxLength TextLine::Ptr  ) 
 

Definition at line 1938 of file katedocument.cpp.

References getTextLine(), i, len, longestLine, maxLength, newDocGeometry, numLines(), and textWidth().

Referenced by recordReplace(), and updateLines().

void KateDocument::updateViews KateView exclude = 0L  ) 
 

Definition at line 1975 of file katedocument.cpp.

References flags, hasMarkedText(), newDocGeometry, KateView::newMarkStatus(), oldMarkState, KateView::ufDocGeometry, KateView::updateView(), and KTextEditor::Document::views().

Referenced by KateView::applyColors(), KateView::askReplaceEnd(), KateView::clearBookmarks(), clipboardChanged(), KateView::doCursorCommand(), KateView::doEditCommand(), KateView::exposeFound(), flush(), KateView::gotoLine(), KateView::gotoMark(), hlChanged(), insert_Line(), KateView::insertText(), KateViewInternal::keyPressEvent(), KateViewInternal::mouseDoubleClickEvent(), KateViewInternal::mouseMoveEvent(), KateIconBorder::mousePressEvent(), KateViewInternal::mousePressEvent(), openURL(), KateView::redoMultiple(), remove_Line(), KateView::setCursorPositionInternal(), KateView::setEncoding(), setFont(), KateView::setHl(), KateView::setTabWidth(), KateView::setText(), slotBufferChanged(), KateViewInternal::timerEvent(), KateView::toggleBookmark(), KateView::undoMultiple(), and wrapText().

bool KateDocument::wordWrap  )  [inline]
 

Definition at line 492 of file katedocument.h.

References myWordWrap.

uint KateDocument::wordWrapAt  )  [inline]
 

Definition at line 495 of file katedocument.h.

References myWordWrapAt.

void KateDocument::wrapText uint  col  ) 
 

Definition at line 3121 of file katedocument.cpp.

References buffer, getTextLine(), KWBuffer::insertLine(), isSpace(), l, newDocGeometry, numLines(), text(), updateLines(), and updateViews().

Referenced by applyWordWrap(), openURL(), readConfig(), setWordWrap(), and setWordWrapAt().

void KateDocument::writeConfig  )  [virtual]
 

Save document config.

Reimplemented from Kate::Document.

Definition at line 619 of file katedocument.cpp.

References colors, KGlobal::config(), m_singleSelection, myEncoding, myFont, myWordWrap, myWordWrapAt, KateConfig::setGroup(), tabChars, undoSteps, and KateConfig::writeEntry().

Referenced by ~KateDocument().

void KateDocument::writeSessionConfig KateConfig config  )  [virtual]
 

Save document session config.

Reimplemented from Kate::Document.

Definition at line 649 of file katedocument.cpp.

References QValueList< T >::at(), QValueList< T >::count(), i, l, m_highlight, m_url, marks(), and Highlight::name().


Friends And Related Function Documentation

friend class KateIconBorder [friend]
 

Definition at line 158 of file katedocument.h.

friend class KateView [friend]
 

Definition at line 157 of file katedocument.h.

Referenced by createView().

friend class KateViewInternal [friend]
 

Definition at line 155 of file katedocument.h.


Member Data Documentation

PointStruc KateDocument::anchor [protected]
 

Definition at line 422 of file katedocument.h.

Referenced by selectLength(), selectTo(), and selectWord().

int KateDocument::aXPos [protected]
 

Definition at line 423 of file katedocument.h.

Referenced by selectTo().

KWBuffer* KateDocument::buffer [protected]
 

Definition at line 400 of file katedocument.h.

Referenced by clear(), doDelLine(), doInsLine(), doKillLine(), doNewLine(), doReplace(), doWordUnWrap(), doWordWrap(), getTextLine(), insert_Line(), KateDocument(), numLines(), openURL(), recordReplace(), remove_Line(), setTabWidth(), setText(), text(), updateLines(), and wrapText().

QColor KateDocument::colors[2] [protected]
 

Definition at line 401 of file katedocument.h.

Referenced by KateView::getColors(), KateDocument(), paintTextLine(), readConfig(), and writeConfig().

int KateDocument::currentUndo [protected]
 

Definition at line 438 of file katedocument.h.

Referenced by clear(), clearRedo(), newUndo(), nextRedoType(), nextUndoType(), recordEnd(), recordStart(), redo(), redoTypeList(), undo(), and undoTypeList().

QPtrDict< KateDocument::KateDocPrivate > * KateDocument::d_ptr = 0 [static, private]
 

Definition at line 134 of file katedocument.cpp.

Referenced by cleanup_d_ptr(), d(), and delete_d().

int KateDocument::eolMode [protected]
 

Definition at line 408 of file katedocument.h.

Referenced by clear(), KateView::getEol(), saveFile(), and KateView::setEol().

QFileInfo* KateDocument::fileInfo [private]
 

Definition at line 471 of file katedocument.h.

Referenced by flush(), isModOnHD(), KateDocument(), openURL(), reloadFile(), saveFile(), and setMTime().

int KateDocument::fontAscent [protected]
 

Definition at line 413 of file katedocument.h.

Referenced by paintTextLine(), and updateFontData().

int KateDocument::fontHeight [protected]
 

Definition at line 412 of file katedocument.h.

Referenced by KateViewInternal::bottomOfView(), KateViewInternal::center(), KateViewInternal::clearDirtyCache(), KateViewInternal::delLine(), KateView::exposeFound(), KateViewInternal::insLine(), KateViewInternal::isTargetSelected(), KateViewInternal::mouseMoveEvent(), KateIconBorder::mousePressEvent(), KateViewInternal::pageDown(), KateViewInternal::pageUp(), KateViewInternal::paintBracketMark(), KateViewInternal::paintCursor(), KateIconBorder::paintEvent(), KateViewInternal::paintEvent(), paintTextLine(), KateViewInternal::paintTextLines(), KateViewInternal::placeCursor(), KateViewInternal::resizeEvent(), KateViewInternal::scrollDown(), KateViewInternal::scrollUp(), textHeight(), KateViewInternal::topOfView(), updateFontData(), KateViewInternal::updateView(), and KateView::word().

HlManager* KateDocument::hlManager [protected]
 

Definition at line 402 of file katedocument.h.

Referenced by highlightNum(), KateDocument(), makeAttribs(), openURL(), readSessionConfig(), saveFile(), and setHighlight().

TextLine::Ptr KateDocument::longestLine [protected]
 

Definition at line 418 of file katedocument.h.

Referenced by clear(), doDelLine(), doKillLine(), setTabWidth(), and updateMaxLength().

Attribute* KateDocument::m_attribs [protected]
 

Definition at line 406 of file katedocument.h.

Referenced by attribs(), cursorCol(), KateDocument(), makeAttribs(), newBracketMark(), paintTextLine(), textPos(), textWidth(), and toggleRect().

bool KateDocument::m_bBrowserView [protected]
 

Definition at line 238 of file katedocument.h.

Referenced by hasBrowserExtension(), and KateDocument().

bool KateDocument::m_bSingleViewMode
 

Definition at line 192 of file katedocument.h.

Referenced by KateDocument(), ~KateDocument(), and KateView::~KateView().

QString KateDocument::m_file [private]
 

Definition at line 476 of file katedocument.h.

Referenced by openURL(), saveFile(), and setDocFile().

Highlight* KateDocument::m_highlight [protected]
 

Definition at line 403 of file katedocument.h.

Referenced by doComment(), doSearch(), getWord(), highlight(), highlightNum(), KateDocument(), makeAttribs(), selectWord(), setHighlight(), updateLines(), writeSessionConfig(), and ~KateDocument().

int KateDocument::m_numAttribs [protected]
 

Definition at line 404 of file katedocument.h.

Referenced by makeAttribs(), and numAttribs().

bool KateDocument::m_singleSelection [protected]
 

Definition at line 427 of file katedocument.h.

Referenced by clipboardChanged(), copy(), KateDocument(), readConfig(), setSingleSelection(), singleSelection(), and writeConfig().

int KateDocument::m_tabWidth [protected]
 

Definition at line 411 of file katedocument.h.

Referenced by paintTextLine(), textPos(), textWidth(), toggleRect(), and updateFontData().

QString KateDocument::m_url [private]
 

Definition at line 475 of file katedocument.h.

Referenced by flush(), isModOnHD(), KateDocument(), readSessionConfig(), and writeSessionConfig().

const int KateDocument::maxAttribs = 32 [static, protected]
 

Definition at line 127 of file katedocument.cpp.

Referenced by KateDocument(), and makeAttribs().

float KateDocument::maxLength [protected]
 

Definition at line 419 of file katedocument.h.

Referenced by clear(), KateDocument(), setFont(), setTabWidth(), textWidth(), and updateMaxLength().

bool KateDocument::modified [protected]
 

Definition at line 432 of file katedocument.h.

Referenced by KateView::isModified(), isModified(), KateDocument(), and setModified().

QDateTime KateDocument::mTime [private]
 

Definition at line 472 of file katedocument.h.

Referenced by isModOnHD(), and setMTime().

KateCmd* KateDocument::myCmd [private]
 

Definition at line 479 of file katedocument.h.

Referenced by KateDocument().

uint KateDocument::myDocID [private]
 

Definition at line 470 of file katedocument.h.

Referenced by docID(), and KateDocument().

QString KateDocument::myDocName [private]
 

Definition at line 473 of file katedocument.h.

Referenced by docName(), KateDocument(), and setDocName().

QString KateDocument::myEncoding [private]
 

Definition at line 482 of file katedocument.h.

Referenced by encoding(), KateDocument(), readConfig(), setEncoding(), and writeConfig().

QFont KateDocument::myFont [protected]
 

Definition at line 165 of file katedocument.h.

Referenced by getFont(), KateViewInternal::paintCursor(), paintTextLine(), readConfig(), setFont(), and writeConfig().

QFont KateDocument::myFontBI [protected]
 

Definition at line 165 of file katedocument.h.

Referenced by paintTextLine(), and setFont().

QFont KateDocument::myFontBold [protected]
 

Definition at line 165 of file katedocument.h.

Referenced by paintTextLine(), and setFont().

QFont KateDocument::myFontItalic [protected]
 

Definition at line 165 of file katedocument.h.

Referenced by paintTextLine(), and setFont().

CachedFontMetrics KateDocument::myFontMetrics [protected]
 

Definition at line 166 of file katedocument.h.

Referenced by getFontMetrics(), newBracketMark(), paintTextLine(), setFont(), textPos(), textWidth(), toggleRect(), and updateFontData().

CachedFontMetrics KateDocument::myFontMetricsBI [protected]
 

Definition at line 166 of file katedocument.h.

Referenced by newBracketMark(), paintTextLine(), setFont(), textPos(), textWidth(), and toggleRect().

CachedFontMetrics KateDocument::myFontMetricsBold [protected]
 

Definition at line 166 of file katedocument.h.

Referenced by newBracketMark(), paintTextLine(), setFont(), textPos(), textWidth(), and toggleRect().

CachedFontMetrics KateDocument::myFontMetricsItalic [protected]
 

Definition at line 166 of file katedocument.h.

Referenced by newBracketMark(), paintTextLine(), setFont(), textPos(), textWidth(), and toggleRect().

bool KateDocument::myWordWrap [protected]
 

Definition at line 434 of file katedocument.h.

Referenced by insertChars(), openURL(), readConfig(), setWordWrap(), setWordWrapAt(), wordWrap(), and writeConfig().

uint KateDocument::myWordWrapAt [protected]
 

Definition at line 435 of file katedocument.h.

Referenced by applyWordWrap(), insertChars(), openURL(), readConfig(), setWordWrap(), setWordWrapAt(), wordWrapAt(), and writeConfig().

bool KateDocument::newDoc [protected]
 

Definition at line 430 of file katedocument.h.

Referenced by isNewDoc(), KateDocument(), and setNewDoc().

bool KateDocument::newDocGeometry [protected]
 

Definition at line 416 of file katedocument.h.

Referenced by delLine(), insert_Line(), insLine(), KateDocument(), slotBufferChanged(), updateMaxLength(), updateViews(), and wrapText().

bool KateDocument::oldMarkState [protected]
 

Definition at line 426 of file katedocument.h.

Referenced by clear(), and updateViews().

long KateDocument::PreHighlightedTill [protected]
 

Definition at line 398 of file katedocument.h.

Referenced by doPreHighlight(), KateDocument(), needPreHighlight(), and setHighlight().

QWidget* KateDocument::pseudoModal [protected]
 

Definition at line 445 of file katedocument.h.

Referenced by KateDocument(), and setPseudoModal().

bool KateDocument::readOnly [protected]
 

Definition at line 429 of file katedocument.h.

Referenced by KateView::isReadOnly(), isReadOnly(), KateDocument(), and setReadOnly().

QStringList KateDocument::replaceWithList = QStringList() [static, protected]
 

Definition at line 130 of file katedocument.cpp.

Referenced by KateView::doReplaceAction(), KateView::find(), and KateView::replace().

long KateDocument::RequestPreHighlightTill [protected]
 

Definition at line 399 of file katedocument.h.

Referenced by doPreHighlight(), KateDocument(), needPreHighlight(), and setHighlight().

QStringList KateDocument::searchForList = QStringList() [static, protected]
 

Definition at line 129 of file katedocument.cpp.

Referenced by KateView::doReplaceAction(), KateView::find(), KateView::findAgain(), KateView::initSearch(), and KateView::replace().

PointStruc KateDocument::select [protected]
 

Definition at line 421 of file katedocument.h.

Referenced by clear(), delMarkedText(), deselectAll(), invertSelection(), selectAll(), selectLength(), selectTo(), and selectWord().

int KateDocument::selectEnd [protected]
 

Definition at line 425 of file katedocument.h.

Referenced by clear(), copy(), cut(), delLine(), delMarkedText(), deselectAll(), doIndent(), doNewLine(), doSearch(), doWordWrap(), hasMarkedText(), hasSelection(), insLine(), invertSelection(), markedText(), optimizeSelection(), selectAll(), selection(), selectLength(), selectTo(), selectWord(), and toggleRect().

int KateDocument::selectStart [protected]
 

Definition at line 424 of file katedocument.h.

Referenced by clear(), copy(), cut(), delLine(), delMarkedText(), deselectAll(), doIndent(), doSearch(), hasMarkedText(), hasSelection(), insLine(), invertSelection(), markedText(), optimizeSelection(), selectAll(), selection(), selectLength(), selectTo(), selectWord(), and toggleRect().

int KateDocument::tabChars [protected]
 

Definition at line 410 of file katedocument.h.

Referenced by currentColumn(), doIndent(), insertChars(), KateDocument(), newLine(), optimizeLeadingSpace(), recordReplace(), setTabWidth(), KateView::tabWidth(), tabWidth(), updateFontData(), and writeConfig().

int KateDocument::tagEnd [protected]
 

Definition at line 442 of file katedocument.h.

Referenced by delLine(), doActionGroup(), insLine(), recordEnd(), recordStart(), and tagLine().

int KateDocument::tagStart [protected]
 

Definition at line 441 of file katedocument.h.

Referenced by delLine(), doActionGroup(), insLine(), recordEnd(), recordStart(), and tagLine().

int KateDocument::undoCount [protected]
 

Definition at line 443 of file katedocument.h.

Referenced by recordEnd(), and recordStart().

QList<KateActionGroup> KateDocument::undoList [protected]
 

Definition at line 437 of file katedocument.h.

Referenced by clear(), clearRedo(), KateDocument(), newUndo(), nextRedoType(), nextUndoType(), recordAction(), recordEnd(), recordReplace(), recordStart(), redo(), redoTypeList(), undo(), and undoTypeList().

int KateDocument::undoState [protected]
 

Definition at line 439 of file katedocument.h.

Referenced by KateDocument(), newUndo(), and KateView::undoState().

int KateDocument::undoSteps [protected]
 

Definition at line 440 of file katedocument.h.

Referenced by KateDocument(), recordStart(), setUndoSteps(), KateView::undoSteps(), and writeConfig().

uint KateDocument::uniqueID = 0 [static, protected]
 

Definition at line 132 of file katedocument.cpp.

Referenced by KateDocument().

QList<KateView> KateDocument::views [protected]
 

Definition at line 415 of file katedocument.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:15 2005 for OPIE by  doxygen 1.4.2