summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/gettext/htmlim/htmlreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/plugins/gettext/htmlim/htmlreader.h')
-rw-r--r--scribus/plugins/gettext/htmlim/htmlreader.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/scribus/plugins/gettext/htmlim/htmlreader.h b/scribus/plugins/gettext/htmlim/htmlreader.h
index b28300d..6333a5e 100644
--- a/scribus/plugins/gettext/htmlim/htmlreader.h
+++ b/scribus/plugins/gettext/htmlim/htmlreader.h
@@ -59,9 +59,10 @@ private:
gtParagraphStyle *pstyle;
QMap<QString, Alignment> alignments;
- QMap<QString, QString> *elements;
+ QMap<QString, gtParagraphStyle *> *elements;
QVector<QString> *blockElements;
QStack<gtParagraphStyle *> *styleStack;
+ QStack<QString> *elementStack;
int styleNumber;
/* This indicates that one line break has just been done.
* Without this, two following block elements would create
@@ -72,6 +73,8 @@ private:
* filter spaces on the beginning of lines after line breaks */
bool lineBroken;
+ bool paragraphSet;
+
QStack<ListStyle> listStyles;
QStack<int> nextItemNumbers;
@@ -83,6 +86,7 @@ private:
bool noFormatting;
void initPStyles();
+ void addElementToMap(const char *elementName, const char *elementStyle);
double getSize(double currentFontSize, QString styleValue, bool isFontSize);
static HTMLReader* hreader;
public: