~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to include/osisrtf.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 *
 
3
 * $Id: osisrtf.h,v 1.11 2003/12/24 20:51:36 scribe Exp $
 
4
 *
 
5
 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
 
6
 *      CrossWire Bible Society
 
7
 *      P. O. Box 2528
 
8
 *      Tempe, AZ  85280-2528
 
9
 *
 
10
 * This program is free software; you can redistribute it and/or modify it
 
11
 * under the terms of the GNU General Public License as published by the
 
12
 * Free Software Foundation version 2.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful, but
 
15
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
17
 * General Public License for more details.
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef OSISRTF_H
 
22
#define OSISRTF_H
 
23
 
 
24
#include <swbasicfilter.h>
 
25
 
 
26
SWORD_NAMESPACE_START
 
27
 
 
28
/** this filter converts OSIS text to RTF text
 
29
 */
 
30
class SWDLLEXPORT OSISRTF : public SWBasicFilter {
 
31
private:
 
32
 
 
33
protected:
 
34
        class MyUserData : public BasicFilterUserData {
 
35
        public:
 
36
                bool osisQToTick;
 
37
                bool BiblicalText;
 
38
                bool inXRefNote;
 
39
                SWBuf w;
 
40
                SWBuf version;
 
41
                MyUserData(const SWModule *module, const SWKey *key);
 
42
        };
 
43
        virtual BasicFilterUserData *createUserData(const SWModule *module, const SWKey *key) {
 
44
                return new MyUserData(module, key);
 
45
        }
 
46
        virtual bool handleToken(SWBuf &buf, const char *token, BasicFilterUserData *userData);
 
47
public:
 
48
        OSISRTF();
 
49
};
 
50
 
 
51
SWORD_NAMESPACE_END
 
52
#endif