1 #ifndef RENDERHELPERS_HPP
2 #define RENDERHELPERS_HPP
3 
4 #include <QByteArray>
5 #include <QTextCursor>
6 #include <QTextDocument>
7 
8 namespace renderhelpers
9 {
10     void renderEscapeCodes(const QByteArray &input, QTextCharFormat& format, const QTextCharFormat& defaultFormat, QTextCursor& cursor);
11 
12     /**
13      * Replaces single and double quotes (', ") with one of the four
14      * typographer's quotes, a.k.a curly quotes, e.g: ‘this’ and “this”
15      */
16     QByteArray replace_quotes(QByteArray &line);
17 
18     void setPageMargins(QTextDocument *doc, int mh, int mv);
19 }
20 
21 #endif
22