forked from amazingfate/loongoffice
Got the selection start and end handle dragging working... The trick was not to call SwWrtShell::SetCursor(), but SwCrsrShell::SetCrsr(). Sounds easy but took a lot of guessing and experimentation to figure out. Anyway, now it does what I had expected it to do a few das ago already. There are glitches, especially in corner cases like if you move the start handle past the end handle or vice versa. more Change-Id: Id6c1d99a4052531789bccf0d48165cfb41b89cfe 9b94c0dd55b04a7b6b3c40654562a9c51fa9b450
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* Copyright 2013 LibreOffice contributors.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#ifndef INCLUDED_TOUCH_TOUCH_IMPL_H
|
|
#define INCLUDED_TOUCH_TOUCH_IMPL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} // To avoid an editor indenting all inside the extern "C"
|
|
#endif
|
|
#endif
|
|
|
|
// "Implementation" of touch_lo_* functions, called on the LO thread through
|
|
// the PostUserEvent mechanism. Not called by UI thread code.
|
|
|
|
void touch_lo_selection_start_move_impl(const void *documentHandle,
|
|
int x,
|
|
int y);
|
|
|
|
void touch_lo_selection_end_move_impl(const void *documentHandle,
|
|
int x,
|
|
int y);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // INCLUDED_TOUCH_TOUCH_IMPL_H
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|