PoDoFo 1.2.0
Loading...
Searching...
No Matches
PdfAnnotationWidget.h
1// SPDX-FileCopyrightText: 2022 Francesco Pretto <ceztko@gmail.com>
2// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
3
4#ifndef PDF_ANNOTATION_WIDGET_H
5#define PDF_ANNOTATION_WIDGET_H
6
7#include "PdfAnnotationActionBase.h"
8
9namespace PoDoFo {
10
11 class PdfField;
12
13 class PODOFO_API PdfAnnotationWidget :
14 public PdfAnnotationActionBase,
15 public PdfAppearanceCharacteristicsProvider<PdfAnnotationWidget>
16 {
17 friend class PdfAnnotation;
18 friend class PdfField;
19 friend class PdfPage;
20 private:
21 PdfAnnotationWidget(PdfPage& page, const Rect& rect);
22 PdfAnnotationWidget(PdfObject& obj);
23 public:
24 const PdfField& GetField() const;
25 PdfField& GetField();
26 private:
27 void SetField(std::shared_ptr<PdfField>&& field);
28 const std::shared_ptr<PdfField>& GetFieldPtr() { return m_Field; }
29 private:
30 void initField();
31 private:
32 std::shared_ptr<PdfField> m_Field;
33 };
34}
35
36#endif // PDF_ANNOTATION_WIDGET_H
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13