summaryrefslogtreecommitdiff
path: root/src/lib/VSDParser.h
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 11:24:18 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 11:24:18 +0100
commitcb055a1b99ba51a6dc9aa407c18e7ea2ffc746f9 (patch)
treeb648017c647a48de567a5eb014e7392be5f3f51d /src/lib/VSDParser.h
parent9a4a8eb8e76755bd2aaa287f86a931f7f4030ccc (diff)
Read and push to the api the names of the pages if they exist
Diffstat (limited to 'src/lib/VSDParser.h')
-rw-r--r--src/lib/VSDParser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/VSDParser.h b/src/lib/VSDParser.h
index 13498e1..351b681 100644
--- a/src/lib/VSDParser.h
+++ b/src/lib/VSDParser.h
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <iostream>
#include <vector>
+#include <stack>
#include <map>
#include <libwpd/libwpd.h>
#include <libwpd-stream/libwpd-stream.h>
@@ -127,6 +128,8 @@ protected:
void readOLEList(WPXInputStream *input);
void readOLEData(WPXInputStream *input);
+ virtual void readNameIDX(WPXInputStream *input);
+
// parser of one pass
bool parseDocument(WPXInputStream *input, unsigned shift);
@@ -143,6 +146,7 @@ protected:
void _handleLevelChange(unsigned level);
Colour _colourFromIndex(unsigned idx);
void _flushShape();
+ void _nameFromId(VSDName &name, unsigned id, unsigned level);
virtual unsigned getUInt(WPXInputStream *input);
virtual int getInt(WPXInputStream *input);
@@ -176,6 +180,8 @@ protected:
std::map<unsigned, VSDName> m_fonts;
std::map<unsigned, VSDName> m_names;
+ std::map<unsigned, std::map<unsigned, VSDName> > m_namesMapMap;
+ VSDName m_currentPageName;
private:
VSDParser();