Usage information for an optional content group, providing context that an application can use to automatically show or hide content in the optional content group. This is optional.
More...
|
virtual IOptionalContentGroupUsagePtr | clone () const =0 |
| Clone the usage information.
|
|
virtual void | setLanguage (const U8String &language, bool preferred=false)=0 |
| Set the language of the content controlled by this optional content group, and whether or not it should be considered "preferred" if there is no exact match for the language used by the viewer's.
|
|
virtual U8String | getLanguage () const =0 |
| Get the language for the group, which may be an empty string if no language has been set.
|
|
virtual bool | getLanguageIsPreferred () const =0 |
| Get whether or not the language of this optional content group should be considered "preferred".
|
|
virtual void | setExportVisibility (eOptionalContentVisibility visibility)=0 |
| Set if the content in the group should be present when the content is "exported" to a format that does not support optional content.
|
|
virtual eOptionalContentVisibility | getExportVisibility () const =0 |
| Get whether the content in the group should be present when the content is "exported" to a format that does not support optional content.
|
|
virtual void | setZoomVisibility (float minimumZoom, float maximumZoom)=0 |
| Set if the content should be visible between the given zoom levels. Setting maximumZoom to a negative value indicates infinity.
|
|
virtual void | getZoomVisibility (float &minimumZoom, float &maximumZoom) const =0 |
| Get the zoom levels between which this content is visible. A negative maximumZoom indicates infinity.
|
|
virtual void | setPrintVisibility (eOptionalContentVisibility visibility, const U8String &description=U8String())=0 |
| Set if the content in the group should be present when the content is printed, and optionally an informative string describing the kind of content.
|
|
virtual eOptionalContentVisibility | getPrintVisibility () const =0 |
| Get whether the content in the group should be present when the content is printed.
|
|
virtual U8String | getPrintVisibilityDescription () const =0 |
| Get the print visibility description, which may be an empty string.
|
|
virtual void | setViewVisibility (eOptionalContentVisibility visibility)=0 |
| Set if the content in the group should be visible when the content is viewed.
|
|
virtual eOptionalContentVisibility | getViewVisibility () const =0 |
| Get whether the content in the group should be visible when the content is viewed.
|
|
virtual void | setUsers (const U8String &type, const CU8StringVect &users)=0 |
| Get the type and users for which this content is primarily intended.
|
|
virtual CU8StringVect | getUsers (U8String &type) const =0 |
| Get the type and users for which this content is primarily intended.
|
|
virtual void | setPageElement (const U8String &type)=0 |
| Sets a description of the page element that is represented by the optional content group.
|
|
virtual U8String | getPageElement () const =0 |
| Gets a description of the page element that is represented by the optional content group. May be an empty string.
|
|
virtual eOptionalContentVisibility | recommendedVisibilityForCategories (const COCCategoryVect &categories) const =0 |
| Deteremine the recommended state from this usage information for the given usage categories. Uses the algorithm on page 383 of the PDF 1.7 specification, with the following modifications:
|
|
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.
|
|
Usage information for an optional content group, providing context that an application can use to automatically show or hide content in the optional content group. This is optional.
These are only consulted when making visibility decisions if the document's IOptionalContent specifies that the usage for this group should be used, and even then only some attributes may be consulted depending on how the usages are configured. See #IOptionalContentGroupUsageApplication below.