Changeset View
Changeset View
Standalone View
Standalone View
generators/poppler/formfields.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | |||||
76 | #endif | 76 | #endif | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | bool PopplerFormFieldButton::isVisible() const | 79 | bool PopplerFormFieldButton::isVisible() const | ||
80 | { | 80 | { | ||
81 | return m_field->isVisible(); | 81 | return m_field->isVisible(); | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | void PopplerFormFieldButton::setVisible( bool value ) | ||||
85 | { | ||||
86 | #ifdef HAVE_POPPLER_0_64 | ||||
87 | m_field->setVisible( value ); | ||||
88 | #else | ||||
89 | Q_UNUSED( value ); | ||||
90 | #endif | ||||
91 | } | ||||
92 | | ||||
84 | Okular::FormFieldButton::ButtonType PopplerFormFieldButton::buttonType() const | 93 | Okular::FormFieldButton::ButtonType PopplerFormFieldButton::buttonType() const | ||
85 | { | 94 | { | ||
86 | switch ( m_field->buttonType() ) | 95 | switch ( m_field->buttonType() ) | ||
87 | { | 96 | { | ||
88 | case Poppler::FormFieldButton::Push: | 97 | case Poppler::FormFieldButton::Push: | ||
89 | return Okular::FormFieldButton::Push; | 98 | return Okular::FormFieldButton::Push; | ||
90 | case Poppler::FormFieldButton::CheckBox: | 99 | case Poppler::FormFieldButton::CheckBox: | ||
91 | return Okular::FormFieldButton::CheckBox; | 100 | return Okular::FormFieldButton::CheckBox; | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
163 | #endif | 172 | #endif | ||
164 | } | 173 | } | ||
165 | 174 | | |||
166 | bool PopplerFormFieldText::isVisible() const | 175 | bool PopplerFormFieldText::isVisible() const | ||
167 | { | 176 | { | ||
168 | return m_field->isVisible(); | 177 | return m_field->isVisible(); | ||
169 | } | 178 | } | ||
170 | 179 | | |||
180 | void PopplerFormFieldText::setVisible( bool value ) | ||||
181 | { | ||||
182 | #ifdef HAVE_POPPLER_0_64 | ||||
183 | m_field->setVisible( value ); | ||||
184 | #else | ||||
185 | Q_UNUSED( value ); | ||||
186 | #endif | ||||
187 | } | ||||
188 | | ||||
171 | Okular::FormFieldText::TextType PopplerFormFieldText::textType() const | 189 | Okular::FormFieldText::TextType PopplerFormFieldText::textType() const | ||
172 | { | 190 | { | ||
173 | switch ( m_field->textType() ) | 191 | switch ( m_field->textType() ) | ||
174 | { | 192 | { | ||
175 | case Poppler::FormFieldText::Normal: | 193 | case Poppler::FormFieldText::Normal: | ||
176 | return Okular::FormFieldText::Normal; | 194 | return Okular::FormFieldText::Normal; | ||
177 | case Poppler::FormFieldText::Multiline: | 195 | case Poppler::FormFieldText::Multiline: | ||
178 | return Okular::FormFieldText::Multiline; | 196 | return Okular::FormFieldText::Multiline; | ||
▲ Show 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | |||||
265 | #endif | 283 | #endif | ||
266 | } | 284 | } | ||
267 | 285 | | |||
268 | bool PopplerFormFieldChoice::isVisible() const | 286 | bool PopplerFormFieldChoice::isVisible() const | ||
269 | { | 287 | { | ||
270 | return m_field->isVisible(); | 288 | return m_field->isVisible(); | ||
271 | } | 289 | } | ||
272 | 290 | | |||
291 | void PopplerFormFieldChoice::setVisible( bool value ) | ||||
292 | { | ||||
293 | #ifdef HAVE_POPPLER_0_64 | ||||
294 | m_field->setVisible( value ); | ||||
295 | #else | ||||
296 | Q_UNUSED( value ); | ||||
297 | #endif | ||||
298 | } | ||||
299 | | ||||
273 | Okular::FormFieldChoice::ChoiceType PopplerFormFieldChoice::choiceType() const | 300 | Okular::FormFieldChoice::ChoiceType PopplerFormFieldChoice::choiceType() const | ||
274 | { | 301 | { | ||
275 | switch ( m_field->choiceType() ) | 302 | switch ( m_field->choiceType() ) | ||
276 | { | 303 | { | ||
277 | case Poppler::FormFieldChoice::ComboBox: | 304 | case Poppler::FormFieldChoice::ComboBox: | ||
278 | return Okular::FormFieldChoice::ComboBox; | 305 | return Okular::FormFieldChoice::ComboBox; | ||
279 | case Poppler::FormFieldChoice::ListBox: | 306 | case Poppler::FormFieldChoice::ListBox: | ||
280 | return Okular::FormFieldChoice::ListBox; | 307 | return Okular::FormFieldChoice::ListBox; | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |