OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/fpdfapi/fpdf_font/include/cpdf_font.h" | 7 #include "core/fpdfapi/fpdf_font/include/cpdf_font.h" |
8 #include "core/fpdfdoc/cpvt_wordinfo.h" | 8 #include "core/fpdfdoc/cpvt_wordinfo.h" |
9 #include "core/fpdfdoc/csection.h" | 9 #include "core/fpdfdoc/csection.h" |
10 #include "core/fpdfdoc/include/cpdf_variabletext.h" | 10 #include "core/fpdfdoc/include/cpdf_variabletext.h" |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 FX_BOOL CPDF_VariableText::IsLatinWord(uint16_t word) { | 1146 FX_BOOL CPDF_VariableText::IsLatinWord(uint16_t word) { |
1147 return m_pVTProvider ? m_pVTProvider->IsLatinWord(word) : FALSE; | 1147 return m_pVTProvider ? m_pVTProvider->IsLatinWord(word) : FALSE; |
1148 } | 1148 } |
1149 | 1149 |
1150 CPDF_VariableText::Iterator* CPDF_VariableText::GetIterator() { | 1150 CPDF_VariableText::Iterator* CPDF_VariableText::GetIterator() { |
1151 if (!m_pVTIterator) | 1151 if (!m_pVTIterator) |
1152 m_pVTIterator = new CPDF_VariableText::Iterator(this); | 1152 m_pVTIterator = new CPDF_VariableText::Iterator(this); |
1153 return m_pVTIterator; | 1153 return m_pVTIterator; |
1154 } | 1154 } |
1155 | 1155 |
1156 CPDF_VariableText::Provider* CPDF_VariableText::SetProvider( | 1156 void CPDF_VariableText::SetProvider(CPDF_VariableText::Provider* pProvider) { |
1157 CPDF_VariableText::Provider* pProvider) { | |
1158 CPDF_VariableText::Provider* pOld = m_pVTProvider; | |
1159 m_pVTProvider = pProvider; | 1157 m_pVTProvider = pProvider; |
1160 return pOld; | |
1161 } | 1158 } |
OLD | NEW |