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 "xfa/fde/tto/fde_textout.h" | 7 #include "xfa/fde/tto/fde_textout.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fxcrt/include/fx_coordinates.h" | 11 #include "core/fxcrt/fx_coordinates.h" |
12 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 #include "xfa/fde/cfde_path.h" | 13 #include "xfa/fde/cfde_path.h" |
14 #include "xfa/fde/fde_gedevice.h" | 14 #include "xfa/fde/fde_gedevice.h" |
15 #include "xfa/fde/fde_object.h" | 15 #include "xfa/fde/fde_object.h" |
16 #include "xfa/fgas/crt/fgas_memory.h" | 16 #include "xfa/fgas/crt/fgas_memory.h" |
17 #include "xfa/fgas/crt/fgas_utils.h" | 17 #include "xfa/fgas/crt/fgas_utils.h" |
18 #include "xfa/fgas/layout/fgas_textbreak.h" | 18 #include "xfa/fgas/layout/fgas_textbreak.h" |
19 | 19 |
20 CFDE_TextOut::CFDE_TextOut() | 20 CFDE_TextOut::CFDE_TextOut() |
21 : m_pTxtBreak(new CFX_TxtBreak(FX_TXTBREAKPOLICY_None)), | 21 : m_pTxtBreak(new CFX_TxtBreak(FX_TXTBREAKPOLICY_None)), |
22 m_pFont(nullptr), | 22 m_pFont(nullptr), |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 return m_pieces.GetPtrAt(index); | 944 return m_pieces.GetPtrAt(index); |
945 } | 945 } |
946 | 946 |
947 void CFDE_TTOLine::RemoveLast(int32_t iCount) { | 947 void CFDE_TTOLine::RemoveLast(int32_t iCount) { |
948 m_pieces.RemoveLast(iCount); | 948 m_pieces.RemoveLast(iCount); |
949 } | 949 } |
950 | 950 |
951 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { | 951 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { |
952 m_pieces.RemoveAll(bLeaveMemory); | 952 m_pieces.RemoveAll(bLeaveMemory); |
953 } | 953 } |
OLD | NEW |