Fixing bugs - annotation rendering

This commit is contained in:
Jakub Melka
2020-03-07 19:20:07 +01:00
parent 0b2d94d115
commit e124ae9135
4 changed files with 66 additions and 7 deletions

View File

@ -1036,6 +1036,13 @@ private:
using BaseClass = QObject;
public:
enum class Target
{
View,
Print
};
explicit PDFAnnotationManager(PDFDrawWidgetProxy* proxy, QObject* parent);
virtual ~PDFAnnotationManager() override;
@ -1047,6 +1054,9 @@ public:
void setDocument(const PDFDocument* document);
Target getTarget() const;
void setTarget(Target target);
private:
struct PageAnnotation
{
@ -1074,6 +1084,7 @@ private:
const PDFDocument* m_document;
PDFDrawWidgetProxy* m_proxy;
mutable std::map<PDFInteger, PageAnnotations> m_pageAnnotations;
Target m_target = Target::View;
};
} // namespace pdf