~ubuntu-branches/ubuntu/karmic/libwpd/karmic

« back to all changes in this revision

Viewing changes to src/lib/WP3ContentListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-06-15 13:28:41 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070615132841-00nybwftc708w96n
Tags: 0.8.10-1
* New upstream release
* bump shlibs for libwpd-stream8c2a 

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
_WP3ContentParsingState::_WP3ContentParsingState():
34
34
        m_colSpan(1),
35
35
        m_rowSpan(1),
36
 
        m_cellFillColor(0)
 
36
        m_textBuffer(),
 
37
        m_cellFillColor(0),
 
38
        m_noteReference(),
 
39
        m_tableList()
37
40
{
38
 
        m_textBuffer.clear();
39
 
        m_noteReference.clear();
40
41
}
41
42
 
42
43
_WP3ContentParsingState::~_WP3ContentParsingState()
43
44
{
44
 
        m_textBuffer.clear();
45
 
        m_noteReference.clear();
46
45
        DELETEP(m_cellFillColor);
47
46
}
48
47
 
140
139
                m_ps->m_tableDefinition.m_leftOffset = _movePositionToFirstColumn( (float)((double)leftOffset / (double)WPX_NUM_WPUS_PER_INCH) ) - m_ps->m_paragraphMarginLeft;
141
140
 
142
141
                // remove all the old column information
143
 
                m_ps->m_tableDefinition.columns.clear();
144
 
                m_ps->m_tableDefinition.columnsProperties.clear();
 
142
                m_ps->m_tableDefinition.m_columns.clear();
 
143
                m_ps->m_tableDefinition.m_columnsProperties.clear();
145
144
                m_ps->m_numRowsToSkip.clear();
146
145
        }
147
146
}
158
157
                colDef.m_rightGutter = (float)((double)width / (double)WPX_NUM_WPUS_PER_INCH);
159
158
 
160
159
                // add the new column definition to our table definition
161
 
                m_ps->m_tableDefinition.columns.push_back(colDef);
 
160
                m_ps->m_tableDefinition.m_columns.push_back(colDef);
162
161
                
163
162
                WPXColumnProperties colProp;
164
163
                colProp.m_attributes = attributes;
165
164
                colProp.m_alignment = alignment;
166
165
                
167
 
                m_ps->m_tableDefinition.columnsProperties.push_back(colProp);
 
166
                m_ps->m_tableDefinition.m_columnsProperties.push_back(colProp);
168
167
                
169
168
                // initialize the variable that tells us how many columns to skip
170
169
                m_ps->m_numRowsToSkip.push_back(0);