Kaydet (Commit) 6c59177b authored tarafından Michael Stahl's avatar Michael Stahl

rename misleading SwScanner::rConversionMap

Change-Id: I6f93eae5377c95ec47348b01b3414855b05a525e
üst e89caa7d
...@@ -38,7 +38,7 @@ class SwScanner ...@@ -38,7 +38,7 @@ class SwScanner
const OUString aPreDashReplacementText; const OUString aPreDashReplacementText;
OUString aText; OUString aText;
const LanguageType* pLanguage; const LanguageType* pLanguage;
const ModelToViewHelper rConversionMap; const ModelToViewHelper m_ModelToView;
sal_Int32 nStartPos; sal_Int32 nStartPos;
sal_Int32 nEndPos; sal_Int32 nEndPos;
sal_Int32 nBegin; sal_Int32 nBegin;
......
...@@ -705,7 +705,7 @@ SwScanner::SwScanner( const SwTxtNode& rNd, const OUString& rTxt, ...@@ -705,7 +705,7 @@ SwScanner::SwScanner( const SwTxtNode& rNd, const OUString& rTxt,
: rNode( rNd ) : rNode( rNd )
, aPreDashReplacementText(rTxt) , aPreDashReplacementText(rTxt)
, pLanguage( pLang ) , pLanguage( pLang )
, rConversionMap( rConvMap ) , m_ModelToView( rConvMap )
, nLen( 0 ) , nLen( 0 )
, nOverriddenDashCount( 0 ) , nOverriddenDashCount( 0 )
, nWordType( nType ) , nWordType( nType )
...@@ -746,7 +746,8 @@ SwScanner::SwScanner( const SwTxtNode& rNd, const OUString& rTxt, ...@@ -746,7 +746,8 @@ SwScanner::SwScanner( const SwTxtNode& rNd, const OUString& rTxt,
} }
else else
{ {
ModelToViewHelper::ModelPosition aModelBeginPos = rConversionMap.ConvertToModelPosition( nBegin ); ModelToViewHelper::ModelPosition aModelBeginPos =
m_ModelToView.ConvertToModelPosition( nBegin );
aCurrLang = rNd.GetLang( aModelBeginPos.mnPos ); aCurrLang = rNd.GetLang( aModelBeginPos.mnPos );
} }
} }
...@@ -807,7 +808,8 @@ sal_Bool SwScanner::NextWord() ...@@ -807,7 +808,8 @@ sal_Bool SwScanner::NextWord()
if ( !pLanguage ) if ( !pLanguage )
{ {
const sal_uInt16 nNextScriptType = g_pBreakIt->GetBreakIter()->getScriptType( aText, nBegin ); const sal_uInt16 nNextScriptType = g_pBreakIt->GetBreakIter()->getScriptType( aText, nBegin );
ModelToViewHelper::ModelPosition aModelBeginPos = rConversionMap.ConvertToModelPosition( nBegin ); ModelToViewHelper::ModelPosition aModelBeginPos =
m_ModelToView.ConvertToModelPosition( nBegin );
aCurrLang = rNode.GetLang( aModelBeginPos.mnPos, 1, nNextScriptType ); aCurrLang = rNode.GetLang( aModelBeginPos.mnPos, 1, nNextScriptType );
} }
......
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