PoDoFo 1.1.0
Loading...
Searching...
No Matches
PdfPushButton.h
1// SPDX-FileCopyrightText: 2007 Dominik Seichter <domseichter@web.de>
2// SPDX-FileCopyrightText: 2020 Francesco Pretto <ceztko@gmail.com>
3// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
4
5#ifndef PDF_PUSH_BUTTON_H
6#define PDF_PUSH_BUTTON_H
7
8#include "PdfButton.h"
9
10namespace PoDoFo
11{
15 class PODOFO_API PdfPushButton final : public PdfButton
16 {
17 friend class PdfField;
18
19 private:
20 PdfPushButton(PdfAcroForm& acroform, std::shared_ptr<PdfField>&& parent);
21
22 PdfPushButton(PdfAnnotationWidget& widget, std::shared_ptr<PdfField>&& parent);
23
24 PdfPushButton(PdfObject& obj, PdfAcroForm* acroform);
25
26 public:
33 void SetRolloverCaption(nullable<const PdfString&> text);
34
38 nullable<const PdfString&> GetRolloverCaption() const;
39
45 void SetAlternateCaption(nullable<const PdfString&> text);
46
50 nullable<const PdfString&> GetAlternateCaption() const;
51
52 PdfPushButton* GetParent();
53 const PdfPushButton* GetParent() const;
54
55 private:
56 void init();
57 };
58}
59
60#endif // PDF_PUSH_BUTTON_H
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:33
A push button is a button which has no state and value but can toggle actions.
Definition PdfPushButton.h:16
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:35
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13