Blame src/lib/TableInfo.h

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