~ubuntu-branches/ubuntu/breezy/libwpd/breezy

« back to all changes in this revision

Viewing changes to src/lib/WP42HLStylesListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2004-08-10 00:37:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040810003747-5i7g92h2v88z70zo
Tags: 0.7.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "WPXFileStructure.h"
30
30
#include "libwpd_internal.h"
31
31
 
32
 
WP42HLStylesListener::WP42HLStylesListener(vector<WPXPageSpan *> *pageList, vector<WPXTable *> *tableList) : 
 
32
WP42HLStylesListener::WP42HLStylesListener(vector<WPXPageSpan *> *pageList, WPXTableList  *tableList) : 
33
33
        WP42HLListener(pageList, NULL),
34
34
        m_currentPage(new WPXPageSpan()),
35
35
        m_tableList(tableList), 
76
76
{
77
77
        if (!isUndoOn()) 
78
78
        {
79
 
                float marginInch = (float)(((double)margin + (double)WP6_NUM_EXTRA_WPU) / (double)WPX_NUM_WPUS_PER_INCH);
 
79
                float marginInch = (float)((double)margin / (double)WPX_NUM_WPUS_PER_INCH);
80
80
                switch(side)
81
81
                {
82
82
                        case WP6_PAGE_GROUP_TOP_MARGIN_SET:
93
93
{
94
94
        if (!isUndoOn()) 
95
95
        {               
96
 
                float marginInch = (float)(((double)margin + (double)WP6_NUM_EXTRA_WPU) / (double)WPX_NUM_WPUS_PER_INCH);
 
96
                float marginInch = (float)((double)margin / (double)WPX_NUM_WPUS_PER_INCH);
97
97
                switch(side)
98
98
                {
99
99
                        case WP6_COLUMN_GROUP_LEFT_MARGIN_SET:
145
145
        //{                     
146
146
                m_currentPageHasContent = true;
147
147
                m_currentTable = new WPXTable();
148
 
                m_tableList->push_back(m_currentTable);
 
148
                m_tableList->add(m_currentTable);
149
149
        //}
150
150
}
151
151