TableInfo.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libmspub project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_TABLEINFO_H
#define INCLUDED_TABLEINFO_H
#include <vector>
namespace libmspub
{
struct CellInfo
{
CellInfo()
: m_startRow()
, m_endRow()
, m_startColumn()
, m_endColumn()
{
}
unsigned m_startRow;
unsigned m_endRow;
unsigned m_startColumn;
unsigned m_endColumn;
};
struct TableInfo
{
std::vector<unsigned> m_rowHeightsInEmu;
std::vector<unsigned> m_columnWidthsInEmu;
unsigned m_numRows;
unsigned m_numColumns;
std::vector<CellInfo> m_cells;
TableInfo(unsigned numRows, unsigned numColumns) : m_rowHeightsInEmu(),
m_columnWidthsInEmu(), m_numRows(numRows), m_numColumns(numColumns),
m_cells()
{
}
};
} // namespace libmspub
#endif /* INCLUDED_TABLEINFO_H */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub
Definition Arrow.h:14
libmspub::CellInfo::m_startRow
unsigned m_startRow
Definition TableInfo.h:28
libmspub::CellInfo::CellInfo
CellInfo()
Definition TableInfo.h:20
libmspub::CellInfo::m_endRow
unsigned m_endRow
Definition TableInfo.h:29
libmspub::CellInfo::m_endColumn
unsigned m_endColumn
Definition TableInfo.h:31
libmspub::CellInfo::m_startColumn
unsigned m_startColumn
Definition TableInfo.h:30
libmspub::TableInfo::m_columnWidthsInEmu
std::vector< unsigned > m_columnWidthsInEmu
Definition TableInfo.h:37
libmspub::TableInfo::m_rowHeightsInEmu
std::vector< unsigned > m_rowHeightsInEmu
Definition TableInfo.h:36
libmspub::TableInfo::m_numRows
unsigned m_numRows
Definition TableInfo.h:38
libmspub::TableInfo::m_cells
std::vector< CellInfo > m_cells
Definition TableInfo.h:40
libmspub::TableInfo::m_numColumns
unsigned m_numColumns
Definition TableInfo.h:39
libmspub::TableInfo::TableInfo
TableInfo(unsigned numRows, unsigned numColumns)
Definition TableInfo.h:41