|
virtual IOptionalContentPtr | clone ()=0 |
| Clone the optional content. This is a deep clone.
|
|
virtual IOptionalContentGroupPtr | makeNewGroup (const U8String &name, bool visible)=0 |
| Convenience to create a new optional content group with the given visibility status, and add. The group will also be added to the ui by adding to the default configuration's order.
|
|
virtual IDOMNodePtr | makeNodeOptional (const IDOMNodePtr &node, const IOptionalContentGroupPtr &group)=0 |
| Make the given DOM node optional as part of an existing optional content group.
|
|
IDOMNodePtr | makeNodeOptionalWithNewGroup (const IDOMNodePtr &node, const U8String &newGroupName, bool visible) |
| Make the given DOM node optional with a new optional content group.
Convenience.
|
|
virtual bool | groupIsVisible (const IOptionalContentGroupPtr &group, eOptionalContentEvent event=eOCEView, IOptionalContentConfigurationPtr configuration=IOptionalContentConfigurationPtr())=0 |
| Determine if the given optional content group is visible in the given circumstances.
|
|
virtual bool | groupIsVisible (const IOptionalContentGroupReferencePtr &groupRef, eOptionalContentEvent event=eOCEView, IOptionalContentConfigurationPtr configuration=IOptionalContentConfigurationPtr())=0 |
| Determine if the given optional content group is visible in the given circumstances, using the group's reference.
|
|
virtual bool | groupShouldBeIgnored (const IOptionalContentGroupPtr &group, eOptionalContentEvent event=eOCEView, IOptionalContentConfigurationPtr configuration=IOptionalContentConfigurationPtr())=0 |
| Determine if the given optional content group should be ignored for visibility purposes in the given circumstances. Groups that have an intent that does not match the configuration's intent are not to be used to determine visibility, necessitating this distinction.
|
|
virtual bool | groupShouldBeIgnored (const IOptionalContentGroupReferencePtr &groupRef, eOptionalContentEvent event=eOCEView, IOptionalContentConfigurationPtr configuration=IOptionalContentConfigurationPtr())=0 |
| Determine if the given optional content group (by reference) should be ignored for visibility purposes in the given circumstances, using the group's reference. Groups that have an intent that does not match the configuration's intent are not to be used to determine visibility, necessitating this distinction.
|
|
virtual bool | groupIsPresent (const IOptionalContentGroupReferencePtr &groupRef) const =0 |
| Is a group with the given reference present?
|
|
virtual IOptionalContentGroupPtr | getGroup (const IOptionalContentGroupReferencePtr &groupRef) const =0 |
| Get the optional content group with the given reference. An exception will be thrown if the group is not found.
|
|
virtual void | forceGroupState (const IOptionalContentGroupPtr &group, bool visible)=0 |
| Force the given group to be always on or off in the default configuration. Convenience method.
|
|
virtual COptionalContentGroupVect | getGroups () const =0 |
| Get all the document's optional content groups in a vector.
|
|
virtual void | addGroup (const IOptionalContentGroupPtr &group)=0 |
| Add an optional content group. An error will be thrown if a group with the same reference is already present.
|
|
virtual void | addGroup (const IOptionalContentGroupPtr &group, const IDocumentPtr &sourceDocument)=0 |
| Add an optional content group from another document.
This will attempt to maintain the context of the optional content group from the source document, adding to the default configuration in order to maintain its user-visible behavior as closely as possible.
|
|
virtual void | removeGroup (const IOptionalContentGroupPtr &group)=0 |
| Remove an optional content group. This will also purge the group from any mention in the default or alternate configurations.
|
|
virtual void | setDefaultConfiguration (const IOptionalContentConfigurationPtr &configuration)=0 |
| Set the default optional content configuration.
|
|
virtual IOptionalContentConfigurationPtr | getDefaultConfiguration () const =0 |
| Get the default optional content configuration.
|
|
virtual void | addConfiguration (const IOptionalContentConfigurationPtr &configuration)=0 |
| Add to the list of configurations for this optional content. If the configuration is already present, no action will be taken.
|
|
virtual void | removeConfiguration (const IOptionalContentConfigurationPtr &configuration)=0 |
| Remove the given configuration. This configuration must not be the current default or an exception will be thrown.
|
|
virtual COptionalContentConfigurationVect | getConfigurations () const =0 |
| Get all the configurations.
|
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
Root level optional content information for an entire document.