Chromium Code Reviews| Index: core/src/fpdftext/text_int.h |
| diff --git a/core/src/fpdftext/text_int.h b/core/src/fpdftext/text_int.h |
| index 0efe805f26d6c2cfb03528bc18ab1ae517fd7841..2b58c565fe6f9cb567b5efef14a54fbcd5307117 100644 |
| --- a/core/src/fpdftext/text_int.h |
| +++ b/core/src/fpdftext/text_int.h |
| @@ -8,6 +8,9 @@ |
| #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| #include "../../include/fpdftext/fpdf_text.h" |
| +#ifdef PDF_ENABLE_XFA |
| +#include "../../include/fxcrt/fx_arb.h" |
| +#endif |
| #include "../../include/fxcrt/fx_basic.h" |
| class CFX_BidiChar; |
| @@ -51,7 +54,13 @@ typedef CFX_ArrayTemplate<PDFTEXT_Obj> LINEOBJ; |
| class CPDF_TextPage : public IPDF_TextPage { |
| public: |
| +#ifndef PDF_ENABLE_XFA |
| CPDF_TextPage(const CPDF_Page* pPage, int flags); |
| +#else |
| + CPDF_TextPage(const CPDF_Page* pPage, int flags = 0); |
| + CPDF_TextPage(const CPDF_PageObjects* pPage, int flags = 0); |
| + CPDF_TextPage(const CPDF_Page* pPage, CPDFText_ParseOptions ParserOptions); |
| +#endif |
| ~CPDF_TextPage() override {} |
| // IPDF_TextPage |
| @@ -125,10 +134,12 @@ class CPDF_TextPage : public IPDF_TextPage { |
| void AddCharInfoByRLDirection(CFX_WideString& str, int i); |
| int32_t GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); |
| int32_t FindTextlineFlowDirection(); |
| +#ifndef PDF_ENABLE_XFA |
| void SwapTempTextBuf(int32_t iCharListStartAppend, int32_t iBufStartAppend); |
| FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, |
| const CPDF_Font* pFont, |
| int nItems) const; |
| +#endif |
| CPDFText_ParseOptions m_ParseOptions; |
| CFX_WordArray m_CharIndex; |
| @@ -196,7 +207,9 @@ class CPDF_TextPageFind : public IPDF_TextPageFind { |
| CFX_RectArray m_resArray; |
| FX_BOOL m_IsFind; |
| }; |
| +#ifndef PDF_ENABLE_XFA |
|
Lei Zhang
2015/10/30 06:15:30
empty
|
| +#endif |
| class CPDF_LinkExt { |
| public: |
| CPDF_LinkExt() {} |