| 325 | } |
| 326 | |
| 327 | Point Editor::DocumentPointFromView ( Point ptView ) |
| 328 | { |
| 329 | Point ptDocument = ptView; |
| 330 | if ( wMargin.GetID() ) { |
| 331 | Point ptOrigin = GetVisibleOriginInMain(); |
| 332 | ptDocument.x += ptOrigin.x; |
| 333 | ptDocument.y += ptOrigin.y; |
| 334 | } else { |
| 335 | ptDocument.x += xOffset; |
| 336 | ptDocument.y += topLine * vs.lineHeight; |
| 337 | } |
| 338 | return ptDocument; |
| 339 | } |
| 340 | |
| 341 | int Editor::TopLineOfMain() |
| 342 | { |