26 #ifndef SAGA2_DOCUMENT_H 27 #define SAGA2_DOCUMENT_H 29 #include "saga2/modal.h" 34 void appendBookText(
char *
string = NULL);
35 void appendScrollText(
char *
string = NULL);
37 int16 openBook(uint16);
38 int16 openScroll(uint16);
39 int16 openParchment(uint16);
43 const uint32 kBookGroupID =
MKTAG(
'B',
'O',
'O',
'K');
45 const int kMaxVisiblePages = 2;
54 enum pageOrientation {
55 kPageOrientVertical = 0,
84 kTextPictureOffset = 1
96 void *_images[kMaxPages];
107 uint16 _numLines[kMaxPages];
108 uint16 _lineLen[kMaxPages][kMaxLines];
109 uint16 _lineOffset[kMaxPages];
123 bool activate(gEventType why);
142 bool checkForPageBreak(
char *
string,
146 bool checkForImage(
char *
string,
150 gPanel *keyTest(int16 key);
160 AppFunc *cmd = NULL);
163 void gotoPage(int8 page);
165 APPFUNCV(cmdDocumentEsc);
166 APPFUNCV(cmdDocumentLt);
167 APPFUNCV(cmdDocumentRt);
168 APPFUNCV(cmdDocumentUp);
169 APPFUNCV(cmdDocumentDn);
Definition: document.h:59
Definition: floating.h:55
Definition: document.h:74
#define MKTAG(a0, a1, a2, a3)
Definition: endian.h:188