Line

This class contains the line properties of worksheet elements.

Public Methods

void

Line(const QString &name)

void

init(const KConfigGroup &)

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfigGroup &)

void

loadThemeConfig(const KConfigGroup &, const QColor &)

QPen

pen() const

const QString&

prefix() const

void

save(QXmlStreamWriter *) const override

void

saveThemeConfig(KConfigGroup &) const

void

setCreateXmlElement(bool)

void

setPrefix(const QString &)

Detailed Description

class Line : public AbstractAspect

This class contains the line properties of worksheet elements.

Public Functions

void setCreateXmlElement(bool)

defines whether an XML element needs to be create in write(). For objects where the line properties are serialized together with some other properties, the XML element is created in objects’s save() already and there is not need to create it once more in Line::save():

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.