~ubuntu-branches/ubuntu/lucid/sword/lucid

« back to all changes in this revision

Viewing changes to include/encfiltmgr.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden, Jonathan Marsden, Dmitrijs Ledkovs, Closed Bugs
  • Date: 2009-05-30 11:55:55 UTC
  • mfrom: (1.1.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090530115555-1tdz23ekn0pk1va1
Tags: 1.6.0+dfsg-1
[ Jonathan Marsden ]
* New upstream release. (Closes: #507960) (LP: #320558)
* debian/patches/02_libver.diff:
  - Bump SONAME to 8 -- SWORD 1.6 is not backward compatible with 1.5.11.
* debian/patches/series:
  - Remove 10_diatheke.diff -- included in upstream source.
* debian/patches/:
  - Remove several old unused .diff files.
  - Add 11_regex_only_when_needed.diff to conditionally include regex lib.
  - Add 12_fix_compiler_warnings.diff to remove all compiler warnings.
  - Add 13_fix_osis2mod_compression_default.diff from upstream svn.
  - Add 14_closing_section_not_chapter.diff from upstream svn.
* debian/libsword7.*: 
  - Rename to libsword8.*
  - Change libsword7 to libsword8 within files.
* debian/rules: 
  - SONAME bump to 8.
  - Set library version check to >= 1.6
* debian/control:
  - Change libsword7 to libsword8.
  - Add libsword7 to Conflicts.
  - Fix case of sword to SWORD in package descriptions.
  - Bump Standards-Version to 3.8.1 (no changes needed).
  - Fix section for libsword-dbg to avoid lintian warning.
* debian/rules:
  - Add DFSG get-orig-source target.
* debian/copyright:
  - Fix various mistakes in initial attempt to document copyrights.

[ Dmitrijs Ledkovs ]
* debian/rules: Added utils.mk to use missing-files target and call it on
  each build.
* debian/libsword-dev.install: Added libsword.la, previously missing.
* debian/libsword7.install: Added missing libicu translit files.
* debian/control:
  - Updated all uses of SWORD version to 1.6
  - Added libsword-dbg package
* debian/watch: Fixed a small mistake which was resulting in extra "."
  in final version name.
* debian/rules: simplified manpage processing.
* debian/libsword8.lintian-overrides: added override for module
  installation directory.
* debian/copyright: Updated with information about everyfile.
  Closes: #513448 LP: #322638
* debian/diatheke.examples: moved examples here from the diatheke.install
* debian/rules:
  - enabled shell script based testsuite
  - added commented out cppunit testsuite
* debian/patches/40_missing_includes.diff: 
  - added several missing stdio.h includes to prevent FTBFS of testsuite.

[ Closed Bugs ]
* FTBFS on intrepid (LP: #305172)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 *  swencodingmgr.h   - definition of class SWEncodingMgr, subclass of
 
3
 *                        used to transcode all module text to a requested
 
4
 *                        markup.
 
5
 *
 
6
 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
 
7
 *      CrossWire Bible Society
 
8
 *      P. O. Box 2528
 
9
 *      Tempe, AZ  85280-2528
 
10
 *
 
11
 * This program is free software; you can redistribute it and/or modify it
 
12
 * under the terms of the GNU General Public License as published by the
 
13
 * Free Software Foundation version 2.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful, but
 
16
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * General Public License for more details.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef ENCFILTERMGR_H
 
23
#define ENCFILTERMGR_H
 
24
 
 
25
#include <swfiltermgr.h>
 
26
 
 
27
SWORD_NAMESPACE_START
 
28
 
 
29
class SWFilter;
 
30
 
 
31
/** This class is like a normal SWMgr,
 
32
  * but you can additonally specify which encoding
 
33
  * you want to use.
 
34
  */
 
35
 
 
36
class SWDLLEXPORT EncodingFilterMgr : public SWFilterMgr {
 
37
 
 
38
protected:
 
39
        SWFilter *latin1utf8;
 
40
        SWFilter *targetenc;
 
41
 
 
42
 
 
43
        /*
 
44
         * current encoding value
 
45
         */        
 
46
        char encoding;
 
47
 
 
48
public:
 
49
 
 
50
 
 
51
        /** Constructor of SWEncodingMgr.
 
52
         *
 
53
         * @param encoding The desired encoding.
 
54
         */
 
55
        EncodingFilterMgr (char encoding = ENC_UTF8);
 
56
 
 
57
        /**
 
58
         * The destructor of SWEncodingMgr.
 
59
         */
 
60
        ~EncodingFilterMgr();
 
61
 
 
62
        /** Markup sets/gets the encoding after initialization
 
63
         * 
 
64
         * @param enc The new encoding or ENC_UNKNOWN if you just want to get the current markup.
 
65
         * @return The current (possibly changed) encoding format.
 
66
         */
 
67
        char Encoding(char enc);
 
68
 
 
69
        /**
 
70
         * Adds the raw filters which are defined in "section" to the SWModule object "module".
 
71
         * @param module To this module the raw filter(s) are added
 
72
         * @param section We use this section to get a list of filters we should apply to the module
 
73
         */
 
74
        virtual void AddRawFilters(SWModule *module, ConfigEntMap &section);
 
75
 
 
76
        /**
 
77
         * Adds the encoding filters which are defined in "section" to the SWModule object "module".
 
78
         * @param module To this module the encoding filter(s) are added
 
79
         * @param section We use this section to get a list of filters we should apply to the module
 
80
         */
 
81
        virtual void AddEncodingFilters(SWModule *module, ConfigEntMap &section);
 
82
};
 
83
 
 
84
SWORD_NAMESPACE_END
 
85
#endif