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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 } while (pIterator->PrevWord()); | 1161 } while (pIterator->PrevWord()); |
1162 } | 1162 } |
1163 | 1163 |
1164 range.Set(wpStart, wpEnd); | 1164 range.Set(wpStart, wpEnd); |
1165 } | 1165 } |
1166 | 1166 |
1167 return range; | 1167 return range; |
1168 } | 1168 } |
1169 | 1169 |
1170 void CPWL_Edit::GeneratePageObjects( | 1170 void CPWL_Edit::GeneratePageObjects( |
1171 CPDF_PageObjects* pPageObjects, | 1171 CPDF_PageObjectList* pPageObjects, |
1172 const CPDF_Point& ptOffset, | 1172 const CPDF_Point& ptOffset, |
1173 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { | 1173 CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray) { |
1174 IFX_Edit::GeneratePageObjects( | 1174 IFX_Edit::GeneratePageObjects( |
1175 pPageObjects, m_pEdit, ptOffset, NULL, | 1175 pPageObjects, m_pEdit, ptOffset, NULL, |
1176 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), | 1176 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
1177 ObjArray); | 1177 ObjArray); |
1178 } | 1178 } |
1179 | 1179 |
1180 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjects* pPageObjects, | 1180 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjectList* pPageObjects, |
1181 const CPDF_Point& ptOffset) { | 1181 const CPDF_Point& ptOffset) { |
1182 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; | 1182 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; |
1183 IFX_Edit::GeneratePageObjects( | 1183 IFX_Edit::GeneratePageObjects( |
1184 pPageObjects, m_pEdit, ptOffset, NULL, | 1184 pPageObjects, m_pEdit, ptOffset, NULL, |
1185 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), | 1185 CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), |
1186 ObjArray); | 1186 ObjArray); |
1187 } | 1187 } |
OLD | NEW |