From 5c9dea496b656d81c07290e82bbc36a3f8c55801 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 15 Aug 2011 08:06:32 +0200 Subject: callcatcher: Remove unused ComboBox-related methods. --- vcl/inc/vcl/combobox.hxx | 11 -------- vcl/source/control/combobox.cxx | 60 ----------------------------------------- 2 files changed, 71 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/vcl/combobox.hxx b/vcl/inc/vcl/combobox.hxx index 7e1ea38df798..98f9ea30b928 100644 --- a/vcl/inc/vcl/combobox.hxx +++ b/vcl/inc/vcl/combobox.hxx @@ -111,9 +111,6 @@ public: { if( IsDropDownBox() ) SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); } Rectangle GetDropDownPosSizePixel() const; - Rectangle GetListPosSizePixel() const; - // returns empty rectangle in DropDown mode, - // else it returns the PosSize of the ListBox void SetDropDownLineCount( sal_uInt16 nLines ); sal_uInt16 GetDropDownLineCount() const; @@ -122,7 +119,6 @@ public: sal_Bool IsAutoSizeEnabled() const { return mbDDAutoSize; } void EnableDDAutoWidth( sal_Bool b ); - sal_Bool IsDDAutoWidthEnabled() const; void SetText( const XubString& rStr ); void SetText( const XubString& rStr, const Selection& rNewSelection ); @@ -136,7 +132,6 @@ public: void Clear(); sal_uInt16 GetEntryPos( const XubString& rStr ) const; - sal_uInt16 GetEntryPos( const void* pData ) const; Image GetEntryImage( sal_uInt16 nPos ) const; XubString GetEntry( sal_uInt16 nPos ) const; sal_uInt16 GetEntryCount() const; @@ -148,16 +143,12 @@ public: long CalcWindowSizePixel( sal_uInt16 nLines ) const; void SetUserItemSize( const Size& rSz ); - const Size& GetUserItemSize() const; - void EnableUserDraw( sal_Bool bUserDraw ); - sal_Bool IsUserDrawEnabled() const; void DrawEntry( const UserDrawEvent& rEvt, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos = sal_False ); void SetBorderStyle( sal_uInt16 nBorderStyle ); void SetSeparatorPos( sal_uInt16 n = LISTBOX_ENTRY_NOTFOUND ); - sal_uInt16 GetSeparatorPos() const; void EnableAutocomplete( sal_Bool bEnable, sal_Bool bMatchCase = sal_False ); sal_Bool IsAutocompleteEnabled() const; @@ -188,11 +179,9 @@ public: void* GetEntryData( sal_uInt16 nPos ) const; void SetTopEntry( sal_uInt16 nPos ); - void ShowProminentEntry( sal_uInt16 nPos ); sal_uInt16 GetTopEntry() const; void SetProminentEntryType( ProminentEntry eType ); - ProminentEntry GetProminentEntryType() const; sal_uInt16 GetDisplayLineCount() const; diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index a4a952341231..0f551bf5c648 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -569,14 +569,6 @@ void ComboBox::EnableDDAutoWidth( sal_Bool b ) // ----------------------------------------------------------------------- -sal_Bool ComboBox::IsDDAutoWidthEnabled() const -{ - return mpFloatWin ? mpFloatWin->IsAutoWidth() : sal_False; -} - - -// ----------------------------------------------------------------------- - void ComboBox::SetDropDownLineCount( sal_uInt16 nLines ) { if ( mpFloatWin ) @@ -1032,16 +1024,6 @@ sal_uInt16 ComboBox::GetEntryPos( const XubString& rStr ) const // ----------------------------------------------------------------------- -sal_uInt16 ComboBox::GetEntryPos( const void* pData ) const -{ - sal_uInt16 nPos = mpImplLB->GetEntryList()->FindEntry( pData ); - if ( nPos != LISTBOX_ENTRY_NOTFOUND ) - nPos = sal::static_int_cast(nPos - mpImplLB->GetEntryList()->GetMRUCount()); - return nPos; -} - -// ----------------------------------------------------------------------- - XubString ComboBox::GetEntry( sal_uInt16 nPos ) const { return mpImplLB->GetEntryList()->GetEntryText( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); @@ -1338,13 +1320,6 @@ void ComboBox::SetUserItemSize( const Size& rSz ) // ----------------------------------------------------------------------- -const Size& ComboBox::GetUserItemSize() const -{ - return mpImplLB->GetMainWindow()->GetUserItemSize(); -} - -// ----------------------------------------------------------------------- - void ComboBox::EnableUserDraw( sal_Bool bUserDraw ) { mpImplLB->GetMainWindow()->EnableUserDraw( bUserDraw ); @@ -1352,13 +1327,6 @@ void ComboBox::EnableUserDraw( sal_Bool bUserDraw ) // ----------------------------------------------------------------------- -sal_Bool ComboBox::IsUserDrawEnabled() const -{ - return mpImplLB->GetMainWindow()->IsUserDrawEnabled(); -} - -// ----------------------------------------------------------------------- - void ComboBox::DrawEntry( const UserDrawEvent& rEvt, sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos ) { DBG_ASSERT( rEvt.GetDevice() == mpImplLB->GetMainWindow(), "DrawEntry?!" ); @@ -1374,13 +1342,6 @@ void ComboBox::SetSeparatorPos( sal_uInt16 n ) // ----------------------------------------------------------------------- -sal_uInt16 ComboBox::GetSeparatorPos() const -{ - return mpImplLB->GetSeparatorPos(); -} - -// ----------------------------------------------------------------------- - void ComboBox::SetMRUEntries( const XubString& rEntries, xub_Unicode cSep ) { mpImplLB->SetMRUEntries( rEntries, cSep ); @@ -1437,13 +1398,6 @@ void ComboBox::SetTopEntry( sal_uInt16 nPos ) // ----------------------------------------------------------------------- -void ComboBox::ShowProminentEntry( sal_uInt16 nPos ) -{ - mpImplLB->ShowProminentEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); -} - -// ----------------------------------------------------------------------- - sal_uInt16 ComboBox::GetTopEntry() const { sal_uInt16 nPos = GetEntryCount() ? mpImplLB->GetTopEntry() : LISTBOX_ENTRY_NOTFOUND; @@ -1461,13 +1415,6 @@ void ComboBox::SetProminentEntryType( ProminentEntry eType ) // ----------------------------------------------------------------------- -ProminentEntry ComboBox::GetProminentEntryType() const -{ - return mpImplLB->GetProminentEntryType(); -} - -// ----------------------------------------------------------------------- - Rectangle ComboBox::GetDropDownPosSizePixel() const { return mpFloatWin ? mpFloatWin->GetWindowExtentsRelative( const_cast(this) ) : Rectangle(); @@ -1475,13 +1422,6 @@ Rectangle ComboBox::GetDropDownPosSizePixel() const // ----------------------------------------------------------------------- -Rectangle ComboBox::GetListPosSizePixel() const -{ - return mpFloatWin ? Rectangle() : mpImplLB->GetMainWindow()->GetWindowExtentsRelative( const_cast(this) ); -} - -// ----------------------------------------------------------------------- - const Wallpaper& ComboBox::GetDisplayBackground() const { if( ! mpSubEdit->IsBackground() ) -- cgit