| Index: fpdfsdk/fsdk_baseform.cpp
|
| diff --git a/fpdfsdk/fsdk_baseform.cpp b/fpdfsdk/fsdk_baseform.cpp
|
| index 65be7c8c5d26517f9ab1064299aa79632c611292..90ff14475986ba29db244150beb5ed7e3b3276fe 100644
|
| --- a/fpdfsdk/fsdk_baseform.cpp
|
| +++ b/fpdfsdk/fsdk_baseform.cpp
|
| @@ -29,9 +29,23 @@
|
| #ifdef PDF_ENABLE_XFA
|
| #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
|
| #include "fpdfsdk/fpdfxfa/include/fpdfxfa_util.h"
|
| +#include "xfa/fxfa/include/cxfa_eventparam.h"
|
| +#include "xfa/fxfa/include/xfa_ffdocview.h"
|
| #include "xfa/fxfa/include/xfa_ffwidget.h"
|
| +#include "xfa/fxfa/include/xfa_ffwidgethandler.h"
|
| #endif // PDF_ENABLE_XFA
|
|
|
| +PDFSDK_FieldAction::PDFSDK_FieldAction()
|
| + : bModifier(FALSE),
|
| + bShift(FALSE),
|
| + nCommitKey(0),
|
| + bKeyDown(FALSE),
|
| + nSelEnd(0),
|
| + nSelStart(0),
|
| + bWillCommit(FALSE),
|
| + bFieldFull(FALSE),
|
| + bRC(TRUE) {}
|
| +
|
| CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot,
|
| CPDFSDK_PageView* pPageView,
|
| CPDFSDK_InterForm* pInterForm)
|
| @@ -485,6 +499,10 @@ FX_BOOL CPDFSDK_Widget::IsAppearanceValid() {
|
| return CPDFSDK_BAAnnot::IsAppearanceValid();
|
| }
|
|
|
| +int CPDFSDK_Widget::GetLayoutOrder() const {
|
| + return 2;
|
| +}
|
| +
|
| int CPDFSDK_Widget::GetFieldFlags() const {
|
| CPDF_InterForm* pPDFInterForm = m_pInterForm->GetInterForm();
|
| CPDF_FormControl* pFormControl =
|
| @@ -1954,10 +1972,18 @@ FX_BOOL CPDFSDK_XFAWidget::IsXFAField() {
|
| return TRUE;
|
| }
|
|
|
| +CXFA_FFWidget* CPDFSDK_XFAWidget::GetXFAWidget() const {
|
| + return m_hXFAWidget;
|
| +}
|
| +
|
| CFX_ByteString CPDFSDK_XFAWidget::GetType() const {
|
| return FSDK_XFAWIDGET_TYPENAME;
|
| }
|
|
|
| +CFX_ByteString CPDFSDK_XFAWidget::GetSubType() const {
|
| + return "";
|
| +}
|
| +
|
| CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const {
|
| CFX_RectF rcBBox;
|
| GetXFAWidget()->GetRect(rcBBox);
|
|
|