Chromium Code Reviews| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 + | 199 // CPDF_Rect rcWordSel = CPDF_Rect(word.ptWord.x,line.ptLine.y + |
| 200 // line.fLineDescent, | 200 // line.fLineDescent, |
| 201 // word.ptWord.x+word.fWidth,line.ptLine.y + | 201 // word.ptWord.x+word.fWidth,line.ptLine.y + |
| 202 //line.fLineAscent); | 202 // line.fLineAscent); |
|
Nico
2015/08/06 20:58:49
same question
| |
| 203 | 203 |
| 204 sRet << word.ptWord.x + ptOffset.x << " " | 204 sRet << word.ptWord.x + ptOffset.x << " " |
| 205 << line.ptLine.y + line.fLineDescent << " " << word.fWidth << " " | 205 << line.ptLine.y + line.fLineDescent << " " << word.fWidth << " " |
| 206 << line.fLineAscent - line.fLineDescent << " re\nf\n"; | 206 << line.fLineAscent - line.fLineDescent << " re\nf\n"; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | 211 |
| 212 return sRet.GetByteString(); | 212 return sRet.GetByteString(); |
| 213 } | 213 } |
| OLD | NEW |