1 #ifndef FORMATTINGOPTIONS_H
2 #define FORMATTINGOPTIONS_H
7 #include <QQmlAutoPropertyHelpers.h>
12 QML_WRITABLE_AUTO_PROPERTY(
int, fontSize)
13 QML_WRITABLE_AUTO_PROPERTY(QColor, textColor)
14 QML_WRITABLE_AUTO_PROPERTY(QColor, backgroundColor)
15 QML_WRITABLE_AUTO_PROPERTY(QColor, markupColor)
16 QML_WRITABLE_AUTO_PROPERTY(QColor, linkColor)
17 QML_WRITABLE_AUTO_PROPERTY(QString, fontFamily)
18 QML_WRITABLE_AUTO_PROPERTY(QFont::Weight, fontWeight)
19 QML_WRITABLE_AUTO_PROPERTY(
bool, autoMatchEnabled)
20 QML_WRITABLE_AUTO_PROPERTY(
bool, cycleBulletMarker)
21 QML_WRITABLE_AUTO_PROPERTY(
bool, enableLargeHeadingSizes)
22 QML_WRITABLE_AUTO_PROPERTY(
bool, useUnderlineForEmp)
23 QML_WRITABLE_AUTO_PROPERTY(
bool, spacesForTabs)
24 QML_WRITABLE_AUTO_PROPERTY(
int, tabWidth)
25 QML_WRITABLE_AUTO_PROPERTY(
int, paperMargins)
32 m_textColor(Qt::darkGray),
33 m_backgroundColor(Qt::white),
34 m_markupColor(Qt::lightGray),
35 m_linkColor(Qt::blue),
36 m_fontFamily(QStringLiteral(
"Ubuntu")),
37 m_fontWeight(QFont::Light),
38 m_autoMatchEnabled(
false),
39 m_cycleBulletMarker(
true),
40 m_enableLargeHeadingSizes(
false),
41 m_useUnderlineForEmp(
false),
42 m_spacesForTabs(
false),
50 #endif // FORMATTINGOPTIONS_H