~ubuntu-branches/ubuntu/vivid/libwpd/vivid

« back to all changes in this revision

Viewing changes to src/lib/WPXTable.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2014-08-08 00:35:26 UTC
  • mfrom: (11.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20140808003526-7pku3062w50cnsod
Tags: 0.10.0-2
* upload to unstable

* fix debian/copyright for MPL-2.0 | LGPL-2.1+ dual-license 

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#define _WPXTABLE_H
38
38
#include <vector>
39
39
#include <stdio.h>
40
 
#include "libwpd_types.h"
41
40
 
42
41
typedef struct _WPXTableCell WPXTableCell;
43
42
 
44
43
struct _WPXTableCell
45
44
{
46
 
        _WPXTableCell(uint8_t colSpan, uint8_t rowSpan, uint8_t borderBits);
47
 
        uint8_t m_colSpan;
48
 
        uint8_t m_rowSpan;
49
 
        uint8_t m_borderBits;
 
45
        _WPXTableCell(unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits);
 
46
        unsigned char m_colSpan;
 
47
        unsigned char m_rowSpan;
 
48
        unsigned char m_borderBits;
50
49
};
51
50
 
52
51
class WPXTable
55
54
        WPXTable() : m_tableRows() {}
56
55
        ~WPXTable();
57
56
        void insertRow();
58
 
        void insertCell(uint8_t colSpan, uint8_t rowSpan, uint8_t borderBits);
 
57
        void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits);
59
58
        const WPXTableCell  *getCell(size_t i, size_t j)
60
59
        {
61
60
                return (m_tableRows[i])[j];