mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #10: Ability to cancel the operation
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
#include "pdfmeshqualitysettings.h"
|
||||
#include "pdfblendfunction.h"
|
||||
#include "pdftextlayout.h"
|
||||
#include "pdfoperationcontrol.h"
|
||||
|
||||
#include <QMatrix>
|
||||
#include <QPainterPath>
|
||||
@ -237,6 +238,15 @@ public:
|
||||
/// or true, if it is suppressed.
|
||||
virtual bool isContentSuppressedByOC(PDFObjectReference ocgOrOcmd);
|
||||
|
||||
/// Sets operation control object which can decide, if operation should
|
||||
/// be cancelled. If this is the case, page content processor stops
|
||||
/// processing page contents.
|
||||
/// \param newOperationControl Operation control object
|
||||
void setOperationControl(const PDFOperationControl* newOperationControl);
|
||||
|
||||
/// Returns true, if page content processing is being cancelled
|
||||
bool isProcessingCancelled() const;
|
||||
|
||||
protected:
|
||||
|
||||
struct PDFTransparencyGroup
|
||||
@ -1009,6 +1019,7 @@ private:
|
||||
const PDFFontCache* m_fontCache;
|
||||
const PDFCMS* m_CMS;
|
||||
const PDFOptionalContentActivity* m_optionalContentActivity;
|
||||
const PDFOperationControl* m_operationControl;
|
||||
const PDFDictionary* m_colorSpaceDictionary;
|
||||
const PDFDictionary* m_fontDictionary;
|
||||
const PDFDictionary* m_xobjectDictionary;
|
||||
|
Reference in New Issue
Block a user