All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Popup.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsPopup
6 #define PDFTRON_H_CPPPDFAnnotsPopup
7 
8 #include <PDF/Annot.h>
9 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
20 class Popup : public Annot
21 {
22  public:
29  Popup(SDF::Obj d = 0);
30 
37  Popup(const Annot& ann) : Annot(ann.GetSDFObj()) {}
38 
47  static Popup Create(SDF::SDFDoc& doc, const Rect& pos);
48  static Popup CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
49 
50 
60  Annot GetParent() const;
61 
72  void SetParent(const Annot& parent);
73 
82  bool IsOpen() const;
83 
93  void SetOpen(bool is_open);
94 
95 // @cond PRIVATE_DOC
96 #ifndef SWIGHIDDEN
97  Popup(TRN_Annot popup);
98 #endif
99 // @endcond
100 }; //class Popup
101  }; //namespace Annot
102  }; //namespace PDF
103 }; //namespace pdftron
104 #include <Impl/Page.inl>
105 
106 #endif // PDFTRON_H_CPPPDFAnnotsPopup
SDF::Obj GetSDFObj() const
static Popup CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
void SetParent(const Annot &parent)
Popup(const Annot &ann)
Definition: Popup.h:37
static Popup Create(SDF::SDFDoc &doc, const Rect &pos)
void SetOpen(bool is_open)