Logo Search packages:      
Sourcecode: highlight version File versions  Download package

highlight::PreviewGenerator Class Reference

#include <previewgenerator.h>

Inheritance diagram for highlight::PreviewGenerator:

highlight::CodeGenerator

List of all members.


Detailed Description

This class generates "old style" HTML 3 for use in wxHTML (Preview function).

It contains information about the resulting document structure (document header and footer), the colour system, white space handling and text formatting attributes.

Author:
Andre Simon

Definition at line 52 of file previewgenerator.h.


Public Member Functions

void addMarkedLine (int lineNo, string &helpTxt)
bool formattingDisabled ()
bool formattingIsPossible ()
ParseError generateFile (const string &inFileName, const string &outFileName)
string generateString (const string &input)
string generateStringFromFile (const string &inFileName)
const string getBaseFont () const
const string & getBaseFontSize ()
bool getFragmentCode ()
const LanguageDefinitiongetLanguage ()
int getLineNumberWidth ()
bool getPrintLineNumbers ()
bool getPrintZeroes ()
const string & getStyleInputPath ()
const string & getStyleName ()
const string & getStyleOutputPath ()
string getTitle ()
bool getValidateInput ()
bool hasWhiteBGColour ()
bool initIndentationScheme (const string &indentScheme)
LoadResult initLanguage (const string &langDefPath)
bool initTagInformation (const string &ctagsPath)
bool initTheme (const string &themePath)
LoadResult loadLanguage (const string &langDefPath)
bool printExternalStyle (const string &outFile)
virtual bool printIndexFile (const vector< string > &fileList, const string &outPath)
void setBaseFont (const string &s)
void setBaseFontSize (const string &s)
void setEncoding (const string &encodingName)
void setFragmentCode (bool flag)
virtual void setHTMLAnchorPrefix (const string &)
virtual void setHTMLAttachAnchors (bool)
virtual void setHTMLClassName (const string &)
virtual void setHTMLEnclosePreTag (bool)
virtual void setHTMLInlineCSS (bool)
virtual void setHTMLOrderedList (bool)
void setIncludeStyle (bool flag)
void setKeyWordCase (StringTools::KeywordCase keyCase)
virtual void setLATEXNoShorthands (bool)
virtual void setLATEXPrettySymbols (bool)
virtual void setLATEXReplaceQuotes (bool)
void setLineNumberWidth (int w)
void setMaxInputLineCnt (unsigned int cnt)
void setPreformatting (WrapMode lineWrappingStyle, unsigned int lineLength, int numberSpaces)
void setPrintLineNumbers (bool flag, unsigned int startCnt=1)
void setPrintZeroes (bool flag)
virtual void setRTFCharStyles (bool)
virtual void setRTFPageSize (const string &)
void setStyleInputPath (const string &path)
void setStyleOutputPath (const string &path)
virtual void setSVGSize (const string &, const string &)
void setTitle (const string &title)
void setValidateInput (bool flag)
bool styleFound ()
 ~PreviewGenerator ()

Static Public Member Functions

static void deleteInstance (CodeGenerator *inst)
static CodeGeneratorgetInstance (OutputType type)

Protected Member Functions

bool encodingDefined ()
void flushWs ()
unsigned int getLineIndex ()
unsigned int getLineNumber ()
virtual string getNewLine ()
State getState (const string &s, unsigned int searchPos)
virtual string getStyleDefinition ()
unsigned int getStyleID (State s, unsigned int kwClassID=0)
void maskString (ostream &ss, const string &s)
void processRootState ()
string readUserStyleDef ()

Protected Attributes

string baseFont
string baseFontSize
unsigned int currentKeywordClass
State currentState
DocumentStyle docStyle
string docTitle
string encoding
bool excludeWs
bool fragmentOutput
istream * in
bool includeStyleDef
string inFile
 input file name
LanguageDefinition langInfo
string line
unsigned int lineNumber
bool lineNumberFillZeroes
int lineNumberOffset
map< int, string > markLines
bool maskWs
string maskWsBegin
 open whitespace mask
string maskWsEnd
 close whitespace mask
CTagsReader metaInfo
string newLineTag
ostream * out
string outFile
 output file name
PreFormatter preFormatter
bool showLineNumbers
string spacer
string styleCommentClose
 close comment delimiter
string styleCommentOpen
 open comment delimiter
vector< string > styleTagClose
 list of format delimiters (close format descriptions)
vector< string > styleTagOpen
 list of format delimiters (open new format descriptions)
string wsBuffer

Static Protected Attributes

static const unsigned int NUMBER_BUILTIN_STATES = 10
 number of token states (without keyword group IDs)

Private Member Functions

string getCloseTag (const ElementStyle &)
string getFooter ()
string getHeader ()
string getMatchingCloseTag (unsigned int styleID)
string getMatchingOpenTag (unsigned int styleID)
string getOpenTag (const ElementStyle &)
virtual string maskCharacter (unsigned char)
void printBody ()

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index