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-2018 by PDFTron Systems 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 
58  Annot GetParent() const;
59 
70  void SetParent(const Annot& parent);
71 
80  bool IsOpen() const;
81 
91  void SetOpen(bool is_open);
92 
94 #ifndef SWIGHIDDEN
95  Popup(TRN_Annot popup);
96 #endif
97 }; //class Popup
99  }; //namespace Annot
100  }; //namespace PDF
101 }; //namespace pdftron
102 #include <Impl/Page.inl>
103 
104 #endif // PDFTRON_H_CPPPDFAnnotsPopup
SDF::Obj GetSDFObj() const
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)

© 2002-2014 PDFTron Systems Inc.