An interface class for a widget annotation It is intended that future releases of JawsMako will extend this interface.
More...
|
virtual void | createBasicAppearances (const IFormPtr &form, const U8String &onStateName=U8String(), const IDOMFontPtr &font=IDOMFontPtr(), uint32 fontIndex=0, float captionSize=10.0f)=0 |
| Create a set of very basic appearances given the current annotation's parameters. Replaces any already present. Not yet supported for all widget types. An IError with error code JM_ERR_UNSUPPORTED will be thrown for such appearances. More...
|
|
virtual eFieldType | getFieldType () const =0 |
| Get the field type. More...
|
|
virtual U8String | getPartialName () const =0 |
| Get the partial name of the widget. More...
|
|
virtual void | setPartialName (const U8String &name)=0 |
| Set the partial name of the widget. More...
|
|
virtual eHighlightMode | getHighlightMode () const =0 |
| Get the highlight mode. More...
|
|
virtual void | setHighlightMode (eHighlightMode highlightMode)=0 |
| Set the hightlight mode. More...
|
|
virtual bool | getFieldFlags (uint32 &flags) const =0 |
| Get the field flags. Please see the PDF specification for the definition of the flags. See also #eFieldFlags. Note that the significance of of the flags changes depending on type, and that the value may be inheritable. More...
|
|
virtual void | setFieldFlags (uint32 flags)=0 |
| Set the field flags. Refer to the PDF specification 1.7 table 8.70 for details. More...
|
|
virtual IWidgetAppearanceCharacteristicsPtr | getAppearanceCharacteristics () const =0 |
| Get the appearance characteristics of this Widget. More...
|
|
virtual void | setAppearanceCharacteristics (const IWidgetAppearanceCharacteristicsPtr &appearanceCharacteristics)=0 |
| Set the appearance characteristics. More...
|
|
virtual bool | getValue (CU8StringVect &value) const =0 |
| Get the value of the field, as an array of strings. More...
|
|
virtual void | setValue (const CU8StringVect &value)=0 |
| Set the value of the field, as an array of strings. For fields that can take multiple values, eg radio buttons, there will be multiple entries. For fields requiring only a single value, a single entry will be returned. If the field has no value an empty array will be returned. More...
|
|
virtual void | setValue (const U8String &value) |
| Convenience form for fields that only need a single value. More...
|
|
virtual bool | getDefaultValue (CU8StringVect &value) const =0 |
| Get the default value of the field, as an array of strings. More...
|
|
virtual void | setDefaultValue (const CU8StringVect &value)=0 |
| Set the value of the field, as an array of strings. More...
|
|
virtual void | setDefaultValue (const U8String &value) |
| Convenience form for fields that only need a single value. More...
|
|
virtual bool | getDefaultAppearanceString (U8String &defaultAppearanceString) const =0 |
| Get the default appearance string for variable text, if set. More...
|
|
virtual void | setDefaultAppearanceString (const U8String &defaultAppearanceString)=0 |
| Set the default appearance string for variable text. More...
|
|
virtual eQuadding | getQuadding () const =0 |
| Get the Quadding (Justification) for variable text. More...
|
|
virtual void | setQuadding (eQuadding quadding)=0 |
| Set the quadding (Justification) for variable text. More...
|
|
virtual bool | getOptions (CFieldOptionVect &options) const =0 |
| Get the options for this field. More...
|
|
virtual void | setOptions (const CFieldOptionVect &options)=0 |
| Set the options for this field. More...
|
|
virtual uint32 | getFirstVisibleOption () const =0 |
| Get the index of the first item visible in the list from the options. More...
|
|
virtual void | setFirstVisibleOption (uint32 option)=0 |
| Set the index of the first item visible in the list from the options. More...
|
|
virtual CUInt32Vect | getSelectedOptions () const =0 |
| Get a vector of 0-indexed indexes into the options for this field that represent the currently selected options. More...
|
|
virtual void | setSelectedOptions (const CUInt32Vect &selectedOptions)=0 |
| Set the currently selected options by 0-indexed indexes into the options. More...
|
|
virtual IPDFDictionaryConstPtr | getActionsDictionary () const =0 |
| Get the actions dictionary (if present) associated with this widget. More...
|
|
virtual void | setActionsDictionary (const IPDFDictionaryPtr &actions)=0 |
| Set the actions dictionary associated with this widget. More...
|
|
virtual IPDFDictionaryConstPtr | getAdditionalActionsDictionary () const =0 |
| Get the additional actions dictionary (if present) associated with this widget. More...
|
|
virtual void | setAdditionalActionsDictionary (const IPDFDictionaryPtr &actions)=0 |
| Set the additional actions dictionary associated with this widget. More...
|
|
virtual eAnnotationType | getType () const =0 |
| Get the type of the annotation. More...
|
|
virtual const FRect & | getRect () const =0 |
| Get the rect in which the appearances should be displayed. More...
|
|
virtual void | setRect (const FRect &rect)=0 |
| Set the rect in which the appearances should be displayed. More...
|
|
virtual U8String | getContents () const =0 |
| Get the Contents entry in UTF-8. More...
|
|
virtual void | setContents (const U8String &contents)=0 |
| Set the Contents entry in UTF-8. More...
|
|
virtual IDOMColorPtr | getColor () const =0 |
| Get the color. The use of this color depends on the annotation type. See the PDF 1.7 specification for details. More...
|
|
virtual void | setColor (const IDOMColorPtr &color)=0 |
| Set the color. The use of this color depends on the annotation type. See the PDF 1.7 specification for details. More...
|
|
virtual IEDLTimePtr | getModificationTime () const =0 |
| Get the Modification date and time of the annotation, if present. More...
|
|
virtual void | setModificationTime (const IEDLTimePtr &modificationTime)=0 |
| Set the Modification date and time of the annotation. More...
|
|
virtual CAnnotationBorder | getBorder () const =0 |
| Get the annotation's border. See CAnnotationBorder for details. More...
|
|
virtual void | setBorder (const CAnnotationBorder &border)=0 |
| Set the annotation's border. More...
|
|
virtual uint32 | getFlags () const =0 |
| Get the annotation flags. To interpret these flags please see section 8.4.2 "Annotation Flags" in the PDF 1.7 specification. More...
|
|
virtual void | setFlags (uint32 flags)=0 |
| Set the annotation flags. Please see section 8.4.2 "Annotation Flags" for details about these flags. More...
|
|
virtual void | rotate (uint16 rotate, double pageWidth, double pageHeight)=0 |
| Rotate the annotation clockwise as if the page was rotated by the same amount. More...
|
|
virtual CAnnotationAppearanceVect | getAppearances () const =0 |
| Return all the annotation appearances in a vector. More...
|
|
virtual void | removeAppearances ()=0 |
| Remove all annotation appearances.
|
|
virtual U8String | getState () const =0 |
| Get the current annotation state. More...
|
|
virtual void | setState (const U8String &state)=0 |
| Set the current annotation state. More...
|
|
virtual IAnnotationAppearancePtr | getAppearance (eAppearanceUsage usage, const U8String &state=U8String()) const =0 |
| Fetch the annotation appearance that should be used for the given annotation usage and state according to the following rules: More...
|
|
virtual void | addAppearance (const IAnnotationAppearancePtr &appearance)=0 |
| Add or replace an appearance. More...
|
|
virtual bool | hasNormalAppearance () const =0 |
| Does the annotation have a normal appearance? Convenience utility function. More...
|
|
virtual IAnnotationPtr | clone () const =0 |
| Clone the annotation. This is a deep clone. The annotation reference will remain the same. More...
|
|
virtual bool | matchesReference (const IAnnotationReferencePtr &reference) const =0 |
| Does this annotation match the given IAnnotationReference? More...
|
|
virtual IAnnotationReferencePtr | getReference () const =0 |
| Get a reference that can be used to refer to this annotation. More...
|
|
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. More...
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to. More...
|
|
|
static JAWSMAKO_API IWidgetAnnotationPtr | createTextField (const IJawsMakoPtr &jawsMako, const IFormPtr &form, const IPagePtr &page, const FRect &rect, const U8String &partialName, const U8String &text, float textSize, const IDOMFontOpenTypePtr &font, uint32 fontIndex=0, eFontEncoding encodingHint=eFELatin, const IDOMColorPtr &color=IDOMColorPtr(), bool multiLine=false, eQuadding quadding=eQLeftJustified) |
| Creator for a simple text annotation, including a basic appearance stream, inserts it into the form, and places it on the given page. More...
|
|
static JAWSMAKO_API IWidgetAnnotationPtr | createCheckButton (const IJawsMakoPtr &jawsMako, const IFormPtr &form, const IPagePtr &page, const FRect &rect, const U8String &partialName, const U8String &onValue, bool on=false) |
| Creator for a check button annotation, including basic appearance streams, inserts it into the form, and places it on the given page. More...
|
|
static JAWSMAKO_API IFormFieldPtr | createRadioButtons (const IJawsMakoPtr &jawsMako, const IFormPtr &form, const IPagePtr &page, const U8String &partialName, const U8String &value, const CRadioButtonInfoVect &buttonDetails) |
| Creator for a set of radio buttons, including basic appearance streams, inserts them into the form inside a new subfield, and places them on the given page. More...
|
|
static JAWSMAKO_API IWidgetAnnotationPtr | createChoiceField (const IJawsMakoPtr &jawsMako, const IFormPtr &form, const IPagePtr &page, const FRect &rect, const U8String &partialName, bool combo, bool editable, bool multiSelect, const CFieldOptionVect &options, const CU8StringVect &selectedOptions, float textSize, const IDOMFontOpenTypePtr &font, uint32 fontIndex=0, eFontEncoding encodingHint=eFELatin, const IDOMColorPtr &color=IDOMColorPtr()) |
| Creator for a choice annotation, including basic appearance streams, inserts it into the form, and places it on the given page. Can create either menus, combo boxes, or selection boxes. More...
|
|
static JAWSMAKO_API IWidgetAnnotationPtr | createButton (const IJawsMakoPtr &jawsMako, const IFormPtr &form, const IPagePtr &page, const FRect &rect, const U8String &partialName, const U8String &caption, float textSize, const IDOMFontOpenTypePtr &font, uint32 fontIndex=0, eFontEncoding encodingHint=eFELatin, const IDOMColorPtr &color=IDOMColorPtr(), const IDOMColorPtr &backgroundColor=IDOMColorPtr(), const IPDFDictionaryPtr &actions=IPDFDictionaryPtr()) |
| Convenience creator for a push button annotation, including basic appearance streams, inserts it into the form, and places it on the given page. Makes use of the above APIs to do its work. Can create either menus or selection boxes. More...
|
|
An interface class for a widget annotation It is intended that future releases of JawsMako will extend this interface.