Loading...
Searching...
No Matches
OCMD.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFOCGOCMD
6#define PDFTRON_H_CPPPDFOCGOCMD
7
8#include <C/PDF/OCG/TRN_OCMD.h>
9#include <Common/BasicTypes.h>
10
11namespace pdftron {
12 namespace PDF {
13 namespace OCG {
14
30class OCMD
31{
32public:
33
46
58 static OCMD Create(PDFDoc& doc, SDF::Obj ocgs, VisibilityPolicyType vis_policy);
59
65
69 bool IsValid() const;
70
78 SDF::Obj GetOCGs() const;
79
88
96
102
114 bool IsCurrentlyVisible(const class Context& context) const;
115
120
124 OCMD (const OCMD& g);
125 OCMD& operator=(const OCMD& g);
126
127 // @cond PRIVATE_DOC
128 #ifndef SWIGHIDDEN
129 OCMD(TRN_OCMD o) : mp_obj(o) {}
130 TRN_OCMD mp_obj;
131 #endif
132 // @endcond
133};
134
135 }; // namespace OCG
136 }; // namespace PDF
137}; // namespace pdftron
138
139#endif // PDFTRON_H_CPPPDFOCGOCMD
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.
Definition OCMD.h:42
@ e_AnyOff
visible if any of the entries in OCGs are OFF.
Definition OCMD.h:43
@ e_AllOn
visible only if all of the entries in OCGs are ON.
Definition OCMD.h:41
@ e_AllOff
visible only if all of the entries in OCGs are OFF.
Definition OCMD.h:44
SDF::Obj GetSDFObj() const
SDF::Obj GetOCGs() const
VisibilityPolicyType GetVisibilityPolicy() const
OCMD & operator=(const OCMD &g)
void SetVisibilityPolicy(VisibilityPolicyType vis_policy)