osiswebif.h

00001 /******************************************************************************
00002  *
00003  * $Id: osiswebif.h 1946 2006-07-15 20:41:24Z scribe $
00004  *
00005  * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
00006  *      CrossWire Bible Society
00007  *      P. O. Box 2528
00008  *      Tempe, AZ  85280-2528
00009  *
00010  * This program is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU General Public License as published by the
00012  * Free Software Foundation version 2.
00013  *
00014  * This program is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * General Public License for more details.
00018  *
00019  */
00020 
00021 #ifndef OSISWEBIF_H
00022 #define OSISWEBIF_H
00023 
00024 #include <osishtmlhref.h>
00025 
00026 SWORD_NAMESPACE_START
00027 
00030 class SWDLLEXPORT OSISWEBIF : public OSISHTMLHREF {
00031         const SWBuf baseURL;
00032         const SWBuf passageStudyURL;
00033         bool javascript;
00034 
00035 protected:
00036         virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData);
00037         virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key);
00038 public:
00039         OSISWEBIF();
00040         void setJavascript(bool mode) { javascript = mode; }
00041 };
00042 
00043 SWORD_NAMESPACE_END
00044 #endif