diff options
Diffstat (limited to 'notebookview.cc')
-rw-r--r-- | notebookview.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/notebookview.cc b/notebookview.cc index 833f8e8..c8fd1c0 100644 --- a/notebookview.cc +++ b/notebookview.cc @@ -18,6 +18,7 @@ #include <QtCore/QDebug> #include <QtGui/QResizeEvent> +#include "stftxtexport.h" #include "notebookview.h" #define VIEW_MARGIN 2 @@ -121,7 +122,7 @@ QRect NotebookView::getCurPageTrim() const return _nb->getPageTrim(_curPage); } -QImage NotebookView::exportPage(int pageNum) const +QImage NotebookView::exportPageAsImage(int pageNum) const { const QRect pageTrim = _nb->getPageTrim(pageNum); QImage image(pageTrim.width() / 4, pageTrim.height() / 4, QImage::Format_RGB32); @@ -139,6 +140,12 @@ void NotebookView::renderPage(QPainter *painter, int pageNum, const QRectF &targ scene.render(painter, target, source, Qt::KeepAspectRatio); } +void NotebookView::exportPageAsStrokeList(QIODevice *device, int pageNum) +{ + StfTxtExport writer(_nb); + writer.exportStrokeList(device, pageNum); +} + void NotebookView::requestPaperReplay(const QString &file, qint64 time) { emit paperReplayRequested(file, time); |