diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-08 16:19:33 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-08 16:19:33 -0700 |
commit | 245c80e410deff6ee35f62adce42dd0fcf46845a (patch) | |
tree | 355312b8cbfa650945a03a9814d4d67379e07ebe | |
parent | 6102dd8c05b9a12d08d9e5c7f790c1fc76fbfaab (diff) | |
download | pdfium-245c80e410deff6ee35f62adce42dd0fcf46845a.tar.xz |
Merge to XFA: Fix IWYU in formfiller/ directory.
Original Review URL: https://codereview.chromium.org/1066253002
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1073563003
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h | 5 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_CheckBox.h | 2 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_ComboBox.h | 9 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_ListBox.h | 3 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_Notify.h | 7 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_PushButton.h | 2 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_RadioButton.h | 2 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_TextField.h | 3 | ||||
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_Utils.h | 5 | ||||
-rw-r--r-- | fpdfsdk/include/fpdf_dataavail.h | 5 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_actionhandler.h | 8 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_annothandler.h | 11 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_baseannot.h | 11 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_baseform.h | 17 |
14 files changed, 73 insertions, 17 deletions
diff --git a/fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h b/fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h index 50f516041e..8601b98194 100644 --- a/fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h +++ b/fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h @@ -7,10 +7,9 @@ #ifndef _RAO_FONTMAP_H_ #define _RAO_FONTMAP_H_ -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#include "../pdfwindow/PWL_FontMap.h" +class CPDF_Dictionary; class CPDFSDK_Annot; class CBA_FontMap : public CPWL_FontMap diff --git a/fpdfsdk/include/formfiller/FFL_CheckBox.h b/fpdfsdk/include/formfiller/FFL_CheckBox.h index 9aaf7fe526..240e748ea3 100644 --- a/fpdfsdk/include/formfiller/FFL_CheckBox.h +++ b/fpdfsdk/include/formfiller/FFL_CheckBox.h @@ -7,6 +7,8 @@ #ifndef _FFL_CHECKBOX_H_ #define _FFL_CHECKBOX_H_ +#include "FFL_FormFiller.h" + class CFFL_CheckBox : public CFFL_Button { public: diff --git a/fpdfsdk/include/formfiller/FFL_ComboBox.h b/fpdfsdk/include/formfiller/FFL_ComboBox.h index e3ad8b1c22..df7ca55cc5 100644 --- a/fpdfsdk/include/formfiller/FFL_ComboBox.h +++ b/fpdfsdk/include/formfiller/FFL_ComboBox.h @@ -5,7 +5,13 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef _FFL_COMBOBOX_H_ - #define _FFL_COMBOBOX_H_ +#define _FFL_COMBOBOX_H_ + +#include "../../../core/include/fxcrt/fx_string.h" +#include "FFL_FormFiller.h" + +class CBA_FontMap; +class CPDFSDK_Document; struct FFL_ComboBoxState { @@ -14,7 +20,6 @@ struct FFL_ComboBoxState int nEnd; CFX_WideString sValue; }; -class CBA_FontMap; class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public IPWL_Edit_Notify { diff --git a/fpdfsdk/include/formfiller/FFL_ListBox.h b/fpdfsdk/include/formfiller/FFL_ListBox.h index 43f5fce40b..03f71df5b9 100644 --- a/fpdfsdk/include/formfiller/FFL_ListBox.h +++ b/fpdfsdk/include/formfiller/FFL_ListBox.h @@ -7,7 +7,10 @@ #ifndef _FFL_LISTBOX_H_ #define _FFL_LISTBOX_H_ +#include "FFL_FormFiller.h" + class CBA_FontMap; + class CFFL_ListBox : public CFFL_FormFiller { public: diff --git a/fpdfsdk/include/formfiller/FFL_Notify.h b/fpdfsdk/include/formfiller/FFL_Notify.h index c729b7452b..bd21ffc496 100644 --- a/fpdfsdk/include/formfiller/FFL_Notify.h +++ b/fpdfsdk/include/formfiller/FFL_Notify.h @@ -4,10 +4,14 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#if !defined(_FFL_NOTIFY_H_) +#ifndef _FFL_NOTIFY_H_ #define _FFL_NOTIFY_H_ +#include "../../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../../core/include/fxcrt/fx_string.h" + class CFFL_FormFiller; +class CPDF_FormField; class CFFL_Notify { @@ -38,7 +42,6 @@ public: FX_BOOL IsNotifying() const {return m_nNotifyFlag > 0;} private: -// CReader_InterForm * GetReaderInterForm(); FX_BOOL DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); FX_BOOL FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); FX_BOOL FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & action); diff --git a/fpdfsdk/include/formfiller/FFL_PushButton.h b/fpdfsdk/include/formfiller/FFL_PushButton.h index be5e735dcb..5d115c0771 100644 --- a/fpdfsdk/include/formfiller/FFL_PushButton.h +++ b/fpdfsdk/include/formfiller/FFL_PushButton.h @@ -7,6 +7,8 @@ #ifndef _FFL_PUSHBUTTON_H_ #define _FFL_PUSHBUTTON_H_ +#include "FFL_FormFiller.h" + class CFFL_PushButton : public CFFL_Button { public: diff --git a/fpdfsdk/include/formfiller/FFL_RadioButton.h b/fpdfsdk/include/formfiller/FFL_RadioButton.h index 037e56344d..2049a45345 100644 --- a/fpdfsdk/include/formfiller/FFL_RadioButton.h +++ b/fpdfsdk/include/formfiller/FFL_RadioButton.h @@ -7,6 +7,8 @@ #ifndef _FFL_RADIOBUTTON_H_ #define _FFL_RADIOBUTTON_H_ +#include "FFL_FormFiller.h" + class CFFL_RadioButton : public CFFL_Button { public: diff --git a/fpdfsdk/include/formfiller/FFL_TextField.h b/fpdfsdk/include/formfiller/FFL_TextField.h index 53ddfb7245..b987a9c8ae 100644 --- a/fpdfsdk/include/formfiller/FFL_TextField.h +++ b/fpdfsdk/include/formfiller/FFL_TextField.h @@ -15,7 +15,8 @@ class CBA_FontMap; -class CFFL_EditUndoItem //: public IUndoItem + +class CFFL_EditUndoItem { public: CFFL_EditUndoItem(CPWL_Edit* pEdit); diff --git a/fpdfsdk/include/formfiller/FFL_Utils.h b/fpdfsdk/include/formfiller/FFL_Utils.h index c5ac2a2b87..e64cce9ea4 100644 --- a/fpdfsdk/include/formfiller/FFL_Utils.h +++ b/fpdfsdk/include/formfiller/FFL_Utils.h @@ -7,7 +7,10 @@ #ifndef _FFL_UTILS_H_ #define _FFL_UTILS_H_ -#define FFL_BASE_USERUNIT 1.0f / 72.0f +#include "../../../core/include/fpdfapi/fpdf_parser.h" +#include "../../../core/include/fxcrt/fx_memory.h" + +#define FFL_BASE_USERUNIT (1.0f / 72.0f) class CFFL_Utils { diff --git a/fpdfsdk/include/fpdf_dataavail.h b/fpdfsdk/include/fpdf_dataavail.h index 04f632affb..de6cb23bd5 100644 --- a/fpdfsdk/include/fpdf_dataavail.h +++ b/fpdfsdk/include/fpdf_dataavail.h @@ -7,10 +7,9 @@ #ifndef _FPDF_DATAAVAIL_H_ #define _FPDF_DATAAVAIL_H_ -#ifndef _FPDFVIEW_H_ -#include "fpdfview.h" -#endif +#include <stddef.h> // For size_t. +#include "fpdfview.h" /** The result of the process which check linearized PDF. */ #define FSDK_IS_LINEARIZED 1 diff --git a/fpdfsdk/include/fsdk_actionhandler.h b/fpdfsdk/include/fsdk_actionhandler.h index 65d38d71fe..1ec7c09904 100644 --- a/fpdfsdk/include/fsdk_actionhandler.h +++ b/fpdfsdk/include/fsdk_actionhandler.h @@ -7,8 +7,16 @@ #ifndef _FSDK_ACTIONHANDLER_H_ #define _FSDK_ACTIONHANDLER_H_ +#include "../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../core/include/fxcrt/fx_string.h" +#include "fsdk_baseform.h" +class CFX_PtrList; class CPDFDoc_Environment; +class CPDFSDK_Annot; +class CPDFSDK_Document; +class CPDF_Bookmark; +class CPDF_Dictionary; class IFXJS_Runtime; class CPDFSDK_FormActionHandler diff --git a/fpdfsdk/include/fsdk_annothandler.h b/fpdfsdk/include/fsdk_annothandler.h index 6f2b71b045..f4b88f2984 100644 --- a/fpdfsdk/include/fsdk_annothandler.h +++ b/fpdfsdk/include/fsdk_annothandler.h @@ -7,11 +7,20 @@ #ifndef _FSDK_ANNOTHANDLER_H_ #define _FSDK_ANNOTHANDLER_H_ +#include "../../core/include/fxcrt/fx_basic.h" + #define FSDK_XFAWIDGET_TYPENAME "XFAWidget" -class CPDFDoc_Environment; class CFFL_IFormFiller; +class CFX_RenderDevice; +class CPDFDoc_Environment; +class CPDFSDK_Annot; class CPDFSDK_PageView; +class CPDF_Annot; +class CPDF_Matrix; +class CPDF_Point; +class CPDF_Rect; + class IPDFSDK_AnnotHandler { diff --git a/fpdfsdk/include/fsdk_baseannot.h b/fpdfsdk/include/fsdk_baseannot.h index 5f56fc7000..0655e9ca61 100644 --- a/fpdfsdk/include/fsdk_baseannot.h +++ b/fpdfsdk/include/fsdk_baseannot.h @@ -13,7 +13,18 @@ #include <ctime> #endif +#include "../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../core/include/fxcrt/fx_basic.h" +#include "fx_systemhandler.h" + class CPDFSDK_PageView; +class CPDF_Annot; +class CPDF_Page; +class CPDF_Rect; +class CPDF_Matrix; +class CPDF_RenderOptions; +class CFX_RenderDevice; + #define CFX_IntArray CFX_ArrayTemplate<int> class CPDFSDK_DateTime : public CFX_Object diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h index 42de1019b9..ff9dfa163d 100644 --- a/fpdfsdk/include/fsdk_baseform.h +++ b/fpdfsdk/include/fsdk_baseform.h @@ -13,12 +13,21 @@ #include <ctime> #endif -class CPDFSDK_Document; -class CPDFSDK_DateTime; -struct CPWL_Color; +#include "../../core/include/fpdfapi/fpdf_parser.h" +#include "../../core/include/fpdfdoc/fpdf_doc.h" +#include "../../core/include/fxcrt/fx_basic.h" +#include "../../core/include/fxge/fx_dib.h" +#include "fsdk_baseannot.h" + class CFFL_FormFiller; -class CPDFSDK_PageView; +class CPDFSDK_Annot; +class CPDFSDK_DateTime; +class CPDFSDK_Document; class CPDFSDK_InterForm; +class CPDFSDK_PageView; +class CPDF_Action; +class CPDF_FormField; +struct CPWL_Color; typedef enum _PDFSDK_XFAAActionType { |