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/inc/crsrsh.hxx | |
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/inc/crsrsh.hxx')
-rw-r--r-- | sw/inc/crsrsh.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index df120f9825c5..9166edce6a11 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -327,6 +327,10 @@ public: // if ExtendedSelect() is called afterwards, the whole nodes array is selected // only for usage in special cases allowed! void ExtendedSelectAll(); + /// If ExtendedSelectAll() was called and selection didn't change since then. + bool ExtendedSelectedAll(); + /// If document body starts with a table. + bool StartsWithTable(); SwPaM* GetCrsr( sal_Bool bMakeTblCrsr = sal_True ) const; inline SwCursor* GetSwCrsr( sal_Bool bMakeTblCrsr = sal_True ) const; |