| 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 <deque> | 10 #include <deque> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 FX_BOOL IsSameAsPreTextObject(CPDF_TextObject* pTextObj, FX_POSITION ObjPos); | 114 FX_BOOL IsSameAsPreTextObject(CPDF_TextObject* pTextObj, FX_POSITION ObjPos); |
| 115 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, | 115 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, |
| 116 CPDF_TextObject* pTextObj2); | 116 CPDF_TextObject* pTextObj2); |
| 117 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; | 117 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; |
| 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(FX_WCHAR wChar, PAGECHAR_INFO info); |
| 125 void AddCharInfoByRLDirection(CFX_WideString& str, int i); | 125 void AddCharInfoByRLDirection(FX_WCHAR wChar, PAGECHAR_INFO info); |
| 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 |
| 129 void SwapTempTextBuf(int32_t iCharListStartAppend, int32_t iBufStartAppend); | 129 void SwapTempTextBuf(int32_t iCharListStartAppend, int32_t iBufStartAppend); |
| 130 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, | 130 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, |
| 131 const CPDF_Font* pFont, | 131 const CPDF_Font* pFont, |
| 132 int nItems) const; | 132 int nItems) const; |
| 133 | 133 |
| 134 std::vector<FX_WORD> m_CharIndex; | 134 std::vector<FX_WORD> m_CharIndex; |
| 135 const CPDF_PageObjectList* const m_pPage; | 135 const CPDF_PageObjectList* const m_pPage; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 private: | 232 private: |
| 233 LINK_InfoArray m_LinkList; | 233 LINK_InfoArray m_LinkList; |
| 234 const CPDF_TextPage* m_pTextPage; | 234 const CPDF_TextPage* m_pTextPage; |
| 235 CFX_WideString m_strPageText; | 235 CFX_WideString m_strPageText; |
| 236 bool m_bIsParsed; | 236 bool m_bIsParsed; |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); | 239 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); |
| 240 | 240 |
| 241 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 241 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| OLD | NEW |