summaryrefslogtreecommitdiffstats
path: root/scribus/pdflib.cpp
blob: 6c60a803a679fa455b10ba9215d41dc2bf855001 (plain)
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
#include "pdflib.h"

#include "pdflib_core.h"

PDFlib::PDFlib(ScribusDoc & docu)
    : impl( new PDFLibCore(docu) )
{
    Q_ASSERT(impl);
}

PDFlib::~PDFlib()
{
    delete static_cast<PDFLibCore*>(impl);
}

bool PDFlib::doExport(const QString& fn, const QString& nam, int Components,
			  const std::vector<int> & pageNs, const QMap<int,QPixmap> & thumbs)
{
    return static_cast<PDFLibCore*>(impl)->doExport(fn, nam, Components, pageNs, thumbs);
}

const QString& PDFlib::errorMessage(void)
{
	return static_cast<PDFLibCore*>(impl)->errorMessage();
}

bool PDFlib::exportAborted(void)
{
	return static_cast<PDFLibCore*>(impl)->exportAborted();
}