From 2056fac754e679baea695390854fe7b0ce7acb28 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 16 Jan 2018 16:06:45 +0000 Subject: Add support for XFA specific FormField types This adds to form field types specific types for XFA form fields to be used instead of the generic XFA value when possible. BUG=pdfium:952,chromium:763129,chromium:592758 Change-Id: I8d1cff6a280d71db348b7c31a251cbe2e398ec79 Reviewed-on: https://pdfium-review.googlesource.com/22677 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- xfa/fxfa/cxfa_ffwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xfa/fxfa/cxfa_ffwidget.h') diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h index 50b540635f..7c21903203 100644 --- a/xfa/fxfa/cxfa_ffwidget.h +++ b/xfa/fxfa/cxfa_ffwidget.h @@ -9,6 +9,7 @@ #include +#include "core/fpdfdoc/cpdf_formfield.h" #include "core/fxcodec/fx_codec_def.h" #include "core/fxge/cfx_graphstatedata.h" #include "xfa/fwl/cfwl_app.h" @@ -134,6 +135,8 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem { virtual void Delete(); virtual void DeSelect(); + virtual FormFieldType GetFormFieldType(); + // TODO(tsepez): Implement or remove. void GetSuggestWords(CFX_PointF pointf, std::vector* pWords); bool ReplaceSpellCheckWord(CFX_PointF pointf, -- cgit v1.2.3