aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/textstyleinstance.hpp
blob: f1d34bc57cf6261755be254b097015497cbf1b26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef TEXTSTYLEINSTANCE_HPP
#define TEXTSTYLEINSTANCE_HPP

#include <QTextCharFormat>
#include <QTextBlockFormat>

#include "documentstyle.hpp"

struct TextStyleInstance
{
    QTextCharFormat preformatted;
    QTextCharFormat standard;
    QTextCharFormat standard_link;
    QTextCharFormat external_link;
    QTextCharFormat cross_protocol_link;
    QTextCharFormat standard_h1;
    QTextCharFormat standard_h2;
    QTextCharFormat standard_h3;
    QTextCharFormat blockquote;

    QTextBlockFormat standard_format;
    QTextBlockFormat preformatted_format;
    QTextBlockFormat blockquote_format;
    QTextBlockFormat heading_format;
    QTextBlockFormat link_format;
    QTextListFormat list_format;
    QTextTableFormat blockquote_tableformat;

    explicit TextStyleInstance(DocumentStyle const & style);
};

#endif // TEXTSTYLEINSTANCE_HPP