Interface for objects used to tag content as optional. Instances of this class are set in IDOMGroup instances to make those objects optional, linking them to one or more optional content groups.
More...
#include <optionalcontent.h>
|
virtual IOptionalContentDetailsPtr | clone () const =0 |
| Clone.
|
|
virtual bool | getIsVisible (eOptionalContentEvent event=eOCEView, const IOptionalContentPtr &optionalContent=IOptionalContentPtr()) const =0 |
| Determine the visibility of this content. Pass in the Optional Content for this document to obtain current results. Otherwise, the visibility returned will be either:
|
|
virtual void | addGroup (const IOptionalContentGroupReferencePtr &groupRef)=0 |
| Make the optional content dependent on the given group (if it is not already so). Optional content can be a member of multiple groups. The visibility policy or visibility expression (see below) controls how the visibility of this piece of optional content is calculated based on the groups upon which it depends.
|
|
virtual void | removeGroup (const IOptionalContentGroupReferencePtr &groupRef)=0 |
| Remove the dependence of the content on the given group.
|
|
virtual COptionalContentGroupReferenceVect | getGroupReferences () const =0 |
| Get all the groups that this content depends on.
|
|
virtual void | setVisibilityPolicy (eVisibilityPolicy policy)=0 |
| Set the visibility policy. If present, the visibility expression will take precedence. The default is eAnyOn.
|
|
virtual eVisibilityPolicy | getVisibilityPolicy () const =0 |
| Get the visibility policy.
|
|
virtual void | setVisibilityExpression (const IOptionalContentVisibilityExpressionPtr &expression)=0 |
| Set the visibility expression, which affords more powerful control of the visibilty of this content via a logical expression. This takes precedence over the visibility policy for consumers that support visibility expressions. Pass NULL to remove any existing expression.
|
|
virtual IOptionalContentVisibilityExpressionPtr | getVisibilityExpression ()=0 |
| Get the visibility expression.
|
|
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.
|
|
virtual uint64 | hash () const |
| Obtain a 64-bit hash of the receiving object.
|
|
virtual void | updateHash (uint64 &hash) const =0 |
| Update the given hash to include the receiver.
|
|
|
static JAWSMAKO_API IOptionalContentDetailsPtr | create (const IJawsMakoPtr jawsMako, const IOptionalContentGroupReferencePtr &groupRef=IOptionalContentGroupReferencePtr(), const IOptionalContentPtr &optionalContent=IOptionalContentPtr()) |
| Create using the given (optional) group.
|
|
static JAWSMAKO_API IOptionalContentDetailsPtr | create (const IJawsMakoPtr jawsMako, const COptionalContentGroupReferenceVect &groups, eVisibilityPolicy policy, const IOptionalContentVisibilityExpressionPtr &visibilityExpression=IOptionalContentVisibilityExpressionPtr(), const IOptionalContentPtr &optionalContent=IOptionalContentPtr()) |
| Create using the given groups, policy, and (optional) visibility expression.
|
|
|
virtual | ~IRCObject () |
| Virtual destructor.
|
|
Interface for objects used to tag content as optional. Instances of this class are set in IDOMGroup instances to make those objects optional, linking them to one or more optional content groups.
◆ eVisibilityPolicy
The visibility policy controlling how the dependent optional content groups affect the visibility of this content.
Enumerator |
---|
eVPAllOn | This content is visible if all the dependent groups are visible.
|
eVPAnyOn | This content is visible if any dependent group is visible.
|
eVPAnyOff | This content is visible if any dependent group is invisible.
|
eVPAllOff | This content is visible if all the dependent groups are invisible.
|
◆ getIsVisible()
virtual bool JawsMako::IOptionalContentDetails::getIsVisible |
( |
eOptionalContentEvent | event = eOCEView, |
|
|
const IOptionalContentPtr & | optionalContent = IOptionalContentPtr() ) const |
|
pure virtual |
Determine the visibility of this content. Pass in the Optional Content for this document to obtain current results. Otherwise, the visibility returned will be either:
- The optional content state at the time this object was created, if the IOptionalContent was passed at the time of creation (always the case for objects created directly from reading from a PDF, or if it was created using an IOptionalContent API function)
- Otherwise, true is returned.
The documentation for this class was generated from the following file: