My Project
|
Public Types | |
enum | HitTestArea { e_HitTestAreaUnknown = 0, e_HitTestAreaClient = 1, e_HitTestAreaTitleBar = 2, e_HitTestAreaHyperLink = 3 } |
Enumeration for hit test area of XFA widget. More... | |
enum | PresenceProperty { e_PresenceUnknown = 0, e_PresenceVisible = 1, e_PresenceHidden = 2, e_PresenceInactive = 3, e_PresenceInvisible = 4 } |
Enumeration for presence attribute of XFA widget. More... | |
enum | WidgetType { e_WidgetTypeBarcode = 0, e_WidgetTypePushButton = 1, e_WidgetTypeCheckButton = 2, e_WidgetTypeArc = 3, e_WidgetTypeDateTimeEdit = 4, e_WidgetTypeNumericEdit = 5, e_WidgetTypeSignature = 6, e_WidgetTypeChoiceList = 7, e_WidgetTypeImageEdit = 8, e_WidgetTypeLine = 9, e_WidgetTypePasswordEdit = 10, e_WidgetTypeRadioButton = 11, e_WidgetTypeRectangle = 12, e_WidgetTypeTextEdit = 13, e_WidgetTypeUnknown = 14 } |
Enumeration for the type of xfa widget. More... | |
Public Member Functions | |
XFAWidget (const XFAWidget &other) | |
Constructor, with another XFA widget object. More... | |
~XFAWidget () | |
Destructor. | |
int | GetIndex () const |
Get the index of XFA Widget in related XFA page. More... | |
PresenceProperty | GetPresence () |
Get the presence property of the XFA widget. More... | |
RectF | GetRect () |
Get rectangle of XFA widget. More... | |
WidgetType | GetType () |
Get type of XFA widget. More... | |
WString | GetValue () |
Get the value string. More... | |
XFAPage | GetXFAPage () |
Get the related XFA page, to which current XFA widget belongs. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | OnChar (int input_char, uint32 flags) |
Call this function when a character code is being input. More... | |
HitTestArea | OnHitTest (const PointF &point) |
Call this function to do hit test for a specified point. More... | |
bool | OnKeyDown (uint32 key_code, uint32 flags) |
Call this function when key on the keyboard is down. More... | |
bool | OnKeyUp (uint32 key_code, uint32 flags) |
Call this function when key on the keyboard is up. More... | |
bool | OnLButtonDoubleClick (const PointF &point, uint32 flags) |
Call this function when left mouse button is double-clicked . More... | |
bool | OnLButtonDown (const PointF &point, uint32 flags) |
Call this function when left mouse button is down. More... | |
bool | OnLButtonUp (const PointF &point, uint32 flags) |
Call this function when left mouse button is up. More... | |
bool | OnMouseEnter () |
Call this function when mouse enters current XFA widget. More... | |
bool | OnMouseExit () |
Call this function when mouse exits. More... | |
bool | OnMouseMove (const PointF &point, uint32 flags) |
Call this function when mouse moves. More... | |
bool | OnRButtonDown (const PointF &point, uint32 flags) |
Call this function when right mouse is down. More... | |
bool | OnRButtonUp (const PointF &point, uint32 flags) |
Call this function when right button is up. More... | |
bool | operator != (const XFAWidget &other) const |
Not equal operator. More... | |
XFAWidget & | operator= (const XFAWidget &other) |
Assign operator. More... | |
bool | operator== (const XFAWidget &other) const |
Equal operator. More... | |
void | ResetData () |
Reset XFA Widget Data. More... | |
void | SetValue (const wchar_t *value) |
Set the value string. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
Class XFAWidget represents the XFA widget which is retrieved from XFA page object.
To access the menu of XFA widget, please construct a xfa::WidgetMenu object with XFAWidget object.
Enumeration for presence attribute of XFA widget.
Values of this enumeration should be used alone.
The presence property controls the participation of the associated object in different phases of processing.
Enumeration for the type of xfa widget.
Values of this enumeration should be used alone.
foxit::addon::xfa::XFAWidget::XFAWidget | ( | const XFAWidget & | other | ) |
Constructor, with another XFA widget object.
[in] | other | Another XFA widget object. |
int foxit::addon::xfa::XFAWidget::GetIndex | ( | ) | const |
Get the index of XFA Widget in related XFA page.
PresenceProperty foxit::addon::xfa::XFAWidget::GetPresence | ( | ) |
Get the presence property of the XFA widget.
The presence property controls the participation of the associated object in different phases of processing.
RectF foxit::addon::xfa::XFAWidget::GetRect | ( | ) |
Get rectangle of XFA widget.
WidgetType foxit::addon::xfa::XFAWidget::GetType | ( | ) |
Get type of XFA widget.
WString foxit::addon::xfa::XFAWidget::GetValue | ( | ) |
Get the value string.
XFAPage foxit::addon::xfa::XFAWidget::GetXFAPage | ( | ) |
Get the related XFA page, to which current XFA widget belongs.
bool foxit::addon::xfa::XFAWidget::IsEmpty | ( | ) | const |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
bool foxit::addon::xfa::XFAWidget::OnChar | ( | int | input_char, |
uint32 | flags | ||
) |
Call this function when a character code is being input.
[in] | input_char | A character code, in UTF16-LE encoding. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
HitTestArea foxit::addon::xfa::XFAWidget::OnHitTest | ( | const PointF & | point | ) |
Call this function to do hit test for a specified point.
[in] | point | A point to be tested. |
Call this function when key on the keyboard is down.
[in] | key_code | The key code. Please refer to values starting from pdf::interform::Filler::e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when key on the keyboard is up.
[in] | key_code | The key code. Please refer to values starting from pdf::interform::Filler::e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when left mouse button is double-clicked .
[in] | point | A point where left mouse button is double-clicked in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when left mouse button is down.
[in] | point | A point where left mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when left mouse button is up.
[in] | point | A point where left mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
bool foxit::addon::xfa::XFAWidget::OnMouseEnter | ( | ) |
Call this function when mouse enters current XFA widget.
bool foxit::addon::xfa::XFAWidget::OnMouseExit | ( | ) |
Call this function when mouse exits.
Call this function when mouse moves.
[in] | point | A point where left mouse button moves in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when right mouse is down.
[in] | point | A point where right mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
Call this function when right button is up.
[in] | point | A point where right mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from pdf::interform::Filler::e_EventFlagShiftKey and this should be one or a combination of these values. |
bool foxit::addon::xfa::XFAWidget::operator != | ( | const XFAWidget & | other | ) | const |
Not equal operator.
[in] | other | Another XFA widget object. This function will check if current object is not equal to this one. |
Assign operator.
[in] | other | Another XFA widget object, whose value would be assigned to current object. |
bool foxit::addon::xfa::XFAWidget::operator== | ( | const XFAWidget & | other | ) | const |
Equal operator.
[in] | other | Another XFA widget object. This function will check if current object is equal to this one. |
void foxit::addon::xfa::XFAWidget::ResetData | ( | ) |
Reset XFA Widget Data.
void foxit::addon::xfa::XFAWidget::SetValue | ( | const wchar_t * | value | ) |
Set the value string.
[in] | value | A string as value to be set. It should not be an empty string. |