Scribus
Open source desktop publishing at your fingertips
tableutils.h
1 /*
2 Copyright (C) 2011 Elvis Stansvik <elvstone@gmail.com>
3 
4 For general Scribus (>=1.3.2) copyright and licensing information please refer
5 to the COPYING file provided with the program. Following this notice may exist
6 a copyright and/or license notice that predates the release of Scribus 1.3.2
7 for which a new license (GPL+exception) is in place.
8 */
9 #ifndef TABLEUTILS_H
10 #define TABLEUTILS_H
11 
12 #include "scribusapi.h"
13 #include "tableborder.h"
14 
15 class QPointF;
16 class TableCell;
17 class PageItem_Table;
18 
22 namespace TableUtils
23 {
24 
61 void SCRIBUS_API resolveBordersHorizontal(const TableCell& topLeftCell, const TableCell& topCell,
62  const TableCell& topRightCell, const TableCell& bottomLeftCell, const TableCell& bottomCell,
63  const TableCell& bottomRightCell, TableBorder* topLeft, TableBorder* left, TableBorder* bottomLeft,
64  TableBorder* center, TableBorder* topRight, TableBorder* right, TableBorder* bottomRight, PageItem_Table* table);
65 
108 void SCRIBUS_API resolveBordersVertical(const TableCell& topLeftCell, const TableCell& topRightCell,
109  const TableCell& leftCell, const TableCell& rightCell, const TableCell& bottomLeftCell,
110  const TableCell& bottomRightCell, TableBorder* topLeft, TableBorder* top, TableBorder* topRight,
111  TableBorder* center, TableBorder* bottomLeft, TableBorder* bottom, TableBorder* bottomRight, PageItem_Table* table);
112 
124 TableBorder SCRIBUS_API collapseBorders(const TableBorder& firstBorder, const TableBorder& secondBorder);
125 
166 void SCRIBUS_API joinVertical(const TableBorder& border, const TableBorder& topLeft, const TableBorder& top,
167  const TableBorder& topRight, const TableBorder& bottomLeft, const TableBorder& bottom,
168  const TableBorder& bottomRight, QPointF* start, QPointF* end, QPointF* startOffsetFactors,
169  QPointF* endOffsetFactors);
170 
206 void SCRIBUS_API joinHorizontal(const TableBorder& border, const TableBorder& topLeft, const TableBorder& left,
207  const TableBorder& bottomLeft, const TableBorder& topRight, const TableBorder& right,
208  const TableBorder& bottomRight, QPointF* start, QPointF* end, QPointF* startOffsetFactors,
209  QPointF* endOffsetFactors);
210 
211 } // namespace TableUtils
212 
213 #endif // TABLEUTILS_H
void resolveBordersVertical(const TableCell &topLeftCell, const TableCell &topRightCell, const TableCell &leftCell, const TableCell &rightCell, const TableCell &bottomLeftCell, const TableCell &bottomRightCell, TableBorder *topLeft, TableBorder *top, TableBorder *topRight, TableBorder *center, TableBorder *bottomLeft, TableBorder *bottom, TableBorder *bottomRight, PageItem_Table *table)
Definition: tableutils.cpp:106
Definition: tableutils.cpp:17
Definition: tableborder.h:86
void joinHorizontal(const TableBorder &border, const TableBorder &topLeft, const TableBorder &left, const TableBorder &bottomLeft, const TableBorder &topRight, const TableBorder &right, const TableBorder &bottomRight, QPointF *start, QPointF *end, QPointF *startOffsetFactors, QPointF *endOffsetFactors)
Definition: tableutils.cpp:409
void joinVertical(const TableBorder &border, const TableBorder &topLeft, const TableBorder &top, const TableBorder &topRight, const TableBorder &bottomLeft, const TableBorder &bottom, const TableBorder &bottomRight, QPointF *start, QPointF *end, QPointF *startOffsetFactors, QPointF *endOffsetFactors)
Definition: tableutils.cpp:239
Definition: tablecell.h:97
void resolveBordersHorizontal(const TableCell &topLeftCell, const TableCell &topCell, const TableCell &topRightCell, const TableCell &bottomLeftCell, const TableCell &bottomCell, const TableCell &bottomRightCell, TableBorder *topLeft, TableBorder *left, TableBorder *bottomLeft, TableBorder *center, TableBorder *topRight, TableBorder *right, TableBorder *bottomRight, PageItem_Table *table)
Definition: tableutils.cpp:20
Definition: pageitem_table.h:49
TableBorder collapseBorders(const TableBorder &firstBorder, const TableBorder &secondBorder)
Definition: tableutils.cpp:190