Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ffae8ac2
Kaydet (Commit)
ffae8ac2
authored
May 12, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: Prefix SwAutoCorrExceptWord member variables.
Change-Id: I2849aafc407e4fd0a24ea3d98043c399a9414ffe
üst
70c4355f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
23 deletions
+21
-23
acorrect.cxx
sw/source/core/edit/acorrect.cxx
+7
-9
acorrect.hxx
sw/source/core/inc/acorrect.hxx
+14
-14
No files found.
sw/source/core/edit/acorrect.cxx
Dosyayı görüntüle @
ffae8ac2
...
...
@@ -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
;
}
...
...
sw/source/core/inc/acorrect.hxx
Dosyayı görüntüle @
ffae8ac2
...
...
@@ -89,24 +89,24 @@ public:
class
SwAutoCorrExceptWord
{
OUString
sWord
;
sal_uLong
nFlags
,
nNode
;
sal_Int32
nCnt
nt
;
sal_Unicode
cChar
;
LanguageType
eLanguage
;
bool
bDeleted
;
OUString
m_
sWord
;
sal_uLong
m_nFlags
,
m_
nNode
;
sal_Int32
m_nConte
nt
;
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
),
nCnt
nt
(
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_nConte
nt
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment