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 "../../include/fxedit/fxet_stub.h" | 7 #include "../../include/fxedit/fxet_stub.h" |
8 #include "../../include/fxedit/fx_edit.h" | 8 #include "../../include/fxedit/fx_edit.h" |
9 #include "../../include/fxedit/fxet_edit.h" | 9 #include "../../include/fxedit/fxet_edit.h" |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 while (pIterator->NextWord()) { | 190 while (pIterator->NextWord()) { |
191 CPVT_WordPlace place = pIterator->GetAt(); | 191 CPVT_WordPlace place = pIterator->GetAt(); |
192 | 192 |
193 if (pRange && place.WordCmp(pRange->EndPos) > 0) | 193 if (pRange && place.WordCmp(pRange->EndPos) > 0) |
194 break; | 194 break; |
195 | 195 |
196 CPVT_Word word; | 196 CPVT_Word word; |
197 CPVT_Line line; | 197 CPVT_Line line; |
198 if (pIterator->GetWord(word) && pIterator->GetLine(line)) { | 198 if (pIterator->GetWord(word) && pIterator->GetLine(line)) { |
199 // CPDF_Rect rcWordSel = CPDF_Rect(word.ptWord.x,line.ptLine.y + | |
200 // line.fLineDescent, | |
201 // word.ptWord.x+word.fWidth,line.ptLine.y + | |
202 //line.fLineAscent); | |
203 | |
204 sRet << word.ptWord.x + ptOffset.x << " " | 199 sRet << word.ptWord.x + ptOffset.x << " " |
205 << line.ptLine.y + line.fLineDescent << " " << word.fWidth << " " | 200 << line.ptLine.y + line.fLineDescent << " " << word.fWidth << " " |
206 << line.fLineAscent - line.fLineDescent << " re\nf\n"; | 201 << line.fLineAscent - line.fLineDescent << " re\nf\n"; |
207 } | 202 } |
208 } | 203 } |
209 } | 204 } |
210 } | 205 } |
211 | 206 |
212 return sRet.GetByteString(); | 207 return sRet.GetByteString(); |
213 } | 208 } |
OLD | NEW |