diff options
-rw-r--r-- | unusedcode.easy | 12 | ||||
-rw-r--r-- | vcl/inc/vcl/lstbox.hxx | 16 | ||||
-rw-r--r-- | vcl/source/control/lstbox.cxx | 82 |
3 files changed, 1 insertions, 109 deletions
diff --git a/unusedcode.easy b/unusedcode.easy index 9a28303db316..e90e24c0014a 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -379,18 +379,6 @@ LinguMgr::UpdateAll() LinguOptions::GetValue(com::sun::star::uno::Any&, int) const LinguOptions::SetValue(com::sun::star::uno::Any&, com::sun::star::uno::Any const&, int) LinkStructArr::DeleteAndDestroy(unsigned short, unsigned short) -ListBox::CalcWindowSizePixel(unsigned short) const -ListBox::GetMRUEntries(unsigned short) const -ListBox::GetMaxMRUCount() const -ListBox::GetProminentEntryType() const -ListBox::GetUserItemSize() const -ListBox::IsDDAutoWidthEnabled() const -ListBox::IsUserDrawEnabled() const -ListBox::SetMRUEntries(String const&, unsigned short) -ListBox::SetMaxMRUCount(unsigned short) -ListBox::SetProminentEntryType(ProminentEntry) -ListBox::SetSeparatorPos() -ListBox::ShowProminentEntry(unsigned short) LngSvcMgr::RemoveLngSvcEvtBroadcaster(com::sun::star::uno::Reference<com::sun::star::linguistic2::XLinguServiceEventBroadcaster> const&) LocaleDataWrapper::getCollatorImplementations() const LocaleDataWrapper::getTransliterations() const diff --git a/vcl/inc/vcl/lstbox.hxx b/vcl/inc/vcl/lstbox.hxx index cc1d0615cb7b..526cbf46b62c 100644 --- a/vcl/inc/vcl/lstbox.hxx +++ b/vcl/inc/vcl/lstbox.hxx @@ -117,7 +117,6 @@ public: sal_Bool IsAutoSizeEnabled() const { return mbDDAutoSize; } void EnableDDAutoWidth( sal_Bool b ); - sal_Bool IsDDAutoWidthEnabled() const; virtual sal_uInt16 InsertEntry( const XubString& rStr, sal_uInt16 nPos = LISTBOX_APPEND ); virtual sal_uInt16 InsertEntry( const Image& rImage, sal_uInt16 nPos = LISTBOX_APPEND ); @@ -165,18 +164,13 @@ public: long GetEntryFlags( sal_uInt16 nPos ) const; void SetTopEntry( sal_uInt16 nPos ); - void ShowProminentEntry( sal_uInt16 nPos ); void SetTopEntryStr( const XubString& rStr ); sal_uInt16 GetTopEntry() const; - void SetProminentEntryType( ProminentEntry eType ); - ProminentEntry GetProminentEntryType() const; - void SaveValue() { mnSaveValue = GetSelectEntryPos(); } sal_uInt16 GetSavedValue() const { return mnSaveValue; } - void SetSeparatorPos( sal_uInt16 n ); - void SetSeparatorPos(); + void SetSeparatorPos( sal_uInt16 n = LISTBOX_ENTRY_NOTFOUND ); sal_uInt16 GetSeparatorPos() const; sal_Bool IsTravelSelect() const; @@ -190,14 +184,11 @@ public: void SetReadOnly( sal_Bool bReadOnly = sal_True ); sal_Bool IsReadOnly() const; - long CalcWindowSizePixel( sal_uInt16 nLines ) const; Rectangle GetBoundingRectangle( sal_uInt16 nItem ) 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 ); @@ -212,11 +203,6 @@ public: Size CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const; void GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines ) const; - void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep = ';' ); - XubString GetMRUEntries( xub_Unicode cSep = ';' ) const; - void SetMaxMRUCount( sal_uInt16 n ); - sal_uInt16 GetMaxMRUCount() const; - sal_uInt16 GetDisplayLineCount() const; void EnableMirroring(); diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index 9b31913756e4..59dddad44b24 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -611,13 +611,6 @@ void ListBox::EnableDDAutoWidth( sal_Bool b ) // ----------------------------------------------------------------------- -sal_Bool ListBox::IsDDAutoWidthEnabled() const -{ - return mpFloatWin ? mpFloatWin->IsAutoWidth() : sal_False; -} - -// ----------------------------------------------------------------------- - void ListBox::SetDropDownLineCount( sal_uInt16 nLines ) { mnLineCount = nLines; @@ -1235,13 +1228,6 @@ void ListBox::SetTopEntry( sal_uInt16 nPos ) // ----------------------------------------------------------------------- -void ListBox::ShowProminentEntry( sal_uInt16 nPos ) -{ - mpImplLB->ShowProminentEntry( nPos + mpImplLB->GetEntryList()->GetMRUCount() ); -} - -// ----------------------------------------------------------------------- - sal_uInt16 ListBox::GetTopEntry() const { sal_uInt16 nPos = GetEntryCount() ? mpImplLB->GetTopEntry() : LISTBOX_ENTRY_NOTFOUND; @@ -1252,20 +1238,6 @@ sal_uInt16 ListBox::GetTopEntry() const // ----------------------------------------------------------------------- -void ListBox::SetProminentEntryType( ProminentEntry eType ) -{ - mpImplLB->SetProminentEntryType( eType ); -} - -// ----------------------------------------------------------------------- - -ProminentEntry ListBox::GetProminentEntryType() const -{ - return mpImplLB->GetProminentEntryType(); -} - -// ----------------------------------------------------------------------- - sal_Bool ListBox::IsTravelSelect() const { return mpImplLB->IsTravelSelect(); @@ -1280,11 +1252,6 @@ sal_Bool ListBox::IsInDropDown() const // ----------------------------------------------------------------------- -long ListBox::CalcWindowSizePixel( sal_uInt16 nLines ) const -{ - return mpImplLB->GetEntryHeight() * nLines; -} - Rectangle ListBox::GetBoundingRectangle( sal_uInt16 nItem ) const { Rectangle aRect = mpImplLB->GetMainWindow()->GetBoundingRectangle( nItem ); @@ -1509,13 +1476,6 @@ void ListBox::SetUserItemSize( const Size& rSz ) // ----------------------------------------------------------------------- -const Size& ListBox::GetUserItemSize() const -{ - return mpImplLB->GetMainWindow()->GetUserItemSize(); -} - -// ----------------------------------------------------------------------- - void ListBox::EnableUserDraw( sal_Bool bUserDraw ) { mpImplLB->GetMainWindow()->EnableUserDraw( bUserDraw ); @@ -1525,13 +1485,6 @@ void ListBox::EnableUserDraw( sal_Bool bUserDraw ) // ----------------------------------------------------------------------- -sal_Bool ListBox::IsUserDrawEnabled() const -{ - return mpImplLB->GetMainWindow()->IsUserDrawEnabled(); -} - -// ----------------------------------------------------------------------- - void ListBox::SetReadOnly( sal_Bool bReadOnly ) { if ( mpImplLB->IsReadOnly() != bReadOnly ) @@ -1557,13 +1510,6 @@ void ListBox::SetSeparatorPos( sal_uInt16 n ) // ----------------------------------------------------------------------- -void ListBox::SetSeparatorPos() -{ - mpImplLB->SetSeparatorPos( LISTBOX_ENTRY_NOTFOUND ); -} - -// ----------------------------------------------------------------------- - sal_uInt16 ListBox::GetSeparatorPos() const { return mpImplLB->GetSeparatorPos(); @@ -1571,34 +1517,6 @@ sal_uInt16 ListBox::GetSeparatorPos() const // ----------------------------------------------------------------------- -void ListBox::SetMRUEntries( const XubString& rEntries, xub_Unicode cSep ) -{ - mpImplLB->SetMRUEntries( rEntries, cSep ); -} - -// ----------------------------------------------------------------------- - -XubString ListBox::GetMRUEntries( xub_Unicode cSep ) const -{ - return mpImplLB->GetMRUEntries( cSep ); -} - -// ----------------------------------------------------------------------- - -void ListBox::SetMaxMRUCount( sal_uInt16 n ) -{ - mpImplLB->SetMaxMRUCount( n ); -} - -// ----------------------------------------------------------------------- - -sal_uInt16 ListBox::GetMaxMRUCount() const -{ - return mpImplLB->GetMaxMRUCount(); -} - -// ----------------------------------------------------------------------- - sal_uInt16 ListBox::GetDisplayLineCount() const { return mpImplLB->GetDisplayLineCount(); |