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

highlight::SVGGenerator Class Reference

#include <svggenerator.h>

Inheritance diagram for highlight::SVGGenerator:


List of all members.

Detailed Description

This class generates SVG.

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

Andre Simon

Definition at line 46 of file svggenerator.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)
virtual 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)
void setSVGSize (const string &w, const string &h)
void setTitle (const string &title)
void setValidateInput (bool flag)
bool styleFound ()

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 ()
State getState (const string &s, unsigned int searchPos)
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 getAttributes (const string &, const ElementStyle &)
string getCloseTag (const string &)
string getFooter ()
string getHeader ()
string getMatchingCloseTag (unsigned int styleID)
string getMatchingOpenTag (unsigned int styleID)
string getNewLine ()
string getOpenTag (const string &)
string getStyleDefinition ()
virtual string maskCharacter (unsigned char)
void printBody ()

Private Attributes

string height
string styleDefinitionCache
string width

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

Generated by  Doxygen 1.6.0   Back to index