2
* Copyright 2010 Inalogic Inc.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3, as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the applicable version of the GNU Lesser General Public
12
* License for more details.
14
* You should have received a copy of both the GNU Lesser General Public
15
* License version 3 along with this program. If not, see
16
* <http://www.gnu.org/licenses/>
18
* Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
25
#include "TextViewInternal.h"
30
// Move caret up specified number of lines
32
void TextView::MoveLineUp(int numLines)
40
// m_nCurrentLine -= min(m_nCurrentLine, (unsigned)numLines);
42
// // get Uniscribe data for prev line
43
// uspData = GetUspData(0, m_nCurrentLine, &lineOffset);
45
// // move up to character nearest the caret-anchor positions
46
// UspXToOffset(uspData, m_nAnchorPosX, &charPos, &trailing, 0);
48
// m_nCursorOffset = lineOffset + charPos + trailing;
52
// Move caret down specified number of lines
54
// VOID TextView::MoveLineDown(int numLines)
62
// m_nCurrentLine += min(m_nLineCount-m_nCurrentLine-1, (unsigned)numLines);
64
// // get Uniscribe data for prev line
65
// uspData = GetUspData(0, m_nCurrentLine, &lineOffset);
67
// // move down to character nearest the caret-anchor position
68
// UspXToOffset(uspData, m_nAnchorPosX, &charPos, &trailing, 0);
70
// m_nCursorOffset = lineOffset + charPos + trailing;