2008-01-17 01:01:02 +00:00
|
|
|
/** QgsQuickPrint is a convenience class to quickly print a
|
|
|
|
preformatted map to pdf.
|
|
|
|
*/
|
|
|
|
class QgsQuickPrint : QObject
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsquickprint.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsQuickPrint();
|
|
|
|
//! Destructor
|
|
|
|
virtual ~QgsQuickPrint();
|
2008-02-06 03:15:12 +00:00
|
|
|
static QString pageSizeToString(QPrinter::PageSize theSize);
|
|
|
|
static QPrinter::PageSize stringToPageSize(QString theSize);
|
2008-01-17 01:01:02 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void printMap();
|
|
|
|
void setTitle(QString theText);
|
|
|
|
void setName(QString theText);
|
|
|
|
void setCopyright(QString theText);
|
|
|
|
void setNorthArrow(QString theFileName);
|
|
|
|
void setLogo1(QString theFileName);
|
|
|
|
void setLogo2(QString theFileName);
|
|
|
|
void setOutputPdf(QString theFileName);
|
|
|
|
void setMapCanvas(QgsMapCanvas * thepMapCanvas);
|
2008-02-06 03:15:12 +00:00
|
|
|
void setPageSize(QPrinter::PageSize theSize);
|
2008-01-17 01:01:02 +00:00
|
|
|
};
|
|
|
|
|