Root level optional content information for an entire document. More...
#include <optionalcontent.h>
Public Member Functions | |
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, const 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, const 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, const 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, const 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. | |
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. | |
Static Public Member Functions | |
static JAWSMAKO_API IOptionalContentPtr | create (const IJawsMakoPtr &jawsMako, const IOptionalContentConfigurationPtr &defaultConfiguration=IOptionalContentConfigurationPtr()) |
Create a new optional content object. If no default configuration is provided, one will be created. | |
Additional Inherited Members | |
![]() | |
virtual | ~IRCObject () |
Virtual destructor. | |
Root level optional content information for an entire document.
|
pure virtual |
Add to the list of configurations for this optional content. If the configuration is already present, no action will be taken.
configuration | The configuration to add. |
|
pure virtual |
Add an optional content group. An error will be thrown if a group with the same reference is already present.
group | The group to add. |
|
pure virtual |
Add an optional content group from another document.
group | The group to add. |
sourceDocument | The document from which the group is being added. |
|
pure virtual |
Clone the optional content. This is a deep clone.
|
static |
Create a new optional content object. If no default configuration is provided, one will be created.
jawsMako | The IJawsMako object. |
defaultConfiguration | The default configuration to use. May be omitted, in which case a default configuration will be created. |
|
pure virtual |
Force the given group to be always on or off in the default configuration. Convenience method.
group | The group to force the state of. |
visible | Whether the group should be visible or not. |
|
pure virtual |
Get all the configurations.
|
pure virtual |
Get the default optional content configuration.
|
pure virtual |
Get the optional content group with the given reference. An exception will be thrown if the group is not found.
groupRef | The reference to the group to get. |
|
pure virtual |
Get all the document's optional content groups in a vector.
|
pure virtual |
Is a group with the given reference present?
groupRef | The reference to the group to check. |
|
pure virtual |
Determine if the given optional content group is visible in the given circumstances.
group | The group to check. |
event | The event representing the intended use. Pass eOCEUnknown if the automatic state IOptionalContentGroupUsageApplication should not be checked. |
configuration | The configuration to use. Pass NULL to use the default configuration. |
|
pure virtual |
Determine if the given optional content group is visible in the given circumstances, using the group's reference.
groupRef | Reference to the group to check. |
event | The event representing the intended use. Pass eOCEUnknown if the automatic state IOptionalContentGroupUsageApplication should not be checked. |
configuration | The configuration to use. Pass NULL to use the default configuration. |
|
pure virtual |
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.
group | The group to check. |
event | The event representing the intended use. Pass eOCEUnknown if the automatic state IOptionalContentGroupUsageApplication should not be checked. |
configuration | The configuration to use. Pass NULL to use the default configuration. |
|
pure virtual |
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.
groupRef | Reference to the group to check. |
event | The event representing the intended use. Pass eOCEUnknown if the automatic state IOptionalContentGroupUsageApplication should not be checked. |
configuration | The configuration to use. Pass NULL to use the default configuration. |
|
pure virtual |
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.
name | The name of the new group. |
visible | Whether the group should be visible by default. |
|
pure virtual |
Make the given DOM node optional as part of an existing optional content group.
If the node is an IDOMGroup, the group will have it's optional content information set accordingly and the returned result will be that node. However, if the node is some other graphical node, it will be moved inside an IDOMGroup with the optional content information set. If the node is in a tree, the node will be replaced with the group. The group will be returned.
Convenience.
node | The node to make optional. |
group | The group to make the node optional in. |
|
inline |
Make the given DOM node optional with a new optional content group. Convenience.
node | The node to make optional. |
newGroupName | The name of the new group. |
visible | Whether the group should be visible by default. |
|
pure virtual |
Remove the given configuration. This configuration must not be the current default or an exception will be thrown.
configuration | The configuration to add. |
|
pure virtual |
Remove an optional content group. This will also purge the group from any mention in the default or alternate configurations.
group | The group to remove. |
|
pure virtual |
Set the default optional content configuration.
If the optional content configuration is not present in the configuration list, it will be added.
configuration | The configuration to set as the default. |