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 "fpdfsdk/include/pdfwindow/PWL_Edit.h" | 7 #include "fpdfsdk/include/pdfwindow/PWL_Edit.h" |
8 | 8 |
9 #include "core/include/fxcrt/fx_safe_types.h" | 9 #include "core/include/fxcrt/fx_safe_types.h" |
10 #include "core/include/fxcrt/fx_xml.h" | 10 #include "core/include/fxcrt/fx_xml.h" |
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 } while (pIterator->PrevWord()); | 1159 } while (pIterator->PrevWord()); |
1160 } | 1160 } |
1161 | 1161 |
1162 range.Set(wpStart, wpEnd); | 1162 range.Set(wpStart, wpEnd); |
1163 } | 1163 } |
1164 | 1164 |
1165 return range; | 1165 return range; |
1166 } | 1166 } |
1167 | 1167 |
1168 void CPWL_Edit::GeneratePageObjects( | 1168 void CPWL_Edit::GeneratePageObjects( |
1169 CPDF_PageObjectHolder* pPageObjects, | 1169 CPDF_PageObjectHolder* pObjectHolder, |
1170 const CPDF_Point& ptOffset, | 1170 const CPDF_Point& ptOffset, |
1171 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { | 1171 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { |
1172 IFX_Edit::GeneratePageObjects( | 1172 IFX_Edit::GeneratePageObjects( |
1173 pPageObjects, m_pEdit, ptOffset, NULL, | 1173 pObjectHolder, m_pEdit, ptOffset, NULL, |
1174 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), | 1174 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
1175 ObjArray); | 1175 ObjArray); |
1176 } | 1176 } |
1177 | 1177 |
1178 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pPageObjects, | 1178 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectHolder* pObjectHolder, |
1179 const CPDF_Point& ptOffset) { | 1179 const CPDF_Point& ptOffset) { |
1180 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; | 1180 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; |
1181 IFX_Edit::GeneratePageObjects( | 1181 IFX_Edit::GeneratePageObjects( |
1182 pPageObjects, m_pEdit, ptOffset, NULL, | 1182 pObjectHolder, m_pEdit, ptOffset, NULL, |
1183 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), | 1183 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
1184 ObjArray); | 1184 ObjArray); |
1185 } | 1185 } |
OLD | NEW |