diff options
Diffstat (limited to 'editeng/source/editeng/edtspell.cxx')
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index 4e44fe7772eb..8856564a1a06 100644 --- a/editeng/source/editeng/edtspell.cxx +++ b/editeng/source/editeng/edtspell.cxx @@ -680,30 +680,6 @@ sal_Bool EdtAutoCorrDoc::SetINetAttr( sal_uInt16 nStt, sal_uInt16 nEnd, return sal_True; } -sal_Bool EdtAutoCorrDoc::HasSymbolChars( sal_uInt16 nStt, sal_uInt16 nEnd ) -{ - sal_uInt16 nScriptType = mpEditEngine->GetScriptType( EditPaM( pCurNode, nStt ) ); - sal_uInt16 nScriptFontInfoItemId = GetScriptItemId( EE_CHAR_FONTINFO, nScriptType ); - - const CharAttribList::AttribsType& rAttribs = pCurNode->GetCharAttribs().GetAttribs(); - CharAttribList::AttribsType::const_iterator it = rAttribs.begin(), itEnd = rAttribs.end(); - for (; it != itEnd; ++it) - { - const EditCharAttrib& rAttr = *it; - if (rAttr.GetStart() >= nEnd) - return false; - - if (rAttr.Which() == nScriptFontInfoItemId && - static_cast<const SvxFontItem*>(rAttr.GetItem())->GetCharSet() == RTL_TEXTENCODING_SYMBOL) - { - // check if the Attribtuteis within range... - if (rAttr.GetEnd() >= nStt) - return true; - } - } - return false; -} - const String* EdtAutoCorrDoc::GetPrevPara( sal_Bool ) { // Return previous paragraph, so that it can be determined, |