16 #include "scribusapi.h"
28 TableBorderLine(
double width, Qt::PenStyle style,
const QString& color,
double shade);
31 double width()
const {
return m_width; }
34 void setWidth(
double width) { m_width = width; }
37 Qt::PenStyle
style()
const {
return m_style; }
40 void setStyle(Qt::PenStyle style) { m_style = style; }
43 QString
color()
const {
return m_color; }
46 void setColor(
const QString& color) { m_color = color; }
49 double shade()
const {
return m_shade; }
52 void setShade(
double shade) { m_shade = shade; }
55 QString asString()
const;
60 return width() == other.
width() && color() == other.
color() && style() == other.
style() && shade() == other.
shade();
93 TableBorder(
double width, Qt::PenStyle style,
const QString& color,
double shade);
99 QList<TableBorderLine>
borderLines()
const {
return m_borderLines; }
114 void removeBorderLine(
int index);
129 bool isNull()
const {
return m_borderLines.size() == 0; }
132 QString asString()
const;
136 QList<TableBorderLine> m_borderLines;
156 return !(lhs == rhs);
159 #endif // TABLEBORDER_H
bool operator<(const TableBorderLine &other) const
Returns true if this table border line is thinner than other.
Definition: tableborder.h:67
void setShade(double shade)
Sets the shade of this table border line to shade.
Definition: tableborder.h:52
Definition: tableborder.h:21
Qt::PenStyle style() const
Returns the pen style of this table border line.
Definition: tableborder.h:37
bool operator!=(const TableBorderLine &other) const
Returns true if this table border line is not equal to other.
Definition: tableborder.h:64
bool isNull() const
Returns true if this border has no border lines.
Definition: tableborder.h:129
QList< TableBorderLine > borderLines() const
Returns the list of border lines for this border in the order they should be painted.
Definition: tableborder.h:99
Definition: tableborder.h:86
TableBorder()
Creates a new null table border. Null borders are used to indicate the absence of a border...
Definition: tableborder.h:90
void setColor(const QString &color)
Sets the color of this table border line to color.
Definition: tableborder.h:46
double width() const
Returns the width of this table border line.
Definition: tableborder.h:31
void setStyle(Qt::PenStyle style)
Sets the pen style of this table border line to style.
Definition: tableborder.h:40
bool operator==(const TableBorderLine &other) const
Returns true if this table border line is equal to other.
Definition: tableborder.h:58
double shade() const
Returns the shade of this table border line.
Definition: tableborder.h:49
void setWidth(double width)
Sets the width of this table border line to width.
Definition: tableborder.h:34
bool joinsWith(const TableBorder &other) const
Definition: tableborder.h:126
QString color() const
Returns the color of this table border line.
Definition: tableborder.h:43