You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_TextPage object:
Cvo_TextPage
Cvo_Page
#include
<Cvo/TextPage.h++>
new
Cvo_TextPage ( )
A Cvo_TextPage object is a Cvo_Page which stores only text. This documentation needs a lot of fleshing out.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
SetAbsoluteMax (
int x )
By default a Cvo_TextPage will only allow 1024 lines. This function changes the maximum to be x. If x is zero then there is no maximum.
void *GetLine (
CARD n,
[ Cvo_CharacterBuffer *cb ] )
Returns the line n of the Cvo_TextPage object, or NULL
if n is
greater than the number of lines in the file. The void *
return
value should be casted to a char *
value. If the argument cb is
present, the text of line n will be stored in that
Cvo_CharacterBuffer object.
void *GetAssociatedData (
CARD )
SetAssociatedData (
CARD,
void * )
Cvo_TextAttribute *GetAttribute (
CARD i )
Cvo_TextAttribute **GetAttributes (
CARD i )
Cvo_TextAttribute *SetAttribute (
Cvo_TextAttribute *a )
SetAttributes (
CARD i,
CARD f,
CARD t,
Cvo_TextAttribute * )
SetAttributes (
CARD i,
Cvo_TextAttribute * )
int Length (
CARD i )
ClearLines (
int inform = 1 )
DeleteEntry (
int index = -1,
int inform = 1 )
AddEntry (
int index,
int inform = 1 )
int InsertText (
wchar_t *,
void *,
int inform = 1 )
int InsertText (
char *,
void *,
int inform = 1 )
int InsertText (
wchar_t *s,
int inform = 1 )
int InsertText (
char *s,
int inform = 1 )
int AppendText (
wchar_t *,
void *,
int inform = 1 )
int AppendText (
char *,
void *,
int inform = 1 )
int AppendText (
wchar_t *s,
int inform = 1 )
int AppendText (
char *s,
int inform = 1 )
ReplaceLine (
wchar_t *,
int line,
int inform = 1 )
ReplaceLine (
char *,
int line,
int inform = 1 )
AppendToLine (
char *,
int line,
int inform = 1 )
AppendToLine (
wchar_t *,
int line,
int inform = 1 )
InsertAt (
int line,
int col,
int len = 1,
int inform = 1 )
DeleteAt (
int line,
int col,
int len = 1,
int inform = 1 )
ReplaceAt (
int line,
int col,
wchar_t *,
int len = -1,
int inform = 1 )
Notify (
)
DisableDisplay (
)
EnableDisplay (
)
BOOL Modified (
CARD i )
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.