PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfPushButton.h
1
7#ifndef PDF_PUSH_BUTTON_H
8#define PDF_PUSH_BUTTON_H
9
10#include "PdfButton.h"
11
12namespace PoDoFo
13{
17 class PODOFO_API PdfPushButton final : public PdfButton
18 {
19 friend class PdfField;
20
21 private:
22 PdfPushButton(PdfAcroForm& acroform, const std::shared_ptr<PdfField>& parent);
23
24 PdfPushButton(PdfAnnotationWidget& widget, const std::shared_ptr<PdfField>& parent);
25
26 PdfPushButton(PdfObject& obj, PdfAcroForm* acroform);
27
28 public:
35 void SetRolloverCaption(nullable<const PdfString&> text);
36
40 nullable<const PdfString&> GetRolloverCaption() const;
41
47 void SetAlternateCaption(nullable<const PdfString&> text);
48
52 nullable<const PdfString&> GetAlternateCaption() const;
53
54 PdfPushButton* GetParent();
55 const PdfPushButton* GetParent() const;
56
57 private:
58 void init();
59 };
60}
61
62#endif // PDF_PUSH_BUTTON_H
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:35
A push button is a button which has no state and value but can toggle actions.
Definition PdfPushButton.h:18
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16