void KoReportDesignerItemImage::buildXML(QDomDocument & doc, QDomElement & parent) { QDomElement entity = doc.createElement("report:image"); // properties addPropertyAsAttribute(&entity, m_name); addPropertyAsAttribute(&entity, m_resizeMode); entity.setAttribute("report:z-index", zValue()); buildXMLRect(doc, entity, &m_pos, &m_size); if (isInline()) { QDomElement map = doc.createElement("report:inline-image-data"); map.appendChild(doc.createTextNode(inlineImageData())); entity.appendChild(map); } else { addPropertyAsAttribute(&entity, m_controlSource); } parent.appendChild(entity); }
bool KRImageData::isInline() { return !(inlineImageData().isEmpty()); }