diff options
Diffstat (limited to 'src/lib/SW602TextListener.cpp')
-rw-r--r-- | src/lib/SW602TextListener.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/SW602TextListener.cpp b/src/lib/SW602TextListener.cpp index 5903fb4..4af4582 100644 --- a/src/lib/SW602TextListener.cpp +++ b/src/lib/SW602TextListener.cpp @@ -179,7 +179,7 @@ State::State() : } } -SW602TextListener::SW602TextListener(SW602ParserState &parserState, std::vector<SW602PageSpan> const &pageList, librevenge::RVNGTextInterface *documentInterface) : SW602Listener(), +SW602TextListener::SW602TextListener(SW602ParserStatePtr parserState, std::vector<SW602PageSpan> const &pageList, librevenge::RVNGTextInterface *documentInterface) : SW602Listener(), m_ds(new SW602TextListenerInternal::DocumentState(pageList)), m_ps(new SW602TextListenerInternal::State), m_psStack(), m_parserState(parserState), m_documentInterface(documentInterface) { @@ -206,7 +206,7 @@ void SW602TextListener::insertChar(uint8_t character) void SW602TextListener::insertCharacter(unsigned char c) { - const int unicode = m_parserState.m_converter->unicode(c); + const int unicode = m_parserState->m_converter->unicode(c); if (unicode == -1) { if (c < 0x20) @@ -832,7 +832,7 @@ int SW602TextListener::_getListId() const SW602_DEBUG_MSG(("SW602TextListener::_getListId: the list id is not set, try to find a new one\n")); first = false; } - boost::shared_ptr<SW602List> list=m_parserState.m_listManager->getNewList + boost::shared_ptr<SW602List> list=m_parserState->m_listManager->getNewList (m_ps->m_list, int(newLevel), *m_ps->m_paragraph.m_listLevel); if (!list) return -1; return list->getId(); @@ -866,14 +866,14 @@ void SW602TextListener::_changeList() { boost::shared_ptr<SW602List> theList; - theList=m_parserState.m_listManager->getList(newListId); + theList=m_parserState->m_listManager->getList(newListId); if (!theList) { SW602_DEBUG_MSG(("SW602TextListener::_changeList: can not find any list\n")); m_ps->m_listOrderedLevels.resize(actualLevel); return; } - m_parserState.m_listManager->needToSend(newListId, m_ds->m_sentListMarkers); + m_parserState->m_listManager->needToSend(newListId, m_ds->m_sentListMarkers); m_ps->m_list = theList; m_ps->m_list->setLevel((int)newLevel); } |