00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ZTEXT_H
00024 #define ZTEXT_H
00025
00026 #include <zverse.h>
00027 #include <swtext.h>
00028
00029
00030 #include <defs.h>
00031
00032
00033
00034
00035
00036 class SWDLLEXPORT zText:public zVerse, public SWText {
00037 char *versebuf;
00038 VerseKey *lastWriteKey;
00039 bool sameBlock (VerseKey * lastWriteKey, VerseKey * key);
00040 int blockType;
00041 public:
00042
00043
00044 zText(const char *ipath, const char *iname = 0, const char *idesc =
00045 0, int blockType = CHAPTERBLOCKS, SWCompress * icomp =
00046 0, SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN,
00047 const char* ilang = 0);
00048 virtual ~zText ();
00049 virtual char *getRawEntry();
00050
00051
00052 virtual bool isWritable() { return true; }
00053 static char createModule (const char *path, int blockBound) {
00054 return zVerse::createModule (path, blockBound);
00055 }
00056
00057 virtual SWModule & setentry (const char *inbuf, long len);
00058 virtual SWModule & operator << (const char *inbuf);
00059 virtual SWModule & operator << (const SWKey * linkKey);
00060 virtual void deleteEntry ();
00061
00062 };
00063
00064 #endif