-
Notifications
You must be signed in to change notification settings - Fork 1
/
latexdocument.h
46 lines (40 loc) · 1.15 KB
/
latexdocument.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef LATEXDOCUMENT_H
#define LATEXDOCUMENT_H
#include "vfkdocument.h"
class LatexDocument : public VfkDocument
{
public:
LatexDocument();
QString toString() { return mPage; }
void header();
void footer();
void heading1( const QString &text );
void heading2( const QString &text );
void heading3( const QString &text );
void beginItemize();
void endItemize();
void beginItem();
void endItem();
void item( const QString &text );
void beginTable();
void endTable();
void tableHeader( const QStringList &columns );
void tableRow( const QStringList &columns );
void tableRowOneColumnSpan( const QString &text );
QString link( const QString &href, const QString &text );
QString superscript( const QString &text );
QString newLine();
void keyValueTable( const KeyValList &content );
void paragraph( const QString &text );
void table( const TableContent &content, bool header );
void text( const QString &text );
void discardLastBeginTable();
bool isLastTableEmpty();
private:
QString mPage;
QStringList mLastTableContent;
QString mLastTableHeader;
int mLastColumnNumber;
int mMaxRows;
};
#endif // LATEXDOCUMENT_H