sd: SetCursorLogicPosition -> SetCursorMm100Position
To be consistent with SetGraphicMm100Position. Change-Id: Ic6775f9f1350ceb41381b4090cd32c4bd4393e67
This commit is contained in:
@@ -448,7 +448,7 @@ public:
|
||||
/// Same as MouseButtonUp(), but coordinates are in logic unit.
|
||||
void LogicMouseButtonUp(const MouseEvent& rMouseEvent);
|
||||
/// Allows adjusting the point or mark of the selection to a document coordinate.
|
||||
void SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool bClearMark);
|
||||
void SetCursorMm100Position(const Point& rPosition, bool bPoint, bool bClearMark);
|
||||
/// Allows starting or ending a graphic move or resize action.
|
||||
void SetGraphicMm100Position(bool bStart, const Point& rPosition);
|
||||
|
||||
|
@@ -2442,13 +2442,13 @@ void SdXImpressDocument::setTextSelection(int nType, int nX, int nY)
|
||||
switch (nType)
|
||||
{
|
||||
case LOK_SETTEXTSELECTION_START:
|
||||
pViewShell->SetCursorLogicPosition(aPoint, /*bPoint=*/false, /*bClearMark=*/false);
|
||||
pViewShell->SetCursorMm100Position(aPoint, /*bPoint=*/false, /*bClearMark=*/false);
|
||||
break;
|
||||
case LOK_SETTEXTSELECTION_END:
|
||||
pViewShell->SetCursorLogicPosition(aPoint, /*bPoint=*/true, /*bClearMark=*/false);
|
||||
pViewShell->SetCursorMm100Position(aPoint, /*bPoint=*/true, /*bClearMark=*/false);
|
||||
break;
|
||||
case LOK_SETTEXTSELECTION_RESET:
|
||||
pViewShell->SetCursorLogicPosition(aPoint, /*bPoint=*/true, /*bClearMark=*/true);
|
||||
pViewShell->SetCursorMm100Position(aPoint, /*bPoint=*/true, /*bClearMark=*/true);
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
|
@@ -532,7 +532,7 @@ void ViewShell::LogicMouseButtonUp(const MouseEvent& rMouseEvent)
|
||||
mpActiveWindow->SetPointerPosPixel(aPoint);
|
||||
}
|
||||
|
||||
void ViewShell::SetCursorLogicPosition(const Point& rPosition, bool bPoint, bool bClearMark)
|
||||
void ViewShell::SetCursorMm100Position(const Point& rPosition, bool bPoint, bool bClearMark)
|
||||
{
|
||||
if (SdrView* pSdrView = GetView())
|
||||
{
|
||||
|
Reference in New Issue
Block a user