aboutsummaryrefslogtreecommitdiff
path: root/src/renderers/textstyleinstance.hpp
blob: cab2d252686206f97bd07af4686f48ad70f9963c (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
#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;

    QTextBlockFormat standard_format;
    QTextBlockFormat preformatted_format;
    QTextBlockFormat block_quote_format;
    QTextBlockFormat heading_format;
    QTextBlockFormat link_format;
    QTextListFormat list_format;

    explicit TextStyleInstance(DocumentStyle const & style);
};

#endif // TEXTSTYLEINSTANCE_HPP