| 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 "../../../foxitlib.h" | 7 #include "../../../foxitlib.h" |
| 8 #include "fde_textout.h" | 8 #include "fde_textout.h" |
| 9 IFDE_TextOut* IFDE_TextOut::Create() { | 9 IFDE_TextOut* IFDE_TextOut::Create() { |
| 10 return new CFDE_TextOut; | 10 return new CFDE_TextOut; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 m_pEllCharWidths(NULL), | 22 m_pEllCharWidths(NULL), |
| 23 m_iEllChars(0), | 23 m_iEllChars(0), |
| 24 m_wParagraphBkChar(L'\n'), | 24 m_wParagraphBkChar(L'\n'), |
| 25 m_TxtColor(0xFF000000), | 25 m_TxtColor(0xFF000000), |
| 26 m_dwStyles(0), | 26 m_dwStyles(0), |
| 27 m_dwTxtBkStyles(0), | 27 m_dwTxtBkStyles(0), |
| 28 m_bElliChanged(FALSE), | 28 m_bElliChanged(FALSE), |
| 29 m_iEllipsisWidth(0), | 29 m_iEllipsisWidth(0), |
| 30 m_ttoLines(5), | 30 m_ttoLines(5), |
| 31 m_iCurLine(0), | 31 m_iCurLine(0), |
| 32 m_iCurPiece(0), |
| 32 m_iTotalLines(0), | 33 m_iTotalLines(0), |
| 33 m_iCurPiece(0), | |
| 34 m_pCharPos(NULL), | 34 m_pCharPos(NULL), |
| 35 m_iCharPosSize(0), | 35 m_iCharPosSize(0), |
| 36 m_pRenderDevice(NULL) { | 36 m_pRenderDevice(NULL) { |
| 37 m_pTxtBreak = IFX_TxtBreak::Create(FX_TXTBREAKPOLICY_None); | 37 m_pTxtBreak = IFX_TxtBreak::Create(FX_TXTBREAKPOLICY_None); |
| 38 FXSYS_assert(m_pTxtBreak != NULL); | 38 FXSYS_assert(m_pTxtBreak != NULL); |
| 39 m_Matrix.Reset(); | 39 m_Matrix.Reset(); |
| 40 m_rtClip.Reset(); | 40 m_rtClip.Reset(); |
| 41 m_rtLogicClip.Reset(); | 41 m_rtLogicClip.Reset(); |
| 42 } | 42 } |
| 43 CFDE_TextOut::~CFDE_TextOut() { | 43 CFDE_TextOut::~CFDE_TextOut() { |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 return NULL; | 945 return NULL; |
| 946 } | 946 } |
| 947 return m_pieces.GetPtrAt(index); | 947 return m_pieces.GetPtrAt(index); |
| 948 } | 948 } |
| 949 void CFDE_TTOLine::RemoveLast(int32_t iCount) { | 949 void CFDE_TTOLine::RemoveLast(int32_t iCount) { |
| 950 m_pieces.RemoveLast(iCount); | 950 m_pieces.RemoveLast(iCount); |
| 951 } | 951 } |
| 952 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { | 952 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { |
| 953 m_pieces.RemoveAll(bLeaveMemory); | 953 m_pieces.RemoveAll(bLeaveMemory); |
| 954 } | 954 } |
| OLD | NEW |