Kaydet (Commit) 7fd640f4 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

117749: remove unused local variable

patch by: caolanm@redhat.com
üst c882e147
...@@ -103,10 +103,7 @@ TYPEINIT2(SwFlyFrm,SwLayoutFrm,SwAnchoredObject); ...@@ -103,10 +103,7 @@ TYPEINIT2(SwFlyFrm,SwLayoutFrm,SwAnchoredObject);
SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) : SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) :
SwLayoutFrm( pFmt, pSib ), SwLayoutFrm( pFmt, pSib ),
// OD 2004-03-22 #i26791#
SwAnchoredObject(), SwAnchoredObject(),
// OD 2004-05-27 #i26791# - moved to <SwAnchoredObject>
// aRelPos(),
pPrevLink( 0 ), pPrevLink( 0 ),
pNextLink( 0 ), pNextLink( 0 ),
bInCnt( sal_False ), bInCnt( sal_False ),
...@@ -119,20 +116,15 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) : ...@@ -119,20 +116,15 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) :
nType = FRMC_FLY; nType = FRMC_FLY;
bInvalid = bNotifyBack = sal_True; bInvalid = bNotifyBack = sal_True;
bLocked = bMinHeight = bLocked = bMinHeight = bHeightClipped = bWidthClipped = bFormatHeightOnly = sal_False;
bHeightClipped = bWidthClipped = bFormatHeightOnly = sal_False;
//Grosseneinstellung, Fixe groesse ist immer die Breite //Grosseneinstellung, Fixe groesse ist immer die Breite
const SwFmtFrmSize &rFrmSize = pFmt->GetFrmSize(); const SwFmtFrmSize &rFrmSize = pFmt->GetFrmSize();
sal_Bool bVert = sal_False; sal_uInt16 nDir = ((SvxFrameDirectionItem&)pFmt->GetFmtAttr( RES_FRAMEDIR )).GetValue();
sal_uInt16 nDir =
((SvxFrameDirectionItem&)pFmt->GetFmtAttr( RES_FRAMEDIR )).GetValue();
if( FRMDIR_ENVIRONMENT == nDir ) if( FRMDIR_ENVIRONMENT == nDir )
{ {
bDerivedVert = 1; bDerivedVert = 1;
bDerivedR2L = 1; bDerivedR2L = 1;
if( pAnch && pAnch->IsVertical() )
bVert = sal_True;
} }
else else
{ {
...@@ -165,7 +157,6 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) : ...@@ -165,7 +157,6 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) :
} }
} }
bVert = bVertical;
bInvalidR2L = 0; bInvalidR2L = 0;
if( FRMDIR_HORI_RIGHT_TOP == nDir ) if( FRMDIR_HORI_RIGHT_TOP == nDir )
bRightToLeft = 1; bRightToLeft = 1;
...@@ -182,25 +173,20 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) : ...@@ -182,25 +173,20 @@ SwFlyFrm::SwFlyFrm( SwFlyFrmFmt *pFmt, SwFrm* pSib, SwFrm *pAnch ) :
else if ( rFrmSize.GetHeightSizeType() == ATT_FIX_SIZE ) else if ( rFrmSize.GetHeightSizeType() == ATT_FIX_SIZE )
bFixSize = sal_True; bFixSize = sal_True;
// OD 2004-02-12 #110582#-2 - insert columns, if necessary // insert columns, if necessary
InsertColumns(); InsertColumns();
//Erst das Init, dann den Inhalt, denn zum Inhalt koennen widerum // initialize before inserting content as the content might contain other objects which need to be registered
//Objekte/Rahmen gehoeren die dann angemeldet werden.
InitDrawObj( sal_False ); InitDrawObj( sal_False );
// OD 2004-01-19 #110582#
Chain( pAnch ); Chain( pAnch );
// OD 2004-01-19 #110582#
InsertCnt(); InsertCnt();
//Und erstmal in den Wald stellen die Kiste, damit bei neuen Dokument nicht // apply dummy position which is far-away in order to avoid needless formattings
//unnoetig viel formatiert wird.
Frm().Pos().X() = Frm().Pos().Y() = WEIT_WECH; Frm().Pos().X() = Frm().Pos().Y() = WEIT_WECH;
} }
// OD 2004-01-19 #110582#
void SwFlyFrm::Chain( SwFrm* _pAnch ) void SwFlyFrm::Chain( SwFrm* _pAnch )
{ {
// Connect to chain neighboors. // Connect to chain neighboors.
...@@ -232,7 +218,6 @@ void SwFlyFrm::Chain( SwFrm* _pAnch ) ...@@ -232,7 +218,6 @@ void SwFlyFrm::Chain( SwFrm* _pAnch )
} }
} }
// OD 2004-01-19 #110582#
void SwFlyFrm::InsertCnt() void SwFlyFrm::InsertCnt()
{ {
if ( !GetPrevLink() ) if ( !GetPrevLink() )
...@@ -253,20 +238,17 @@ void SwFlyFrm::InsertCnt() ...@@ -253,20 +238,17 @@ void SwFlyFrm::InsertCnt()
} }
} }
// OD 2004-02-12 #110582#-2 void SwFlyFrm::InsertColumns()
void SwFlyFrm::InsertColumns() {
{
// --> OD 2009-08-12 #i97379#
// Check, if column are allowed. // Check, if column are allowed.
// Columns are not allowed for fly frames, which represent graphics or embedded objects. // Columns are not allowed for fly frames, which represent graphics or embedded objects.
const SwFmtCntnt& rCntnt = GetFmt()->GetCntnt(); const SwFmtCntnt& rCntnt = GetFmt()->GetCntnt();
ASSERT( rCntnt.GetCntntIdx(), "<SwFlyFrm::InsertColumns()> - no content prepared." ); ASSERT( rCntnt.GetCntntIdx(), "<SwFlyFrm::InsertColumns()> - no content prepared." );
SwNodeIndex aFirstCntnt( *(rCntnt.GetCntntIdx()), 1 ); SwNodeIndex aFirstCntnt( *( rCntnt.GetCntntIdx() ), 1 );
if ( aFirstCntnt.GetNode().IsNoTxtNode() ) if ( aFirstCntnt.GetNode().IsNoTxtNode() )
{ {
return; return;
} }
// <--
const SwFmtCol &rCol = GetFmt()->GetCol(); const SwFmtCol &rCol = GetFmt()->GetCol();
if ( rCol.GetNumCols() > 1 ) if ( rCol.GetNumCols() > 1 )
...@@ -280,7 +262,7 @@ void SwFlyFrm::InsertCnt() ...@@ -280,7 +262,7 @@ void SwFlyFrm::InsertCnt()
//Old-Wert hereingereicht wird. //Old-Wert hereingereicht wird.
ChgColumns( aOld, rCol ); ChgColumns( aOld, rCol );
} }
} }
/************************************************************************* /*************************************************************************
|* |*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment