An interface representing a PDF 1.6+ visibility expression. Please refer to table 4.4.9 of the PDF 1.7 specification for background and detail.
More...
#include <optionalcontent.h>
|
virtual IOptionalContentVisibilityExpressionPtr | clone ()=0 |
| Clone this expression.
|
|
virtual eVisibilityExpressionOperation | getOperation () const =0 |
| Get the type of operation.
|
|
virtual IOptionalContentGroupReferencePtr | getGroup () const =0 |
| Get the group for eVEOGroupState operations. If the operation is something else, an exception will be thrown.
|
|
virtual COptionalContentVisibilityExpressionVect | getSubExpressions () const =0 |
| Get the subexpressions if the operation is eVEONot, eVEOAnd or eVEOOr. If the operation is something else, an exception will be thrown.
|
|
virtual eOptionalContentVisibility | evaluate (const IOptionalContentPtr &optionalContent, eOptionalContentEvent event) const =0 |
|
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 IOptionalContentVisibilityExpressionPtr | createGroupState (const IOptionalContentGroupReferencePtr &groupRef) |
| Create a "Group State" expression. That is, the result of this expression is true if the given group is visible, and false otherwise.
|
|
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr | createNot (const IOptionalContentVisibilityExpressionPtr &subExpression) |
| Create a "Not" expression. That is, the result of this expression is the inverse of the visibility of the given sub-expression.
|
|
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr | createAnd (const COptionalContentVisibilityExpressionVect &subExpressions) |
| Create an "And" expression. That is, the result of this expression is the logical "and" of the result of all the sub-expressions.
|
|
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr | createOr (const COptionalContentVisibilityExpressionVect &subExpressions) |
| Create an "Or" expression. That is, the result of this expression is the logical "or" of the result of all the sub-expressions.
|
|
|
virtual | ~IRCObject () |
| Virtual destructor.
|
|
An interface representing a PDF 1.6+ visibility expression. Please refer to table 4.4.9 of the PDF 1.7 specification for background and detail.
◆ eVisibilityExpressionOperation
The operation of this expression.
Enumerator |
---|
eVEOGroupState | The result of this expression is the state of the single group.
|
eVEONot | The result of this expression is the inverse of the sub-expression.
|
eVEOAnd | The result of this expression is the logical and of the result of the sub-expressions.
|
eVEOOr | The result of this expression is the logical or of the result of the sub-expressions.
|
◆ clone()
virtual IOptionalContentVisibilityExpressionPtr JawsMako::IOptionalContentVisibilityExpression::clone |
( |
| ) |
|
|
pure virtual |
Clone this expression.
- Returns
- IOptionalContentVisibilityExpressionPtr A deep copy of this expression.
◆ createAnd()
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr JawsMako::IOptionalContentVisibilityExpression::createAnd |
( |
const COptionalContentVisibilityExpressionVect & | subExpressions | ) |
|
|
static |
Create an "And" expression. That is, the result of this expression is the logical "and" of the result of all the sub-expressions.
- Parameters
-
subExpressions | The vector of sub-expressions to combine. |
- Returns
- IOptionalContentVisibilityExpressionPtr A new expression that combines the sub-expressions with "and".
◆ createGroupState()
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr JawsMako::IOptionalContentVisibilityExpression::createGroupState |
( |
const IOptionalContentGroupReferencePtr & | groupRef | ) |
|
|
static |
Create a "Group State" expression. That is, the result of this expression is true if the given group is visible, and false otherwise.
- Parameters
-
groupRef | The group reference to check the state of. |
- Returns
- IOptionalContentVisibilityExpressionPtr A new expression that checks the state of the group.
◆ createNot()
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr JawsMako::IOptionalContentVisibilityExpression::createNot |
( |
const IOptionalContentVisibilityExpressionPtr & | subExpression | ) |
|
|
static |
Create a "Not" expression. That is, the result of this expression is the inverse of the visibility of the given sub-expression.
- Parameters
-
subExpression | The sub-expression to invert. |
- Returns
- IOptionalContentVisibilityExpressionPtr A new expression that inverts the sub-expression.
◆ createOr()
static JAWSMAKO_API IOptionalContentVisibilityExpressionPtr JawsMako::IOptionalContentVisibilityExpression::createOr |
( |
const COptionalContentVisibilityExpressionVect & | subExpressions | ) |
|
|
static |
Create an "Or" expression. That is, the result of this expression is the logical "or" of the result of all the sub-expressions.
- Parameters
-
subExpressions | The vector of sub-expressions to combine. |
- Returns
- IOptionalContentVisibilityExpressionPtr A new expression that combines the sub-expressions with "or".
◆ evaluate()
Determine the result of the expression. The document's optional content must be provided.
- Parameters
-
optionalContent | The optional content for the document. |
event | The event for which the visibility is being evaluated. |
- Returns
- eOptionalContentVisibility The visibility of the expression.
◆ getGroup()
virtual IOptionalContentGroupReferencePtr JawsMako::IOptionalContentVisibilityExpression::getGroup |
( |
| ) |
const |
|
pure virtual |
Get the group for eVEOGroupState operations. If the operation is something else, an exception will be thrown.
- Returns
- IOptionalContentGroupReferencePtr The group reference for eVEOGroupState operation.
◆ getOperation()
Get the type of operation.
- Returns
- eVisibilityExpressionOperation The type of operation for this expression.
◆ getSubExpressions()
virtual COptionalContentVisibilityExpressionVect JawsMako::IOptionalContentVisibilityExpression::getSubExpressions |
( |
| ) |
const |
|
pure virtual |
Get the subexpressions if the operation is eVEONot, eVEOAnd or eVEOOr. If the operation is something else, an exception will be thrown.
- Returns
- COptionalContentVisibilityExpressionVect The vector of sub-expressions.
The documentation for this class was generated from the following file: