1 #ifndef _TEXTMODEL_H_
2 #define _TEXTMODEL_H_
4 #include <oberon.h>
5 #include <typeregister.h>
6 #include <store.h>
19 /**
20 * Just calls super and reads the version and checks that its in the allowed range.
21 */
23 };
25 /**
26 * A TextPiece is just a component of an StdTextModel.
27 * It has a certain length in bytes, which is known construction time (due
28 * to meta-data in the StdTextModel header) and contents which are read
29 * later.
30 */
33 /**
34 * The number of bytes that will be read.
35 */
41 };
43 /**
44 * TextPiece consisting of 16-bit characters.
45 * Not sure of the encoding.
46 */
55 /**
56 * Return the text contained in this piece.
57 * Currently just casting the buffer to wchar_t* and hoping for the best.
58 */
61 };
63 /**
64 * TextPiece consisting of 8-bit characters.
65 */
76 };
78 /**
79 * TextPiece that embeds a View.
80 */
89 };
91 /**
92 * Default implementation of a TextModel.
93 * Essentially it is a series of TextPieces.
94 */
105 /**
106 * Calls super and reads the version and checks that its in the allowed range.
107 * Then the text model meta-data is read, including information on all the pieces.
108 * After reading the meta-data, the pieces themselves are read.
109 */
114 };