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
d66a5cd0
Kaydet (Commit)
d66a5cd0
authored
Şub 14, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I784c7762253dcf84a8c487480f8ac2c45dcdb1ee
üst
f9832210
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
34 deletions
+34
-34
frmpaint.cxx
sw/source/core/text/frmpaint.cxx
+1
-1
porrst.cxx
sw/source/core/text/porrst.cxx
+1
-1
redlnitr.cxx
sw/source/core/text/redlnitr.cxx
+20
-20
redlnitr.hxx
sw/source/core/text/redlnitr.hxx
+12
-12
No files found.
sw/source/core/text/frmpaint.cxx
Dosyayı görüntüle @
d66a5cd0
...
...
@@ -488,7 +488,7 @@ sal_Bool SwTxtFrm::PaintEmpty( const SwRect &rRect, sal_Bool bCheck ) const
SwAttrHandler
aAttrHandler
;
aAttrHandler
.
Init
(
rTxtNode
.
GetSwAttrSet
(),
*
rTxtNode
.
getIDocumentSettingAccess
(),
NULL
);
SwRedlineItr
aRedln
(
rTxtNode
,
*
pFnt
,
aAttrHandler
,
nRedlPos
,
sal_T
rue
);
SwRedlineItr
aRedln
(
rTxtNode
,
*
pFnt
,
aAttrHandler
,
nRedlPos
,
t
rue
);
}
}
...
...
sw/source/core/text/porrst.cxx
Dosyayı görüntüle @
d66a5cd0
...
...
@@ -268,7 +268,7 @@ SwTwips SwTxtFrm::EmptyHeight() const
aAttrHandler
.
Init
(
GetTxtNode
()
->
GetSwAttrSet
(),
*
GetTxtNode
()
->
getIDocumentSettingAccess
(),
NULL
);
SwRedlineItr
aRedln
(
rTxtNode
,
*
pFnt
,
aAttrHandler
,
nRedlPos
,
sal_T
rue
);
nRedlPos
,
t
rue
);
}
}
...
...
sw/source/core/text/redlnitr.cxx
Dosyayı görüntüle @
d66a5cd0
...
...
@@ -71,7 +71,7 @@ void SwAttrIter::CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, S
if
(
pFrm
->
IsVertical
()
)
{
bVertLayout
=
true
;
pFnt
->
SetVertical
(
pFnt
->
GetOrientation
(),
sal_T
rue
);
pFnt
->
SetVertical
(
pFnt
->
GetOrientation
(),
t
rue
);
}
bRTL
=
pFrm
->
IsRightToLeft
();
}
...
...
@@ -172,12 +172,12 @@ void SwAttrIter::CtorInitAttrIter( SwTxtNode& rTxtNode, SwScriptInfo& rScrInf, S
*************************************************************************/
SwRedlineItr
::
SwRedlineItr
(
const
SwTxtNode
&
rTxtNd
,
SwFont
&
rFnt
,
SwAttrHandler
&
rAH
,
sal_Int32
nRed
,
sal_B
ool
bShw
,
SwAttrHandler
&
rAH
,
sal_Int32
nRed
,
b
ool
bShw
,
const
std
::
vector
<
sal_uInt16
>
*
pArr
,
sal_Int32
nExtStart
)
:
rDoc
(
*
rTxtNd
.
GetDoc
()
),
rAttrHandler
(
rAH
),
pSet
(
0
),
nNdIdx
(
rTxtNd
.
GetIndex
()
),
nFirst
(
nRed
),
nAct
(
COMPLETE_STRING
),
bOn
(
sal_F
alse
),
bShow
(
bShw
)
nAct
(
COMPLETE_STRING
),
bOn
(
f
alse
),
bShow
(
bShw
)
{
if
(
pArr
)
pExt
=
new
SwExtend
(
*
pArr
,
nExtStart
);
...
...
@@ -238,7 +238,7 @@ short SwRedlineItr::_Seek(SwFont& rFnt, sal_Int32 nNew, sal_Int32 nOld)
{
if
(
nNew
>=
nStart
)
// der einzig moegliche Kandidat
{
bOn
=
sal_T
rue
;
bOn
=
t
rue
;
const
SwRangeRedline
*
pRed
=
rDoc
.
GetRedlineTbl
()[
nAct
];
if
(
pSet
)
...
...
@@ -260,7 +260,7 @@ short SwRedlineItr::_Seek(SwFont& rFnt, sal_Int32 nNew, sal_Int32 nOld)
{
const
SfxPoolItem
*
pItem
;
if
(
(
nWhich
<
RES_CHRATR_END
)
&&
(
SFX_ITEM_SET
==
pSet
->
GetItemState
(
nWhich
,
sal_T
rue
,
&
pItem
)
)
)
(
SFX_ITEM_SET
==
pSet
->
GetItemState
(
nWhich
,
t
rue
,
&
pItem
)
)
)
{
SwTxtAttr
*
pAttr
=
MakeRedlineTxtAttr
(
const_cast
<
SwDoc
&>
(
rDoc
),
...
...
@@ -269,7 +269,7 @@ short SwRedlineItr::_Seek(SwFont& rFnt, sal_Int32 nNew, sal_Int32 nOld)
m_Hints
.
push_back
(
pAttr
);
rAttrHandler
.
PushAndChg
(
*
pAttr
,
rFnt
);
if
(
RES_CHRATR_COLOR
==
nWhich
)
rFnt
.
SetNoCol
(
sal_T
rue
);
rFnt
.
SetNoCol
(
t
rue
);
}
nWhich
=
aIter
.
NextWhich
();
}
...
...
@@ -304,7 +304,7 @@ void SwRedlineItr::FillHints( MSHORT nAuthor, RedlineType_t eType )
}
}
void
SwRedlineItr
::
ChangeTxtAttr
(
SwFont
*
pFnt
,
SwTxtAttr
&
rHt
,
sal_B
ool
bChg
)
void
SwRedlineItr
::
ChangeTxtAttr
(
SwFont
*
pFnt
,
SwTxtAttr
&
rHt
,
b
ool
bChg
)
{
OSL_ENSURE
(
IsOn
(),
"SwRedlineItr::ChangeTxtAttr: Off?"
);
...
...
@@ -328,7 +328,7 @@ void SwRedlineItr::ChangeTxtAttr( SwFont* pFnt, SwTxtAttr &rHt, sal_Bool bChg )
void
SwRedlineItr
::
_Clear
(
SwFont
*
pFnt
)
{
OSL_ENSURE
(
bOn
,
"SwRedlineItr::Clear: Off?"
);
bOn
=
sal_F
alse
;
bOn
=
f
alse
;
while
(
!
m_Hints
.
empty
())
{
SwTxtAttr
*
pPos
=
m_Hints
.
front
();
...
...
@@ -340,7 +340,7 @@ void SwRedlineItr::_Clear( SwFont* pFnt )
SwTxtAttr
::
Destroy
(
pPos
,
const_cast
<
SwDoc
&>
(
rDoc
).
GetAttrPool
()
);
}
if
(
pFnt
)
pFnt
->
SetNoCol
(
sal_F
alse
);
pFnt
->
SetNoCol
(
f
alse
);
}
sal_Int32
SwRedlineItr
::
_GetNextRedln
(
sal_Int32
nNext
)
...
...
@@ -363,7 +363,7 @@ sal_Int32 SwRedlineItr::_GetNextRedln( sal_Int32 nNext )
return
nNext
;
}
sal_B
ool
SwRedlineItr
::
_ChkSpecialUnderline
()
const
b
ool
SwRedlineItr
::
_ChkSpecialUnderline
()
const
{
// Wenn die Unterstreichung oder das Escapement vom Redling kommt,
// wenden wir immer das SpecialUnderlining, d.h. die Unterstreichung
...
...
@@ -373,21 +373,21 @@ sal_Bool SwRedlineItr::_ChkSpecialUnderline() const
MSHORT
nWhich
=
m_Hints
[
i
]
->
Which
();
if
(
RES_CHRATR_UNDERLINE
==
nWhich
||
RES_CHRATR_ESCAPEMENT
==
nWhich
)
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
sal_B
ool
SwRedlineItr
::
CheckLine
(
sal_Int32
nChkStart
,
sal_Int32
nChkEnd
)
b
ool
SwRedlineItr
::
CheckLine
(
sal_Int32
nChkStart
,
sal_Int32
nChkEnd
)
{
if
(
nFirst
==
COMPLETE_STRING
)
return
sal_F
alse
;
return
f
alse
;
if
(
nChkEnd
==
nChkStart
)
// Leerzeilen gucken ein Zeichen weiter.
++
nChkEnd
;
sal_Int32
nOldStart
=
nStart
;
sal_Int32
nOldEnd
=
nEnd
;
sal_Int32
nOldAct
=
nAct
;
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
for
(
nAct
=
nFirst
;
nAct
<
(
sal_Int32
)
rDoc
.
GetRedlineTbl
().
size
()
;
++
nAct
)
{
...
...
@@ -396,7 +396,7 @@ sal_Bool SwRedlineItr::CheckLine( sal_Int32 nChkStart, sal_Int32 nChkEnd )
break
;
if
(
nChkStart
<=
nEnd
&&
(
nChkEnd
>
nStart
||
COMPLETE_STRING
==
nEnd
)
)
{
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
break
;
}
}
...
...
@@ -428,7 +428,7 @@ void SwExtend::ActualizeFont( SwFont &rFnt, sal_uInt16 nAttr )
rFnt
.
SetBackColor
(
new
Color
(
rStyleSettings
.
GetHighlightColor
()
)
);
}
if
(
nAttr
&
EXTTEXTINPUT_ATTR_GRAYWAVELINE
)
rFnt
.
SetGreyWave
(
sal_T
rue
);
rFnt
.
SetGreyWave
(
t
rue
);
}
short
SwExtend
::
Enter
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
...
...
@@ -445,7 +445,7 @@ short SwExtend::Enter(SwFont& rFnt, sal_Int32 nNew)
return
0
;
}
sal_B
ool
SwExtend
::
_Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
b
ool
SwExtend
::
_Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
{
OSL_ENSURE
(
Inside
(),
"SwExtend: Leave without Enter"
);
MSHORT
nOldAttr
=
rArr
[
nPos
-
nStart
];
...
...
@@ -464,9 +464,9 @@ sal_Bool SwExtend::_Leave(SwFont& rFnt, sal_Int32 nNew)
rFnt
=
*
pFnt
;
delete
pFnt
;
pFnt
=
NULL
;
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
sal_Int32
SwExtend
::
Next
(
sal_Int32
nNext
)
...
...
sw/source/core/text/redlnitr.hxx
Dosyayı görüntüle @
d66a5cd0
...
...
@@ -38,7 +38,7 @@ class SwExtend
sal_Int32
nStart
;
sal_Int32
nPos
;
sal_Int32
nEnd
;
sal_B
ool
_Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
);
b
ool
_Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
);
bool
Inside
()
const
{
return
(
nPos
>=
nStart
&&
nPos
<
nEnd
);
}
void
ActualizeFont
(
SwFont
&
rFnt
,
sal_uInt16
nAttr
);
public
:
...
...
@@ -47,8 +47,8 @@ public:
~
SwExtend
()
{
delete
pFnt
;
}
bool
IsOn
()
const
{
return
pFnt
!=
0
;
}
void
Reset
()
{
if
(
pFnt
)
{
delete
pFnt
;
pFnt
=
NULL
;
}
nPos
=
COMPLETE_STRING
;
}
sal_B
ool
Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
{
if
(
pFnt
)
return
_Leave
(
rFnt
,
nNew
);
return
sal_False
;
}
b
ool
Leave
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
{
return
pFnt
&&
_Leave
(
rFnt
,
nNew
)
;
}
short
Enter
(
SwFont
&
rFnt
,
sal_Int32
nNew
);
sal_Int32
Next
(
sal_Int32
nNext
);
SwFont
*
GetFont
()
{
return
pFnt
;
}
...
...
@@ -67,11 +67,11 @@ class SwRedlineItr
sal_Int32
nAct
;
sal_Int32
nStart
;
sal_Int32
nEnd
;
sal_B
ool
bOn
;
sal_B
ool
bShow
;
b
ool
bOn
;
b
ool
bShow
;
void
_Clear
(
SwFont
*
pFnt
);
sal_B
ool
_ChkSpecialUnderline
()
const
;
b
ool
_ChkSpecialUnderline
()
const
;
void
FillHints
(
MSHORT
nAuthor
,
RedlineType_t
eType
);
short
_Seek
(
SwFont
&
rFnt
,
sal_Int32
nNew
,
sal_Int32
nOld
);
sal_Int32
_GetNextRedln
(
sal_Int32
nNext
);
...
...
@@ -81,22 +81,22 @@ class SwRedlineItr
{
if
(
pExt
)
return
pExt
->
Next
(
nNext
);
return
nNext
;
}
public
:
SwRedlineItr
(
const
SwTxtNode
&
rTxtNd
,
SwFont
&
rFnt
,
SwAttrHandler
&
rAH
,
sal_Int32
nRedlPos
,
sal_B
ool
bShw
,
const
std
::
vector
<
sal_uInt16
>
*
pArr
=
0
,
sal_Int32
nRedlPos
,
b
ool
bShw
,
const
std
::
vector
<
sal_uInt16
>
*
pArr
=
0
,
sal_Int32
nExtStart
=
COMPLETE_STRING
);
~
SwRedlineItr
();
inline
bool
IsOn
()
const
{
return
bOn
||
(
pExt
&&
pExt
->
IsOn
()
);
}
inline
void
Clear
(
SwFont
*
pFnt
)
{
if
(
bOn
)
_Clear
(
pFnt
);
}
void
ChangeTxtAttr
(
SwFont
*
pFnt
,
SwTxtAttr
&
rHt
,
sal_B
ool
bChg
);
void
ChangeTxtAttr
(
SwFont
*
pFnt
,
SwTxtAttr
&
rHt
,
b
ool
bChg
);
inline
short
Seek
(
SwFont
&
rFnt
,
sal_Int32
nNew
,
sal_Int32
nOld
)
{
if
(
bShow
||
pExt
)
return
_Seek
(
rFnt
,
nNew
,
nOld
);
return
0
;
}
inline
void
Reset
()
{
if
(
nAct
!=
nFirst
)
nAct
=
COMPLETE_STRING
;
if
(
pExt
)
pExt
->
Reset
();
}
inline
sal_Int32
GetNextRedln
(
sal_Int32
nNext
)
{
if
(
bShow
||
pExt
)
return
_GetNextRedln
(
nNext
);
return
nNext
;
}
inline
sal_B
ool
ChkSpecialUnderline
()
const
{
if
(
IsOn
()
)
return
_ChkSpecialUnderline
();
return
sal_False
;
}
sal_B
ool
CheckLine
(
sal_Int32
nChkStart
,
sal_Int32
nChkEnd
);
inline
sal_B
ool
LeaveExtend
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
inline
b
ool
ChkSpecialUnderline
()
const
{
return
IsOn
()
&&
_ChkSpecialUnderline
()
;
}
b
ool
CheckLine
(
sal_Int32
nChkStart
,
sal_Int32
nChkEnd
);
inline
b
ool
LeaveExtend
(
SwFont
&
rFnt
,
sal_Int32
nNew
)
{
return
pExt
->
Leave
(
rFnt
,
nNew
);
}
inline
bool
ExtOn
()
{
if
(
pExt
)
return
pExt
->
IsOn
();
return
false
;
}
inline
void
UpdateExtFont
(
SwFont
&
rFnt
)
{
...
...
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