summaryrefslogtreecommitdiff
path: root/sw/inc/editsh.hxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-09-21 22:59:26 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-09-26 13:54:09 +0200
commit7032d7b3060d8187acc39a4faa095c48fe8d17b4 (patch)
treea15f0cb3a99c9b9f51a395cdbfb0d8af4964b95d /sw/inc/editsh.hxx
parent9679fb26558ea42e47ac9936cef329115a8fdf65 (diff)
sw: improve undo handling of Paragraph Signature
Change-Id: I46f395d5f9105d1d3dac6d2af6e9b43ae95ec78e Reviewed-on: https://gerrit.libreoffice.org/42733 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sw/inc/editsh.hxx')
-rw-r--r--sw/inc/editsh.hxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index bda5d3216a48..9ca6bb683941 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -946,6 +946,16 @@ public:
OUString DeleteExtTextInput( bool bInsText = true);
void SetExtTextInputData( const CommandExtTextInputData& );
+ /// Returns true iff paragraph signature validation is enabled.
+ bool IsParagraphSignatureValidationEnabled() const { return m_bDoParagraphSignatureValidation; }
+ /// Enable/Disable paragraph signature validation and return the previous value.
+ bool SetParagraphSignatureValidation(const bool bEnable)
+ {
+ const bool bOldFlag = m_bDoParagraphSignatureValidation;
+ m_bDoParagraphSignatureValidation = bEnable;
+ return bOldFlag;
+ }
+
/// Interface for access to AutoComplete-list.
static SwAutoCompleteWord& GetAutoCompleteWords();
@@ -975,7 +985,7 @@ private:
* the existing nb-space will be removed. Bear this in mind if that problem
* arises. */
bool m_bNbspRunNext; ///< NO-BREAK SPACE state flag passed to and maintained by SvxAutoCorrect::DoAutoCorrect()
- bool m_bIsValidatingParagraphSignature; ///< Prevent nested calls of ValidateParagraphSignatures.
+ bool m_bDoParagraphSignatureValidation; ///< Prevent nested calls of ValidateParagraphSignatures.
};
inline const sfx2::LinkManager& SwEditShell::GetLinkManager() const