Kaydet (Commit) 3abc4870 authored tarafından Noel Grandin's avatar Noel Grandin

convert SwTxtNode::GetLang from xub_StrLen->sal_Int32

Change-Id: I2740622a5e30916d050e01350208a0de268e42ac
üst fb45457d
......@@ -661,7 +661,7 @@ public:
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;
/// 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 nRet = LANGUAGE_DONTKNOW;
......
......@@ -322,7 +322,7 @@ void SwIndexMarkPane::UpdateLanguageDependenciesForPhoneticReading()
OSL_ENSURE(pTxtNode, "need current SwTxtNode");
if(!pTxtNode)
return;
xub_StrLen nTextIndex = *pTxtTOXMark->GetStart();
sal_Int32 nTextIndex = *pTxtTOXMark->GetStart();
nLangForPhoneticReading = pTxtNode->GetLang( nTextIndex );
}
else //if dialog is opened to create a new mark
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment