| 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_FXFA_APP_XFA_TEXTLAYOUT_H_ | 7 #ifndef XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ |
| 8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ | 8 #define XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 IFDE_CSSComputedStyle* ComputeStyle(CFDE_XMLNode* pXMLNode, | 88 IFDE_CSSComputedStyle* ComputeStyle(CFDE_XMLNode* pXMLNode, |
| 89 IFDE_CSSComputedStyle* pParentStyle); | 89 IFDE_CSSComputedStyle* pParentStyle); |
| 90 FX_BOOL IsParsed() const { return !!m_pAllocator; } | 90 FX_BOOL IsParsed() const { return !!m_pAllocator; } |
| 91 | 91 |
| 92 int32_t GetVAlign(CXFA_TextProvider* pTextProvider) const; | 92 int32_t GetVAlign(CXFA_TextProvider* pTextProvider) const; |
| 93 FX_FLOAT GetTabInterval(IFDE_CSSComputedStyle* pStyle) const; | 93 FX_FLOAT GetTabInterval(IFDE_CSSComputedStyle* pStyle) const; |
| 94 int32_t CountTabs(IFDE_CSSComputedStyle* pStyle) const; | 94 int32_t CountTabs(IFDE_CSSComputedStyle* pStyle) const; |
| 95 FX_BOOL IsSpaceRun(IFDE_CSSComputedStyle* pStyle) const; | 95 FX_BOOL IsSpaceRun(IFDE_CSSComputedStyle* pStyle) const; |
| 96 FX_BOOL GetTabstops(IFDE_CSSComputedStyle* pStyle, | 96 FX_BOOL GetTabstops(IFDE_CSSComputedStyle* pStyle, |
| 97 CXFA_TextTabstopsContext* pTabstopContext); | 97 CXFA_TextTabstopsContext* pTabstopContext); |
| 98 IFGAS_Font* GetFont(CXFA_TextProvider* pTextProvider, | 98 CFGAS_GEFont* GetFont(CXFA_TextProvider* pTextProvider, |
| 99 IFDE_CSSComputedStyle* pStyle) const; | 99 IFDE_CSSComputedStyle* pStyle) const; |
| 100 FX_FLOAT GetFontSize(CXFA_TextProvider* pTextProvider, | 100 FX_FLOAT GetFontSize(CXFA_TextProvider* pTextProvider, |
| 101 IFDE_CSSComputedStyle* pStyle) const; | 101 IFDE_CSSComputedStyle* pStyle) const; |
| 102 int32_t GetHorScale(CXFA_TextProvider* pTextProvider, | 102 int32_t GetHorScale(CXFA_TextProvider* pTextProvider, |
| 103 IFDE_CSSComputedStyle* pStyle, | 103 IFDE_CSSComputedStyle* pStyle, |
| 104 CFDE_XMLNode* pXMLNode) const; | 104 CFDE_XMLNode* pXMLNode) const; |
| 105 int32_t GetVerScale(CXFA_TextProvider* pTextProvider, | 105 int32_t GetVerScale(CXFA_TextProvider* pTextProvider, |
| 106 IFDE_CSSComputedStyle* pStyle) const; | 106 IFDE_CSSComputedStyle* pStyle) const; |
| 107 void GetUnderline(CXFA_TextProvider* pTextProvider, | 107 void GetUnderline(CXFA_TextProvider* pTextProvider, |
| 108 IFDE_CSSComputedStyle* pStyle, | 108 IFDE_CSSComputedStyle* pStyle, |
| 109 int32_t& iUnderline, | 109 int32_t& iUnderline, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 FX_WCHAR* pszText; | 253 FX_WCHAR* pszText; |
| 254 int32_t iChars; | 254 int32_t iChars; |
| 255 int32_t* pWidths; | 255 int32_t* pWidths; |
| 256 int32_t iHorScale; | 256 int32_t iHorScale; |
| 257 int32_t iVerScale; | 257 int32_t iVerScale; |
| 258 int32_t iBidiLevel; | 258 int32_t iBidiLevel; |
| 259 int32_t iUnderline; | 259 int32_t iUnderline; |
| 260 int32_t iPeriod; | 260 int32_t iPeriod; |
| 261 int32_t iLineThrough; | 261 int32_t iLineThrough; |
| 262 IFGAS_Font* pFont; | 262 CFGAS_GEFont* pFont; |
| 263 FX_ARGB dwColor; | 263 FX_ARGB dwColor; |
| 264 FX_FLOAT fFontSize; | 264 FX_FLOAT fFontSize; |
| 265 CFX_RectF rtPiece; | 265 CFX_RectF rtPiece; |
| 266 CXFA_LinkUserData* pLinkData; | 266 CXFA_LinkUserData* pLinkData; |
| 267 }; | 267 }; |
| 268 typedef CFX_ArrayTemplate<XFA_TextPiece*> CXFA_PieceArray; | 268 typedef CFX_ArrayTemplate<XFA_TextPiece*> CXFA_PieceArray; |
| 269 | 269 |
| 270 class CXFA_PieceLine : public CFX_Target { | 270 class CXFA_PieceLine : public CFX_Target { |
| 271 public: | 271 public: |
| 272 CXFA_PieceLine() {} | 272 CXFA_PieceLine() {} |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 std::unique_ptr<CXFA_LoaderContext> m_pLoader; | 416 std::unique_ptr<CXFA_LoaderContext> m_pLoader; |
| 417 int32_t m_iLines; | 417 int32_t m_iLines; |
| 418 FX_FLOAT m_fMaxWidth; | 418 FX_FLOAT m_fMaxWidth; |
| 419 CXFA_TextParser m_textParser; | 419 CXFA_TextParser m_textParser; |
| 420 CXFA_PieceLineArray m_pieceLines; | 420 CXFA_PieceLineArray m_pieceLines; |
| 421 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext; | 421 std::unique_ptr<CXFA_TextTabstopsContext> m_pTabstopContext; |
| 422 FX_BOOL m_bBlockContinue; | 422 FX_BOOL m_bBlockContinue; |
| 423 }; | 423 }; |
| 424 | 424 |
| 425 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ | 425 #endif // XFA_FXFA_APP_XFA_TEXTLAYOUT_H_ |
| OLD | NEW |