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
0e30cae5
Kaydet (Commit)
0e30cae5
authored
Eki 05, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwFlyFrm
Change-Id: I69ff87617e4be128b1db6a04c80ce948c1901683
üst
0e30af6f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
90 deletions
+90
-90
flyfrm.hxx
sw/source/core/inc/flyfrm.hxx
+38
-38
fly.cxx
sw/source/core/layout/fly.cxx
+31
-31
flycnt.cxx
sw/source/core/layout/flycnt.cxx
+2
-2
flyincnt.cxx
sw/source/core/layout/flyincnt.cxx
+4
-4
flylay.cxx
sw/source/core/layout/flylay.cxx
+15
-15
No files found.
sw/source/core/inc/flyfrm.hxx
Dosyayı görüntüle @
0e30cae5
...
...
@@ -74,7 +74,7 @@ class SwFlyFrm : public SwLayoutFrm, public SwAnchoredObject
protected
:
// Predecessor/Successor for chaining with text flow
SwFlyFrm
*
pPrevLink
,
*
pNextLink
;
SwFlyFrm
*
m_pPrevLink
,
*
m_
pNextLink
;
private
:
// It must be possible to block Content-bound flys so that they will be not
...
...
@@ -83,38 +83,38 @@ private:
// the constructor call of the root object since otherwise the anchor will
// be formatted before the root is anchored correctly to a shell and
// because too much would be formatted as a result.
bool
bLocked
:
1
;
bool
m_
bLocked
:
1
;
// true if the background of NotifyDTor needs to be notified at the end
// of a MakeAll() call.
bool
bNotifyBack
:
1
;
bool
m_
bNotifyBack
:
1
;
protected
:
// Pos, PrtArea or SSize have been invalidated - they will be evaluated
// again immediately because they have to be valid _at all time_.
// The invalidation is tracked here so that LayAction knows about it and
// can handle it properly. Exceptions prove the rule.
bool
bInvalid
:
1
;
bool
m_
bInvalid
:
1
;
// true if the proposed height of an attribute is a minimal height
// (this means that the frame can grow higher if needed)
bool
bMinHeight
:
1
;
bool
m_
bMinHeight
:
1
;
// true if the fly frame could not format position/size based on its
// attributes, e.g. because there was not enough space.
bool
bHeightClipped
:
1
;
bool
bWidthClipped
:
1
;
bool
m_
bHeightClipped
:
1
;
bool
m_
bWidthClipped
:
1
;
// If true then call only the format after adjusting the width (CheckClip);
// but the width will not be re-evaluated based on the attributes.
bool
bFormatHeightOnly
:
1
;
bool
m_
bFormatHeightOnly
:
1
;
bool
bInCnt
:
1
;
///< FLY_AS_CHAR, anchored as character
bool
bAtCnt
:
1
;
///< FLY_AT_PARA, anchored at paragraph
bool
bLayout
:
1
;
///< FLY_AT_PAGE, FLY_AT_FLY, at page or at frame
bool
bAutoPosition
:
1
;
///< FLY_AT_CHAR, anchored at character
bool
m_
bInCnt
:
1
;
///< FLY_AS_CHAR, anchored as character
bool
m_
bAtCnt
:
1
;
///< FLY_AT_PARA, anchored at paragraph
bool
m_
bLayout
:
1
;
///< FLY_AT_PAGE, FLY_AT_FLY, at page or at frame
bool
m_
bAutoPosition
:
1
;
///< FLY_AT_CHAR, anchored at character
bool
bNoShrink
:
1
;
///< temporary forbid shrinking to avoid loops
bool
m_
bNoShrink
:
1
;
///< temporary forbid shrinking to avoid loops
// If true, the content of the fly frame will not be deleted when it
// is moved to an invisible layer.
bool
bLockDeleteContent
:
1
;
bool
m_
bLockDeleteContent
:
1
;
friend
class
SwNoTextFrm
;
// is allowed to call NotifyBackground
...
...
@@ -125,8 +125,8 @@ protected:
void
MakePrtArea
(
const
SwBorderAttrs
&
rAttrs
);
void
MakeContentPos
(
const
SwBorderAttrs
&
rAttrs
);
void
Lock
()
{
bLocked
=
true
;
}
void
Unlock
()
{
bLocked
=
false
;
}
void
Lock
()
{
m_
bLocked
=
true
;
}
void
Unlock
()
{
m_
bLocked
=
false
;
}
Size
CalcRel
(
const
SwFormatFrmSize
&
rSz
)
const
;
SwTwips
CalcAutoWidth
()
const
;
...
...
@@ -175,8 +175,8 @@ public:
bool
FrmSizeChg
(
const
SwFormatFrmSize
&
);
SwFlyFrm
*
GetPrevLink
()
const
{
return
pPrevLink
;
}
SwFlyFrm
*
GetNextLink
()
const
{
return
pNextLink
;
}
SwFlyFrm
*
GetPrevLink
()
const
{
return
m_
pPrevLink
;
}
SwFlyFrm
*
GetNextLink
()
const
{
return
m_
pNextLink
;
}
static
void
ChainFrames
(
SwFlyFrm
*
pMaster
,
SwFlyFrm
*
pFollow
);
static
void
UnchainFrames
(
SwFlyFrm
*
pMaster
,
SwFlyFrm
*
pFollow
);
...
...
@@ -189,26 +189,26 @@ public:
void
NotifyDrawObj
();
void
ChgRelPos
(
const
Point
&
rAbsPos
);
bool
IsInvalid
()
const
{
return
bInvalid
;
}
void
Invalidate
()
const
{
const_cast
<
SwFlyFrm
*>
(
this
)
->
bInvalid
=
true
;
}
void
Validate
()
const
{
const_cast
<
SwFlyFrm
*>
(
this
)
->
bInvalid
=
false
;
}
bool
IsMinHeight
()
const
{
return
bMinHeight
;
}
bool
IsLocked
()
const
{
return
bLocked
;
}
bool
IsAutoPos
()
const
{
return
bAutoPosition
;
}
bool
IsFlyInCntFrm
()
const
{
return
bInCnt
;
}
bool
IsFlyFreeFrm
()
const
{
return
bAtCnt
||
bLayout
;
}
bool
IsFlyLayFrm
()
const
{
return
bLayout
;
}
bool
IsFlyAtCntFrm
()
const
{
return
bAtCnt
;
}
bool
IsNotifyBack
()
const
{
return
bNotifyBack
;
}
void
SetNotifyBack
()
{
bNotifyBack
=
true
;
}
void
ResetNotifyBack
()
{
bNotifyBack
=
false
;
}
bool
IsNoShrink
()
const
{
return
bNoShrink
;
}
bool
IsLockDeleteContent
()
const
{
return
bLockDeleteContent
;
}
bool
IsClipped
()
const
{
return
bHeightClipped
||
bWidthClipped
;
}
bool
IsHeightClipped
()
const
{
return
bHeightClipped
;
}
bool
IsInvalid
()
const
{
return
m_
bInvalid
;
}
void
Invalidate
()
const
{
const_cast
<
SwFlyFrm
*>
(
this
)
->
m_
bInvalid
=
true
;
}
void
Validate
()
const
{
const_cast
<
SwFlyFrm
*>
(
this
)
->
m_
bInvalid
=
false
;
}
bool
IsMinHeight
()
const
{
return
m_
bMinHeight
;
}
bool
IsLocked
()
const
{
return
m_
bLocked
;
}
bool
IsAutoPos
()
const
{
return
m_
bAutoPosition
;
}
bool
IsFlyInCntFrm
()
const
{
return
m_
bInCnt
;
}
bool
IsFlyFreeFrm
()
const
{
return
m_bAtCnt
||
m_
bLayout
;
}
bool
IsFlyLayFrm
()
const
{
return
m_
bLayout
;
}
bool
IsFlyAtCntFrm
()
const
{
return
m_
bAtCnt
;
}
bool
IsNotifyBack
()
const
{
return
m_
bNotifyBack
;
}
void
SetNotifyBack
()
{
m_
bNotifyBack
=
true
;
}
void
ResetNotifyBack
()
{
m_
bNotifyBack
=
false
;
}
bool
IsNoShrink
()
const
{
return
m_
bNoShrink
;
}
bool
IsLockDeleteContent
()
const
{
return
m_
bLockDeleteContent
;
}
bool
IsClipped
()
const
{
return
m_bHeightClipped
||
m_
bWidthClipped
;
}
bool
IsHeightClipped
()
const
{
return
m_
bHeightClipped
;
}
bool
IsLowerOf
(
const
SwLayoutFrm
*
pUpper
)
const
;
inline
bool
IsUpperOf
(
const
SwFlyFrm
&
_rLower
)
const
...
...
sw/source/core/layout/fly.cxx
Dosyayı görüntüle @
0e30cae5
...
...
@@ -71,21 +71,21 @@ TYPEINIT2(SwFlyFrm,SwLayoutFrm,SwAnchoredObject);
SwFlyFrm
::
SwFlyFrm
(
SwFlyFrameFormat
*
pFormat
,
SwFrm
*
pSib
,
SwFrm
*
pAnch
)
:
SwLayoutFrm
(
pFormat
,
pSib
),
SwAnchoredObject
(),
// #i26791#
pPrevLink
(
0
),
pNextLink
(
0
),
bInCnt
(
false
),
bAtCnt
(
false
),
bLayout
(
false
),
bAutoPosition
(
false
),
bNoShrink
(
false
),
bLockDeleteContent
(
false
),
m_
pPrevLink
(
0
),
m_
pNextLink
(
0
),
m_
bInCnt
(
false
),
m_
bAtCnt
(
false
),
m_
bLayout
(
false
),
m_
bAutoPosition
(
false
),
m_
bNoShrink
(
false
),
m_
bLockDeleteContent
(
false
),
m_bValidContentPos
(
false
)
{
mnFrmType
=
FRM_FLY
;
bInvalid
=
bNotifyBack
=
true
;
bLocked
=
bMinHeight
=
bHeightClipped
=
bWidthClipped
=
bFormatHeightOnly
=
false
;
m_bInvalid
=
m_
bNotifyBack
=
true
;
m_bLocked
=
m_
bMinHeight
=
m_bHeightClipped
=
m_bWidthClipped
=
m_
bFormatHeightOnly
=
false
;
// Size setting: Fixed size is always the width
const
SwFormatFrmSize
&
rFrmSize
=
pFormat
->
GetFrmSize
();
...
...
@@ -137,7 +137,7 @@ SwFlyFrm::SwFlyFrm( SwFlyFrameFormat *pFormat, SwFrm* pSib, SwFrm *pAnch ) :
// Fixed or variable Height?
if
(
rFrmSize
.
GetHeightSizeType
()
==
ATT_MIN_SIZE
)
bMinHeight
=
true
;
m_
bMinHeight
=
true
;
else
if
(
rFrmSize
.
GetHeightSizeType
()
==
ATT_FIX_SIZE
)
mbFixSize
=
true
;
...
...
@@ -204,7 +204,7 @@ void SwFlyFrm::InsertCnt()
if
(
Lower
()
&&
Lower
()
->
IsNoTextFrm
()
)
{
mbFixSize
=
true
;
bMinHeight
=
false
;
m_
bMinHeight
=
false
;
}
}
}
...
...
@@ -486,8 +486,8 @@ void SwFlyFrm::ChainFrames( SwFlyFrm *pMaster, SwFlyFrm *pFollow )
OSL_ENSURE
(
!
pMaster
->
GetNextLink
(),
"link can not be changed"
);
OSL_ENSURE
(
!
pFollow
->
GetPrevLink
(),
"link can not be changed"
);
pMaster
->
pNextLink
=
pFollow
;
pFollow
->
pPrevLink
=
pMaster
;
pMaster
->
m_
pNextLink
=
pFollow
;
pFollow
->
m_
pPrevLink
=
pMaster
;
if
(
pMaster
->
ContainsContent
()
)
{
...
...
@@ -530,8 +530,8 @@ void SwFlyFrm::ChainFrames( SwFlyFrm *pMaster, SwFlyFrm *pFollow )
void
SwFlyFrm
::
UnchainFrames
(
SwFlyFrm
*
pMaster
,
SwFlyFrm
*
pFollow
)
{
pMaster
->
pNextLink
=
0
;
pFollow
->
pPrevLink
=
0
;
pMaster
->
m_
pNextLink
=
0
;
pFollow
->
m_
pPrevLink
=
0
;
if
(
pFollow
->
ContainsContent
()
)
{
...
...
@@ -638,18 +638,18 @@ bool SwFlyFrm::FrmSizeChg( const SwFormatFrmSize &rFrmSize )
bool
bRet
=
false
;
SwTwips
nDiffHeight
=
Frm
().
Height
();
if
(
rFrmSize
.
GetHeightSizeType
()
==
ATT_VAR_SIZE
)
mbFixSize
=
bMinHeight
=
false
;
mbFixSize
=
m_
bMinHeight
=
false
;
else
{
if
(
rFrmSize
.
GetHeightSizeType
()
==
ATT_FIX_SIZE
)
{
mbFixSize
=
true
;
bMinHeight
=
false
;
m_
bMinHeight
=
false
;
}
else
if
(
rFrmSize
.
GetHeightSizeType
()
==
ATT_MIN_SIZE
)
{
mbFixSize
=
false
;
bMinHeight
=
true
;
m_
bMinHeight
=
true
;
}
nDiffHeight
-=
rFrmSize
.
GetHeight
();
}
...
...
@@ -676,7 +676,7 @@ bool SwFlyFrm::FrmSizeChg( const SwFormatFrmSize &rFrmSize )
else
if
(
Lower
()
->
IsNoTextFrm
()
)
{
mbFixSize
=
true
;
bMinHeight
=
false
;
m_
bMinHeight
=
false
;
}
}
return
bRet
;
...
...
@@ -1087,7 +1087,7 @@ bool SwFlyFrm::GetInfo( SfxPoolItem & rInfo ) const
void
SwFlyFrm
::
_Invalidate
(
SwPageFrm
*
pPage
)
{
InvalidatePage
(
pPage
);
bNotifyBack
=
bInvalid
=
true
;
m_bNotifyBack
=
m_
bInvalid
=
true
;
SwFlyFrm
*
pFrm
;
if
(
GetAnchorFrm
()
&&
0
!=
(
pFrm
=
AnchorFrm
()
->
FindFlyFrm
())
)
...
...
@@ -1330,7 +1330,7 @@ void SwFlyFrm::Format( vcl::RenderContext* /*pRenderContext*/, const SwBorderAtt
}
}
if
(
!
bFormatHeightOnly
)
if
(
!
m_
bFormatHeightOnly
)
{
OSL_ENSURE
(
aRelSize
==
CalcRel
(
rFrmSz
),
"SwFlyFrm::Format CalcRel problem"
);
SwTwips
nNewSize
=
bVert
?
aRelSize
.
Height
()
:
aRelSize
.
Width
();
...
...
@@ -1826,7 +1826,7 @@ SwTwips SwFlyFrm::_Grow( SwTwips nDist, bool bTst )
{
const
SwRect
aOld
(
GetObjRectWithSpaces
()
);
_InvalidateSize
();
const
bool
bOldLock
=
bLocked
;
const
bool
bOldLock
=
m_
bLocked
;
Unlock
();
if
(
IsFlyFreeFrm
()
)
{
...
...
@@ -1841,11 +1841,11 @@ SwTwips SwFlyFrm::_Grow( SwTwips nDist, bool bTst )
// Suppress format of width for autowidth frame, because the
// format of the width would call <SwTextFrm::CalcFitToContent()>
// for the lower frame, which initiated this grow.
const
bool
bOldFormatHeightOnly
=
bFormatHeightOnly
;
const
bool
bOldFormatHeightOnly
=
m_
bFormatHeightOnly
;
const
SwFormatFrmSize
&
rFrmSz
=
GetFormat
()
->
GetFrmSize
();
if
(
rFrmSz
.
GetWidthSizeType
()
!=
ATT_FIX_SIZE
)
{
bFormatHeightOnly
=
true
;
m_
bFormatHeightOnly
=
true
;
}
static_cast
<
SwFlyFreeFrm
*>
(
this
)
->
SetNoMoveOnCheckClip
(
true
);
static_cast
<
SwFlyFreeFrm
*>
(
this
)
->
SwFlyFreeFrm
::
MakeAll
(
getRootFrm
()
->
GetCurrShell
()
->
GetOut
());
...
...
@@ -1853,7 +1853,7 @@ SwTwips SwFlyFrm::_Grow( SwTwips nDist, bool bTst )
// #i55416#
if
(
rFrmSz
.
GetWidthSizeType
()
!=
ATT_FIX_SIZE
)
{
bFormatHeightOnly
=
bOldFormatHeightOnly
;
m_
bFormatHeightOnly
=
bOldFormatHeightOnly
;
}
}
else
...
...
@@ -1921,7 +1921,7 @@ SwTwips SwFlyFrm::_Shrink( SwTwips nDist, bool bTst )
{
const
SwRect
aOld
(
GetObjRectWithSpaces
()
);
_InvalidateSize
();
const
bool
bOldLocked
=
bLocked
;
const
bool
bOldLocked
=
m_
bLocked
;
Unlock
();
if
(
IsFlyFreeFrm
()
)
{
...
...
@@ -1936,11 +1936,11 @@ SwTwips SwFlyFrm::_Shrink( SwTwips nDist, bool bTst )
// Suppress format of width for autowidth frame, because the
// format of the width would call <SwTextFrm::CalcFitToContent()>
// for the lower frame, which initiated this shrink.
const
bool
bOldFormatHeightOnly
=
bFormatHeightOnly
;
const
bool
bOldFormatHeightOnly
=
m_
bFormatHeightOnly
;
const
SwFormatFrmSize
&
rFrmSz
=
GetFormat
()
->
GetFrmSize
();
if
(
rFrmSz
.
GetWidthSizeType
()
!=
ATT_FIX_SIZE
)
{
bFormatHeightOnly
=
true
;
m_
bFormatHeightOnly
=
true
;
}
static_cast
<
SwFlyFreeFrm
*>
(
this
)
->
SetNoMoveOnCheckClip
(
true
);
static_cast
<
SwFlyFreeFrm
*>
(
this
)
->
SwFlyFreeFrm
::
MakeAll
(
getRootFrm
()
->
GetCurrShell
()
->
GetOut
());
...
...
@@ -1948,7 +1948,7 @@ SwTwips SwFlyFrm::_Shrink( SwTwips nDist, bool bTst )
// #i55416#
if
(
rFrmSz
.
GetWidthSizeType
()
!=
ATT_FIX_SIZE
)
{
bFormatHeightOnly
=
bOldFormatHeightOnly
;
m_
bFormatHeightOnly
=
bOldFormatHeightOnly
;
}
}
else
...
...
sw/source/core/layout/flycnt.cxx
Dosyayı görüntüle @
0e30cae5
...
...
@@ -69,8 +69,8 @@ static inline SwTwips lcl_GetTopForObjPos(const SwContentFrm* pCnt, const bool b
SwFlyAtCntFrm
::
SwFlyAtCntFrm
(
SwFlyFrameFormat
*
pFormat
,
SwFrm
*
pSib
,
SwFrm
*
pAnch
)
:
SwFlyFreeFrm
(
pFormat
,
pSib
,
pAnch
)
{
bAtCnt
=
true
;
bAutoPosition
=
(
FLY_AT_CHAR
==
pFormat
->
GetAnchor
().
GetAnchorId
());
m_
bAtCnt
=
true
;
m_
bAutoPosition
=
(
FLY_AT_CHAR
==
pFormat
->
GetAnchor
().
GetAnchorId
());
}
// #i28701#
...
...
sw/source/core/layout/flyincnt.cxx
Dosyayı görüntüle @
0e30cae5
...
...
@@ -31,7 +31,7 @@
SwFlyInCntFrm
::
SwFlyInCntFrm
(
SwFlyFrameFormat
*
pFormat
,
SwFrm
*
pSib
,
SwFrm
*
pAnch
)
:
SwFlyFrm
(
pFormat
,
pSib
,
pAnch
)
{
bInCnt
=
bInvalidLayout
=
bInvalidContent
=
true
;
m_
bInCnt
=
bInvalidLayout
=
bInvalidContent
=
true
;
SwTwips
nRel
=
pFormat
->
GetVertOrient
().
GetPos
();
// OD 2004-05-27 #i26791# - member <aRelPos> moved to <SwAnchoredObject>
Point
aRelPos
;
...
...
@@ -81,7 +81,7 @@ void SwFlyInCntFrm::SetRefPoint( const Point& rPoint,
{
InvalidatePage
();
mbValidPos
=
false
;
bInvalid
=
true
;
m_
bInvalid
=
true
;
Calc
(
getRootFrm
()
->
GetCurrShell
()
->
GetOut
());
delete
pNotify
;
}
...
...
@@ -223,7 +223,7 @@ void SwFlyInCntFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
const
SwBorderAttrs
&
rAttrs
=
*
aAccess
.
Get
();
if
(
IsClipped
()
)
mbValidSize
=
bHeightClipped
=
bWidthClipped
=
false
;
mbValidSize
=
m_bHeightClipped
=
m_
bWidthClipped
=
false
;
while
(
!
mbValidPos
||
!
mbValidSize
||
!
mbValidPrtArea
||
!
m_bValidContentPos
)
{
...
...
@@ -261,7 +261,7 @@ void SwFlyInCntFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
{
Frm
().
Width
(
pFrm
->
Prt
().
Width
()
);
mbValidPrtArea
=
false
;
bWidthClipped
=
true
;
m_
bWidthClipped
=
true
;
}
}
}
...
...
sw/source/core/layout/flylay.cxx
Dosyayı görüntüle @
0e30cae5
...
...
@@ -127,7 +127,7 @@ void SwFlyFreeFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
if
(
IsClipped
()
)
{
mbValidSize
=
bHeightClipped
=
bWidthClipped
=
false
;
mbValidSize
=
m_bHeightClipped
=
m_
bWidthClipped
=
false
;
// no invalidation of position,
// if anchored object is anchored inside a Writer fly frame,
// its position is already locked, and it follows the text flow.
...
...
@@ -146,7 +146,7 @@ void SwFlyFreeFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
int
nLoopControlRuns
=
0
;
const
int
nLoopControlMax
=
10
;
while
(
!
mbValidPos
||
!
mbValidSize
||
!
mbValidPrtArea
||
bFormatHeightOnly
||
!
m_bValidContentPos
)
while
(
!
mbValidPos
||
!
mbValidSize
||
!
mbValidPrtArea
||
m_
bFormatHeightOnly
||
!
m_bValidContentPos
)
{
SWRECTFN
(
this
)
const
SwFormatFrmSize
*
pSz
;
...
...
@@ -168,11 +168,11 @@ void SwFlyFreeFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
m_bValidContentPos
=
false
;
}
if
(
!
mbValidSize
||
bFormatHeightOnly
)
if
(
!
mbValidSize
||
m_
bFormatHeightOnly
)
{
mbValidSize
=
false
;
Format
(
getRootFrm
()
->
GetCurrShell
()
->
GetOut
(),
&
rAttrs
);
bFormatHeightOnly
=
false
;
m_
bFormatHeightOnly
=
false
;
}
}
...
...
@@ -219,7 +219,7 @@ void SwFlyFreeFrm::MakeAll(vcl::RenderContext* /*pRenderContext*/)
#if OSL_DEBUG_LEVEL > 0
SWRECTFN
(
this
)
OSL_ENSURE
(
bHeightClipped
||
(
(
Frm
().
*
fnRect
->
fnGetHeight
)()
>
0
&&
OSL_ENSURE
(
m_
bHeightClipped
||
(
(
Frm
().
*
fnRect
->
fnGetHeight
)()
>
0
&&
(
Prt
().
*
fnRect
->
fnGetHeight
)()
>
0
),
"SwFlyFreeFrm::Format(), flipping Fly."
);
...
...
@@ -302,7 +302,7 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
Frm
().
Pos
().
Y
()
=
std
::
max
(
aClip
.
Top
(),
nClipBot
-
Frm
().
Height
()
);
if
(
Frm
().
Top
()
!=
nOld
)
bAgain
=
true
;
bHeightClipped
=
true
;
m_
bHeightClipped
=
true
;
}
}
if
(
bRig
)
...
...
@@ -319,7 +319,7 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
else
bAgain
=
true
;
}
bWidthClipped
=
true
;
m_
bWidthClipped
=
true
;
}
if
(
bAgain
)
mbValidSize
=
false
;
...
...
@@ -342,7 +342,7 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
nDiff
-=
aFrmRect
.
Top
();
// nDiff represents the available distance
nDiff
=
aFrmRect
.
Height
()
-
nDiff
;
aFrmRect
.
Height
(
aFrmRect
.
Height
()
-
nDiff
);
bHeightClipped
=
true
;
m_
bHeightClipped
=
true
;
}
if
(
bRig
)
{
...
...
@@ -350,7 +350,7 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
nDiff
-=
aFrmRect
.
Left
();
// nDiff represents the available distance
nDiff
=
aFrmRect
.
Width
()
-
nDiff
;
aFrmRect
.
Width
(
aFrmRect
.
Width
()
-
nDiff
);
bWidthClipped
=
true
;
m_
bWidthClipped
=
true
;
}
// #i17297# - no proportional
...
...
@@ -384,14 +384,14 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
{
aFrmRect
.
Height
(
aFrmRect
.
Width
()
*
aOldSize
.
Height
()
/
aOldSize
.
Width
()
);
bHeightClipped
=
true
;
m_
bHeightClipped
=
true
;
}
// Adjusted the height? change width proportionally
else
if
(
aFrmRect
.
Height
()
!=
aOldSize
.
Height
()
)
{
aFrmRect
.
Width
(
aFrmRect
.
Height
()
*
aOldSize
.
Width
()
/
aOldSize
.
Height
()
);
bWidthClipped
=
true
;
m_
bWidthClipped
=
true
;
}
// #i17297# - reactivate change
...
...
@@ -405,7 +405,7 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
// this code.
if
(
aFrmRect
.
HasArea
()
&&
static_cast
<
SwContentFrm
*>
(
Lower
())
->
GetNode
()
->
GetOLENode
()
&&
(
bWidthClipped
||
bHeightClipped
)
)
(
m_bWidthClipped
||
m_
bHeightClipped
)
)
{
SwFlyFrameFormat
*
pFormat
=
GetFormat
();
pFormat
->
LockModify
();
...
...
@@ -441,8 +441,8 @@ void SwFlyFreeFrm::CheckClip( const SwFormatFrmSize &rSz )
}
while
(
pLow
);
::
CalcContent
(
this
);
ColUnlock
();
if
(
!
mbValidSize
&&
!
bWidthClipped
)
bFormatHeightOnly
=
mbValidSize
=
true
;
if
(
!
mbValidSize
&&
!
m_
bWidthClipped
)
m_
bFormatHeightOnly
=
mbValidSize
=
true
;
}
else
{
...
...
@@ -470,7 +470,7 @@ bool SwFlyFreeFrm::IsFormatPossible() const
SwFlyLayFrm
::
SwFlyLayFrm
(
SwFlyFrameFormat
*
pFormat
,
SwFrm
*
pSib
,
SwFrm
*
pAnch
)
:
SwFlyFreeFrm
(
pFormat
,
pSib
,
pAnch
)
{
bLayout
=
true
;
m_
bLayout
=
true
;
}
// #i28701#
...
...
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