diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-01 11:43:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-04 08:01:05 +0100 |
commit | ea4dfeb83889d5dc955646999e4b2b06693e631b (patch) | |
tree | 5ef210ad116e073884fae3c861b46d5209d033ff /linguistic/source/lngprophelp.cxx | |
parent | 88c6e127b3b9d2c80bb3cf04e74c4152ddfe9674 (diff) |
finish removing IsSpellCapitalisation property
which was partially removed in
commit 9bb9ba6ae02692e65498bae4598e3b63bb65c02e
Author: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Date: Mon Oct 2 12:33:34 2023 +0200
[API CHANGE] Remove deprecated IsSpellCapitalization
Change-Id: I861c8c484b77a041d91cb25ddeecb7027a2fd96c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164183
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source/lngprophelp.cxx')
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index b577a86baf1d..1305651dccbe 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -291,7 +291,6 @@ PropertyHelper_Spell::PropertyHelper_Spell( auto& rPropNames = GetPropNames(); rPropNames.push_back(UPN_IS_SPELL_UPPER_CASE); rPropNames.push_back(UPN_IS_SPELL_WITH_DIGITS); - rPropNames.push_back(UPN_IS_SPELL_CAPITALIZATION); rPropNames.push_back(UPN_IS_SPELL_CLOSED_COMPOUND); rPropNames.push_back(UPN_IS_SPELL_HYPHENATED_COMPOUND); SetDefaultValues(); @@ -310,7 +309,6 @@ void PropertyHelper_Spell::SetDefaultValues() bResIsSpellUpperCase = bIsSpellUpperCase = false; bResIsSpellWithDigits = bIsSpellWithDigits = false; - bResIsSpellCapitalization = bIsSpellCapitalization = true; bResIsSpellClosedCompound = bIsSpellClosedCompound = true; bResIsSpellHyphenatedCompound = bIsSpellHyphenatedCompound = true; } @@ -339,11 +337,6 @@ void PropertyHelper_Spell::GetCurrentValues() pbVal = &bIsSpellWithDigits; pbResVal = &bResIsSpellWithDigits; } - else if ( rPropName == UPN_IS_SPELL_CAPITALIZATION ) - { - pbVal = &bIsSpellCapitalization; - pbResVal = &bResIsSpellCapitalization; - } else if ( rPropName == UPN_IS_SPELL_CLOSED_COMPOUND ) { pbVal = &bIsSpellClosedCompound; @@ -390,13 +383,6 @@ bool PropertyHelper_Spell::propertyChange_Impl( const PropertyChangeEvent& rEvt bSWWA = !bSCWA; // sal_True->sal_False change? break; } - case UPH_IS_SPELL_CAPITALIZATION : - { - pbVal = &bIsSpellCapitalization; - bSCWA = ! *pbVal; // sal_False->sal_True change? - bSWWA = !bSCWA; // sal_True->sal_False change? - break; - } case UPH_IS_SPELL_CLOSED_COMPOUND : { pbVal = &bIsSpellClosedCompound; @@ -452,7 +438,6 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals ) // return value is default value unless there is an explicitly supplied // temporary value bResIsSpellWithDigits = bIsSpellWithDigits; - bResIsSpellCapitalization = bIsSpellCapitalization; bResIsSpellClosedCompound = bIsSpellClosedCompound; bResIsSpellHyphenatedCompound = bIsSpellHyphenatedCompound; bResIsSpellUpperCase = bIsSpellUpperCase; @@ -470,7 +455,6 @@ void PropertyHelper_Spell::SetTmpPropVals( const PropertyValues &rPropVals ) { case UPH_IS_SPELL_UPPER_CASE : pbResVal = &bResIsSpellUpperCase; break; case UPH_IS_SPELL_WITH_DIGITS : pbResVal = &bResIsSpellWithDigits; break; - case UPH_IS_SPELL_CAPITALIZATION : pbResVal = &bResIsSpellCapitalization; break; case UPH_IS_SPELL_CLOSED_COMPOUND : pbResVal = &bResIsSpellClosedCompound; break; case UPH_IS_SPELL_HYPHENATED_COMPOUND : pbResVal = &bResIsSpellHyphenatedCompound; break; default: @@ -773,11 +757,6 @@ bool PropertyHelper_Spelling::IsSpellWithDigits() const return mxPropHelper->IsSpellWithDigits(); } -bool PropertyHelper_Spelling::IsSpellCapitalization() const -{ - return mxPropHelper->IsSpellCapitalization(); -} - bool PropertyHelper_Spelling::IsSpellClosedCompound() const { return mxPropHelper->IsSpellClosedCompound(); |