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

    explicit TextStyleInstance(DocumentStyle const & style);
};

#endif // TEXTSTYLEINSTANCE_HPP