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
09baf615
Kaydet (Commit)
09baf615
authored
Şub 15, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I866ba6d09512411ee18dc83a2601a262d1649338
üst
8b3d4df3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
accpara.cxx
sw/source/core/access/accpara.cxx
+1
-1
wrong.hxx
sw/source/core/inc/wrong.hxx
+5
-5
wrong.cxx
sw/source/core/text/wrong.cxx
+14
-14
No files found.
sw/source/core/access/accpara.cxx
Dosyayı görüntüle @
09baf615
...
...
@@ -964,7 +964,7 @@ sal_Bool SwAccessibleParagraph::GetTextBoundary(
nLast
+=
pWrongList
->
Len
(
nWrongPos
);
}
//
sal_Bool
bIn
=
pWrongList
->
InWrongWord
(
nBegin
,
nLen
);
// && !pTxtNode->IsSymbol(nBegin) )
const
bool
bIn
=
pWrongList
->
InWrongWord
(
nBegin
,
nLen
);
// && !pTxtNode->IsSymbol(nBegin) )
if
(
bIn
)
{
rBound
.
startPos
=
max
(
nNext
,
rBound
.
startPos
);
...
...
sw/source/core/inc/wrong.hxx
Dosyayı görüntüle @
09baf615
...
...
@@ -212,18 +212,18 @@ public:
inline
WrongListType
GetWrongListType
()
const
{
return
meType
;
}
inline
sal_Int32
GetBeginInv
()
const
{
return
nBeginInvalid
;
}
inline
sal_Int32
GetEndInv
()
const
{
return
nEndInvalid
;
}
inline
sal_B
ool
InsideInvalid
(
sal_Int32
nChk
)
const
inline
b
ool
InsideInvalid
(
sal_Int32
nChk
)
const
{
return
nChk
>=
nBeginInvalid
&&
nChk
<=
nEndInvalid
;
}
void
SetInvalid
(
sal_Int32
nBegin
,
sal_Int32
nEnd
);
inline
void
Validate
(){
nBeginInvalid
=
COMPLETE_STRING
;
}
void
Invalidate
(
sal_Int32
nBegin
,
sal_Int32
nEnd
);
sal_B
ool
InvalidateWrong
();
sal_B
ool
Fresh
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
,
sal_Int32
nPos
,
b
ool
InvalidateWrong
();
b
ool
Fresh
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
,
sal_Int32
nPos
,
sal_Int32
nLen
,
sal_uInt16
nIndex
,
sal_Int32
nCursorPos
);
sal_uInt16
GetWrongPos
(
sal_Int32
nValue
)
const
;
sal_B
ool
Check
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
;
sal_B
ool
InWrongWord
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
;
b
ool
Check
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
;
b
ool
InWrongWord
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
;
sal_Int32
NextWrong
(
sal_Int32
nChk
)
const
;
void
Move
(
sal_Int32
nPos
,
sal_Int32
nDiff
);
...
...
sw/source/core/text/wrong.cxx
Dosyayı görüntüle @
09baf615
...
...
@@ -97,7 +97,7 @@ void SwWrongList::ClearList()
@return <true> if incorrectly selected, <false> otherwise
*/
sal_B
ool
SwWrongList
::
InWrongWord
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
b
ool
SwWrongList
::
InWrongWord
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
{
MSHORT
nPos
=
GetWrongPos
(
rChk
);
sal_Int32
nWrPos
;
...
...
@@ -105,11 +105,11 @@ sal_Bool SwWrongList::InWrongWord( sal_Int32 &rChk, sal_Int32 &rLn ) const
{
rLn
=
Len
(
nPos
);
if
(
nWrPos
+
rLn
<=
rChk
)
return
sal_F
alse
;
return
f
alse
;
rChk
=
nWrPos
;
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
/** Calculate first incorrectly selected area.
...
...
@@ -119,13 +119,13 @@ sal_Bool SwWrongList::InWrongWord( sal_Int32 &rChk, sal_Int32 &rLn ) const
@return <true> if incorrectly selected area was found, <false> otherwise
*/
sal_B
ool
SwWrongList
::
Check
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
b
ool
SwWrongList
::
Check
(
sal_Int32
&
rChk
,
sal_Int32
&
rLn
)
const
{
MSHORT
nPos
=
GetWrongPos
(
rChk
);
rLn
+=
rChk
;
if
(
nPos
==
Count
()
)
return
sal_F
alse
;
return
f
alse
;
sal_Int32
nWrPos
=
Pos
(
nPos
);
sal_Int32
nEnd
=
nWrPos
+
Len
(
nPos
);
...
...
@@ -133,7 +133,7 @@ sal_Bool SwWrongList::Check( sal_Int32 &rChk, sal_Int32 &rLn ) const
{
++
nPos
;
if
(
nPos
==
Count
()
)
return
sal_F
alse
;
return
f
alse
;
nWrPos
=
Pos
(
nPos
);
nEnd
=
nWrPos
+
Len
(
nPos
);
...
...
@@ -147,7 +147,7 @@ sal_Bool SwWrongList::Check( sal_Int32 &rChk, sal_Int32 &rLn ) const
rLn
-=
rChk
;
return
0
!=
rLn
;
}
return
sal_F
alse
;
return
f
alse
;
}
/** Find next incorrectly selected position.
...
...
@@ -353,11 +353,11 @@ void SwWrongList::Move( sal_Int32 nPos, sal_Int32 nDiff )
@return <true> if ???
*/
sal_B
ool
SwWrongList
::
Fresh
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
,
sal_Int32
nPos
,
b
ool
SwWrongList
::
Fresh
(
sal_Int32
&
rStart
,
sal_Int32
&
rEnd
,
sal_Int32
nPos
,
sal_Int32
nLen
,
MSHORT
nIndex
,
sal_Int32
nCursorPos
)
{
// length of word must be greater than 0 and cursor position must be outside the word
sal_B
ool
bRet
=
nLen
&&
(
nCursorPos
>
nPos
+
nLen
||
nCursorPos
<
nPos
);
b
ool
bRet
=
nLen
&&
(
nCursorPos
>
nPos
+
nLen
||
nCursorPos
<
nPos
);
sal_Int32
nWrPos
=
0
;
sal_Int32
nWrEnd
=
rEnd
;
...
...
@@ -380,7 +380,7 @@ sal_Bool SwWrongList::Fresh( sal_Int32 &rStart, sal_Int32 &rEnd, sal_Int32 nPos,
if
(
nCnt
<
Count
()
&&
nWrPos
==
nPos
&&
Len
(
nCnt
)
==
nLen
)
{
++
nCnt
;
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
else
{
...
...
@@ -425,16 +425,16 @@ void SwWrongList::Invalidate( sal_Int32 nBegin, sal_Int32 nEnd )
_Invalidate
(
nBegin
,
nEnd
);
}
sal_B
ool
SwWrongList
::
InvalidateWrong
(
)
b
ool
SwWrongList
::
InvalidateWrong
(
)
{
if
(
Count
()
)
{
const
sal_Int32
nFirst
=
Pos
(
0
);
const
sal_Int32
nLast
=
Pos
(
Count
()
-
1
)
+
Len
(
Count
()
-
1
);
Invalidate
(
nFirst
,
nLast
);
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
SwWrongList
*
SwWrongList
::
SplitList
(
sal_Int32
nSplitPos
)
...
...
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