| 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 class CPDF_TextParseOptions | 10 class CPDF_TextParseOptions |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #define FPDFTEXT_CHAR_HYPHEN 3 | 26 #define FPDFTEXT_CHAR_HYPHEN 3 |
| 27 #define FPDFTEXT_CHAR_PIECE 4 | 27 #define FPDFTEXT_CHAR_PIECE 4 |
| 28 #define FPDFTEXT_MC_PASS 0 | 28 #define FPDFTEXT_MC_PASS 0 |
| 29 #define FPDFTEXT_MC_DONE 1 | 29 #define FPDFTEXT_MC_DONE 1 |
| 30 #define FPDFTEXT_MC_DELAY 2 | 30 #define FPDFTEXT_MC_DELAY 2 |
| 31 typedef struct _PAGECHAR_INFO { | 31 typedef struct _PAGECHAR_INFO { |
| 32 int m_CharCode; | 32 int m_CharCode; |
| 33 FX_WCHAR m_Unicode; | 33 FX_WCHAR m_Unicode; |
| 34 FX_FLOAT m_OriginX; | 34 FX_FLOAT m_OriginX; |
| 35 FX_FLOAT m_OriginY; | 35 FX_FLOAT m_OriginY; |
| 36 FX_INT32» » » m_Flag; | 36 int32_t» » » m_Flag; |
| 37 CFX_FloatRect m_CharBox; | 37 CFX_FloatRect m_CharBox; |
| 38 CPDF_TextObject* m_pTextObj; | 38 CPDF_TextObject* m_pTextObj; |
| 39 CFX_AffineMatrix m_Matrix; | 39 CFX_AffineMatrix m_Matrix; |
| 40 int m_Index; | 40 int m_Index; |
| 41 } PAGECHAR_INFO; | 41 } PAGECHAR_INFO; |
| 42 typedef CFX_SegmentedArray<PAGECHAR_INFO> PAGECHAR_InfoArray; | 42 typedef CFX_SegmentedArray<PAGECHAR_INFO> PAGECHAR_InfoArray; |
| 43 typedef struct { | 43 typedef struct { |
| 44 int m_Start; | 44 int m_Start; |
| 45 int m_nCount; | 45 int m_nCount; |
| 46 } FPDF_SEGMENT; | 46 } FPDF_SEGMENT; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void ProcessFormObjec
t(CPDF_FormObject* pFormObj, const CFX_AffineMatrix& formMatrix); | 101 void ProcessFormObjec
t(CPDF_FormObject* pFormObj, const CFX_AffineMatrix& formMatrix); |
| 102 void ProcessTextObjec
t(PDFTEXT_Obj pObj); | 102 void ProcessTextObjec
t(PDFTEXT_Obj pObj); |
| 103 void ProcessTextObjec
t(CPDF_TextObject* pTextObj, const CFX_AffineMatrix& formMatrix, FX_POSITIO
N ObjPos); | 103 void ProcessTextObjec
t(CPDF_TextObject* pTextObj, const CFX_AffineMatrix& formMatrix, FX_POSITIO
N ObjPos); |
| 104 int ProcessInsertObj
ect(const CPDF_TextObject* pObj, const CFX_AffineMatrix& formMatrix); | 104 int ProcessInsertObj
ect(const CPDF_TextObject* pObj, const CFX_AffineMatrix& formMatrix); |
| 105 FX_BOOL GenerateCharInfo
(FX_WCHAR unicode, PAGECHAR_INFO& info); | 105 FX_BOOL GenerateCharInfo
(FX_WCHAR unicode, PAGECHAR_INFO& info); |
| 106 FX_BOOL IsSameAsPreTextO
bject(CPDF_TextObject* pTextObj, FX_POSITION ObjPos); | 106 FX_BOOL IsSameAsPreTextO
bject(CPDF_TextObject* pTextObj, FX_POSITION ObjPos); |
| 107 FX_BOOL IsSameTextObject
(CPDF_TextObject* pTextObj1, CPDF_TextObject* pTextObj2); | 107 FX_BOOL IsSameTextObject
(CPDF_TextObject* pTextObj1, CPDF_TextObject* pTextObj2); |
| 108 int GetCharWidth(FX_
DWORD charCode, CPDF_Font* pFont) const; | 108 int GetCharWidth(FX_
DWORD charCode, CPDF_Font* pFont) const; |
| 109 void CloseTempLine(); | 109 void CloseTempLine(); |
| 110 void OnPiece(IFX_Bidi
Char* pBidi, CFX_WideString& str); | 110 void OnPiece(IFX_Bidi
Char* pBidi, CFX_WideString& str); |
| 111 FX_INT32» PreMarkedContent(PDFTEXT_Obj pObj); | 111 int32_t» PreMarkedContent(PDFTEXT_Obj pObj); |
| 112 void ProcessMarkedContent(PDFTEXT_Obj pObj); | 112 void ProcessMarkedContent(PDFTEXT_Obj pObj); |
| 113 void» » CheckMarkedContentObject(FX_INT32& start, FX_INT32& nCou
nt) const; | 113 void» » CheckMarkedContentObject(int32_t& start, int32_t& nCount
) const; |
| 114 void FindPreviousTextObject(void); | 114 void FindPreviousTextObject(void); |
| 115 void AddCharInfoByLRDirection(CFX_WideString& str, int i); | 115 void AddCharInfoByLRDirection(CFX_WideString& str, int i); |
| 116 void AddCharInfoByRLDirection(CFX_WideString& str, int i); | 116 void AddCharInfoByRLDirection(CFX_WideString& str, int i); |
| 117 FX_INT32» GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); | 117 int32_t» GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); |
| 118 FX_INT32» FindTextlineFlowDirection(); | 118 int32_t» FindTextlineFlowDirection(); |
| 119 void SwapTempTextBuf(FX_INT32 iCharListStartAppend, | 119 void SwapTempTextBuf(int32_t iCharListStartAppend, |
| 120 FX_INT32 iBufStartAppend); | 120 int32_t iBufStartAppend); |
| 121 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, | 121 FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj, |
| 122 const CPDF_Font* pFont, | 122 const CPDF_Font* pFont, |
| 123 int nItems) const; | 123 int nItems) const; |
| 124 protected: | 124 protected: |
| 125 CPDFText_ParseOptions m_ParseOptions; | 125 CPDFText_ParseOptions m_ParseOptions; |
| 126 CFX_WordArray m_CharIndex; | 126 CFX_WordArray m_CharIndex; |
| 127 const CPDF_PageObjects* m_pPage; | 127 const CPDF_PageObjects* m_pPage; |
| 128 PAGECHAR_InfoArray m_charList; | 128 PAGECHAR_InfoArray m_charList; |
| 129 CFX_WideTextBuf m_TextBuf; | 129 CFX_WideTextBuf m_TextBuf; |
| 130 PAGECHAR_InfoArray m_TempCharList; | 130 PAGECHAR_InfoArray m_TempCharList; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 LINK_InfoArray m_LinkList; | 213 LINK_InfoArray m_LinkList; |
| 214 const CPDF_TextPage* m_pTextPage; | 214 const CPDF_TextPage* m_pTextPage; |
| 215 CFX_WideString m_strPageText; | 215 CFX_WideString m_strPageText; |
| 216 FX_BOOL m_IsParserd; | 216 FX_BOOL m_IsParserd; |
| 217 }; | 217 }; |
| 218 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_LPWSTR pDst); | 218 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_LPWSTR pDst); |
| 219 void NormalizeString(CFX_WideString& str); | 219 void NormalizeString(CFX_WideString& str); |
| 220 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); | 220 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); |
| 221 | 221 |
| 222 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ | 222 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ |
| OLD | NEW |