6#ifndef KOCSSSTYLEPRESET_H
7#define KOCSSSTYLEPRESET_H
11#include <kritaflake_export.h>
38 QString description()
const;
39 void setDescription(
const QString &desc);
42 QString styleType()
const;
43 void setStyleType(
const QString &type);
46 QString sampleText()
const;
49 void setSampleText(
const QString &text);
52 QString beforeText()
const;
55 void setBeforeText(
const QString &text);
58 QString afterText()
const;
61 void setAfterText(
const QString &text);
64 QString sampleSvg()
const;
72 int storedPPIResolution()
const;
74 void setStoredPPIResolution(
const int ppi);
80 KoShape* generateSampleShape()
const;
84 Qt::Alignment alignSample()
const;
94 QString primaryFontFamily()
const;
96 void updateAlignSample();
108 QScopedPointer<Private>
d;
QSharedPointer< KoCssStylePreset > KoCssStylePresetSP
The KoCssStylePreset class.
QScopedPointer< Private > d
KoCssStylePreset & operator=(const KoCssStylePreset &rhs)=delete
virtual QPair< QString, QString > resourceType() const =0
virtual KoResourceSP clone() const =0
virtual QString defaultFileExtension() const
virtual bool saveToDevice(QIODevice *dev) const
virtual void updateThumbnail()
updateThumbnail updates the thumbnail for this resource. Reimplement if your thumbnail is something e...
virtual bool loadFromDevice(QIODevice *dev, KisResourcesInterfaceSP resourcesInterface)=0