"Fossies" - the Fresh Open Source Software Archive

Member "ansifilter-2.18-x64/src/texgenerator.h" (30 Jan 2021, 2001 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 last Fossies "Diffs" side-by-side code changes report for "texgenerator.h": 2.13_vs_2.14.

    1 /***************************************************************************
    2                           texgenerator.h  -  description
    3                              -------------------
    4 
    5     copyright            : (C) 2008 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 TEXGENERATOR_H
   28 #define TEXGENERATOR_H
   29 
   30 #include <string>
   31 
   32 #include "codegenerator.h"
   33 
   34 namespace ansifilter
   35 {
   36 
   37 /**
   38    \brief This class generates TeX.
   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 TeXGenerator  : public ansifilter::CodeGenerator
   48 {
   49 public:
   50 
   51     TeXGenerator();
   52 
   53     virtual ~TeXGenerator() {};
   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     void insertLineNumber ();
   81 };
   82 
   83 }
   84 
   85 #endif