• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FPDFSDK_CPDFSDK_XFAWIDGET_H_
8 #define FPDFSDK_CPDFSDK_XFAWIDGET_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_string.h"
12 #include "fpdfsdk/cpdfsdk_annot.h"
13 
14 class CPDFSDK_InterForm;
15 class CPDFSDK_PageView;
16 class CXFA_FFWidget;
17 
18 class CPDFSDK_XFAWidget : public CPDFSDK_Annot {
19  public:
20   CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot,
21                     CPDFSDK_PageView* pPageView,
22                     CPDFSDK_InterForm* pInterForm);
~CPDFSDK_XFAWidget()23   ~CPDFSDK_XFAWidget() override {}
24 
25   bool IsXFAField() override;
26   CXFA_FFWidget* GetXFAWidget() const override;
27   CPDF_Annot::Subtype GetAnnotSubtype() const override;
28   CFX_FloatRect GetRect() const override;
29 
GetInterForm()30   CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; }
31 
32  private:
33   CPDFSDK_InterForm* m_pInterForm;
34   CXFA_FFWidget* m_hXFAWidget;
35 };
36 
37 #endif  // FPDFSDK_CPDFSDK_XFAWIDGET_H_
38