diff options
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 11 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 12e52b27331a..c766328fd667 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -1872,6 +1872,17 @@ bool EditEngine::IsFlatMode() const return !( pImpEditEngine->aStatus.UseCharAttribs() ); } +void EditEngine::SetSingleLine(bool bValue) +{ + if (bValue == pImpEditEngine->aStatus.IsSingleLine()) + return; + + if (bValue) + pImpEditEngine->aStatus.TurnOnFlags(EEControlBits::SINGLELINE); + else + pImpEditEngine->aStatus.TurnOffFlags(EEControlBits::SINGLELINE); +} + void EditEngine::SetControlWord( EEControlBits nWord ) { diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index b31b77160ad5..85accc9d36e3 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -404,6 +404,8 @@ public: bool IsFlatMode() const; void SetFlatMode( bool bFlat ); + void SetSingleLine( bool bValue ); + void SetControlWord( EEControlBits nWord ); EEControlBits GetControlWord() const; |