class ISECEditBuffer
ISECEditBuffer is an abstract base class that defines the interface for text storage and retrieval in Objective Edit
Defined in: ISECEditBuffer.h
virtual BOOL Insert(SECEditLineColPair& lcpInsertBlock, LPCTSTR lpszText, int nLength = -1)
Inserts text into the buffer.
virtual BOOL ClearTextBlock(const SECEditLineColPair& lcpDeleteBlock)
Deletes the text between the line/col pair as specified
virtual int GetLineCount()
Gets the count of lines in this text buffer.
virtual int GetLineLength(int nLine)
Gets the length of this line, including line end characters.
virtual int GetLineVisibleLength(int nLine)
Gets the number of displayable characters on this line.
virtual void SetLineEnd(TCHAR chLineEnd)
Sets the line end character for this text buffer.
virtual TCHAR GetLineEnd()
Gets the line end character for this text buffer.
virtual void SetLineBreakChar(TCHAR chLineBreak)
Sets the line break character for this text buffer.
virtual TCHAR GetLineBreakChar()
Gets the line break character for this text buffer.
virtual int GetTextBlock(LPCTSTR& lpszBlock, int nStartLine, int nStartCol = 0, int nEndLine = -1, int nEndCol = -1)
Retrieves a pointer to a block of text from the text buffer.
virtual BOOL GetTextBlock(CString& strBlock, int nStartLine, int nStartCol = 0, int nEndLine = -1, int nEndCol = -1)
Retrieves a block of text between the specified positions.
virtual BOOL Init()
Initializes the text buffer.
virtual int LineIndex(int nLine, int nCol = 0)
Returns a virtual index into the buffer for the given line and column indices.
virtual BOOL LineColFromChar(int nIndex, int& nLine, int& nCol)
Returns the line and column indices into the buffer for a given virtual index.
virtual int FindText(int nLine, int nCol, int& nResultLine, int& nResultCol, LPCTSTR lpszText, BOOL bDown, BOOL bWrapAround, BOOL bMatchCase, BOOL bBatchWholeWord, BOOL bRegularExpression, int nStopLine = -1, int nStopCol = -1)
Finds a search string in the text buffer.
virtual void Write(CFile* pFile, BOOL bSaveAsUnicodeText = FALSE)
Saves the text buffer to a file.