Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertyData.h File Reference
#include "KoSvgTextProperties.h"
#include "kritaflake_export.h"
#include <boost/operators.hpp>
#include <QDebug>

Go to the source code of this file.

Classes

struct  KoSvgTextPropertyData
 The KoSvgTextPropertyData struct. More...
 

Functions

QDebug KRITAFLAKE_EXPORT operator<< (QDebug dbg, const KoSvgTextPropertyData &prop)
 

Function Documentation

◆ operator<<()

QDebug KRITAFLAKE_EXPORT operator<< ( QDebug dbg,
const KoSvgTextPropertyData & prop )

Definition at line 20 of file KoSvgTextPropertyData.cpp.

21{
22 dbg.nospace() << "TextPropertyData(";
23 dbg.nospace() << " Common properties:" << prop.commonProperties.convertParagraphProperties() << prop.commonProperties.convertToSvgTextAttributes();
24 dbg.nospace() << " Tristate:" << prop.tristate;
25 dbg.nospace() << " )";
26 return dbg.space();
27}
QMap< QString, QString > convertToSvgTextAttributes() const
QMap< QString, QString > convertParagraphProperties() const
convertParagraphProperties some properties only apply to the root shape, so we write those separately...
KoSvgTextProperties commonProperties
The properties common between all the selected text.
QSet< KoSvgTextProperties::PropertyId > tristate
The properties that are not common (tri-state) between the selected text.

References KoSvgTextPropertyData::commonProperties, KoSvgTextProperties::convertParagraphProperties(), KoSvgTextProperties::convertToSvgTextAttributes(), and KoSvgTextPropertyData::tristate.