14 class PODOFO_API PdfButton :
public PdfField
16 friend class PdfPushButton;
17 friend class PdfToggleButton;
20 PdfButton(PdfAcroForm& acroform, PdfFieldType fieldType,
21 const std::shared_ptr<PdfField>& parent);
23 PdfButton(PdfAnnotationWidget& widget, PdfFieldType fieldType,
24 const std::shared_ptr<PdfField>& parent);
26 PdfButton(PdfObject& obj, PdfAcroForm* acroform, PdfFieldType fieldType);
32 bool IsPushButton()
const;
37 bool IsCheckBox()
const;
42 bool IsRadioButton()
const;
48 void SetCaption(nullable<const PdfString&> text);
53 nullable<const PdfString&> GetCaption()
const;
56 class PODOFO_API PdfToggleButton :
public PdfButton
58 friend class PdfCheckBox;
59 friend class PdfRadioButton;
62 PdfToggleButton(PdfAcroForm& acroform, PdfFieldType fieldType,
63 const std::shared_ptr<PdfField>& parent);
65 PdfToggleButton(PdfAnnotationWidget& widget, PdfFieldType fieldType,
66 const std::shared_ptr<PdfField>& parent);
68 PdfToggleButton(PdfObject& obj, PdfAcroForm* acroform, PdfFieldType fieldType);
75 void SetChecked(
bool isChecked);
80 bool IsChecked()
const;
87 void SetAppearanceChecked(
const PdfXObject& xobj);
94 void SetAppearanceUnchecked(
const PdfXObject& xobj);
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16