Kaydet (Commit) ffae8ac2 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sw: Prefix SwAutoCorrExceptWord member variables.

Change-Id: I2849aafc407e4fd0a24ea3d98043c399a9414ffe
üst 70c4355f
...@@ -432,26 +432,24 @@ void SwAutoCorrExceptWord::CheckChar( const SwPosition& rPos, sal_Unicode cChr ) ...@@ -432,26 +432,24 @@ void SwAutoCorrExceptWord::CheckChar( const SwPosition& rPos, sal_Unicode cChr )
{ {
// test only if this is a improvement. // test only if this is a improvement.
// If yes, then add the word to the list. // If yes, then add the word to the list.
if( cChar == cChr && rPos.nNode.GetIndex() == nNode && if (m_cChar == cChr && rPos.nNode.GetIndex() == m_nNode && rPos.nContent.GetIndex() == m_nContent)
rPos.nContent.GetIndex() == nCntnt )
{ {
// get the current autocorrection: // get the current autocorrection:
SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect();
// then add to the list: // then add to the list:
if( CptlSttWrd & nFlags ) if (CptlSttWrd & m_nFlags)
pACorr->AddWrtSttException( sWord, eLanguage ); pACorr->AddWrtSttException(m_sWord, m_eLanguage);
else if( CptlSttSntnc & nFlags ) else if (CptlSttSntnc & m_nFlags)
pACorr->AddCplSttException( sWord, eLanguage ); pACorr->AddCplSttException(m_sWord, m_eLanguage);
} }
} }
bool SwAutoCorrExceptWord::CheckDelChar( const SwPosition& rPos ) bool SwAutoCorrExceptWord::CheckDelChar( const SwPosition& rPos )
{ {
bool bRet = false; bool bRet = false;
if( !bDeleted && rPos.nNode.GetIndex() == nNode && if (!m_bDeleted && rPos.nNode.GetIndex() == m_nNode && rPos.nContent.GetIndex() == m_nContent)
rPos.nContent.GetIndex() == nCntnt ) m_bDeleted = bRet = true;
bDeleted = bRet = true;
return bRet; return bRet;
} }
......
...@@ -89,24 +89,24 @@ public: ...@@ -89,24 +89,24 @@ public:
class SwAutoCorrExceptWord class SwAutoCorrExceptWord
{ {
OUString sWord; OUString m_sWord;
sal_uLong nFlags, nNode; sal_uLong m_nFlags, m_nNode;
sal_Int32 nCntnt; sal_Int32 m_nContent;
sal_Unicode cChar; sal_Unicode m_cChar;
LanguageType eLanguage; LanguageType m_eLanguage;
bool bDeleted; bool m_bDeleted;
public: public:
SwAutoCorrExceptWord( sal_uLong nAFlags, sal_uLong nNd, sal_Int32 nContent, SwAutoCorrExceptWord(sal_uLong nAFlags, sal_uLong nNd, sal_Int32 nContent,
const OUString& rWord, sal_Unicode cChr, const OUString& rWord, sal_Unicode cChr,
LanguageType eLang ) LanguageType eLang)
: sWord(rWord), nFlags(nAFlags), nNode(nNd), nCntnt(nContent), : m_sWord(rWord), m_nFlags(nAFlags), m_nNode(nNd), m_nContent(nContent),
cChar(cChr), eLanguage(eLang), bDeleted(false) m_cChar(cChr), m_eLanguage(eLang), m_bDeleted(false)
{} {}
bool IsDeleted() const { return bDeleted; } bool IsDeleted() const { return m_bDeleted; }
void CheckChar( const SwPosition& rPos, sal_Unicode cChar ); void CheckChar(const SwPosition& rPos, sal_Unicode cChar);
bool CheckDelChar( const SwPosition& rPos ); bool CheckDelChar(const SwPosition& rPos);
}; };
#endif #endif
......
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