"Fossies" - the Fresh Open Source Software Archive 
Member "ansifilter-2.18/src/pangogenerator.h" (30 Jan 2021, 1867 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 "pangogenerator.h" see the
Fossies "Dox" file reference documentation.
1 /***************************************************************************
2 pangogenerator.h - description
3 -------------------
4
5 copyright : (C) 2014 by Dominik Schmidt
6
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 PANGOGENERATOR_H
28 #define PANGOGENERATOR_H
29
30 #include <string>
31
32 #include "codegenerator.h"
33
34 namespace ansifilter
35 {
36
37 /**
38 \brief This class generates Pango Markup.
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 Dominik Schmidt
45 */
46
47 class PangoGenerator : public ansifilter::CodeGenerator
48 {
49 public:
50
51 PangoGenerator();
52
53 virtual ~PangoGenerator() {};
54
55 protected:
56
57 string fileSuffix; ///< filename extension
58
59 private:
60
61 string getOpenTag();
62 string getCloseTag();
63
64 /** Print document header
65 */
66 string getHeader();
67
68 /** Print document body*/
69 void printBody();
70
71 /** Print document footer*/
72 string getFooter();
73
74 /** \return escaped character*/
75 virtual string maskCharacter(unsigned char );
76 };
77
78 }
79
80 #endif