Loading...
Searching...
No Matches
Config.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_CPPPDFOCGConfig
6#define PDFTRON_H_CPPPDFOCGConfig
7
8#include <SDF/Obj.h>
9//#include <PDF/PDFDoc.h>
10#include <C/PDF/OCG/TRN_OCGConfig.h>
11
12namespace pdftron {
13 namespace PDF {
14
15 class PDFDoc;
16
17 namespace OCG {
18
35class Config
36{
37public:
38
47 static Config Create(PDFDoc& doc, bool default_config);
48
52 Config(SDF::Obj ocg_config);
53
57 bool IsValid() const { return mp_obj !=0; }
58
67
76 void SetOrder(SDF::Obj ocgs_array);
77
83
90 void SetName(const UString& name);
91
98
104 void SetCreator(const UString& name);
105
120 const char* GetInitBaseState() const;
121
129
137
142 void SetInitBaseState(const char* state = "ON");
143
149 void SetInitOnStates(SDF::Obj on_array);
150
156 void SetInitOffStates(SDF::Obj off_array);
157
168
174 void SetIntent(SDF::Obj intent);
175
182
191 void SetLockedOCGs(SDF::Obj locked_ocg_array);
192
199
206 void SetRBGroups(SDF::Obj rbgroups_array);
207
212
216 Config (const Config& g);
218
219 #ifndef SWIGHIDDEN
220 Config(TRN_OCGConfig c) : mp_obj(c) {}
221 TRN_OCGConfig mp_obj;
222 #endif
223};
224
225 }; // namespace OCG
226 }; // namespace PDF
227}; // namespace pdftron
228
229#include <Impl/PDFDoc.inl>
230
231#endif // PDFTRON_H_CPPPDFOCGConfig
void SetName(const UString &name)
SDF::Obj GetSDFObj() const
SDF::Obj GetOrder() const
bool IsValid() const
Definition Config.h:57
void SetRBGroups(SDF::Obj rbgroups_array)
void SetIntent(SDF::Obj intent)
void SetInitOnStates(SDF::Obj on_array)
Config(const Config &g)
UString GetName() const
SDF::Obj GetIntent() const
const char * GetInitBaseState() const
void SetCreator(const UString &name)
Config(SDF::Obj ocg_config)
Config & operator=(const Config &g)
SDF::Obj GetInitOffStates() const
UString GetCreator() const
SDF::Obj GetRBGroups() const
static Config Create(PDFDoc &doc, bool default_config)
void SetInitOffStates(SDF::Obj off_array)
SDF::Obj GetInitOnStates() const
void SetLockedOCGs(SDF::Obj locked_ocg_array)
SDF::Obj GetLockedOCGs() const
TRN_OCGConfig mp_obj
Definition Config.h:221
void SetOrder(SDF::Obj ocgs_array)
Config(TRN_OCGConfig c)
Definition Config.h:220
void SetInitBaseState(const char *state="ON")