Beispiel #1
0
void KWord13Layout::xmldump( QTextStream& iostream )
{
    iostream << "    <layout name=\"" << EscapeXmlDump( m_name )
        << "\" outline=\"" << ( m_outline ? QString("true") : QString("false") ) << "\">\n";
    
    for ( QMap<QString,QString>::ConstIterator it = m_layoutProperties.constBegin();
        it != m_layoutProperties.constEnd();
        ++it)
    {
        iostream << "     <param key=\"" << it.key() << "\" data=\"" << EscapeXmlDump( it.data() ) << "\"/>\n";
    }
    
    m_format.xmldump( iostream );
    
    iostream << "    </layout>\n";
}
void KWord13FormatOneData::xmldump(QTextStream& iostream)
{
    iostream << "     <formatone>"  << "\">\n";

    for (QMap<QString, QString>::ConstIterator it = m_properties.constBegin();
            it != m_properties.constEnd();
            ++it) {
        iostream << "       <param key=\"" << it.key() << "\" data=\"" << EscapeXmlDump(it.data()) << "\"/>\n";
    }

    iostream << "    </formatone>\n";
}