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
f9832210
Kaydet (Commit)
f9832210
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: I19fd47f773d2b88dec2bff2abe25aee1c7b76e0d
üst
d611fbc2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
41 deletions
+43
-41
txtfly.cxx
sw/source/core/text/txtfly.cxx
+0
-0
txtfly.hxx
sw/source/core/text/txtfly.hxx
+39
-37
txtfrm.cxx
sw/source/core/text/txtfrm.cxx
+4
-4
No files found.
sw/source/core/text/txtfly.cxx
Dosyayı görüntüle @
f9832210
This diff is collapsed.
Click to expand it.
sw/source/core/text/txtfly.hxx
Dosyayı görüntüle @
f9832210
...
@@ -61,7 +61,7 @@ class SwContourCache
...
@@ -61,7 +61,7 @@ class SwContourCache
MSHORT
nObjCnt
;
MSHORT
nObjCnt
;
const
SwRect
ContourRect
(
const
SwFmt
*
pFmt
,
const
SdrObject
*
pObj
,
const
SwRect
ContourRect
(
const
SwFmt
*
pFmt
,
const
SdrObject
*
pObj
,
const
SwTxtFrm
*
pFrm
,
const
SwRect
&
rLine
,
const
long
nXPos
,
const
SwTxtFrm
*
pFrm
,
const
SwRect
&
rLine
,
const
long
nXPos
,
const
sal_B
ool
bRight
);
const
b
ool
bRight
);
public
:
public
:
SwContourCache
();
SwContourCache
();
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
const
SwRect
&
rLine
,
const
SwRect
&
rLine
,
const
SwTxtFrm
*
pFrm
,
const
SwTxtFrm
*
pFrm
,
const
long
nXPos
,
const
long
nXPos
,
const
sal_B
ool
bRight
);
const
b
ool
bRight
);
};
};
/**
/**
...
@@ -128,15 +128,15 @@ class SwTxtFly
...
@@ -128,15 +128,15 @@ class SwTxtFly
long
nNextTop
;
/// Stores the upper edge of the "next" frame
long
nNextTop
;
/// Stores the upper edge of the "next" frame
sal_uLong
nIndex
;
sal_uLong
nIndex
;
sal_B
ool
bOn
:
1
;
b
ool
bOn
:
1
;
sal_B
ool
bTopRule
:
1
;
b
ool
bTopRule
:
1
;
sal_B
ool
mbIgnoreCurrentFrame
:
1
;
b
ool
mbIgnoreCurrentFrame
:
1
;
sal_B
ool
mbIgnoreContour
:
1
;
b
ool
mbIgnoreContour
:
1
;
/** boolean, indicating if objects in page header|footer are considered for
/** boolean, indicating if objects in page header|footer are considered for
text frames not in page header|footer.
text frames not in page header|footer.
*/
*/
sal_B
ool
mbIgnoreObjsInHeaderFooter
:
1
;
b
ool
mbIgnoreObjsInHeaderFooter
:
1
;
/**
/**
This method will be called during the LineIter formatting
This method will be called during the LineIter formatting
...
@@ -146,7 +146,7 @@ class SwTxtFly
...
@@ -146,7 +146,7 @@ class SwTxtFly
\param[in] rPortion
\param[in] rPortion
Scope: document global.
Scope: document global.
*/
*/
SwRect
_GetFrm
(
const
SwRect
&
rPortion
,
sal_B
ool
bTop
)
const
;
SwRect
_GetFrm
(
const
SwRect
&
rPortion
,
b
ool
bTop
)
const
;
SwAnchoredObjList
*
InitAnchoredObjList
();
SwAnchoredObjList
*
InitAnchoredObjList
();
...
@@ -156,7 +156,7 @@ class SwTxtFly
...
@@ -156,7 +156,7 @@ class SwTxtFly
Look for the first object which overlaps with the rectangle.
Look for the first object which overlaps with the rectangle.
Iterates over the anchored object list mpAnchoredObjList.
Iterates over the anchored object list mpAnchoredObjList.
*/
*/
sal_Bool
ForEach
(
const
SwRect
&
rRect
,
SwRect
*
pRect
,
sal_B
ool
bAvoid
)
const
;
bool
ForEach
(
const
SwRect
&
rRect
,
SwRect
*
pRect
,
b
ool
bAvoid
)
const
;
/**
/**
\li There is less than 2cm space on both sides for the text:
\li There is less than 2cm space on both sides for the text:
...
@@ -195,9 +195,9 @@ class SwTxtFly
...
@@ -195,9 +195,9 @@ class SwTxtFly
*/
*/
SwAnchoredObjList
::
size_type
GetPos
(
const
SwAnchoredObject
*
pAnchoredObj
)
const
;
SwAnchoredObjList
::
size_type
GetPos
(
const
SwAnchoredObject
*
pAnchoredObj
)
const
;
sal_B
ool
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
b
ool
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
const
sal_B
ool
bInFtn
,
const
b
ool
bInFtn
,
const
sal_B
ool
bInFooterOrHeader
);
const
b
ool
bInFooterOrHeader
);
SwTwips
CalcMinBottom
()
const
;
SwTwips
CalcMinBottom
()
const
;
...
@@ -214,8 +214,8 @@ public:
...
@@ -214,8 +214,8 @@ public:
void
SetTopRule
();
void
SetTopRule
();
SwRect
GetFrm
(
const
SwRect
&
rPortion
,
sal_Bool
bTop
=
sal_T
rue
)
const
;
SwRect
GetFrm
(
const
SwRect
&
rPortion
,
bool
bTop
=
t
rue
)
const
;
sal_B
ool
IsOn
()
const
;
b
ool
IsOn
()
const
;
/**
/**
If there is no flying object frame standing in rRect (usually the current row),
If there is no flying object frame standing in rRect (usually the current row),
...
@@ -223,8 +223,8 @@ public:
...
@@ -223,8 +223,8 @@ public:
\param rRect is global to the document!
\param rRect is global to the document!
*/
*/
sal_B
ool
Relax
(
const
SwRect
&
rRect
);
b
ool
Relax
(
const
SwRect
&
rRect
);
sal_B
ool
Relax
();
b
ool
Relax
();
SwTwips
GetMinBottom
()
const
;
SwTwips
GetMinBottom
()
const
;
const
SwCntntFrm
*
GetMaster
()
const
;
const
SwCntntFrm
*
GetMaster
()
const
;
...
@@ -255,7 +255,7 @@ public:
...
@@ -255,7 +255,7 @@ public:
DrawText() takes over the on optimization!
DrawText() takes over the on optimization!
*/
*/
sal_B
ool
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
);
b
ool
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
);
/**
/**
Two subtleties needs to be mentioned:
Two subtleties needs to be mentioned:
...
@@ -266,7 +266,7 @@ public:
...
@@ -266,7 +266,7 @@ public:
won't be scribbled
won't be scribbled
*/
*/
void
DrawFlyRect
(
OutputDevice
*
pOut
,
const
SwRect
&
rRect
,
void
DrawFlyRect
(
OutputDevice
*
pOut
,
const
SwRect
&
rRect
,
const
SwTxtPaintInfo
&
rInf
,
sal_Bool
bNoGraphic
=
sal_F
alse
);
const
SwTxtPaintInfo
&
rInf
,
bool
bNoGraphic
=
f
alse
);
/**
/**
Used to switch off the SwTxtFly when there is no overlapping object (Relax).
Used to switch off the SwTxtFly when there is no overlapping object (Relax).
...
@@ -274,29 +274,29 @@ public:
...
@@ -274,29 +274,29 @@ public:
\param[in] the line area
\param[in] the line area
\return whether the line will be overlapped by a frame
\return whether the line will be overlapped by a frame
*/
*/
sal_B
ool
IsAnyFrm
(
const
SwRect
&
rLine
)
const
;
b
ool
IsAnyFrm
(
const
SwRect
&
rLine
)
const
;
/**
/**
Same as IsAnyFrm(const SwRect&), but uses the current frame print
Same as IsAnyFrm(const SwRect&), but uses the current frame print
area
area
*/
*/
sal_B
ool
IsAnyFrm
()
const
;
b
ool
IsAnyFrm
()
const
;
/**
/**
sal_T
rue when a frame or DrawObj must to be taken in account. The optimizations
t
rue when a frame or DrawObj must to be taken in account. The optimizations
like Paint/FormatEmpty for empty sentences or the virtual OutputDevice can
like Paint/FormatEmpty for empty sentences or the virtual OutputDevice can
be used only when
sal_F
alse is returned.
be used only when
f
alse is returned.
\param rRect
\param rRect
The rectangle can be empty, the current frame is then used. The value is
The rectangle can be empty, the current frame is then used. The value is
global to the document.
global to the document.
*/
*/
sal_B
ool
IsAnyObj
(
const
SwRect
&
rRect
)
const
;
b
ool
IsAnyObj
(
const
SwRect
&
rRect
)
const
;
void
SetIgnoreCurrentFrame
(
sal_B
ool
bNew
);
void
SetIgnoreCurrentFrame
(
b
ool
bNew
);
void
SetIgnoreContour
(
sal_B
ool
bNew
);
void
SetIgnoreContour
(
b
ool
bNew
);
void
SetIgnoreObjsInHeaderFooter
(
const
sal_Bool
_
bNew
);
void
SetIgnoreObjsInHeaderFooter
(
const
bool
bNew
);
};
};
...
@@ -309,22 +309,24 @@ inline SwAnchoredObjList* SwTxtFly::GetAnchoredObjList() const
...
@@ -309,22 +309,24 @@ inline SwAnchoredObjList* SwTxtFly::GetAnchoredObjList() const
inline
void
SwTxtFly
::
SetTopRule
()
inline
void
SwTxtFly
::
SetTopRule
()
{
{
bTopRule
=
sal_F
alse
;
bTopRule
=
f
alse
;
}
}
inline
sal_B
ool
SwTxtFly
::
IsOn
()
const
inline
b
ool
SwTxtFly
::
IsOn
()
const
{
{
return
bOn
;
return
bOn
;
}
}
inline
sal_B
ool
SwTxtFly
::
Relax
(
const
SwRect
&
rRect
)
inline
b
ool
SwTxtFly
::
Relax
(
const
SwRect
&
rRect
)
{
{
return
0
!=
(
bOn
=
bOn
&&
IsAnyFrm
(
rRect
));
bOn
&=
IsAnyFrm
(
rRect
);
return
bOn
;
}
}
inline
sal_B
ool
SwTxtFly
::
Relax
()
inline
b
ool
SwTxtFly
::
Relax
()
{
{
return
0
!=
(
bOn
=
bOn
&&
IsAnyFrm
());
bOn
&=
IsAnyFrm
();
return
bOn
;
}
}
inline
SwTwips
SwTxtFly
::
GetMinBottom
()
const
inline
SwTwips
SwTxtFly
::
GetMinBottom
()
const
...
@@ -347,24 +349,24 @@ inline void SwTxtFly::SetNextTop( long nNew ) const
...
@@ -347,24 +349,24 @@ inline void SwTxtFly::SetNextTop( long nNew ) const
((
SwTxtFly
*
)
this
)
->
nNextTop
=
nNew
;
((
SwTxtFly
*
)
this
)
->
nNextTop
=
nNew
;
}
}
inline
SwRect
SwTxtFly
::
GetFrm
(
const
SwRect
&
rRect
,
sal_B
ool
bTop
)
const
inline
SwRect
SwTxtFly
::
GetFrm
(
const
SwRect
&
rRect
,
b
ool
bTop
)
const
{
{
return
bOn
?
_GetFrm
(
rRect
,
bTop
)
:
SwRect
();
return
bOn
?
_GetFrm
(
rRect
,
bTop
)
:
SwRect
();
}
}
inline
void
SwTxtFly
::
SetIgnoreCurrentFrame
(
sal_B
ool
bNew
)
inline
void
SwTxtFly
::
SetIgnoreCurrentFrame
(
b
ool
bNew
)
{
{
mbIgnoreCurrentFrame
=
bNew
;
mbIgnoreCurrentFrame
=
bNew
;
}
}
inline
void
SwTxtFly
::
SetIgnoreContour
(
sal_B
ool
bNew
)
inline
void
SwTxtFly
::
SetIgnoreContour
(
b
ool
bNew
)
{
{
mbIgnoreContour
=
bNew
;
mbIgnoreContour
=
bNew
;
}
}
inline
void
SwTxtFly
::
SetIgnoreObjsInHeaderFooter
(
const
sal_Bool
_
bNew
)
inline
void
SwTxtFly
::
SetIgnoreObjsInHeaderFooter
(
const
bool
bNew
)
{
{
mbIgnoreObjsInHeaderFooter
=
_
bNew
;
mbIgnoreObjsInHeaderFooter
=
bNew
;
}
}
#endif
#endif
...
...
sw/source/core/text/txtfrm.cxx
Dosyayı görüntüle @
f9832210
...
@@ -2692,13 +2692,13 @@ void SwTxtFrm::CalcBaseOfstForFly()
...
@@ -2692,13 +2692,13 @@ void SwTxtFrm::CalcBaseOfstForFly()
}
}
SwTxtFly
aTxtFly
(
this
);
SwTxtFly
aTxtFly
(
this
);
aTxtFly
.
SetIgnoreCurrentFrame
(
sal_T
rue
);
aTxtFly
.
SetIgnoreCurrentFrame
(
t
rue
);
aTxtFly
.
SetIgnoreContour
(
sal_T
rue
);
aTxtFly
.
SetIgnoreContour
(
t
rue
);
// #118809# - ignore objects in page header|footer for
// #118809# - ignore objects in page header|footer for
// text frames not in page header|footer
// text frames not in page header|footer
aTxtFly
.
SetIgnoreObjsInHeaderFooter
(
sal_T
rue
);
aTxtFly
.
SetIgnoreObjsInHeaderFooter
(
t
rue
);
SwTwips
nRet1
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
SwTwips
nRet1
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
aTxtFly
.
SetIgnoreCurrentFrame
(
sal_F
alse
);
aTxtFly
.
SetIgnoreCurrentFrame
(
f
alse
);
SwTwips
nRet2
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
SwTwips
nRet2
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
// make values relative to frame start position
// make values relative to frame start position
...
...
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