callcatcher: reduce Container, update unused code list
Change-Id: I11733daf2668c4142052ceb4498f5500e7e291ef
This commit is contained in:
@@ -157,7 +157,6 @@ private:
|
|||||||
DECL_LINK( ClickAutoHdl, void * );
|
DECL_LINK( ClickAutoHdl, void * );
|
||||||
|
|
||||||
void SetMaxSize( Rectangle aRect );
|
void SetMaxSize( Rectangle aRect );
|
||||||
Rectangle GetRect();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -1535,70 +1535,6 @@ void SvxPositionSizeTabPage::DisableProtect()
|
|||||||
|
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
|
|
||||||
Rectangle SvxPositionSizeTabPage::GetRect()
|
|
||||||
{
|
|
||||||
double fLeft(maRange.getMinX());
|
|
||||||
double fTop(maRange.getMinY());
|
|
||||||
double fRight(fLeft + (double)maMtrWidth.GetValue());
|
|
||||||
double fBottom(fTop + (double)maMtrHeight.GetValue());
|
|
||||||
|
|
||||||
switch ( maCtlSize.GetActualRP() )
|
|
||||||
{
|
|
||||||
case RP_LT:
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_MT:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() ) / 2.0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_RT:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_LM:
|
|
||||||
{
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() ) / 2.0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_MM:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() ) / 2.0;
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() ) / 2.0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_RM:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() );
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() ) / 2.0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_LB:
|
|
||||||
{
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_MB:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() ) / 2.0;
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case RP_RB:
|
|
||||||
{
|
|
||||||
fLeft = maRange.getMinX() - ( fRight - maRange.getMaxX() );
|
|
||||||
fTop = maRange.getMinY() - ( fBottom - maRange.getMaxY() );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return Rectangle(basegfx::fround(fLeft), basegfx::fround(fTop), basegfx::fround(fRight), basegfx::fround(fBottom));
|
|
||||||
}
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------
|
|
||||||
|
|
||||||
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeWidthHdl)
|
IMPL_LINK_NOARG(SvxPositionSizeTabPage, ChangeWidthHdl)
|
||||||
{
|
{
|
||||||
if( maCbxScale.IsChecked() && maCbxScale.IsEnabled() )
|
if( maCbxScale.IsChecked() && maCbxScale.IsEnabled() )
|
||||||
|
@@ -81,7 +81,6 @@ public:
|
|||||||
void* Replace( void* pNew, void* pOld )
|
void* Replace( void* pNew, void* pOld )
|
||||||
{ return Replace( pNew, GetPos( pOld ) ); }
|
{ return Replace( pNew, GetPos( pOld ) ); }
|
||||||
|
|
||||||
void SetSize( sal_uIntPtr nNewSize );
|
|
||||||
sal_uIntPtr GetSize() const { return nCount; }
|
sal_uIntPtr GetSize() const { return nCount; }
|
||||||
|
|
||||||
sal_uIntPtr Count() const { return nCount; }
|
sal_uIntPtr Count() const { return nCount; }
|
||||||
|
@@ -953,146 +953,6 @@ void* Container::Replace( void* p, sal_uIntPtr nIndex )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
|*
|
|
||||||
|* Container::SetSize()
|
|
||||||
|*
|
|
||||||
*************************************************************************/
|
|
||||||
|
|
||||||
void Container::SetSize( sal_uIntPtr nNewSize )
|
|
||||||
{
|
|
||||||
DBG_CHKTHIS( Container, DbgCheckContainer );
|
|
||||||
|
|
||||||
if ( nNewSize )
|
|
||||||
{
|
|
||||||
// Unterscheiden sich die Groessen
|
|
||||||
if ( nNewSize != nCount )
|
|
||||||
{
|
|
||||||
CBlock* pTemp;
|
|
||||||
sal_uIntPtr nTemp;
|
|
||||||
|
|
||||||
// Wird verkleinert
|
|
||||||
if ( nNewSize < nCount )
|
|
||||||
{
|
|
||||||
pTemp = pFirstBlock;
|
|
||||||
nTemp = 0;
|
|
||||||
while ( (nTemp+pTemp->Count()) < nNewSize )
|
|
||||||
{
|
|
||||||
nTemp += pTemp->Count();
|
|
||||||
pTemp = pTemp->GetNextBlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Alle folgenden Bloecke loeschen
|
|
||||||
sal_Bool bLast = sal_False;
|
|
||||||
CBlock* pDelNext;
|
|
||||||
CBlock* pDelBlock = pTemp->GetNextBlock();
|
|
||||||
while ( pDelBlock )
|
|
||||||
{
|
|
||||||
// Muss CurrentBlock umgesetzt werden
|
|
||||||
if ( pDelBlock == pCurBlock )
|
|
||||||
bLast = sal_True;
|
|
||||||
pDelNext = pDelBlock->GetNextBlock();
|
|
||||||
delete pDelBlock;
|
|
||||||
pDelBlock = pDelNext;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Block in der Groesse anpassen, oder bei Groesse 0 loeschen
|
|
||||||
if ( nNewSize > nTemp )
|
|
||||||
{
|
|
||||||
pLastBlock = pTemp;
|
|
||||||
pTemp->SetNextBlock( NULL );
|
|
||||||
pTemp->SetSize( (sal_uInt16)(nNewSize-nTemp) );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pLastBlock = pTemp->GetPrevBlock();
|
|
||||||
pLastBlock->SetNextBlock( NULL );
|
|
||||||
delete pTemp;
|
|
||||||
}
|
|
||||||
|
|
||||||
nCount = nNewSize;
|
|
||||||
if ( bLast )
|
|
||||||
{
|
|
||||||
pCurBlock = pLastBlock;
|
|
||||||
nCurIndex = pCurBlock->Count()-1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Auf den letzen Puffer setzen
|
|
||||||
pTemp = pLastBlock;
|
|
||||||
nTemp = nNewSize - nCount;
|
|
||||||
|
|
||||||
if ( !pTemp )
|
|
||||||
{
|
|
||||||
// Muss mehr als ein Block angelegt werden
|
|
||||||
if ( nNewSize <= nBlockSize )
|
|
||||||
{
|
|
||||||
pFirstBlock = new CBlock( (sal_uInt16)nNewSize, NULL );
|
|
||||||
pLastBlock = pFirstBlock;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CBlock* pBlock1;
|
|
||||||
CBlock* pBlock2;
|
|
||||||
|
|
||||||
pFirstBlock = new CBlock( nBlockSize, NULL );
|
|
||||||
pBlock1 = pFirstBlock;
|
|
||||||
nNewSize -= nBlockSize;
|
|
||||||
|
|
||||||
// Solange die Blockgroesse ueberschritten wird, neue Bloecke anlegen
|
|
||||||
while ( nNewSize > nBlockSize )
|
|
||||||
{
|
|
||||||
pBlock2 = new CBlock( nBlockSize, pBlock1 );
|
|
||||||
pBlock1->SetNextBlock( pBlock2 );
|
|
||||||
pBlock1 = pBlock2;
|
|
||||||
nNewSize -= nBlockSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
pLastBlock = new CBlock( (sal_uInt16)nNewSize, pBlock1 );
|
|
||||||
pBlock1->SetNextBlock( pLastBlock );
|
|
||||||
}
|
|
||||||
|
|
||||||
pCurBlock = pFirstBlock;
|
|
||||||
}
|
|
||||||
// Reicht es, den letzen Puffer in der Groesse anzupassen
|
|
||||||
else if ( (nTemp+pTemp->Count()) <= nBlockSize )
|
|
||||||
pTemp->SetSize( (sal_uInt16)(nTemp+pTemp->Count()) );
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Puffer auf max. Blockgroesse setzen
|
|
||||||
nTemp -= nBlockSize - pTemp->GetSize();
|
|
||||||
pTemp->SetSize( nBlockSize );
|
|
||||||
|
|
||||||
CBlock* pTemp2;
|
|
||||||
// Solange die Blockgroesse ueberschritten wird,
|
|
||||||
// neue Bloecke anlegen
|
|
||||||
while ( nTemp > nBlockSize )
|
|
||||||
{
|
|
||||||
pTemp2 = new CBlock( nBlockSize, pTemp );
|
|
||||||
pTemp->SetNextBlock( pTemp2 );
|
|
||||||
pTemp = pTemp2;
|
|
||||||
nTemp -= nBlockSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Den letzten Block anlegen
|
|
||||||
if ( nTemp )
|
|
||||||
{
|
|
||||||
pLastBlock = new CBlock( (sal_uInt16)nTemp, pTemp );
|
|
||||||
pTemp->SetNextBlock( pLastBlock );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
pLastBlock = pTemp;
|
|
||||||
}
|
|
||||||
|
|
||||||
nCount = nNewSize;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* Container::Clear()
|
|* Container::Clear()
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
|
BasicDockingWindow::BasicDockingWindow(Window*, ResId const&)
|
||||||
FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
|
FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
|
||||||
|
PlaceEditDialog::GetResId(unsigned short)
|
||||||
PopupMenu::SetSelectedEntry(unsigned short)
|
PopupMenu::SetSelectedEntry(unsigned short)
|
||||||
|
RtfAttributeOutput::WriteHex(int)
|
||||||
SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)
|
SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, com::sun::star::uno::Sequence<signed char>, unsigned char)
|
||||||
SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
|
SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
|
||||||
ScCompressedArray<int, unsigned char>::GetEntryCount() const
|
ScCompressedArray<int, unsigned char>::GetEntryCount() const
|
||||||
@@ -22,7 +25,6 @@ SpinButton::SpinButton(Window*, ResId const&)
|
|||||||
StgCache::Pos2Page(int)
|
StgCache::Pos2Page(int)
|
||||||
SvtSlideSorterBarOptions::AddListenerLink(Link const&)
|
SvtSlideSorterBarOptions::AddListenerLink(Link const&)
|
||||||
SvtSlideSorterBarOptions::RemoveListenerLink(Link const&)
|
SvtSlideSorterBarOptions::RemoveListenerLink(Link const&)
|
||||||
SvxPositionSizeTabPage::GetRect()
|
|
||||||
TempFile::IsValid() const
|
TempFile::IsValid() const
|
||||||
TextEngine::GetLeftMargin() const
|
TextEngine::GetLeftMargin() const
|
||||||
ThumbnailView::GetItemCount() const
|
ThumbnailView::GetItemCount() const
|
||||||
@@ -106,8 +108,10 @@ nullcanvas::SpriteCanvasHelper::opaqueUpdate(basegfx::B2DConnectedRanges<canvas:
|
|||||||
nullcanvas::SpriteCanvasHelper::scrollUpdate(basegfx::B2DRange const&, basegfx::B2DRange const&, basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&)
|
nullcanvas::SpriteCanvasHelper::scrollUpdate(basegfx::B2DRange const&, basegfx::B2DRange const&, basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&)
|
||||||
oox::drawingml::TextParagraphProperties::dump() const
|
oox::drawingml::TextParagraphProperties::dump() const
|
||||||
oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
|
oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
|
||||||
|
sd::ImagePreparer::notesToHtml(unsigned int)
|
||||||
sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
|
sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
|
||||||
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
|
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
|
||||||
|
sd::RemoteServer::pairClient()
|
||||||
sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)
|
sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)
|
||||||
sd::ViewShellBase::RegisterFactory(unsigned short)
|
sd::ViewShellBase::RegisterFactory(unsigned short)
|
||||||
std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector()
|
std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector()
|
||||||
|
@@ -106,9 +106,6 @@ public:
|
|||||||
virtual void SetSplitPosPixel( long nPos );
|
virtual void SetSplitPosPixel( long nPos );
|
||||||
long GetSplitPosPixel() const { return mnSplitPos; }
|
long GetSplitPosPixel() const { return mnSplitPos; }
|
||||||
|
|
||||||
void SetLastSplitPosPixel( long nNewPos );
|
|
||||||
long GetLastSplitPosPixel() const { return mnLastSplitPos; }
|
|
||||||
|
|
||||||
sal_Bool IsHorizontal() const { return mbHorzSplit; }
|
sal_Bool IsHorizontal() const { return mbHorzSplit; }
|
||||||
|
|
||||||
// set the stepsize of the splitter for cursor movement
|
// set the stepsize of the splitter for cursor movement
|
||||||
|
@@ -507,13 +507,6 @@ void Splitter::SetSplitPosPixel( long nNewPos )
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void Splitter::SetLastSplitPosPixel( long nNewPos )
|
|
||||||
{
|
|
||||||
mnLastSplitPos = nNewPos;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
|
||||||
|
|
||||||
void Splitter::StartDrag()
|
void Splitter::StartDrag()
|
||||||
{
|
{
|
||||||
if ( IsTracking() )
|
if ( IsTracking() )
|
||||||
|
Reference in New Issue
Block a user