![]() |
#include <Popup.h>
Public Member Functions | |
Popup (SDF::Obj d=0) | |
Creates a Popup annotation and initializes it using given Cos/SDF object. | |
Popup (const Annot &ann) | |
Creates a Popup annotation and initializes it using given annotation object. | |
Annot | GetParent () const |
Returns the parent annotation of the Popup annotation. | |
void | SetParent (const Annot &parent) |
Sets the Parent annotation of the Popup annotation. | |
bool | IsOpen () const |
Returns the initial opening condition of Popup. | |
void | SetOpen (bool is_open) |
Sets the initial opening condition of Popup. | |
Static Public Member Functions | |
static Popup | Create (SDF::SDFDoc &doc, const Rect &pos) |
Creates a new Popup annotation in the specified document. |
It shall not appear alone but is associated with a markup annotation, its parent annotation, and shall be used for editing the parent’s text. It shall have no appearance stream or associated actions of its own and shall be identified by the Popup entry in the parent’s annotation dictionary.
pdftron::PDF::Annots::Popup::Popup | ( | SDF::Obj | d = 0 |
) |
Creates a Popup annotation and initializes it using given Cos/SDF object.
pdftron::PDF::Annots::Popup::Popup | ( | const Annot & | ann | ) | [inline] |
Creates a Popup annotation and initializes it using given annotation object.
static Popup pdftron::PDF::Annots::Popup::Create | ( | SDF::SDFDoc & | doc, | |
const Rect & | pos | |||
) | [static] |
Annot pdftron::PDF::Annots::Popup::GetParent | ( | ) | const |
Returns the parent annotation of the Popup annotation.
If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.
void pdftron::PDF::Annots::Popup::SetParent | ( | const Annot & | parent | ) |
Sets the Parent annotation of the Popup annotation.
(Optional)
parent | An annot object which is the parent annotation of the Popup annotation. |
If this entry is present, the parent annotation’s Contents, M, C, and T entries shall override those of the pop-up annotation itself.
bool pdftron::PDF::Annots::Popup::IsOpen | ( | ) | const |
void pdftron::PDF::Annots::Popup::SetOpen | ( | bool | is_open | ) |