katetextline.h
83 inline void setFoldingColumnsOutdated(bool set) { if (set) m_flags |= KateTextLine::flagFoldingColumnsOutdated; else m_flags&=
90 inline bool foldingColumnsOutdated() { return m_flags & KateTextLine::flagFoldingColumnsOutdated; }
286 inline const bool noIndentBasedFolding() const { return m_flags & KateTextLine::flagNoIndentationBasedFolding; };
287 inline const bool noIndentBasedFoldingAtStart() const { return m_flags & KateTextLine::flagNoIndentationBasedFoldingAtStart; };
298 inline const TQMemArray<unsigned short> &indentationDepthArray () const { return m_indentationDepth; };
367 inline void setFoldingList (TQMemArray<uint> &val) { m_foldingList.assign (val); m_foldingList.detach(); }
373 inline void setIndentationDepth (TQMemArray<unsigned short> &val) { m_indentationDepth.assign (val); }
Handles all of the work of rendering the text (used for the views and printing)
Definition: katerenderer.h:43
uchar attribute(uint pos) const
Gets the attribute at the given position use KRenderer::attributes to get the KTextAttribute for this...
Definition: katetextline.h:271
bool endingWith(const TQString &match) const
Is the line ending with the given string.
Definition: katetextline.cpp:219
bool searchText(uint startCol, const TQString &text, uint *foundAtCol, uint *matchLen, bool casesensitive=true, bool backwards=false)
search given string
Definition: katetextline.cpp:273
uchar * attributes() const
Highlighting array The size of this is string().length()
Definition: katetextline.h:167
int previousNonSpaceChar(uint pos) const
Find the position of the previous char that is not a space.
Definition: katetextline.cpp:124
int nextNonSpaceChar(uint pos) const
Find the position of the next char that is not a space.
Definition: katetextline.cpp:110
uint dumpSize(bool withHighlighting) const
Methodes for dump/restore of the line in the buffer.
Definition: katetextline.h:384
uint lengthWithTabs(uint tabChars) const
Returns the text length with tabs calced in.
Definition: katetextline.cpp:256
bool stringAtPos(uint pos, const TQString &match) const
Can we find the given string at the given position.
Definition: katetextline.cpp:180
void setIndentationDepth(TQMemArray< unsigned short > &val)
update indentation stack
Definition: katetextline.h:373
KateTextLine()
Constructor Creates an empty text line with given attribute and syntax highlight context.
Definition: katetextline.cpp:30
int firstChar() const
Returns the position of the first non-whitespace character.
Definition: katetextline.cpp:142
const bool noIndentBasedFolding() const
Definition: katetextline.h:286
void insertText(uint pos, uint insLen, const TQChar *insText, uchar *insAttribs=0)
insert text into line
Definition: katetextline.cpp:39
int cursorX(uint pos, uint tabChars) const
Returns the x position of the cursor at the given position, which depends on the number of tab charac...
Definition: katetextline.cpp:237
void setNoIndentBasedFolding(bool val)
sets if for the next line indent based folding should be disabled
Definition: katetextline.h:351
int lastChar() const
Returns the position of the last non-whitespace character.
Definition: katetextline.cpp:147
const TQMemArray< unsigned short > & indentationDepthArray() const
indentation stack
Definition: katetextline.h:298
char * restore(char *buf)
Restores the line from *buf and counts buff dumpSize bytes up as return value.
Definition: katetextline.cpp:383
char * dump(char *buf, bool withHighlighting) const
Dumps the line to *buf and counts buff dumpSize bytes up as return value.
Definition: katetextline.cpp:335
const TQChar * firstNonSpace() const
Gets a null terminated pointer to first non space char.
Definition: katetextline.cpp:152
bool startingWith(const TQString &match) const
Is the line starting with the given string.
Definition: katetextline.cpp:202
void setContext(TQMemArray< short > &val)
Sets the syntax highlight context number.
Definition: katetextline.h:346