31 #include "textwriter.h"
32 #include "styles/charstyle.h"
34 #include "fontselectdialog.h"
96 QStringList ccsFeatures;
99 QStringList dcsFeatures;
102 QStringList unSupported;
103 QStringList definedStyles;
104 QStringList definedCStyles;
108 QString textToAppend;
112 QHash<QString,void (XtgScanner::*)(void)> tagModeHash;
113 QHash<QString,void (XtgScanner::*)(void)> textModeHash;
114 QHash<QString,void (XtgScanner::*)(void)> nameModeHash;
115 QHash<int,QString> languages;
116 QHash<int,QString> encodings;
156 scannerMode previousState();
174 void applyFeature(
const QString &feature);
182 bool styleStatus(QStringList &name,QString &sfcname);
196 void setStrikethrough();
197 void setDoubleStrike();
200 void setSuperscript();
207 void setHorizontalScale();
210 void setBaseLineShift();
211 void setVerticalScale();
215 void setCharAlignment();
216 void setVertStories();
217 void setEmphasisMarks();
222 void setAlignCenter();
223 void setAlignRight();
224 void setAlignJustify();
225 void setAlignFJustify();
227 void setPAttributes();
228 void setHyphenation();
229 void setPRuleAbove();
230 void setPRuleBelow();
232 void setKeepNextPar();
233 void setKeepTogether();
234 void setHangingCSet();
236 void setTranscodeSeq();
237 void setUnencodedGlyph();
248 void appendSpChar1();
249 void appendSpChar2();
250 void appendSpChar3();
255 void defHardReturn();
QString sliceString()
Function to Slice the string so as to remove the inch character etc.
Definition: xtgscanner.cpp:1046
Definition: charstyle.h:78
scannerMode currentState()
This function will return the current state of Scanner.
Definition: xtgscanner.cpp:1244
Definition: textwriter.h:46
void enterState(scannerMode Mode)
This function will switch the state of Scanner into textMode or tagMode or styleMode.
Definition: xtgscanner.cpp:1040
void defNewLine()
Definition: xtgscanner.cpp:855
void showWarning(QString &name)
Function which will show a message box if a Style "name" is not defined in the document.
Definition: xtgscanner.cpp:1292
void flushText()
Function which will empty the textToAppend variable by writing into text frame.
Definition: xtgscanner.cpp:1269
void definePStyles()
Definition: xtgscanner.cpp:961
void initLanguages()
Definition: xtgscanner.cpp:63
QString getToken()
This function will return a token which is to be evaluated in parser. Each token will be available in...
Definition: xtgscanner.cpp:1067
Definition: paragraphstyle.h:27
QChar nextSymbol()
A function which returns the next symbol in the input stream as character. This function will increme...
Definition: xtgscanner.cpp:1261
void setFont()
Definition: xtgscanner.cpp:317
the Document Class
Definition: scribusdoc.h:90
void xtgParse()
parse function which will parse the inputBuffer and append it into the PageItem
Definition: xtgscanner.cpp:1326
void initTagMode()
Definition: xtgscanner.cpp:103
QChar lookAhead()
This function will return the character in Buffer to which top is now pointing to.
Definition: xtgscanner.cpp:1253
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
void setPlain()
Definition: xtgscanner.cpp:196
Binary buffer.
Definition: pdbim.h:93
void defClose()
Definition: xtgscanner.cpp:889
void initBasicHash()
initialise all hash functions with tokens and corresponding function pointers
bool styleStatus(QStringList &name, QString &sfcname)
Function which returns the status of Style whether defined or not.
Definition: xtgscanner.cpp:1279
void initNameMode()
Definition: xtgscanner.cpp:183
void initTextMode()
Definition: xtgscanner.cpp:173
Class for scanning and parsing an XPress Tags Document.
Definition: xtgscanner.h:53