diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-10-03 21:40:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-10-04 09:00:05 +0100 |
commit | 04723baf6e87fb8d3c097f41529e388bf48df43c (patch) | |
tree | b9f02835a5fbe5884bce911ae80f9a08686729de /linguistic | |
parent | f1d4ce6ea51574a0f0a80c4c9ed2ddbc356fbec0 (diff) |
callcatcher: various unused methods
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 136 | ||||
-rw-r--r-- | linguistic/source/lngopt.hxx | 4 |
2 files changed, 0 insertions, 140 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index b7b2f1546015..047a4ca16dd9 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -118,142 +118,6 @@ sal_Bool LinguOptions::SetLocale_Impl( sal_Int16 &rLanguage, Any &rOld, const An return bRes; } - -sal_Bool LinguOptions::SetValue( Any &rOld, const Any &rVal, sal_Int32 nWID ) -{ - MutexGuard aGuard( GetLinguMutex() ); - - sal_Bool bRes = sal_False; - - sal_Int16 *pnVal = 0; - sal_Bool *pbVal = 0; - - switch( nWID ) - { - case WID_IS_GERMAN_PRE_REFORM : /*! deprecated !*/ break; - case WID_IS_USE_DICTIONARY_LIST : pbVal = &pData->bIsUseDictionaryList; break; - case WID_IS_IGNORE_CONTROL_CHARACTERS : pbVal = &pData->bIsIgnoreControlCharacters; break; - case WID_IS_HYPH_AUTO : pbVal = &pData->bIsHyphAuto; break; - case WID_IS_HYPH_SPECIAL : pbVal = &pData->bIsHyphSpecial; break; - case WID_IS_SPELL_AUTO : pbVal = &pData->bIsSpellAuto; break; - case WID_IS_SPELL_HIDE : /*! deprecated !*/ break; - case WID_IS_SPELL_IN_ALL_LANGUAGES :/*! deprecated !*/ break; - case WID_IS_SPELL_SPECIAL : pbVal = &pData->bIsSpellSpecial; break; - case WID_IS_WRAP_REVERSE : pbVal = &pData->bIsSpellReverse; break; - case WID_DEFAULT_LANGUAGE : pnVal = &pData->nDefaultLanguage; break; - case WID_IS_SPELL_CAPITALIZATION : pbVal = &pData->bIsSpellCapitalization; break; - case WID_IS_SPELL_WITH_DIGITS : pbVal = &pData->bIsSpellWithDigits; break; - case WID_IS_SPELL_UPPER_CASE : pbVal = &pData->bIsSpellUpperCase; break; - case WID_HYPH_MIN_LEADING : pnVal = &pData->nHyphMinLeading; break; - case WID_HYPH_MIN_TRAILING : pnVal = &pData->nHyphMinTrailing; break; - case WID_HYPH_MIN_WORD_LENGTH : pnVal = &pData->nHyphMinWordLength; break; - case WID_DEFAULT_LOCALE : - { - bRes = SetLocale_Impl( pData->nDefaultLanguage, rOld, rVal, ::com::sun::star::i18n::ScriptType::LATIN ); - break; - } - case WID_DEFAULT_LOCALE_CJK : - { - bRes = SetLocale_Impl( pData->nDefaultLanguage_CJK, rOld, rVal, ::com::sun::star::i18n::ScriptType::ASIAN ); - break; - } - case WID_DEFAULT_LOCALE_CTL : - { - bRes = SetLocale_Impl( pData->nDefaultLanguage_CTL, rOld, rVal, ::com::sun::star::i18n::ScriptType::COMPLEX ); - break; - } - default : - { - DBG_ASSERT( 0,"lng : unknown WID"); - bRes = sal_False; - } - } - - if (pbVal) - { - sal_Bool bNew = sal_False; - rVal >>= bNew; - if (bNew != *pbVal) - { - rOld <<= *pbVal; - *pbVal = bNew; - bRes = sal_True; - } - } - if (pnVal) - { - sal_Int16 nNew = 0; - rVal >>= nNew; - if (nNew != *pnVal) - { - rOld <<= *pnVal; - *pnVal = nNew; - bRes = sal_True; - } - } - - - return bRes; -} - -void LinguOptions::GetValue( Any &rVal, sal_Int32 nWID ) const -{ - MutexGuard aGuard( GetLinguMutex() ); - - sal_Int16 *pnVal = 0; - sal_Bool *pbVal = 0; - sal_Bool bDummy = sal_False; - - switch( nWID ) - { - case WID_IS_GERMAN_PRE_REFORM : pbVal = &bDummy; /*! deprecated !*/ break; - case WID_IS_USE_DICTIONARY_LIST : pbVal = &pData->bIsUseDictionaryList; break; - case WID_IS_IGNORE_CONTROL_CHARACTERS : pbVal = &pData->bIsIgnoreControlCharacters; break; - case WID_IS_HYPH_AUTO : pbVal = &pData->bIsHyphAuto; break; - case WID_IS_HYPH_SPECIAL : pbVal = &pData->bIsHyphSpecial; break; - case WID_IS_SPELL_AUTO : pbVal = &pData->bIsSpellAuto; break; - case WID_IS_SPELL_HIDE : pbVal = &bDummy; /*! deprecated !*/ break; - case WID_IS_SPELL_IN_ALL_LANGUAGES :pbVal = &bDummy; /*! deprecated !*/ break; - case WID_IS_SPELL_SPECIAL : pbVal = &pData->bIsSpellSpecial; break; - case WID_IS_WRAP_REVERSE : pbVal = &pData->bIsSpellReverse; break; - case WID_DEFAULT_LANGUAGE : pnVal = &pData->nDefaultLanguage; break; - case WID_IS_SPELL_CAPITALIZATION : pbVal = &pData->bIsSpellCapitalization; break; - case WID_IS_SPELL_WITH_DIGITS : pbVal = &pData->bIsSpellWithDigits; break; - case WID_IS_SPELL_UPPER_CASE : pbVal = &pData->bIsSpellUpperCase; break; - case WID_HYPH_MIN_LEADING : pnVal = &pData->nHyphMinLeading; break; - case WID_HYPH_MIN_TRAILING : pnVal = &pData->nHyphMinTrailing; break; - case WID_HYPH_MIN_WORD_LENGTH : pnVal = &pData->nHyphMinWordLength; break; - case WID_DEFAULT_LOCALE : - { - Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage ) ); - rVal.setValue( &aLocale, ::getCppuType((Locale*)0 )); - break; - } - case WID_DEFAULT_LOCALE_CJK : - { - Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage_CJK ) ); - rVal.setValue( &aLocale, ::getCppuType((Locale*)0 )); - break; - } - case WID_DEFAULT_LOCALE_CTL : - { - Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage_CTL ) ); - rVal.setValue( &aLocale, ::getCppuType((Locale*)0 )); - break; - } - default : - { - DBG_ASSERT( 0,"lng : unknown WID"); - } - } - - if (pbVal) - rVal <<= *pbVal; - if (pnVal) - rVal <<= *pnVal; -} - - struct WID_Name { sal_Int32 nWID; diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx index d0e8ae556496..f7d6948daaab 100644 --- a/linguistic/source/lngopt.hxx +++ b/linguistic/source/lngopt.hxx @@ -79,10 +79,6 @@ public: LinguOptions(const LinguOptions &rOpt); ~LinguOptions(); - sal_Bool SetValue( ::com::sun::star::uno::Any &rOld, - const ::com::sun::star::uno::Any &rVal, sal_Int32 nWID ); - void GetValue( ::com::sun::star::uno::Any &rVal, sal_Int32 nWID ) const; - static ::rtl::OUString GetName( sal_Int32 nWID ); const ::com::sun::star::uno::Sequence< rtl::OUString > |