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/viewsh.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/viewsh.hxx')
-rw-r--r-- | sw/inc/viewsh.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 92c5f0e5bdcc..7fcd7d135ba0 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -193,6 +193,7 @@ protected: sal_uInt16 mnStartAction; ///< != 0 if at least one ::com::sun::star::chaos::Action is active. sal_uInt16 mnLockPaint; ///< != 0 if Paint is locked. + bool mbSelectAll; ///< Special select all mode: whole document selected, even if doc starts with table. public: TYPEINFO(); @@ -564,6 +565,7 @@ public: bool IsHeaderFooterEdit() const { return mbHeaderFooterEdit; } bool IsShowHeaderFooterSeparator( FrameControlType eControl ) { return (eControl == Header)? mbShowHeaderSeparator: mbShowFooterSeparator; } virtual void SetShowHeaderFooterSeparator( FrameControlType eControl, bool bShow ) { if ( eControl == Header ) mbShowHeaderSeparator = bShow; else mbShowFooterSeparator = bShow; } + bool IsSelectAll() { return mbSelectAll; } }; //---- class CurrShell manages global ShellPointer ------------------- |