"Fossies" - the Fresh Open Source Software Archive 
Member "ansifilter-2.18/src/latexgenerator.h" (30 Jan 2021, 2068 Bytes) of package /linux/privat/ansifilter-2.18.tar.bz2:
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.
For more information about "latexgenerator.h" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
2.17_vs_2.18.
1 /***************************************************************************
2 texgenerator.h - description
3 -------------------
4
5 copyright : (C) 2008 by Hans Meine
6 email : hans_meine@gmx.net
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 LATEXGENERATOR_H
28 #define LATEXGENERATOR_H
29
30 #include <string>
31
32 #include "codegenerator.h"
33
34 namespace ansifilter
35 {
36
37 /**
38 \brief This class generates LATEX.
39
40 It contains information about the resulting document structure (document
41 header and footer), the colour system, white space handling and text
42 formatting attributes.
43
44 * @author Hans Meine
45 */
46
47 class LaTeXGenerator : public ansifilter::CodeGenerator
48 {
49 public:
50
51 LaTeXGenerator();
52
53 virtual ~LaTeXGenerator() {};
54
55 protected:
56
57 string fileSuffix; ///< filename extension
58
59 /** \return Comment with program information */
60 string getGeneratorComment();
61
62 private:
63
64 string getOpenTag();
65 string getCloseTag();
66
67 /** Print document header
68 */
69 string getHeader();
70
71 /** Print document body*/
72 void printBody();
73
74 /** Print document footer*/
75 string getFooter();
76
77 /** \return escaped character*/
78 virtual string maskCharacter(unsigned char );
79
80 virtual string getHyperlink(string uri, string txt);
81
82 void insertLineNumber();
83 };
84
85 }
86
87 #endif