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
dc925031
Kaydet (Commit)
dc925031
authored
Agu 31, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use more proper types, constify, avoid magic numbers
Change-Id: I15d0fd7de815398ae7323209c5e1d3613b722401
üst
698ee302
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
porrst.cxx
sw/source/core/text/porrst.cxx
+2
-2
portxt.cxx
sw/source/core/text/portxt.cxx
+1
-1
redlnitr.cxx
sw/source/core/text/redlnitr.cxx
+10
-11
No files found.
sw/source/core/text/porrst.cxx
Dosyayı görüntüle @
dc925031
...
...
@@ -250,7 +250,7 @@ SwTwips SwTxtFrm::EmptyHeight() const
const
IDocumentRedlineAccess
*
pIDRA
=
rTxtNode
.
getIDocumentRedlineAccess
();
if
(
IDocumentRedlineAccess
::
IsShowChanges
(
pIDRA
->
GetRedlineMode
()
)
)
{
sal_uInt16
nRedlPos
=
pIDRA
->
GetRedlinePos
(
rTxtNode
,
USHRT_MAX
);
const
sal_uInt16
nRedlPos
=
pIDRA
->
GetRedlinePos
(
rTxtNode
,
USHRT_MAX
);
if
(
USHRT_MAX
!=
nRedlPos
)
{
SwAttrHandler
aAttrHandler
;
...
...
@@ -405,7 +405,7 @@ bool SwTxtFrm::FillRegister( SwTwips& rRegStart, sal_uInt16& rRegDiff )
break
;
case
SVX_LINE_SPACE_MIN
:
{
if
(
rRegDiff
<
sal_uInt16
(
rSpace
.
GetLineHeight
()
)
)
if
(
rRegDiff
<
rSpace
.
GetLineHeight
(
)
)
rRegDiff
=
rSpace
.
GetLineHeight
();
break
;
}
...
...
sw/source/core/text/portxt.cxx
Dosyayı görüntüle @
dc925031
...
...
@@ -470,7 +470,7 @@ void SwTxtPortion::FormatEOL( SwTxtFormatInfo &rInf )
{
// calculate number of blanks
sal_Int32
nX
=
rInf
.
GetIdx
()
-
1
;
sal_
uInt16
nHoleLen
=
1
;
sal_
Int32
nHoleLen
=
1
;
while
(
nX
&&
nHoleLen
<
GetLen
()
&&
CH_BLANK
==
rInf
.
GetChar
(
--
nX
)
)
nHoleLen
++
;
...
...
sw/source/core/text/redlnitr.cxx
Dosyayı görüntüle @
dc925031
...
...
@@ -94,16 +94,15 @@ void SwAttrIter::CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, S
pFnt
->
SetActual
(
SwScriptInfo
::
WhichFont
(
0
,
0
,
pScriptInfo
)
);
sal_Int32
nChg
=
0
;
s
al_uInt16
nCnt
=
0
;
s
ize_t
nCnt
=
0
;
do
{
if
(
nCnt
>=
pScriptInfo
->
CountScriptChg
()
)
break
;
nChg
=
pScriptInfo
->
GetScriptChg
(
nCnt
);
sal_uInt16
nScript
=
pScriptInfo
->
GetScriptType
(
nCnt
++
);
sal_uInt8
nTmp
=
4
;
switch
(
nScript
)
{
int
nTmp
=
SW_SCRIPTS
;
switch
(
pScriptInfo
->
GetScriptType
(
nCnt
++
)
)
{
case
i18n
:
:
ScriptType
::
ASIAN
:
if
(
!
aMagicNo
[
SW_CJK
]
)
nTmp
=
SW_CJK
;
break
;
case
i18n
:
:
ScriptType
::
COMPLEX
:
...
...
@@ -111,7 +110,7 @@ void SwAttrIter::CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, S
default
:
if
(
!
aMagicNo
[
SW_LATIN
]
)
nTmp
=
SW_LATIN
;
}
if
(
nTmp
<
4
)
if
(
nTmp
<
SW_SCRIPTS
)
{
pFnt
->
ChkMagic
(
pShell
,
nTmp
);
pFnt
->
GetMagic
(
aMagicNo
[
nTmp
],
aFntIdx
[
nTmp
],
nTmp
);
...
...
@@ -133,7 +132,7 @@ void SwAttrIter::CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, S
const
bool
bShow
=
IDocumentRedlineAccess
::
IsShowChanges
(
pIDRA
->
GetRedlineMode
()
);
if
(
pExtInp
||
bShow
)
{
sal_uInt16
nRedlPos
=
pIDRA
->
GetRedlinePos
(
rTxtNode
,
USHRT_MAX
);
const
sal_uInt16
nRedlPos
=
pIDRA
->
GetRedlinePos
(
rTxtNode
,
USHRT_MAX
);
if
(
pExtInp
||
USHRT_MAX
!=
nRedlPos
)
{
const
std
::
vector
<
sal_uInt16
>
*
pArr
=
0
;
...
...
@@ -364,7 +363,7 @@ bool SwRedlineItr::_ChkSpecialUnderline() const
// below the base line
for
(
size_t
i
=
0
;
i
<
m_Hints
.
size
();
++
i
)
{
sal_uInt16
nWhich
=
m_Hints
[
i
]
->
Which
();
const
sal_uInt16
nWhich
=
m_Hints
[
i
]
->
Which
();
if
(
RES_CHRATR_UNDERLINE
==
nWhich
||
RES_CHRATR_ESCAPEMENT
==
nWhich
)
return
true
;
...
...
@@ -442,11 +441,11 @@ short SwExtend::Enter(SwFont& rFnt, sal_Int32 nNew)
bool
SwExtend
::
_Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
{
OSL_ENSURE
(
Inside
(),
"SwExtend: Leave without Enter"
);
sal_uInt16
nOldAttr
=
rArr
[
nPos
-
nStart
];
const
sal_uInt16
nOldAttr
=
rArr
[
nPos
-
nStart
];
nPos
=
nNew
;
if
(
Inside
()
)
{
// We stayed within the ExtendText-section
sal_uInt16
nAttr
=
rArr
[
nPos
-
nStart
];
const
sal_uInt16
nAttr
=
rArr
[
nPos
-
nStart
];
if
(
nOldAttr
!=
nAttr
)
// Is there an (inner) change of attributes?
{
rFnt
=
*
pFnt
;
...
...
@@ -473,8 +472,8 @@ sal_Int32 SwExtend::Next( sal_Int32 nNext )
else
if
(
nPos
<
nEnd
)
{
sal_Int32
nIdx
=
nPos
-
nStart
;
sal_uInt16
nAttr
=
rArr
[
nIdx
];
while
(
++
nIdx
<
(
sal_Int32
)
rArr
.
size
()
&&
nAttr
==
rArr
[
nIdx
]
)
const
sal_uInt16
nAttr
=
rArr
[
nIdx
];
while
(
static_cast
<
size_t
>
(
++
nIdx
)
<
rArr
.
size
()
&&
nAttr
==
rArr
[
nIdx
]
)
;
//nothing
nIdx
=
nIdx
+
nStart
;
if
(
nNext
>
nIdx
)
...
...
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