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