| 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 #include "autoreflow.h" | 7 #include "autoreflow.h" |
| 8 #define approachto(a,b,c) (FXSYS_fabs((float)((a)-(b)))>(c) ? 0 : 1) | 8 #define approachto(a,b,c) (FXSYS_fabs((float)((a)-(b)))>(c) ? 0 : 1) |
| 9 int FPDF_ProcessInterObj(const CPDF_PageObject* pPrevObj, const CPDF_PageObject*
pObj) | 9 int FPDF_ProcessInterObj(const CPDF_PageObject* pPrevObj, const CPDF_PageObject*
pObj) |
| 10 { | 10 { |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 i--; | 408 i--; |
| 409 count--; | 409 count--; |
| 410 } else { | 410 } else { |
| 411 plastCell = pCell; | 411 plastCell = pCell; |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 } | 414 } |
| 415 void CPDF_AutoReflowLayoutProvider::ProcessObj(CFX_PtrArray& cellArray, CPDF_Pag
eObject* pObj, CFX_AffineMatrix matrix) | 415 void CPDF_AutoReflowLayoutProvider::ProcessObj(CFX_PtrArray& cellArray, CPDF_Pag
eObject* pObj, CFX_AffineMatrix matrix) |
| 416 { | 416 { |
| 417 } | 417 } |
| 418 FX_INT32 CPDF_AutoReflowLayoutProvider::LogicPreObj(CPDF_PageObject* pObj) | 418 int32_t CPDF_AutoReflowLayoutProvider::LogicPreObj(CPDF_PageObject* pObj) |
| 419 { | 419 { |
| 420 CPDF_PageObject* pPreObj = m_pPreObj; | 420 CPDF_PageObject* pPreObj = m_pPreObj; |
| 421 m_pPreObj = pObj; | 421 m_pPreObj = pObj; |
| 422 if(!pPreObj) { | 422 if(!pPreObj) { |
| 423 return 0; | 423 return 0; |
| 424 } | 424 } |
| 425 if(pPreObj->m_Type != pObj->m_Type) { | 425 if(pPreObj->m_Type != pObj->m_Type) { |
| 426 return 0; | 426 return 0; |
| 427 } | 427 } |
| 428 CFX_FloatRect rcCurObj(pObj->m_Left, pObj->m_Bottom, pObj->m_Right, pObj->m_
Top); | 428 CFX_FloatRect rcCurObj(pObj->m_Left, pObj->m_Bottom, pObj->m_Right, pObj->m_
Top); |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 pTextObj->GetItemInfo(i + 1, &Item); | 768 pTextObj->GetItemInfo(i + 1, &Item); |
| 769 return Item.m_OriginX; | 769 return Item.m_OriginX; |
| 770 } | 770 } |
| 771 } | 771 } |
| 772 return Item.m_OriginX; | 772 return Item.m_OriginX; |
| 773 } | 773 } |
| 774 CFX_AffineMatrix matrix; | 774 CFX_AffineMatrix matrix; |
| 775 FX_RECT rect = pObj->GetBBox(&matrix); | 775 FX_RECT rect = pObj->GetBBox(&matrix); |
| 776 return (FX_FLOAT)(rect.Width()); | 776 return (FX_FLOAT)(rect.Width()); |
| 777 } | 777 } |
| OLD | NEW |