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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
89 deletions
+91
-89
txtfly.cxx
sw/source/core/text/txtfly.cxx
+48
-48
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
...
...
@@ -69,10 +69,10 @@ namespace
// #i68520#
struct
AnchoredObjOrder
{
sal_B
ool
mbR2L
;
b
ool
mbR2L
;
SwRectFn
mfnRect
;
AnchoredObjOrder
(
const
sal_B
ool
bR2L
,
AnchoredObjOrder
(
const
b
ool
bR2L
,
SwRectFn
fnRect
)
:
mbR2L
(
bR2L
),
mfnRect
(
fnRect
)
...
...
@@ -176,7 +176,7 @@ const SwRect SwContourCache::CalcBoundRect( const SwAnchoredObject* pAnchoredObj
const
SwRect
&
rLine
,
const
SwTxtFrm
*
pFrm
,
const
long
nXPos
,
const
sal_B
ool
bRight
)
const
b
ool
bRight
)
{
SwRect
aRet
;
const
SwFrmFmt
*
pFmt
=
&
(
pAnchoredObj
->
GetFrmFmt
());
...
...
@@ -207,7 +207,7 @@ const SwRect SwContourCache::CalcBoundRect( const SwAnchoredObject* pAnchoredObj
const
SwRect
SwContourCache
::
ContourRect
(
const
SwFmt
*
pFmt
,
const
SdrObject
*
pObj
,
const
SwTxtFrm
*
pFrm
,
const
SwRect
&
rLine
,
const
long
nXPos
,
const
sal_B
ool
bRight
)
const
long
nXPos
,
const
b
ool
bRight
)
{
SwRect
aRet
;
MSHORT
nPos
=
0
;
// Suche im Cache ...
...
...
@@ -252,7 +252,7 @@ const SwRect SwContourCache::ContourRect( const SwFmt* pFmt,
// after GetContour()
pTextRanger
[
0
]
=
new
TextRanger
(
aPolyPolygon
,
pPolyPolygon
,
20
,
(
sal_uInt16
)
rLRSpace
.
GetLeft
(),
(
sal_uInt16
)
rLRSpace
.
GetRight
(),
pFmt
->
GetSurround
().
IsOutside
(),
sal_F
alse
,
pFrm
->
IsVertical
()
);
pFmt
->
GetSurround
().
IsOutside
(),
f
alse
,
pFrm
->
IsVertical
()
);
pTextRanger
[
0
]
->
SetUpper
(
rULSpace
.
GetUpper
()
);
pTextRanger
[
0
]
->
SetLower
(
rULSpace
.
GetLower
()
);
...
...
@@ -362,10 +362,10 @@ SwTxtFly::~SwTxtFly()
void
SwTxtFly
::
CtorInitTxtFly
(
const
SwTxtFrm
*
pFrm
)
{
mbIgnoreCurrentFrame
=
sal_F
alse
;
mbIgnoreContour
=
sal_F
alse
;
mbIgnoreCurrentFrame
=
f
alse
;
mbIgnoreContour
=
f
alse
;
// #118809#
mbIgnoreObjsInHeaderFooter
=
sal_F
alse
;
mbIgnoreObjsInHeaderFooter
=
f
alse
;
pPage
=
pFrm
->
FindPageFrm
();
const
SwFlyFrm
*
pTmp
=
pFrm
->
FindFlyFrm
();
// #i68520#
...
...
@@ -380,16 +380,16 @@ void SwTxtFly::CtorInitTxtFly( const SwTxtFrm *pFrm )
// extends into a frame.
// That's why we do not optimize for: bOn = pSortedFlys && IsAnyFrm();
bOn
=
pPage
->
GetSortedObjs
()
!=
0
;
bTopRule
=
sal_T
rue
;
bTopRule
=
t
rue
;
nMinBottom
=
0
;
nIndex
=
ULONG_MAX
;
}
SwRect
SwTxtFly
::
_GetFrm
(
const
SwRect
&
rRect
,
sal_B
ool
bTop
)
const
SwRect
SwTxtFly
::
_GetFrm
(
const
SwRect
&
rRect
,
b
ool
bTop
)
const
{
SwRect
aRet
;
if
(
ForEach
(
rRect
,
&
aRet
,
sal_T
rue
)
)
if
(
ForEach
(
rRect
,
&
aRet
,
t
rue
)
)
{
SWRECTFN
(
pCurrFrm
)
if
(
bTop
)
...
...
@@ -406,7 +406,7 @@ SwRect SwTxtFly::_GetFrm( const SwRect &rRect, sal_Bool bTop ) const
}
sal_B
ool
SwTxtFly
::
IsAnyFrm
()
const
b
ool
SwTxtFly
::
IsAnyFrm
()
const
{
SWAP_IF_SWAPPED
(
pCurrFrm
)
...
...
@@ -414,12 +414,12 @@ sal_Bool SwTxtFly::IsAnyFrm() const
SwRect
aRect
(
pCurrFrm
->
Frm
().
Pos
()
+
pCurrFrm
->
Prt
().
Pos
(),
pCurrFrm
->
Prt
().
SSize
()
);
const
sal_Bool
bRet
=
ForEach
(
aRect
,
NULL
,
sal_F
alse
);
const
bool
bRet
=
ForEach
(
aRect
,
NULL
,
f
alse
);
UNDO_SWAP
(
pCurrFrm
)
return
bRet
;
}
sal_B
ool
SwTxtFly
::
IsAnyObj
(
const
SwRect
&
rRect
)
const
b
ool
SwTxtFly
::
IsAnyObj
(
const
SwRect
&
rRect
)
const
{
OSL_ENSURE
(
bOn
,
"SwTxtFly::IsAnyObj: Who's knocking?"
);
...
...
@@ -444,10 +444,10 @@ sal_Bool SwTxtFly::IsAnyObj( const SwRect &rRect ) const
// #i68520#
if
(
mpCurrAnchoredObj
!=
pObj
&&
aBound
.
IsOver
(
aRect
)
)
return
sal_T
rue
;
return
t
rue
;
}
}
return
sal_F
alse
;
return
f
alse
;
}
const
SwCntntFrm
*
SwTxtFly
::
_GetMaster
()
...
...
@@ -459,7 +459,7 @@ const SwCntntFrm* SwTxtFly::_GetMaster()
}
sal_B
ool
SwTxtFly
::
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
)
b
ool
SwTxtFly
::
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
)
{
SwSaveClip
aClipSave
(
rInf
.
GetpOut
()
);
SwRect
aRect
(
rInf
.
GetPos
(),
rInf
.
GetSize
()
);
...
...
@@ -561,7 +561,7 @@ sal_Bool SwTxtFly::DrawTextOpaque( SwDrawTextInfo &rInf )
else
rInf
.
GetFont
()
->
_DrawText
(
rInf
);
rInf
.
SetPos
(
aOldPos
);
return
sal_F
alse
;
return
f
alse
;
}
else
if
(
!
aRegion
.
empty
()
)
{
...
...
@@ -579,12 +579,12 @@ sal_Bool SwTxtFly::DrawTextOpaque( SwDrawTextInfo &rInf )
}
}
rInf
.
SetPos
(
aOldPos
);
return
sal_T
rue
;
return
t
rue
;
}
void
SwTxtFly
::
DrawFlyRect
(
OutputDevice
*
pOut
,
const
SwRect
&
rRect
,
const
SwTxtPaintInfo
&
rInf
,
sal_B
ool
bNoGraphic
)
const
SwTxtPaintInfo
&
rInf
,
b
ool
bNoGraphic
)
{
SwRegionRects
aRegion
(
rRect
);
OSL_ENSURE
(
!
bTopRule
,
"DrawFlyRect: Wrong TopRule"
);
...
...
@@ -649,9 +649,9 @@ void SwTxtFly::DrawFlyRect( OutputDevice* pOut, const SwRect &rRect,
// #i26945# - change first parameter
// Now it's the <SwAnchoredObject> instance of the floating screen object
sal_B
ool
SwTxtFly
::
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
const
sal_B
ool
bInFtn
,
const
sal_B
ool
bInFooterOrHeader
)
b
ool
SwTxtFly
::
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
const
b
ool
bInFtn
,
const
b
ool
bInFooterOrHeader
)
{
// #i68520#
// <mpCurrAnchoredObj> is set, if <pCurrFrm> is inside a fly frame
...
...
@@ -665,7 +665,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
if
(((
SdrEdgeObj
*
)
pNew
)
->
GetConnectedNode
(
true
)
||
((
SdrEdgeObj
*
)
pNew
)
->
GetConnectedNode
(
false
))
{
return
sal_F
alse
;
return
f
alse
;
}
}
...
...
@@ -677,7 +677,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
if
(
FLY_AT_PAGE
==
rNewA
.
GetAnchorId
())
{
if
(
bInFtn
)
return
sal_F
alse
;
return
f
alse
;
if
(
bInFooterOrHeader
)
{
...
...
@@ -685,7 +685,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
bool
bVertPrt
=
aVert
.
GetRelationOrient
()
==
text
::
RelOrientation
::
PRINT_AREA
||
aVert
.
GetRelationOrient
()
==
text
::
RelOrientation
::
PAGE_PRINT_AREA
;
if
(
bVertPrt
)
return
sal_F
alse
;
return
f
alse
;
}
}
}
...
...
@@ -721,7 +721,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
// If <mpCurrAnchoredObj> is anchored as character, its content
// does not wrap around pNew
if
(
FLY_AS_CHAR
==
rCurrA
.
GetAnchorId
())
return
sal_F
alse
;
return
f
alse
;
// If pNew is anchored to page and <mpCurrAnchoredObj is not anchored
// to page, the content of <mpCurrAnchoredObj> does not wrap around pNew
...
...
@@ -734,14 +734,14 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
bEvade
=
true
;
}
else
return
sal_F
alse
;
return
f
alse
;
}
else
if
(
FLY_AT_PAGE
==
rCurrA
.
GetAnchorId
())
return
sal_F
alse
;
// Page anchored ones only avoid page anchored ones
return
f
alse
;
// Page anchored ones only avoid page anchored ones
else
if
(
FLY_AT_FLY
==
rNewA
.
GetAnchorId
())
bEvade
=
true
;
// Non-page anchored ones avoid frame anchored ones
else
if
(
FLY_AT_FLY
==
rCurrA
.
GetAnchorId
()
)
return
sal_F
alse
;
// Frame anchored ones do not avoid paragraph anchored ones
return
f
alse
;
// Frame anchored ones do not avoid paragraph anchored ones
// #i57062#
// In order to avoid loop situation, it's decided to adjust
// the wrapping behaviour of content of at-paragraph/at-character
...
...
@@ -749,7 +749,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
// the document body --> content of at-paragraph/at-character
// anchored objects doesn't wrap around each other.
else
return
sal_F
alse
;
return
f
alse
;
}
}
...
...
@@ -772,7 +772,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
OSL_ENSURE
(
FLY_AS_CHAR
!=
rNewA
.
GetAnchorId
(),
"Don't call GetTop with a FlyInCntFrm"
);
if
(
FLY_AT_PAGE
==
rNewA
.
GetAnchorId
())
return
sal_T
rue
;
// We always avoid page anchored ones
return
t
rue
;
// We always avoid page anchored ones
// If Flys anchored at paragraph are caught in a FlyCnt, then
// their influence ends at the borders of the FlyCnt!
...
...
@@ -782,7 +782,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
// #i26945#
const
SwFrm
*
pTmp
=
_pAnchoredObj
->
GetAnchorFrm
();
if
(
pTmp
==
pCurrFrm
)
return
sal_T
rue
;
return
t
rue
;
if
(
pTmp
->
IsTxtFrm
()
&&
(
pTmp
->
IsInFly
()
||
pTmp
->
IsInFtn
()
)
)
{
// #i26945#
...
...
@@ -814,7 +814,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
!
pIDSA
->
get
(
IDocumentSettingAccess
::
USE_FORMER_TEXT_WRAPPING
)
)
&&
::
FindKontext
(
pTmp
,
0
)
==
::
FindKontext
(
pCurrFrm
,
0
)
)
{
return
sal_T
rue
;
return
t
rue
;
}
const
SwFrm
*
pHeader
=
0
;
...
...
@@ -827,7 +827,7 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
pCurrFrm
->
IsInDocBody
()
)
)
)
{
if
(
pHeader
||
FLY_AT_FLY
==
rNewA
.
GetAnchorId
()
)
return
sal_T
rue
;
return
t
rue
;
// Compare indices:
// The Index of the other is retrieved from the anchor attr.
...
...
@@ -841,11 +841,11 @@ sal_Bool SwTxtFly::GetTop( const SwAnchoredObject* _pAnchoredObj,
nIndex
=
pCurrFrm
->
GetNode
()
->
GetIndex
();
if
(
nIndex
>=
nTmpIndex
)
return
sal_T
rue
;
return
t
rue
;
}
}
}
return
sal_F
alse
;
return
f
alse
;
}
// #i68520#
...
...
@@ -867,7 +867,7 @@ SwAnchoredObjList* SwTxtFly::InitAnchoredObjList()
const
bool
bWrapAllowed
=
(
pIDSA
->
get
(
IDocumentSettingAccess
::
USE_FORMER_TEXT_WRAPPING
)
||
(
!
pCurrFrm
->
IsInFtn
()
&&
!
bFooterHeader
)
);
bOn
=
sal_F
alse
;
bOn
=
f
alse
;
if
(
nCount
&&
bWrapAllowed
)
{
...
...
@@ -891,7 +891,7 @@ SwAnchoredObjList* SwTxtFly::InitAnchoredObjList()
SWRECTFN
(
pCurrFrm
)
const
long
nRight
=
(
aRect
.
*
fnRect
->
fnGetRight
)()
-
1
;
const
long
nLeft
=
(
aRect
.
*
fnRect
->
fnGetLeft
)()
+
1
;
const
sal_B
ool
bR2L
=
pCurrFrm
->
IsRightToLeft
();
const
b
ool
bR2L
=
pCurrFrm
->
IsRightToLeft
();
const
IDocumentDrawModelAccess
*
pIDDMA
=
pCurrFrm
->
GetTxtNode
()
->
getIDocumentDrawModelAccess
();
...
...
@@ -961,7 +961,7 @@ SwAnchoredObjList* SwTxtFly::InitAnchoredObjList()
std
::
max
(
nMinBottom
,
(
aBound
.
*
fnRect
->
fnGetBottom
)()
);
}
bOn
=
sal_T
rue
;
bOn
=
t
rue
;
}
}
if
(
nMinBottom
)
...
...
@@ -1018,11 +1018,11 @@ SwTwips SwTxtFly::CalcMinBottom() const
}
sal_Bool
SwTxtFly
::
ForEach
(
const
SwRect
&
rRect
,
SwRect
*
pRect
,
sal_B
ool
bAvoid
)
const
bool
SwTxtFly
::
ForEach
(
const
SwRect
&
rRect
,
SwRect
*
pRect
,
b
ool
bAvoid
)
const
{
SWAP_IF_SWAPPED
(
pCurrFrm
)
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
// #i68520#
SwAnchoredObjList
::
size_type
nCount
(
bOn
?
GetAnchoredObjList
()
->
size
()
:
0
);
if
(
bOn
&&
nCount
>
0
)
...
...
@@ -1088,11 +1088,11 @@ sal_Bool SwTxtFly::ForEach( const SwRect &rRect, SwRect* pRect, sal_Bool bAvoid
*
pRect
=
aFly
;
if
(
rSur
.
IsContour
()
)
{
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
continue
;
}
}
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
break
;
}
}
...
...
@@ -1159,7 +1159,7 @@ void SwTxtFly::CalcRightMargin( SwRect &rFly,
continue
;
const
SwRect
aTmp
(
SwContourCache
::
CalcBoundRect
(
pNext
,
aLine
,
pCurrFrm
,
nFlyRight
,
sal_T
rue
)
);
(
pNext
,
aLine
,
pCurrFrm
,
nFlyRight
,
t
rue
)
);
SwTwips
nTmpRight
=
(
aTmp
.
*
fnRect
->
fnGetRight
)();
// optimization:
...
...
@@ -1251,7 +1251,7 @@ void SwTxtFly::CalcLeftMargin( SwRect &rFly,
continue
;
const
SwRect
aTmp
(
SwContourCache
::
CalcBoundRect
(
pNext
,
aLine
,
pCurrFrm
,
nFlyLeft
,
sal_F
alse
)
);
(
pNext
,
aLine
,
pCurrFrm
,
nFlyLeft
,
f
alse
)
);
if
(
(
aTmp
.
*
fnRect
->
fnGetLeft
)()
<
nFlyLeft
&&
aTmp
.
IsOver
(
aLine
)
)
{
...
...
@@ -1403,14 +1403,14 @@ SwSurround SwTxtFly::_GetSurroundForTextWrap( const SwAnchoredObject* pAnchoredO
return
eSurroundForTextWrap
;
}
sal_B
ool
SwTxtFly
::
IsAnyFrm
(
const
SwRect
&
rLine
)
const
b
ool
SwTxtFly
::
IsAnyFrm
(
const
SwRect
&
rLine
)
const
{
SWAP_IF_SWAPPED
(
pCurrFrm
)
OSL_ENSURE
(
bOn
,
"IsAnyFrm: Why?"
);
const
sal_Bool
bRet
=
ForEach
(
rLine
,
NULL
,
sal_F
alse
);
const
bool
bRet
=
ForEach
(
rLine
,
NULL
,
f
alse
);
UNDO_SWAP
(
pCurrFrm
)
return
bRet
;
}
...
...
sw/source/core/text/txtfly.hxx
Dosyayı görüntüle @
f9832210
...
...
@@ -61,7 +61,7 @@ class SwContourCache
MSHORT
nObjCnt
;
const
SwRect
ContourRect
(
const
SwFmt
*
pFmt
,
const
SdrObject
*
pObj
,
const
SwTxtFrm
*
pFrm
,
const
SwRect
&
rLine
,
const
long
nXPos
,
const
sal_B
ool
bRight
);
const
b
ool
bRight
);
public
:
SwContourCache
();
...
...
@@ -81,7 +81,7 @@ public:
const
SwRect
&
rLine
,
const
SwTxtFrm
*
pFrm
,
const
long
nXPos
,
const
sal_B
ool
bRight
);
const
b
ool
bRight
);
};
/**
...
...
@@ -128,15 +128,15 @@ class SwTxtFly
long
nNextTop
;
/// Stores the upper edge of the "next" frame
sal_uLong
nIndex
;
sal_B
ool
bOn
:
1
;
sal_B
ool
bTopRule
:
1
;
sal_B
ool
mbIgnoreCurrentFrame
:
1
;
sal_B
ool
mbIgnoreContour
:
1
;
b
ool
bOn
:
1
;
b
ool
bTopRule
:
1
;
b
ool
mbIgnoreCurrentFrame
:
1
;
b
ool
mbIgnoreContour
:
1
;
/** boolean, indicating if objects in page header|footer are considered for
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
...
...
@@ -146,7 +146,7 @@ class SwTxtFly
\param[in] rPortion
Scope: document global.
*/
SwRect
_GetFrm
(
const
SwRect
&
rPortion
,
sal_B
ool
bTop
)
const
;
SwRect
_GetFrm
(
const
SwRect
&
rPortion
,
b
ool
bTop
)
const
;
SwAnchoredObjList
*
InitAnchoredObjList
();
...
...
@@ -156,7 +156,7 @@ class SwTxtFly
Look for the first object which overlaps with the rectangle.
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:
...
...
@@ -195,9 +195,9 @@ class SwTxtFly
*/
SwAnchoredObjList
::
size_type
GetPos
(
const
SwAnchoredObject
*
pAnchoredObj
)
const
;
sal_B
ool
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
const
sal_B
ool
bInFtn
,
const
sal_B
ool
bInFooterOrHeader
);
b
ool
GetTop
(
const
SwAnchoredObject
*
_pAnchoredObj
,
const
b
ool
bInFtn
,
const
b
ool
bInFooterOrHeader
);
SwTwips
CalcMinBottom
()
const
;
...
...
@@ -214,8 +214,8 @@ public:
void
SetTopRule
();
SwRect
GetFrm
(
const
SwRect
&
rPortion
,
sal_Bool
bTop
=
sal_T
rue
)
const
;
sal_B
ool
IsOn
()
const
;
SwRect
GetFrm
(
const
SwRect
&
rPortion
,
bool
bTop
=
t
rue
)
const
;
b
ool
IsOn
()
const
;
/**
If there is no flying object frame standing in rRect (usually the current row),
...
...
@@ -223,8 +223,8 @@ public:
\param rRect is global to the document!
*/
sal_B
ool
Relax
(
const
SwRect
&
rRect
);
sal_B
ool
Relax
();
b
ool
Relax
(
const
SwRect
&
rRect
);
b
ool
Relax
();
SwTwips
GetMinBottom
()
const
;
const
SwCntntFrm
*
GetMaster
()
const
;
...
...
@@ -255,7 +255,7 @@ public:
DrawText() takes over the on optimization!
*/
sal_B
ool
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
);
b
ool
DrawTextOpaque
(
SwDrawTextInfo
&
rInf
);
/**
Two subtleties needs to be mentioned:
...
...
@@ -266,7 +266,7 @@ public:
won't be scribbled
*/
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).
...
...
@@ -274,29 +274,29 @@ public:
\param[in] the line area
\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
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
be used only when
sal_F
alse is returned.
be used only when
f
alse is returned.
\param rRect
The rectangle can be empty, the current frame is then used. The value is
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
SetIgnoreContour
(
sal_B
ool
bNew
);
void
SetIgnoreCurrentFrame
(
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
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
;
}
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
...
...
@@ -347,24 +349,24 @@ inline void SwTxtFly::SetNextTop( long nNew ) const
((
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
();
}
inline
void
SwTxtFly
::
SetIgnoreCurrentFrame
(
sal_B
ool
bNew
)
inline
void
SwTxtFly
::
SetIgnoreCurrentFrame
(
b
ool
bNew
)
{
mbIgnoreCurrentFrame
=
bNew
;
}
inline
void
SwTxtFly
::
SetIgnoreContour
(
sal_B
ool
bNew
)
inline
void
SwTxtFly
::
SetIgnoreContour
(
b
ool
bNew
)
{
mbIgnoreContour
=
bNew
;
}
inline
void
SwTxtFly
::
SetIgnoreObjsInHeaderFooter
(
const
sal_Bool
_
bNew
)
inline
void
SwTxtFly
::
SetIgnoreObjsInHeaderFooter
(
const
bool
bNew
)
{
mbIgnoreObjsInHeaderFooter
=
_
bNew
;
mbIgnoreObjsInHeaderFooter
=
bNew
;
}
#endif
...
...
sw/source/core/text/txtfrm.cxx
Dosyayı görüntüle @
f9832210
...
...
@@ -2692,13 +2692,13 @@ void SwTxtFrm::CalcBaseOfstForFly()
}
SwTxtFly
aTxtFly
(
this
);
aTxtFly
.
SetIgnoreCurrentFrame
(
sal_T
rue
);
aTxtFly
.
SetIgnoreContour
(
sal_T
rue
);
aTxtFly
.
SetIgnoreCurrentFrame
(
t
rue
);
aTxtFly
.
SetIgnoreContour
(
t
rue
);
// #118809# - ignore objects in page header|footer for
// text frames not in page header|footer
aTxtFly
.
SetIgnoreObjsInHeaderFooter
(
sal_T
rue
);
aTxtFly
.
SetIgnoreObjsInHeaderFooter
(
t
rue
);
SwTwips
nRet1
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
aTxtFly
.
SetIgnoreCurrentFrame
(
sal_F
alse
);
aTxtFly
.
SetIgnoreCurrentFrame
(
f
alse
);
SwTwips
nRet2
=
lcl_CalcFlyBasePos
(
*
this
,
aFlyRect
,
aTxtFly
);
// 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