"Fossies" - the Fresh Open Source Software Archive 
Member "ansifilter-2.18-x64/src/htmlgenerator.h" (30 Jan 2021, 2224 Bytes) of package /windows/misc/ansifilter-2.18-x64.zip:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "htmlgenerator.h":
2.17_vs_2.18.
1 /***************************************************************************
2 htmlgenerator.h - description
3 -------------------
4
5 copyright : (C) 2007 by Andre Simon
6 email : a.simon@mailbox.org
7 ***************************************************************************/
8
9 /*
10 This file is part of ANSIFilter.
11
12 ANSIFilter is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 3 of the License, or
15 (at your option) any later version.
16
17 ANSIFilter is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with ANSIFilter. If not, see <http://www.gnu.org/licenses/>.
24 */
25
26
27 #ifndef HTMLGENERATOR_H
28 #define HTMLGENERATOR_H
29
30 #include "codegenerator.h"
31
32 namespace ansifilter
33 {
34
35
36 /**
37 \brief This class generates HTML.
38
39 It contains information about the resulting document structure (document
40 header and footer), the colour system, white space handling and text
41 formatting attributes.
42
43 * @author Andre Simon
44 */
45
46 class HtmlGenerator : public ansifilter::CodeGenerator
47 {
48 public:
49
50 HtmlGenerator();
51
52 /** Destructor, virtual as it is base for xhtmlgenerator*/
53 virtual ~HtmlGenerator() {};
54
55 protected:
56
57 string fileSuffix; ///< filename extension
58
59 /** \return Comment with program information */
60 string getGeneratorComment();
61
62 void insertLineNumber ();
63
64 bool printDynamicStyleFile ( const string &outPath );
65
66 private:
67
68 string getOpenTag();
69 string getCloseTag();
70
71 /** Print document header */
72 string getHeader();
73
74 /** Print document body */
75 void printBody();
76
77 /** Print document footer */
78 string getFooter();
79
80 /** \return escaped character */
81 virtual string maskCharacter(unsigned char );
82 virtual string maskCP437Character(unsigned char);
83
84 virtual string getHyperlink(string uri, string txt);
85 };
86
87 }
88
89 #endif