~ubuntu-branches/ubuntu/trusty/libwpd/trusty

« back to all changes in this revision

Viewing changes to src/lib/WP3DisplayGroup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2006-06-11 23:56:17 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060611235617-ce504k38fuqe8twa
Tags: 0.8.5-2
* dpatch'ize 
* add patch from upstream fixing WP5 font handling regression

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
void WP3DisplayGroup::_readContents(WPXInputStream *input)
42
42
{
43
 
        input->seek(4, WPX_SEEK_CUR);
44
 
        m_noteReference = readPascalString(input);
 
43
        switch (getSubGroup())
 
44
        {
 
45
        case WP3_DISPLAY_GROUP_INSERT_PAGE_NUMBER:
 
46
                input->seek(4, WPX_SEEK_CUR);
 
47
                m_pageNumber = readPascalString(input);
 
48
                break;
 
49
        case WP3_DISPLAY_GROUP_INSERT_FOOTNOTE_NUMBER:
 
50
        case WP3_DISPLAY_GROUP_INSERT_ENDNOTE_NUMBER:
 
51
                input->seek(4, WPX_SEEK_CUR);
 
52
                m_noteReference = readPascalString(input);
 
53
                break;
 
54
        default:
 
55
                break;
 
56
        }
45
57
}
46
58
 
47
59
void WP3DisplayGroup::parse(WP3Listener *listener)
50
62
 
51
63
        switch (getSubGroup())
52
64
        {
 
65
        case WP3_DISPLAY_GROUP_INSERT_PAGE_NUMBER:
 
66
                listener->insertPageNumber(m_pageNumber);
53
67
        case WP3_DISPLAY_GROUP_INSERT_FOOTNOTE_NUMBER:
54
68
        case WP3_DISPLAY_GROUP_INSERT_ENDNOTE_NUMBER:
55
69
                listener->insertNoteReference(m_noteReference);
56
70
                break;
57
 
        default: // something else we don't support, since it isn't in the docs
 
71
        default:
58
72
                break;
59
73
        }
60
 
        
61
 
//      if (m_noteReference)
62
 
//              delete [] m_noteReference;
63
74
}