5#ifndef PDFTRON_H_CPPPDFOCGOCMD
6#define PDFTRON_H_CPPPDFOCGOCMD
8#include <C/PDF/OCG/TRN_OCMD.h>
129 OCMD(TRN_OCMD o) : mp_obj(o) {}
static OCMD Create(PDFDoc &doc, SDF::Obj ocgs, VisibilityPolicyType vis_policy)
SDF::Obj GetVisibilityExpression() const
bool IsCurrentlyVisible(const class Context &context) const
@ e_AnyOn
visible if any of the entries in OCGs are ON.
@ e_AnyOff
visible if any of the entries in OCGs are OFF.
@ e_AllOn
visible only if all of the entries in OCGs are ON.
@ e_AllOff
visible only if all of the entries in OCGs are OFF.
SDF::Obj GetSDFObj() const
VisibilityPolicyType GetVisibilityPolicy() const
OCMD & operator=(const OCMD &g)
void SetVisibilityPolicy(VisibilityPolicyType vis_policy)