Changeset View
Changeset View
Standalone View
Standalone View
generators/poppler/formfields.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | 2 | * Copyright (C) 2007 by Pino Toscano <pino@kde.org> * | ||
3 | * * | 3 | * * | ||
4 | * This program is free software; you can redistribute it and/or modify * | 4 | * This program is free software; you can redistribute it and/or modify * | ||
5 | * it under the terms of the GNU General Public License as published by * | 5 | * it under the terms of the GNU General Public License as published by * | ||
6 | * the Free Software Foundation; either version 2 of the License, or * | 6 | * the Free Software Foundation; either version 2 of the License, or * | ||
7 | * (at your option) any later version. * | 7 | * (at your option) any later version. * | ||
8 | ***************************************************************************/ | 8 | ***************************************************************************/ | ||
9 | 9 | | |||
10 | #ifndef _OKULAR_GENERATOR_PDF_FORMFIELDS_H_ | 10 | #ifndef _OKULAR_GENERATOR_PDF_FORMFIELDS_H_ | ||
11 | #define _OKULAR_GENERATOR_PDF_FORMFIELDS_H_ | 11 | #define _OKULAR_GENERATOR_PDF_FORMFIELDS_H_ | ||
12 | 12 | | |||
13 | #include <poppler-form.h> | 13 | #include <poppler-form.h> | ||
14 | #include "core/form.h" | 14 | #include "core/form.h" | ||
15 | #include <config-okular-poppler.h> | ||||
15 | 16 | | |||
16 | class PopplerFormFieldButton : public Okular::FormFieldButton | 17 | class PopplerFormFieldButton : public Okular::FormFieldButton | ||
17 | { | 18 | { | ||
18 | public: | 19 | public: | ||
19 | explicit PopplerFormFieldButton( Poppler::FormFieldButton * field ); | 20 | explicit PopplerFormFieldButton( Poppler::FormFieldButton * field ); | ||
20 | virtual ~PopplerFormFieldButton(); | 21 | virtual ~PopplerFormFieldButton(); | ||
21 | 22 | | |||
22 | // inherited from Okular::FormField | 23 | // inherited from Okular::FormField | ||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 81 | { | |||
106 | 107 | | |||
107 | private: | 108 | private: | ||
108 | Poppler::FormFieldChoice * m_field; | 109 | Poppler::FormFieldChoice * m_field; | ||
109 | Okular::NormalizedRect m_rect; | 110 | Okular::NormalizedRect m_rect; | ||
110 | int m_id; | 111 | int m_id; | ||
111 | 112 | | |||
112 | }; | 113 | }; | ||
113 | 114 | | |||
115 | #ifdef HAVE_POPPLER_0_51 | ||||
114 | class PopplerSignatureInfo; | 116 | class PopplerSignatureInfo; | ||
115 | class PopplerFormFieldSignature : public Okular::FormFieldSignature | 117 | class PopplerFormFieldSignature : public Okular::FormFieldSignature | ||
116 | { | 118 | { | ||
117 | public: | 119 | public: | ||
118 | PopplerFormFieldSignature( Poppler::FormFieldSignature * field ); | 120 | PopplerFormFieldSignature( Poppler::FormFieldSignature * field ); | ||
119 | virtual ~PopplerFormFieldSignature(); | 121 | virtual ~PopplerFormFieldSignature(); | ||
120 | 122 | | |||
121 | // inherited from Okular::FormField | 123 | // inherited from Okular::FormField | ||
Show All 9 Lines | |||||
131 | const Okular::SignatureInfo &signatureInfo() const override; | 133 | const Okular::SignatureInfo &signatureInfo() const override; | ||
132 | 134 | | |||
133 | private: | 135 | private: | ||
134 | Poppler::FormFieldSignature * m_field; | 136 | Poppler::FormFieldSignature * m_field; | ||
135 | Okular::SignatureInfo *m_info; | 137 | Okular::SignatureInfo *m_info; | ||
136 | Okular::NormalizedRect m_rect; | 138 | Okular::NormalizedRect m_rect; | ||
137 | int m_id; | 139 | int m_id; | ||
138 | }; | 140 | }; | ||
141 | #endif | ||||
139 | 142 | | |||
140 | #endif | 143 | #endif |