An interface class for an interactive form, which tracks a tree of IFormFields and widgets. More...
#include <interactive.h>
Public Member Functions | |
virtual IFormPtr | clone () const =0 |
Clone the form field, which includes a deep clone of any child IFormFields. | |
virtual CFormFieldVect | getFields () const =0 |
Get the top level fields in a vector. | |
virtual CAnnotationReferenceVect | getWidgets () const =0 |
Get references to the top level widgets in a vector. | |
virtual void | clearFields ()=0 |
Clear the top level fields list. | |
virtual void | addField (const IFormFieldPtr &field)=0 |
Add a field at the top level. An exception will be thrown if the field to be inserted has the same partial name or id as an existing field at the top level. | |
virtual void | removeField (const IFormFieldPtr &field)=0 |
Remove a top level field. | |
virtual void | clearWidgets ()=0 |
Clear the top level widgets list. | |
virtual void | addWidget (const IWidgetAnnotationPtr &widget)=0 |
Add a top level widget. An exception will be thrown if an annotation with the same reference is already. | |
virtual void | addWidget (const IAnnotationReferencePtr &widgetReference)=0 |
Add a top level widget by reference. An exception will be thrown if an annotation with the same reference is already present at this level. | |
virtual void | removeWidget (const IWidgetAnnotationPtr &widget)=0 |
Remove the given top level widget. | |
virtual void | removeWidget (const IAnnotationReferencePtr &widgetReference)=0 |
Remove the given top level widget, by reference. | |
virtual bool | fieldInTree (const IFormFieldPtr &field) const =0 |
Search the field tree for a field that has the same id as the given field. The search recurses through the children. | |
virtual CFormFieldVect | getPathToField (const IFormFieldPtr &field) const =0 |
Find the path to a field with the same id that is present in the field tree. | |
virtual bool | widgetInTree (const IWidgetAnnotationPtr &widget) const =0 |
Search the field sub for a widget. The search recurses through the child fields. | |
virtual bool | widgetInTree (const IAnnotationReferencePtr &widgetReference) const =0 |
Search the field sub for a widget, by reference The search recurses through the child fields. | |
virtual CFormFieldVect | getPathToWidget (const IWidgetAnnotationPtr &widget) const =0 |
Find the path to a widget with the same reference as the given widget. | |
virtual CFormFieldVect | getPathToWidget (const IAnnotationReferencePtr &widgetReference) const =0 |
Find the path to a widget with the given reference. | |
virtual eFieldType | getWidgetFieldType (const IWidgetAnnotationPtr &widget) const =0 |
Determine the type for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual uint32 | getWidgetFieldFlags (const IWidgetAnnotationPtr &widget) const =0 |
Determine the flags for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual U8String | getWidgetDefaultAppearanceString (const IWidgetAnnotationPtr &widget) const =0 |
Determine the default appearance string for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual CU8StringVect | getWidgetValue (const IWidgetAnnotationPtr &widget) const =0 |
Determine the value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual CU8StringVect | getWidgetDefaultValue (const IWidgetAnnotationPtr &widget) const =0 |
Determine the default value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual CU8StringVect | getFieldValue (const IFormFieldPtr &field) const =0 |
Determine the value for the field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual CU8StringVect | getFieldDefaultValue (const IFormFieldPtr &field) const =0 |
Determine the default value for field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual CFieldOptionVect | getWidgetOptions (const IWidgetAnnotationPtr &widget) const =0 |
Determine the options value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual eQuadding | getWidgetQuadding (const IWidgetAnnotationPtr &widget) const =0 |
Determine the quadding for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form. | |
virtual bool | getNeedAppearances () const =0 |
Get whether a viewer should construct its own appearances for the widgets in this form. | |
virtual void | setNeedAppearances (bool needAppearances)=0 |
Set whether a viewer should construct its own appearances for the widgets in this field. | |
virtual CXFAPacketVect | getXfaPacketData () const =0 |
Get the XFA packet data, if present, for this form. This information is not currently used by Mako, but is preserved. | |
virtual void | setXfaPacketData (const CXFAPacketVect &xfaPacketData)=0 |
Set the XFA packet data for this form. | |
Public Member Functions inherited from IRCObject | |
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 IFormPtr | create (const IJawsMakoPtr &jawsMako) |
Create a new form. | |
Additional Inherited Members | |
Protected Member Functions inherited from IRCObject | |
virtual | ~IRCObject () |
Virtual destructor. | |
An interface class for an interactive form, which tracks a tree of IFormFields and widgets.
|
pure virtual |
Add a field at the top level. An exception will be thrown if the field to be inserted has the same partial name or id as an existing field at the top level.
field | Field too be added |
|
pure virtual |
Add a top level widget by reference. An exception will be thrown if an annotation with the same reference is already present at this level.
widgetReference | The widget, by reference, to be added |
|
pure virtual |
Add a top level widget. An exception will be thrown if an annotation with the same reference is already.
widget | The widget to be added |
|
pure virtual |
Clone the form field, which includes a deep clone of any child IFormFields.
|
static |
Create a new form.
jawsMako | The Mako instance |
|
pure virtual |
Search the field tree for a field that has the same id as the given field. The search recurses through the children.
field | The field to be matched |
|
pure virtual |
Determine the default value for field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
field | The field to inspect |
|
pure virtual |
Get the top level fields in a vector.
|
pure virtual |
Determine the value for the field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
field | The field to inspect |
|
pure virtual |
Get whether a viewer should construct its own appearances for the widgets in this form.
|
pure virtual |
Find the path to a field with the same id that is present in the field tree.
This returns a vector of IFormFields representing the branches of the field tree that lead to the given field. That is, the last entry in the returned vector is the immediate parent of the desired field, the second last entry is the grandparent of the desired field, and so forth leading back to the top level.
This is useful in particular for determining the fully qualified name of a field.
An empty vector is returned if the requested field is at the top level of the form and therefore has no parents.
An exception is thrown if the field is not present in the tree.
field | The field to be matched |
|
pure virtual |
Find the path to a widget with the given reference.
This returns a vector of IFormFields representing the branches of the field tree that lead to the given widget. That is, the last entry in the returned vector is the immediate parent of the desired widget, the second last entry is the grandparent of the desired widget, and so forth leading back to the top level.
This is useful in particular for determining the fully qualified name of a field.
An empty vector is returned if the requested widget is at the top level of the form and therefore has no parents.
An exception is thrown if the widget is not present in the tree.
widgetReference | The widget, by reference, to be matched |
|
pure virtual |
Find the path to a widget with the same reference as the given widget.
This returns a vector of IFormFields representing the branches of the field tree that lead to the given widget. That is, the last entry in the returned vector is the immediate parent of the desired widget, the second last entry is the grandparent of the desired widget, and so forth leading back to the top level.
This is useful in particular for determining the fully qualified name of a field.
An empty vector is returned if the requested widget is at the top level of the form and therefore has no parents.
An exception is thrown if the widget is not present in the tree.
widget | The widget to be matched |
|
pure virtual |
Determine the default appearance string for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Determine the default value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Determine the flags for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Determine the type for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Determine the options value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Determine the quadding for the given widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Get references to the top level widgets in a vector.
|
pure virtual |
Determine the value for the widget field, resolving inherited values. Convenience. An exception is thrown if the widget is not present in the form.
widget | The widget to inspect |
|
pure virtual |
Get the XFA packet data, if present, for this form. This information is not currently used by Mako, but is preserved.
|
pure virtual |
Remove a top level field.
field | Field to be removed |
|
pure virtual |
Remove the given top level widget, by reference.
widgetReference | The widget, by reference, to be removed |
|
pure virtual |
Remove the given top level widget.
widget | The widget to be removed |
|
pure virtual |
Set whether a viewer should construct its own appearances for the widgets in this field.
needAppearances | True or false |
|
pure virtual |
Set the XFA packet data for this form.
xfaPacketData | The packet data to use, or an empty vector to clear. |
|
pure virtual |
Search the field sub for a widget, by reference The search recurses through the child fields.
widgetReference | The widget, by reference, to be matched |
|
pure virtual |
Search the field sub for a widget. The search recurses through the child fields.
widget | The widget to be matched |