12 #include "scribusapi.h"
29 CellArea(
int row,
int column,
int width,
int height);
35 bool isValid()
const {
return m_width >= 1 && m_height >= 1; }
38 int row()
const {
return m_row; }
40 void setRow(
int row) { m_row = row; }
43 int column()
const {
return m_column; }
48 int width()
const {
return m_width; }
53 int height()
const {
return m_height; }
58 int bottom()
const {
return m_row + m_height - 1; }
60 int right()
const {
return m_column + m_width - 1; }
63 bool contains(
int row,
int column)
const;
65 bool contains(
const CellArea& area)
const;
68 bool intersects(
const CellArea& area);
71 CellArea translated(
int rows,
int columns)
const;
73 void translate(
int rows,
int columns);
76 CellArea adjusted(
int rows,
int columns,
int width,
int height)
const;
78 void adjust(
int rows,
int columns,
int width,
int height);
91 CellArea adjustedForRowInsertion(
int index,
int numRows);
101 CellArea adjustedForRowRemoval(
int index,
int numRows);
111 CellArea adjustedForColumnInsertion(
int index,
int numColumns);
121 CellArea adjustedForColumnRemoval(
int index,
int numColumns);
129 Q_DECLARE_TYPEINFO(
CellArea, Q_MOVABLE_TYPE);
int column() const
Returns the start column of the area.
Definition: cellarea.h:43
int height() const
Returns the height of the area.
Definition: cellarea.h:53
void setWidth(int width)
Sets the width of the area to width.
Definition: cellarea.h:50
void setHeight(int height)
Sets the height of the area to height.
Definition: cellarea.h:55
std::ostream & operator<<(std::ostream &out_file, const Geom::Matrix &m)
Definition: matrix.h:109
void setColumn(int column)
Sets the start column of the area to column.
Definition: cellarea.h:45
int bottom() const
Returns the bottom row of the area.
Definition: cellarea.h:58
int row() const
Returns the start row of the area.
Definition: cellarea.h:38
int width() const
Returns the width of the area.
Definition: cellarea.h:48
int right() const
Returns the right column of the area.
Definition: cellarea.h:60
bool isValid() const
Returns true if the area is valid.
Definition: cellarea.h:35
void setRow(int row)
Sets the start row of the area to row.
Definition: cellarea.h:40
Definition: cellarea.h:22