diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-16 12:12:42 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-09-16 12:47:31 +0200 |
commit | 3b11e66ab89c201591d8be8f1ab1af1aba11a821 (patch) | |
tree | 9d0f0e4d085772fc6a99c359480a6db37b6a8db6 /sw/source/ui/wrtsh | |
parent | af450651f759600d15027adf1eb58054a8364444 (diff) |
fdo#37606 SwWrtShell::SelAll(): initial support for doc starting with table
SwWrtShell::SelAll() can now detect if the body text starts with a
table, and if so, it explicitly selects the whole document, not just the
first cell of the starting table.
Also, SwCrsrShell::EndAction() now checks for this "select all and doc
starts with table" situation, and if that's the case, it activates a
special select all mode, so layout can act accordingly.
Change-Id: I8d634fc76b656a7513f067d1ce70f1930bb62dd4
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r-- | sw/source/ui/wrtsh/select.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/wrtsh/select.cxx b/sw/source/ui/wrtsh/select.cxx index 370b4492f613..4ad3f6a6e6c8 100644 --- a/sw/source/ui/wrtsh/select.cxx +++ b/sw/source/ui/wrtsh/select.cxx @@ -159,6 +159,10 @@ long SwWrtShell::SelAll() } SttSelect(); GoEnd(sal_True, &bMoveTable); + + if (StartsWithTable()) + ExtendedSelectAll(); + if( pStartPos ) { pTmpCrsr = getShellCrsr( false ); |