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/src/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/include/fxcrt/fx_coordinates.h" | 11 #include "core/include/fxcrt/fx_coordinates.h" |
12 #include "core/include/fxcrt/fx_system.h" | 12 #include "core/include/fxcrt/fx_system.h" |
13 #include "xfa/src/fde/fde_brush.h" | 13 #include "xfa/fde/fde_brush.h" |
14 #include "xfa/src/fde/fde_pen.h" | 14 #include "xfa/fde/fde_pen.h" |
15 #include "xfa/src/fde/fde_renderdevice.h" | 15 #include "xfa/fde/fde_renderdevice.h" |
16 #include "xfa/src/fgas/crt/fgas_memory.h" | 16 #include "xfa/fgas/crt/fgas_memory.h" |
17 #include "xfa/src/fgas/crt/fgas_utils.h" | 17 #include "xfa/fgas/crt/fgas_utils.h" |
18 #include "xfa/src/fgas/layout/fgas_textbreak.h" | 18 #include "xfa/fgas/layout/fgas_textbreak.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 struct FDE_TTOPIECE { | 22 struct FDE_TTOPIECE { |
23 public: | 23 public: |
24 int32_t iStartChar; | 24 int32_t iStartChar; |
25 int32_t iChars; | 25 int32_t iChars; |
26 FX_DWORD dwCharStyles; | 26 FX_DWORD dwCharStyles; |
27 CFX_RectF rtPiece; | 27 CFX_RectF rtPiece; |
28 }; | 28 }; |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 return NULL; | 1111 return NULL; |
1112 } | 1112 } |
1113 return m_pieces.GetPtrAt(index); | 1113 return m_pieces.GetPtrAt(index); |
1114 } | 1114 } |
1115 void CFDE_TTOLine::RemoveLast(int32_t iCount) { | 1115 void CFDE_TTOLine::RemoveLast(int32_t iCount) { |
1116 m_pieces.RemoveLast(iCount); | 1116 m_pieces.RemoveLast(iCount); |
1117 } | 1117 } |
1118 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { | 1118 void CFDE_TTOLine::RemoveAll(FX_BOOL bLeaveMemory) { |
1119 m_pieces.RemoveAll(bLeaveMemory); | 1119 m_pieces.RemoveAll(bLeaveMemory); |
1120 } | 1120 } |
OLD | NEW |