1 #ifndef TEXTSTYLEINSTANCE_HPP 2 #define TEXTSTYLEINSTANCE_HPP 3 4 #include <QTextCharFormat> 5 #include <QTextBlockFormat> 6 7 #include "documentstyle.hpp" 8 9 struct TextStyleInstance 10 { 11 QTextCharFormat preformatted; 12 QTextCharFormat standard; 13 QTextCharFormat standard_link; 14 QTextCharFormat external_link; 15 QTextCharFormat cross_protocol_link; 16 QTextCharFormat standard_h1; 17 QTextCharFormat standard_h2; 18 QTextCharFormat standard_h3; 19 QTextCharFormat blockquote; 20 21 QTextBlockFormat standard_format; 22 QTextBlockFormat preformatted_format; 23 QTextBlockFormat blockquote_format; 24 QTextBlockFormat heading_format; 25 QTextBlockFormat link_format; 26 QTextListFormat list_format; 27 QTextTableFormat blockquote_tableformat; 28 29 explicit TextStyleInstance(DocumentStyle const & style); 30 }; 31 32 #endif // TEXTSTYLEINSTANCE_HPP 33