| 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 XFA_FEE_FDE_TXTEDTPAGE_H_ | 7 #ifndef XFA_FEE_FDE_TXTEDTPAGE_H_ |
| 8 #define XFA_FEE_FDE_TXTEDTPAGE_H_ | 8 #define XFA_FEE_FDE_TXTEDTPAGE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } else { | 57 } else { |
| 58 return FDE_TXTEDT_CHARTYPE_Char; | 58 return FDE_TXTEDT_CHARTYPE_Char; |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 | 61 |
| 62 struct FDE_TEXTEDITPIECE { | 62 struct FDE_TEXTEDITPIECE { |
| 63 int32_t nStart; | 63 int32_t nStart; |
| 64 int32_t nCount; | 64 int32_t nCount; |
| 65 int32_t nBidiLevel; | 65 int32_t nBidiLevel; |
| 66 CFX_RectF rtPiece; | 66 CFX_RectF rtPiece; |
| 67 FX_DWORD dwCharStyles; | 67 uint32_t dwCharStyles; |
| 68 }; | 68 }; |
| 69 typedef CFX_MassArrayTemplate<FDE_TEXTEDITPIECE> CFDE_TXTEDTPieceMassArray; | 69 typedef CFX_MassArrayTemplate<FDE_TEXTEDITPIECE> CFDE_TXTEDTPieceMassArray; |
| 70 | 70 |
| 71 class CFDE_TxtEdtTextSet : public IFDE_TextSet { | 71 class CFDE_TxtEdtTextSet : public IFDE_TextSet { |
| 72 public: | 72 public: |
| 73 CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage); | 73 CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage); |
| 74 ~CFDE_TxtEdtTextSet(); | 74 ~CFDE_TxtEdtTextSet(); |
| 75 | 75 |
| 76 virtual FDE_VISUALOBJTYPE GetType(); | 76 virtual FDE_VISUALOBJTYPE GetType(); |
| 77 virtual FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox); | 77 virtual FX_BOOL GetBBox(FDE_HVISUALOBJ hVisualObj, CFX_RectF& bbox); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 int32_t m_nPageIndex; | 159 int32_t m_nPageIndex; |
| 160 FX_BOOL m_bLoaded; | 160 FX_BOOL m_bLoaded; |
| 161 CFX_RectF m_rtPage; | 161 CFX_RectF m_rtPage; |
| 162 CFX_RectF m_rtPageMargin; | 162 CFX_RectF m_rtPageMargin; |
| 163 CFX_RectF m_rtPageContents; | 163 CFX_RectF m_rtPageContents; |
| 164 CFX_RectF m_rtPageCanvas; | 164 CFX_RectF m_rtPageCanvas; |
| 165 int32_t* m_pCharWidth; | 165 int32_t* m_pCharWidth; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // XFA_FEE_FDE_TXTEDTPAGE_H_ | 168 #endif // XFA_FEE_FDE_TXTEDTPAGE_H_ |
| OLD | NEW |