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_REFLOW_REFLOWEDPAGE_H_ | 7 #ifndef CORE_SRC_REFLOW_REFLOWEDPAGE_H_ |
8 #define CORE_SRC_REFLOW_REFLOWEDPAGE_H_ | 8 #define CORE_SRC_REFLOW_REFLOWEDPAGE_H_ |
9 | 9 |
10 #include "../../include/reflow/reflowengine.h" | 10 #include "../../include/reflow/reflowengine.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 void FitPageMode(); | 41 void FitPageMode(); |
42 void ProcessElement(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidt
h); | 42 void ProcessElement(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidt
h); |
43 FX_FLOAT GetElmWidth(IPDF_LayoutElement* pElement); | 43 FX_FLOAT GetElmWidth(IPDF_LayoutElement* pElement); |
44 CFX_FloatRect GetElmBBox(IPDF_LayoutElement* pElement); | 44 CFX_FloatRect GetElmBBox(IPDF_LayoutElement* pElement); |
45 void ProcessTable(FX_FLOAT dx); | 45 void ProcessTable(FX_FLOAT dx); |
46 void ProcessObjs(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidth); | 46 void ProcessObjs(IPDF_LayoutElement* pElement, FX_FLOAT reflowWidth); |
47 void ProcessObject(CPDF_PageObject* pObj, FX_FLOAT reflowWidth, CFX_A
ffineMatrix objMatrix); | 47 void ProcessObject(CPDF_PageObject* pObj, FX_FLOAT reflowWidth, CFX_A
ffineMatrix objMatrix); |
48 void ProcessTextObject(CPDF_TextObject *pObj, FX_FLOAT reflowWidth, C
FX_AffineMatrix objMatrix); | 48 void ProcessTextObject(CPDF_TextObject *pObj, FX_FLOAT reflowWidth, C
FX_AffineMatrix objMatrix); |
49 void ProcessPathObject(CPDF_PathObject *pObj, FX_FLOAT reflowWidth); | 49 void ProcessPathObject(CPDF_PathObject *pObj, FX_FLOAT reflowWidth); |
50 void ProcessUnitaryObjs(CPDF_PageObjects *pObjs, FX_FLOAT reflowWidth
, CFX_AffineMatrix objMatrix); | 50 void ProcessUnitaryObjs(CPDF_PageObjects *pObjs, FX_FLOAT reflowWidth
, CFX_AffineMatrix objMatrix); |
51 FX_INT32 LogicPreObj(CPDF_TextObject* pObj); | 51 int32_t LogicPreObj(CPDF_TextObject* pObj); |
52 int ProcessInsertObject(CPDF_TextObject* pObj, CFX_AffineMatrix formMatrix); | 52 int ProcessInsertObject(CPDF_TextObject* pObj, CFX_AffineMatrix formMatrix); |
53 FX_WCHAR GetPreChar(); | 53 FX_WCHAR GetPreChar(); |
54 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, CPDF_TextObject* pTextO
bj2); | 54 FX_BOOL IsSameTextObject(CPDF_TextObject* pTextObj1, CPDF_TextObject* pTextO
bj2); |
55 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; | 55 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; |
56 FX_BOOL IsCanBreakAfter(FX_DWORD unicode); | 56 FX_BOOL IsCanBreakAfter(FX_DWORD unicode); |
57 FX_BOOL IsCanBreakBefore(FX_DWORD unicode); | 57 FX_BOOL IsCanBreakBefore(FX_DWORD unicode); |
58 FX_INT32 GetElementTypes(LayoutType layoutType); | 58 int32_t GetElementTypes(LayoutType layoutType); |
59 void CreateRFData(CPDF_PageObject* pObj, CFX_
AffineMatrix* pMatrix = NULL); | 59 void CreateRFData(CPDF_PageObject* pObj, CFX_
AffineMatrix* pMatrix = NULL); |
60 CRF_CharState* GetCharState(CPDF_TextObject* pObj, CPDF_Font* p
Font, FX_FLOAT fHeight, FX_ARGB color); | 60 CRF_CharState* GetCharState(CPDF_TextObject* pObj, CPDF_Font* p
Font, FX_FLOAT fHeight, FX_ARGB color); |
61 FX_FLOAT ConverWidth(FX_FLOAT width); | 61 FX_FLOAT ConverWidth(FX_FLOAT width); |
62 void AddData2CurrLine(CRF_Data* pData); | 62 void AddData2CurrLine(CRF_Data* pData); |
63 void AddTemp2CurrLine(int begin, int count ); | 63 void AddTemp2CurrLine(int begin, int count ); |
64 void Transform(const CFX_AffineMatrix* pMatrix, CRF_Data* pData); | 64 void Transform(const CFX_AffineMatrix* pMatrix, CRF_Data* pData); |
65 void Transform(const CFX_AffineMatrix* pMatrix, CRF_DataPtrArray* pDa
taArray, int beginPos, int count = 0); | 65 void Transform(const CFX_AffineMatrix* pMatrix, CRF_DataPtrArray* pDa
taArray, int beginPos, int count = 0); |
66 FX_FLOAT GetDatasWidth( int beginPos, int endpos); | 66 FX_FLOAT GetDatasWidth( int beginPos, int endpos); |
67 void UpdateCurrLine(); | 67 void UpdateCurrLine(); |
68 FX_BOOL FinishedCurrLine(); | 68 FX_BOOL FinishedCurrLine(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 class CPDF_ReflowedPage : public IPDF_ReflowedPage, public CFX_PrivateData | 162 class CPDF_ReflowedPage : public IPDF_ReflowedPage, public CFX_PrivateData |
163 { | 163 { |
164 public: | 164 public: |
165 | 165 |
166 CPDF_ReflowedPage(CFX_GrowOnlyPool* pMemoryPool); | 166 CPDF_ReflowedPage(CFX_GrowOnlyPool* pMemoryPool); |
167 ~CPDF_ReflowedPage(); | 167 ~CPDF_ReflowedPage(); |
168 CFX_PrivateData* GetPrivateDataCtrl() | 168 CFX_PrivateData* GetPrivateDataCtrl() |
169 { | 169 { |
170 return this; | 170 return this; |
171 }; | 171 }; |
172 void» » GetDisplayMatrix(CFX_AffineMatrix& matrix, FX_INT32 xPos
, FX_INT32 yPos, FX_INT32 xSize, FX_INT32 ySize, FX_INT32 iRotate, const CFX_Aff
ineMatrix* pPageMatrix); | 172 void» » GetDisplayMatrix(CFX_AffineMatrix& matrix, int32_t xPos,
int32_t yPos, int32_t xSize, int32_t ySize, int32_t iRotate, const CFX_AffineMa
trix* pPageMatrix); |
173 | 173 |
174 FX_FLOAT GetPageHeight() ; | 174 FX_FLOAT GetPageHeight() ; |
175 FX_FLOAT GetPageWidth() | 175 FX_FLOAT GetPageWidth() |
176 { | 176 { |
177 return m_PageWidth; | 177 return m_PageWidth; |
178 }; | 178 }; |
179 void» » FocusGetData(const CFX_AffineMatrix matrix, FX_INT32 x,
FX_INT32 y, CFX_ByteString& str); | 179 void» » FocusGetData(const CFX_AffineMatrix matrix, int32_t x, i
nt32_t y, CFX_ByteString& str); |
180 FX_BOOL» » FocusGetPosition(const CFX_AffineMatrix matrix, CFX_Byte
String str, FX_INT32& x, FX_INT32& y); | 180 FX_BOOL» » FocusGetPosition(const CFX_AffineMatrix matrix, CFX_Byte
String str, int32_t& x, int32_t& y); |
181 CRF_DataPtrArray* m_pReflowed; | 181 CRF_DataPtrArray* m_pReflowed; |
182 FX_FLOAT m_PageWidth; | 182 FX_FLOAT m_PageWidth; |
183 FX_FLOAT m_PageHeight; | 183 FX_FLOAT m_PageHeight; |
184 FX_BOOL m_bWaiting; | 184 FX_BOOL m_bWaiting; |
185 CRF_CharStateArray* m_pCharState; | 185 CRF_CharStateArray* m_pCharState; |
186 CFX_GrowOnlyPool* m_pMemoryPool; | 186 CFX_GrowOnlyPool* m_pMemoryPool; |
187 FX_BOOL m_bCreateMemoryPool; | 187 FX_BOOL m_bCreateMemoryPool; |
188 CPDF_Page* m_pPDFPage; | 188 CPDF_Page* m_pPDFPage; |
189 FX_BOOL RetainPageObjsMemberShip(); | 189 FX_BOOL RetainPageObjsMemberShip(); |
190 void MarkPageObjMemberShip(CPDF_PageO
bject* pObj, CRF_PageInfo* pParent); | 190 void MarkPageObjMemberShip(CPDF_PageO
bject* pObj, CRF_PageInfo* pParent); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 FX_BOOL m_bDecoration; | 365 FX_BOOL m_bDecoration; |
366 CPDF_Path m_pPathData; | 366 CPDF_Path m_pPathData; |
367 CFX_AffineMatrix m_pPath2Device; | 367 CFX_AffineMatrix m_pPath2Device; |
368 CPDF_GraphState m_pGraphState; | 368 CPDF_GraphState m_pGraphState; |
369 FX_ARGB m_fill_argb; | 369 FX_ARGB m_fill_argb; |
370 FX_ARGB m_stroke_argb; | 370 FX_ARGB m_stroke_argb; |
371 int m_fill_mode; | 371 int m_fill_mode; |
372 }; | 372 }; |
373 | 373 |
374 #endif // CORE_SRC_REFLOW_REFLOWEDPAGE_H_ | 374 #endif // CORE_SRC_REFLOW_REFLOWEDPAGE_H_ |
OLD | NEW |