Added TitleBlockCell::loadContentFromCell()

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1559 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier 2012-03-11 16:06:37 +00:00
parent 14d5811979
commit dc2ea1ae80
2 changed files with 18 additions and 0 deletions

View File

@ -143,6 +143,22 @@ bool TitleBlockCell::spans() const {
return(row_span || col_span);
}
/**
Copy the content of another cell.
@param other_cell Another cell
*/
void TitleBlockCell::loadContentFromCell(const TitleBlockCell &other_cell) {
value_name = other_cell.value_name;
cell_type = other_cell.cell_type;
logo_reference = other_cell.logo_reference;
value = other_cell.value;
label = other_cell.label;
display_label = other_cell.display_label;
font_size = other_cell.font_size;
alignment = other_cell.alignment;
hadjust = other_cell.hadjust;
}
/**
@param cell_element XML element from which cell content will be read
*/

View File

@ -46,9 +46,11 @@ class TitleBlockCell {
QVariant attribute(const QString &);
static QString attributeName(const QString &);
bool spans() const;
void loadContentFromCell(const TitleBlockCell &);
void loadContentFromXml(const QDomElement &);
void saveContentToXml(QDomElement &);
// attributes
public:
TemplateCellType cell_type; ///< Cell type: empty, text, logo?