diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 22:26:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:05 +0100 |
commit | 012072ebd70a2180918864818f522944e46adf07 (patch) | |
tree | ba33e6c949b52aa7f61ef410f809c817fea5c328 /svx/source/dialog | |
parent | eb71f3d572b6e1c24a072bd2fcd9c29e08113d32 (diff) |
valgrind: various unused code
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index c9e3373f08ed..1d6404c03dcc 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -1031,14 +1031,6 @@ HatchingLB::HatchingLB( Window* pParent, ResId Id, sal_Bool bUserDraw /*= sal_Tr EnableUserDraw( mbUserDraw ); } -HatchingLB::HatchingLB( Window* pParent, WinBits aWB, sal_Bool bUserDraw /*= sal_True*/ ) -: ListBox( pParent, aWB ), - mpList ( NULL ), - mbUserDraw( bUserDraw ) -{ - EnableUserDraw( mbUserDraw ); -} - void HatchingLB::Fill( const XHatchList* pList ) { mpList = (XHatchList*)pList; @@ -1128,30 +1120,6 @@ void HatchingLB::Modify( XHatchEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp ) InsertEntry( pEntry->GetName(), nPos ); } -/************************************************************************/ - -void HatchingLB::SelectEntryByList( const XHatchList* pList, const String& rStr, - const XHatch& rHatch, sal_uInt16 nDist ) -{ - long nCount = pList->Count(); - XHatchEntry* pEntry; - sal_Bool bFound = sal_False; - String aStr; - - long i; - for( i = 0; i < nCount && !bFound; i++ ) - { - pEntry = pList->GetHatch( i ); - - aStr = pEntry->GetName(); - - if( rStr == aStr && rHatch == pEntry->GetHatch() ) - bFound = sal_True; - } - if( bFound ) - SelectEntryPos( (sal_uInt16) ( i - 1 + nDist ) ); -} - // Fills the listbox (provisional) with strings void FillAttrLB::Fill( const XHatchList* pList ) @@ -1477,41 +1445,8 @@ void BitmapLB::Modify( XBitmapEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp ) InsertEntry( pEntry->GetName() ); } -/************************************************************************/ - -void BitmapLB::SelectEntryByList( const XBitmapList* pList, const String& rStr, - const Bitmap& ) -{ - long nCount = pList->Count(); - XBitmapEntry* pEntry; - sal_Bool bFound = sal_False; - - long i; - for( i = 0; i < nCount && !bFound; i++ ) - { - pEntry = pList->GetBitmap( i ); - - String aStr = pEntry->GetName(); - - if( rStr == aStr ) - { - bFound = sal_True; - } - } - if( bFound ) - SelectEntryPos( (sal_uInt16) ( i - 1 ) ); -} - // FillAttrLB Constructor -FillAttrLB::FillAttrLB( Window* pParent, ResId Id ) : - ColorListBox( pParent, Id ) -{ - aVD.SetOutputSizePixel( Size( 32, 16 ) ); -} - -/************************************************************************/ - FillAttrLB::FillAttrLB( Window* pParent, WinBits aWB ) : ColorListBox( pParent, aWB ) { @@ -1560,31 +1495,6 @@ void FillAttrLB::Fill( const XBitmapList* pList ) ListBox::SetUpdateMode( sal_True ); } -/************************************************************************/ - -void FillAttrLB::SelectEntryByList( const XBitmapList* pList, const String& rStr, - const Bitmap& /*rBmp*/) -{ - long nCount = pList->Count(); - XBitmapEntry* pEntry; - sal_Bool bFound = sal_False; - - long i; - for( i = 0; i < nCount && !bFound; i++ ) - { - pEntry = pList->GetBitmap( i ); - - String aStr = pEntry->GetName(); - - if( rStr == aStr ) - { - bFound = sal_True; - } - } - if( bFound ) - SelectEntryPos( (sal_uInt16) ( i - 1 ) ); -} - // Fills the listbox (provisional) with strings void FillTypeLB::Fill() @@ -1667,32 +1577,6 @@ void LineLB::Modify( XDashEntry* pEntry, sal_uInt16 nPos, Bitmap* pBmp ) InsertEntry( pEntry->GetName(), nPos ); } -/************************************************************************/ - -void LineLB::SelectEntryByList( const XDashList* pList, const String& rStr, - const XDash& rDash, sal_uInt16 nDist ) -{ - long nCount = pList->Count(); - XDashEntry* pEntry; - sal_Bool bFound = sal_False; - String aStr; - XDash aDash; - - long i; - for( i = 0; i < nCount && !bFound; i++ ) - { - pEntry = pList->GetDash( i ); - - aStr = pEntry->GetName(); - aDash = pEntry->GetDash(); - - if( rStr == aStr && rDash == aDash ) - bFound = sal_True; - } - if( bFound ) - SelectEntryPos( (sal_uInt16) ( i - 1 + nDist ) ); -} - // Fills the listbox (provisional) with strings void LineEndLB::Fill( const XLineEndList* pList, sal_Bool bStart ) |