1
/******************************************************************************
2
* rawfiles.h - code for class 'RawFiles'- a module that produces HTML HREFs
3
* pointing to actual text desired. Uses standard
4
* files: ot and nt using indexs ??.bks ??.cps ??.vss
6
* $Id: rawfiles.h 1864 2005-11-20 06:06:40Z scribe $
8
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
9
* CrossWire Bible Society
11
* Tempe, AZ 85280-2528
13
* This program is free software; you can redistribute it and/or modify it
14
* under the terms of the GNU General Public License as published by the
15
* Free Software Foundation version 2.
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
34
class SWDLLEXPORT RawFiles : public RawVerse, public SWCom {
36
char *getNextFilename();
41
RawFiles(const char *ipath, const char *iname = 0, const char *idesc = 0,
42
SWDisplay *idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN,
43
SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN,
44
const char *ilang = 0);
46
virtual SWBuf &getRawEntryBuf();
48
// write interface ----------------------------
49
/** Is the module writable? :)
52
virtual bool isWritable();
54
/** Creates a new module
55
* @param path The first parameter is path of the new module
58
static char createModule(const char *);
60
/** Modify the current module entry text
61
* - only if module @ref isWritable
64
virtual void setEntry(const char *inbuf, long len = -1); // Modify current module entry
66
/** Link the current module entry to another module entry
67
* - only if module @ref isWritable
70
virtual void linkEntry(const SWKey *linkKey); // Link current module entry to other module entry
72
/** Delete current module entry - only if module @ref isWritable
75
virtual void deleteEntry();
76
// end write interface ------------------------
79
// OPERATORS -----------------------------------------------------------------