IWORKTableRecorder.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/*
3 * This file is part of the libetonyek project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef IWORKTABLERECORDER_H_INCLUDED
11#define IWORKTABLERECORDER_H_INCLUDED
12
13#include <memory>
14
15#include <boost/optional.hpp>
16
17#include "IWORKStyle_fwd.h"
18#include "IWORKTable.h"
19#include "IWORKTypes.h"
20
21namespace libetonyek
22{
23
24class IWORKText;
25
27{
28public:
30
31 void replay(IWORKTable &table) const;
32
33 void setSize(unsigned columns, unsigned rows);
34 void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows);
35 void setBandedRows(bool banded);
36 void setRepeated(bool columns, bool rows);
37
38 void setOrder(int order);
39 void setStyle(const IWORKStylePtr_t &style);
40 void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes);
41 void setBorders(const IWORKGridLineMap_t &verticalLines, const IWORKGridLineMap_t &horizontalLines);
42 void setBorders(const IWORKGridLineMap_t &verticalLeftLines, const IWORKGridLineMap_t &verticalRightLines,
43 const IWORKGridLineMap_t &horizontalTopLines, const IWORKGridLineMap_t &horizontalBottomLines);
44 void setComment(unsigned column, unsigned row, IWORKOutputElements const &text);
45 void insertCell(unsigned column, unsigned row, const boost::optional<std::string> &value, const std::shared_ptr<IWORKText> &content, const boost::optional<IWORKDateTimeData> &dateTime, unsigned columnSpan, unsigned rowSpan, const IWORKFormulaPtr_t &formula, const boost::optional<unsigned> &formulaHC, const IWORKStylePtr_t &style, IWORKCellType type);
46 void insertCoveredCell(unsigned column, unsigned row);
47
51
52private:
53 struct Impl;
54
55private:
56 std::shared_ptr<Impl> m_impl;
57};
58
59}
60
61#endif // IWORKTABLERECORDER_H_INCLUDED
62
63/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition IWORKOutputElements.h:33
void setDefaultParagraphStyle(IWORKTable::CellType type, const IWORKStylePtr_t &style)
Definition IWORKTableRecorder.cpp:431
void setSizes(const IWORKColumnSizes_t &columnSizes, const IWORKRowSizes_t &rowSizes)
Definition IWORKTableRecorder.cpp:394
void setDefaultCellStyle(IWORKTable::CellType type, const IWORKStylePtr_t &style)
Definition IWORKTableRecorder.cpp:421
void setBorders(const IWORKGridLineMap_t &verticalLines, const IWORKGridLineMap_t &horizontalLines)
Definition IWORKTableRecorder.cpp:399
void setHeaders(unsigned headerColumns, unsigned headerRows, unsigned footerRows)
Definition IWORKTableRecorder.cpp:369
void replay(IWORKTable &table) const
Definition IWORKTableRecorder.cpp:352
void setBandedRows(bool banded)
Definition IWORKTableRecorder.cpp:374
void setComment(unsigned column, unsigned row, IWORKOutputElements const &text)
Definition IWORKTableRecorder.cpp:359
void setStyle(const IWORKStylePtr_t &style)
Definition IWORKTableRecorder.cpp:389
void setSize(unsigned columns, unsigned rows)
Definition IWORKTableRecorder.cpp:364
void insertCoveredCell(unsigned column, unsigned row)
Definition IWORKTableRecorder.cpp:416
void setDefaultLayoutStyle(IWORKTable::CellType type, const IWORKStylePtr_t &style)
Definition IWORKTableRecorder.cpp:426
std::shared_ptr< Impl > m_impl
Definition IWORKTableRecorder.h:56
void setOrder(int order)
Definition IWORKTableRecorder.cpp:384
IWORKTableRecorder()
Definition IWORKTableRecorder.cpp:347
void setRepeated(bool columns, bool rows)
Definition IWORKTableRecorder.cpp:379
void insertCell(unsigned column, unsigned row, const boost::optional< std::string > &value, const std::shared_ptr< IWORKText > &content, const boost::optional< IWORKDateTimeData > &dateTime, unsigned columnSpan, unsigned rowSpan, const IWORKFormulaPtr_t &formula, const boost::optional< unsigned > &formulaHC, const IWORKStylePtr_t &style, IWORKCellType type)
Definition IWORKTableRecorder.cpp:411
Definition IWORKTable.h:32
CellType
Definition IWORKTable.h:54
Definition IWORKText.h:34
@ column
Definition IWORKToken.h:156
@ value
Definition IWORKToken.h:631
@ row
Definition IWORKToken.h:390
@ text
Definition IWORKToken.h:472
@ content
Definition IWORKToken.h:167
@ rows
Definition IWORKToken.h:392
@ type
Definition IWORKToken.h:493
@ style
Definition IWORKToken.h:421
@ formula
Definition IWORKToken.h:228
@ columns
Definition IWORKToken.h:158
@ table
Definition KEY1Token.h:198
@ order
Definition PAG1Token.h:43
Definition IWORKBezierElement.cpp:21
IWORKCellType
Definition IWORKEnum.h:80
std::map< unsigned, IWORKGridLine_t > IWORKGridLineMap_t
Definition IWORKTypes.h:122
std::deque< IWORKColumnRowSize > IWORKColumnSizes_t
Definition IWORKTypes_fwd.h:24
std::shared_ptr< IWORKFormula > IWORKFormulaPtr_t
Definition IWORKTypes.h:123
std::deque< IWORKColumnRowSize > IWORKRowSizes_t
Definition IWORKTypes_fwd.h:26
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition IWORKStyle_fwd.h:23
Definition IWORKTableRecorder.cpp:336

Generated for libetonyek by doxygen 1.13.2