| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| 9 | 9 |
| 10 #include "core/include/fpdftext/fpdf_text.h" | 10 #include "core/include/fpdftext/fpdf_text.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void CloseTempLine(); | 118 void CloseTempLine(); |
| 119 void OnPiece(CFX_BidiChar* pBidi, CFX_WideString& str); | 119 void OnPiece(CFX_BidiChar* pBidi, CFX_WideString& str); |
| 120 int32_t PreMarkedContent(PDFTEXT_Obj pObj); | 120 int32_t PreMarkedContent(PDFTEXT_Obj pObj); |
| 121 void ProcessMarkedContent(PDFTEXT_Obj pObj); | 121 void ProcessMarkedContent(PDFTEXT_Obj pObj); |
| 122 void CheckMarkedContentObject(int32_t& start, int32_t& nCount) const; | 122 void CheckMarkedContentObject(int32_t& start, int32_t& nCount) const; |
| 123 void FindPreviousTextObject(void); | 123 void FindPreviousTextObject(void); |
| 124 void AddCharInfoByLRDirection(CFX_WideString& str, int i); | 124 void AddCharInfoByLRDirection(CFX_WideString& str, int i); |
| 125 void AddCharInfoByRLDirection(CFX_WideString& str, int i); | 125 void AddCharInfoByRLDirection(CFX_WideString& str, int i); |
| 126 int32_t GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); | 126 int32_t GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); |
| 127 int32_t FindTextlineFlowDirection(); | 127 int32_t FindTextlineFlowDirection(); |
| 128 |
| 128 #ifndef PDF_ENABLE_XFA | 129 #ifndef PDF_ENABLE_XFA |
| 129 void SwapTempTextBuf(int32_t iCharListStartAppend, int32_t iBufStartAppend); | 130 void SwapTempTextBuf(int32_t iCharListStartAppend, int32_t iBufStartAppend); |
| 130 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, | 131 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, |
| 131 const CPDF_Font* pFont, | 132 const CPDF_Font* pFont, |
| 132 int nItems) const; | 133 int nItems) const; |
| 133 #endif | 134 #endif // PDF_ENABLE_XFA |
| 134 | 135 |
| 135 CPDFText_ParseOptions m_ParseOptions; | 136 CPDFText_ParseOptions m_ParseOptions; |
| 136 CFX_WordArray m_CharIndex; | 137 CFX_WordArray m_CharIndex; |
| 137 const CPDF_PageObjects* const m_pPage; | 138 const CPDF_PageObjects* const m_pPage; |
| 138 PAGECHAR_InfoArray m_charList; | 139 PAGECHAR_InfoArray m_charList; |
| 139 CFX_WideTextBuf m_TextBuf; | 140 CFX_WideTextBuf m_TextBuf; |
| 140 PAGECHAR_InfoArray m_TempCharList; | 141 PAGECHAR_InfoArray m_TempCharList; |
| 141 CFX_WideTextBuf m_TempTextBuf; | 142 CFX_WideTextBuf m_TempTextBuf; |
| 142 const int m_parserflag; | 143 const int m_parserflag; |
| 143 CPDF_TextObject* m_pPreTextObj; | 144 CPDF_TextObject* m_pPreTextObj; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 241 |
| 241 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 242 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
| 242 void NormalizeString(CFX_WideString& str); | 243 void NormalizeString(CFX_WideString& str); |
| 243 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 244 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
| 244 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, | 245 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, |
| 245 CPDF_PageObjects* pPage, | 246 CPDF_PageObjects* pPage, |
| 246 FX_BOOL bUseLF, | 247 FX_BOOL bUseLF, |
| 247 CFX_PtrArray* pObjArray); | 248 CFX_PtrArray* pObjArray); |
| 248 | 249 |
| 249 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 250 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| OLD | NEW |