00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef RAWTEXT_H
00024 #define RAWTEXT_H
00025
00026 #include <rawverse.h>
00027 #include <rawstr.h>
00028 #include <swtext.h>
00029
00030 #include <defs.h>
00031
00032 class SWDLLEXPORT RawText:public SWText, public RawVerse
00033 {
00034 char *versebuf;
00035 RawStr *fastSearch[2];
00036
00037 public:
00038
00039
00040 RawText (const char *ipath, const char *iname = 0, const char *idesc = 0, SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN,
00041 const char* ilang = 0);
00042 virtual ~ RawText ();
00043 virtual char *getRawEntry ();
00044 virtual signed char createSearchFramework ();
00045 virtual bool hasSearchFramework ()
00046 {
00047 return true;
00048 }
00049 #ifdef _MSC_VER
00050 virtual SWModule & operator = (SW_POSITION);
00051 #else
00052 virtual RawText & operator = (SW_POSITION);
00053 #endif
00054 virtual ListKey & Search (const char *istr, int searchType = 0, int flags =
00055 0, SWKey * scope =
00056 0, bool * justCheckIfSupported =
00057 0, void (*percent) (char, void *) =
00058 &SWModule::nullPercent, void *percentUserData =
00059 0);
00060
00061
00062 virtual bool isWritable ()
00063 {
00064 return true;
00065 }
00066 static char createModule (const char *path)
00067 {
00068 return RawVerse::createModule (path);
00069 }
00070 virtual SWModule & setentry (const char *inbuf, long len);
00071 virtual SWModule & operator << (const char *inbuf);
00072 virtual SWModule & operator << (const SWKey * linkKey);
00073 virtual void deleteEntry ();
00074
00075 };
00076
00077
00078 #endif