16#include <wx/dynarray.h>
25WX_DEFINE_USER_EXPORTED_ARRAY_PTR(
wxPdfLayer*, wxPdfArrayLayer,
class WXDLLIMPEXP_PDFDOC);
30 wxPDF_OCG_TYPE_UNKNOWN,
33 wxPDF_OCG_TYPE_MEMBERSHIP
38const int wxPDF_OCG_INTENT_VIEW = 1;
39const int wxPDF_OCG_INTENT_DESIGN = 2;
44 wxPDF_OCG_POLICY_ALLON,
45 wxPDF_OCG_POLICY_ANYON,
46 wxPDF_OCG_POLICY_ANYOFF,
47 wxPDF_OCG_POLICY_ALLOFF
138 void SetIntent(
const unsigned int intent) { m_intent |= intent; };
150 void ClearIntent(
const unsigned int intent) { m_intent &= ~intent; };
164 bool IsOn()
const {
return m_on; }
219 void SetCreatorInfo(
const wxString& creator,
const wxString& subtype);
230 void SetLanguage(
const wxString& lang,
bool preferred);
240 void SetExport(
bool exportState);
252 void SetZoom(
double min,
double max);
263 void SetPrint(
const wxString& subtype,
bool printState);
271 void SetView(
bool viewState);
286 static wxPdfLayer* CreateTitle(
const wxString& title);
308 wxPdfArrayLayer m_children;
333 wxPdfArrayLayer GetMembers()
const;
359 wxPdfArrayLayer m_layers;
390 wxPdfArrayLayer GetGroup()
const;
393 wxPdfArrayLayer m_layers;
Class representing a dictionary object. (For internal use only)
Definition: pdfobjects.h:409
Class for a group of layers with optional content.
Definition: pdflayer.h:365
Class for a layer with optional content.
Definition: pdflayer.h:314
wxPdfLayerMembership & operator=(const wxPdfLayerMembership &layer)
Assignment operator.
wxPdfLayerMembership(const wxPdfLayerMembership &layer)
Copy constructor.
Class for a layer with optional content.
Definition: pdflayer.h:110
wxPdfLayer & operator=(const wxPdfLayer &encoding)
Assignment operator.
void ClearIntent(const unsigned int intent)
Clear Optional Content Group (OCG) Intent.
Definition: pdflayer.h:150
bool HasChildren() const
Check whether the layer has child layers.
Definition: pdflayer.h:200
void SetIntent(const unsigned int intent)
Set Optional Content Group (OCG) Intent.
Definition: pdflayer.h:138
wxString GetName() const
Get the name of the layer.
Definition: pdflayer.h:126
wxPdfArrayLayer GetChildren() const
Get the list of child layers.
Definition: pdflayer.h:207
void SetOnPanel(bool onPanel)
Set the visibility of the layer on the layer panel.
Definition: pdflayer.h:173
wxPdfLayer(const wxPdfLayer &encoding)
Copy constructor.
void SetOn(bool on)
Set the initial visibility of the layer.
Definition: pdflayer.h:157
wxPdfLayer * GetParent() const
Get parent layer.
Definition: pdflayer.h:194
bool IsOn() const
Get the initial visibility of the layer.
Definition: pdflayer.h:164
bool IsOnPanel() const
Get the layer visibility on the layer panel.
Definition: pdflayer.h:180
int GetIntent() const
Get Optional Content Group (OCG) Intent.
Definition: pdflayer.h:144
wxPdfDictionary * GetUsage() const
Get the usage dictionary.
Definition: pdflayer.h:277
wxString GetTitle() const
Get the layer title.
Definition: pdflayer.h:132
Base class for Optional Content Groups (OCG). (For internal use only)
Definition: pdflayer.h:56
int GetIndex() const
Get OCG index.
Definition: pdflayer.h:74
wxPdfOcgType GetType() const
Get OCG type.
Definition: pdflayer.h:98
wxPdfOcgType m_type
Type of OCG.
Definition: pdflayer.h:101
void SetIndex(int index)
Set OCG index.
Definition: pdflayer.h:68
int GetObjIndex() const
Get object index.
Definition: pdflayer.h:86
void SetObjIndex(int n)
Set object index.
Definition: pdflayer.h:80
Compile time switches for the wxPdfDocument component.
wxPdfOcgPolicy
OCG visibility policy.
Definition: pdflayer.h:43
const int wxPDF_OCG_INTENT_DEFAULT
OCG Intent options.
Definition: pdflayer.h:37
wxPdfOcgType
Optional content group types.
Definition: pdflayer.h:29