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_FPDFTEXT_FPDF_TEXT_INT_H_ | 7 #ifndef CORE_FPDFTEXT_FPDF_TEXT_INT_H_ |
8 #define CORE_FPDFTEXT_FPDF_TEXT_INT_H_ | 8 #define CORE_FPDFTEXT_FPDF_TEXT_INT_H_ |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const CPDF_PageObjectList* pObjList, | 115 const CPDF_PageObjectList* pObjList, |
116 CPDF_PageObjectList::const_iterator ObjPos); | 116 CPDF_PageObjectList::const_iterator ObjPos); |
117 int ProcessInsertObject(const CPDF_TextObject* pObj, | 117 int ProcessInsertObject(const CPDF_TextObject* pObj, |
118 const CFX_Matrix& formMatrix); | 118 const CFX_Matrix& formMatrix); |
119 FX_BOOL GenerateCharInfo(FX_WCHAR unicode, PAGECHAR_INFO& info); | 119 FX_BOOL GenerateCharInfo(FX_WCHAR unicode, PAGECHAR_INFO& info); |
120 FX_BOOL IsSameAsPreTextObject(CPDF_TextObject* pTextObj, | 120 FX_BOOL IsSameAsPreTextObject(CPDF_TextObject* pTextObj, |
121 const CPDF_PageObjectList* pObjList, | 121 const CPDF_PageObjectList* pObjList, |
122 CPDF_PageObjectList::const_iterator ObjPos); | 122 CPDF_PageObjectList::const_iterator ObjPos); |
123 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, | 123 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, |
124 CPDF_TextObject* pTextObj2); | 124 CPDF_TextObject* pTextObj2); |
125 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; | 125 int GetCharWidth(uint32_t charCode, CPDF_Font* pFont) const; |
126 void CloseTempLine(); | 126 void CloseTempLine(); |
127 void OnPiece(CFX_BidiChar* pBidi, CFX_WideString& str); | 127 void OnPiece(CFX_BidiChar* pBidi, CFX_WideString& str); |
128 int32_t PreMarkedContent(PDFTEXT_Obj pObj); | 128 int32_t PreMarkedContent(PDFTEXT_Obj pObj); |
129 void ProcessMarkedContent(PDFTEXT_Obj pObj); | 129 void ProcessMarkedContent(PDFTEXT_Obj pObj); |
130 void CheckMarkedContentObject(int32_t& start, int32_t& nCount) const; | 130 void CheckMarkedContentObject(int32_t& start, int32_t& nCount) const; |
131 void FindPreviousTextObject(void); | 131 void FindPreviousTextObject(void); |
132 void AddCharInfoByLRDirection(FX_WCHAR wChar, PAGECHAR_INFO info); | 132 void AddCharInfoByLRDirection(FX_WCHAR wChar, PAGECHAR_INFO info); |
133 void AddCharInfoByRLDirection(FX_WCHAR wChar, PAGECHAR_INFO info); | 133 void AddCharInfoByRLDirection(FX_WCHAR wChar, PAGECHAR_INFO info); |
134 int32_t GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); | 134 int32_t GetTextObjectWritingMode(const CPDF_TextObject* pTextObj); |
135 int32_t FindTextlineFlowDirection(); | 135 int32_t FindTextlineFlowDirection(); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void AppendToLinkList(int start, int count, const CFX_WideString& strUrl); | 238 void AppendToLinkList(int start, int count, const CFX_WideString& strUrl); |
239 | 239 |
240 private: | 240 private: |
241 LINK_InfoArray m_LinkList; | 241 LINK_InfoArray m_LinkList; |
242 const CPDF_TextPage* m_pTextPage; | 242 const CPDF_TextPage* m_pTextPage; |
243 CFX_WideString m_strPageText; | 243 CFX_WideString m_strPageText; |
244 bool m_bIsParsed; | 244 bool m_bIsParsed; |
245 }; | 245 }; |
246 | 246 |
247 #endif // CORE_FPDFTEXT_FPDF_TEXT_INT_H_ | 247 #endif // CORE_FPDFTEXT_FPDF_TEXT_INT_H_ |
OLD | NEW |