Loading...
Searching...
No Matches
Group.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_CPPPDFOCGGroup
6#define PDFTRON_H_CPPPDFOCGGroup
7
8#include <PDF/OCG/Config.h>
9#include <C/PDF/OCG/TRN_OCG.h>
10
11namespace pdftron {
12 namespace PDF {
13 class PDFDoc;
14 namespace OCG {
15 class Context;
16
51class Group
52{
53public:
54
61 static Group Create(PDFDoc& doc, const UString& name);
62
68
72 bool IsValid() const;
73
77 UString GetName() const;
78
83 void SetName(const UString& name);
84
90 bool GetCurrentState(const class Context& context) const;
91
97 void SetCurrentState(class Context& context, bool state);
98
108 bool GetInitialState(const class Config& config) const;
109
117 void SetInitialState(class Config& config, bool state);
118
129
135 void SetIntent(SDF::Obj intent);
136
142 bool IsLocked(const Config& config) const;
143
151 void SetLocked(const Config& config, bool locked);
152
156 bool HasUsage() const;
157
166 SDF::Obj GetUsage(const char* key) const;
167
172
176 Group (const Group& g);
178
179 #ifndef SWIGHIDDEN
180 Group(TRN_OCG g) : mp_obj(g) {}
181 TRN_OCG mp_obj;
182 #endif
183};
184
185 }; // namespace OCG
186 }; // namespace PDF
187}; // namespace pdftron
188
189#endif // PDFTRON_H_CPPPDFOCGGroup
SDF::Obj GetSDFObj() const
SDF::Obj GetIntent() const
Group(const Group &g)
bool IsLocked(const Config &config) const
SDF::Obj GetUsage(const char *key) const
void SetName(const UString &name)
void SetIntent(SDF::Obj intent)
void SetLocked(const Config &config, bool locked)
bool GetInitialState(const class Config &config) const
UString GetName() const
void SetInitialState(class Config &config, bool state)
bool GetCurrentState(const class Context &context) const
Group & operator=(const Group &g)
void SetCurrentState(class Context &context, bool state)
static Group Create(PDFDoc &doc, const UString &name)