00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 00002 /* 00003 * This file is part of the libmspub project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 */ 00009 00010 #ifndef __TABLEINFO_H__ 00011 #define __TABLEINFO_H__ 00012 00013 #include <vector> 00014 00015 namespace libmspub 00016 { 00017 00018 struct CellInfo 00019 { 00020 CellInfo() 00021 : m_startRow() 00022 , m_endRow() 00023 , m_startColumn() 00024 , m_endColumn() 00025 { 00026 } 00027 00028 unsigned m_startRow; 00029 unsigned m_endRow; 00030 unsigned m_startColumn; 00031 unsigned m_endColumn; 00032 }; 00033 00034 struct TableInfo 00035 { 00036 std::vector<unsigned> m_rowOffsetsInEmu; 00037 std::vector<unsigned> m_columnOffsetsInEmu; 00038 unsigned m_numRows; 00039 unsigned m_numColumns; 00040 std::vector<CellInfo> m_cells; 00041 TableInfo(unsigned numRows, unsigned numColumns) : m_rowOffsetsInEmu(), 00042 m_columnOffsetsInEmu(), m_numRows(numRows), m_numColumns(numColumns), 00043 m_cells() 00044 { 00045 } 00046 }; 00047 } // namespace libmspub 00048 00049 #endif /* __TABLEINFO_H__ */ 00050 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */