swgenbook.h

00001 /******************************************************************************
00002 *  swgenbook.h
00003 *
00004 * $Id: swgenbook.h 1864 2005-11-20 06:06:40Z scribe $
00005 *
00006 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
00007 *       CrossWire Bible Society
00008 *       P. O. Box 2528
00009 *       Tempe, AZ  85280-2528
00010 *
00011 * This program is free software; you can redistribute it and/or modify it
00012 * under the terms of the GNU General Public License as published by the
00013 * Free Software Foundation version 2.
00014 *
00015 * This program is distributed in the hope that it will be useful, but
00016 * WITHOUT ANY WARRANTY; without even the implied warranty of
00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 * General Public License for more details.
00019 *
00020 */
00021 
00022 #ifndef SWGENBOOK_H
00023 #define SWGENBOOK_H
00024 
00025 #include <swmodule.h>
00026 
00027 #include <defs.h>
00028 
00029 SWORD_NAMESPACE_START
00030 
00033 class SWDLLEXPORT SWGenBook : public SWModule {
00034 
00035 protected:
00036         char *entkeytxt;
00037 
00038 public:
00041         SWGenBook(const char *imodname = 0, const char *imoddesc = 0,
00042                         SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN,
00043                         SWTextDirection dir = DIRECTION_LTR,
00044                         SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0);
00045 
00046         virtual ~SWGenBook();
00047         virtual SWKey *CreateKey() = 0;
00048 
00049 
00050         // OPERATORS -----------------------------------------------------------------
00051         
00052         SWMODULE_OPERATORS
00053 
00054 };
00055 
00056 SWORD_NAMESPACE_END
00057 #endif