summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/gridwin.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-04-14 12:05:00 +0200
committerJan Holesovsky <kendy@collabora.com>2015-04-14 12:16:35 +0200
commit3f04bfef9e12e947f336aaa441d784f6c77f8e6a (patch)
tree38f3643711b1a1a65cb2914fb71d0b5a02258ebd /sc/source/ui/inc/gridwin.hxx
parent41c8aeabd2537df879e6f1b5c0b57255fd07e2fa (diff)
sc tiled editing: Implement long-touch to select word in overflowing text.
Normally, the text overflowing from other cells is completely ignored by Calc, and the user always works with the underlying cells. On Android / mobile, it is though more natural to be able to select the text directly; so implement a compromise: * tap places the text cursor, so that the user can write into the cells hidden by the text too * long-tap selects the word in the text, even if the text 'just' overflows from another cell Change-Id: Ibe8666301ff1df0414c0206c1f3336842485433b
Diffstat (limited to 'sc/source/ui/inc/gridwin.hxx')
-rw-r--r--sc/source/ui/inc/gridwin.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 259844ebfd35..0221e601b8ae 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -278,6 +278,14 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou
sal_uInt16 HitPageBreak( const Point& rMouse, ScRange* pSource = NULL,
SCCOLROW* pBreak = NULL, SCCOLROW* pPrev = NULL );
+ /** The cell may be covered by text that overflows from a previous cell.
+
+ @return if true, the given cell is covered by (overflowing) text and
+ rTextStartPosX returns the column where the text that overflows
+ starts.
+ */
+ bool IsCellCoveredByText(SCsCOL nPosX, SCsROW nPosY, SCTAB nTab, SCsCOL &rTextStartPosX);
+
void PasteSelection( const Point& rPosPixel );
void SelectForContextMenu( const Point& rPosPixel, SCsCOL nCellX, SCsROW nCellY );