convert SwTxtNode::GetLang from xub_StrLen->sal_Int32
Change-Id: I2740622a5e30916d050e01350208a0de268e42ac
This commit is contained in:
@@ -661,7 +661,7 @@ public:
|
|||||||
|
|
||||||
void fillSoftPageBreakList( SwSoftPageBreakList& rBreak ) const;
|
void fillSoftPageBreakList( SwSoftPageBreakList& rBreak ) const;
|
||||||
|
|
||||||
sal_uInt16 GetLang( const xub_StrLen nBegin, const xub_StrLen nLen = 0,
|
sal_uInt16 GetLang( const sal_Int32 nBegin, const sal_Int32 nLen = 0,
|
||||||
sal_uInt16 nScript = 0 ) const;
|
sal_uInt16 nScript = 0 ) const;
|
||||||
|
|
||||||
/// in ndcopy.cxx
|
/// in ndcopy.cxx
|
||||||
|
@@ -3352,7 +3352,7 @@ void SwTxtNode::ClearSwpHintsArr( bool bDelFields )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt16 SwTxtNode::GetLang( const xub_StrLen nBegin, const xub_StrLen nLen,
|
sal_uInt16 SwTxtNode::GetLang( const sal_Int32 nBegin, const sal_Int32 nLen,
|
||||||
sal_uInt16 nScript ) const
|
sal_uInt16 nScript ) const
|
||||||
{
|
{
|
||||||
sal_uInt16 nRet = LANGUAGE_DONTKNOW;
|
sal_uInt16 nRet = LANGUAGE_DONTKNOW;
|
||||||
|
@@ -322,7 +322,7 @@ void SwIndexMarkPane::UpdateLanguageDependenciesForPhoneticReading()
|
|||||||
OSL_ENSURE(pTxtNode, "need current SwTxtNode");
|
OSL_ENSURE(pTxtNode, "need current SwTxtNode");
|
||||||
if(!pTxtNode)
|
if(!pTxtNode)
|
||||||
return;
|
return;
|
||||||
xub_StrLen nTextIndex = *pTxtTOXMark->GetStart();
|
sal_Int32 nTextIndex = *pTxtTOXMark->GetStart();
|
||||||
nLangForPhoneticReading = pTxtNode->GetLang( nTextIndex );
|
nLangForPhoneticReading = pTxtNode->GetLang( nTextIndex );
|
||||||
}
|
}
|
||||||
else //if dialog is opened to create a new mark
|
else //if dialog is opened to create a new mark
|
||||||
|
Reference in New Issue
Block a user