PoDoFo 1.2.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{
14 class PODOFO_API PdfPushButton final : public PdfButton
15 {
16 friend class PdfField;
17
18 private:
19 PdfPushButton(PdfAcroForm& acroform, std::shared_ptr<PdfField>&& parent);
20
21 PdfPushButton(PdfAnnotationWidget& widget, std::shared_ptr<PdfField>&& parent);
22
23 PdfPushButton(PdfObject& obj, PdfAcroForm* acroform);
24
25 public:
31 void SetRolloverCaption(nullable<const PdfString&> text);
32
34 nullable<const PdfString&> GetRolloverCaption() const;
35
40 void SetAlternateCaption(nullable<const PdfString&> text);
41
43 nullable<const PdfString&> GetAlternateCaption() const;
44
45 PdfPushButton* GetParent();
46 const PdfPushButton* GetParent() const;
47
48 private:
49 void init();
50 };
51}
52
53#endif // PDF_PUSH_BUTTON_H
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:31
A push button is a button which has no state and value but can toggle actions.
Definition PdfPushButton.h:15
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13