[Libreoffice-commits] .: cui/source sfx2/inc sfx2/source sw/source unusedcode.easy

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Oct 27 07:42:54 PDT 2012


 cui/source/dialogs/insdlg.cxx         |    7 ---
 cui/source/inc/insdlg.hxx             |    1 
 sfx2/inc/sfx2/thumbnailview.hxx       |    9 ----
 sfx2/source/control/thumbnailview.cxx |   69 ----------------------------------
 sw/source/ui/inc/swvset.hxx           |    7 +--
 sw/source/ui/misc/insrule.cxx         |    6 --
 unusedcode.easy                       |   32 ++++++++++++---
 7 files changed, 28 insertions(+), 103 deletions(-)

New commits:
commit 6affa4be69aa31e27af9d50e9ab6bd740319c379
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 27 15:13:34 2012 +0100

    callcatcher: update list, stop hiding uncalled tests :-)
    
    Change-Id: I9bd81a9c5e85db4512a3e4768c9b87696c91b7bc

diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 9b0529e..de7e610 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -91,13 +91,6 @@ uno::Reference< io::XInputStream > InsertObjectDialog_Impl::GetIconIfIconified(
     return uno::Reference< io::XInputStream >();
 }
 
-InsertObjectDialog_Impl::InsertObjectDialog_Impl( Window * pParent, const ResId & rResId, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage )
- : ModalDialog( pParent, rResId )
- , m_xStorage( xStorage )
- , aCnt( m_xStorage )
-{
-}
-
 InsertObjectDialog_Impl::InsertObjectDialog_Impl(Window * pParent, const OString& rID,
     const OUString& rUIXMLDescription,
     const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage)
diff --git a/cui/source/inc/insdlg.hxx b/cui/source/inc/insdlg.hxx
index 1f9daae..37fe1e2 100644
--- a/cui/source/inc/insdlg.hxx
+++ b/cui/source/inc/insdlg.hxx
@@ -44,7 +44,6 @@ protected:
     const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& m_xStorage;
     comphelper::EmbeddedObjectContainer aCnt;
 
-    InsertObjectDialog_Impl( Window * pParent, const ResId & rResId, const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
     InsertObjectDialog_Impl(Window * pParent, const OString& rID,
         const OUString& rUIXMLDescription,
         const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage);
diff --git a/sfx2/inc/sfx2/thumbnailview.hxx b/sfx2/inc/sfx2/thumbnailview.hxx
index 12d2812..084b3d1 100644
--- a/sfx2/inc/sfx2/thumbnailview.hxx
+++ b/sfx2/inc/sfx2/thumbnailview.hxx
@@ -179,16 +179,10 @@ public:
 
     virtual ~ThumbnailView ();
 
-    void InsertItem( sal_uInt16 nItemId,
-                     const BitmapEx &rImage, const OUString &rStr,
-                     size_t nPos = THUMBNAILVIEW_APPEND );
-
     void RemoveItem( sal_uInt16 nItemId );
 
     void Clear();
 
-    size_t GetItemCount() const;
-
     size_t GetItemPos( sal_uInt16 nItemId ) const;
 
     sal_uInt16 GetItemId( size_t nPos ) const;
@@ -300,13 +294,10 @@ protected:
     SFX2_DLLPRIVATE void         ImplInitScrollBar();
     SFX2_DLLPRIVATE void         ImplDeleteItems();
     SFX2_DLLPRIVATE void         ImplDraw();
-    using Window::ImplScroll;
-    SFX2_DLLPRIVATE bool         ImplScroll( const Point& rPos );
     SFX2_DLLPRIVATE size_t       ImplGetItem( const Point& rPoint, bool bMove = false ) const;
     SFX2_DLLPRIVATE ThumbnailViewItem*    ImplGetItem( size_t nPos );
     SFX2_DLLPRIVATE sal_uInt16          ImplGetVisibleItemCount() const;
     SFX2_DLLPRIVATE ThumbnailViewItem*    ImplGetVisibleItem( sal_uInt16 nVisiblePos );
-    SFX2_DLLPRIVATE void         ImplInsertItem( ThumbnailViewItem *const pItem, const size_t nPos );
     SFX2_DLLPRIVATE void            ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue );
     SFX2_DLLPRIVATE bool         ImplHasAccessibleListeners();
     DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* );
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 6741b59..fd2d215 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -405,40 +405,6 @@ void ThumbnailView::CalculateItemPositions ()
     delete pDelScrBar;
 }
 
-bool ThumbnailView::ImplScroll( const Point& rPos )
-{
-    if ( !mbScroll || !maItemListRect.IsInside(rPos) )
-        return false;
-
-    const long nScrollOffset = (mnItemHeight <= 16) ? SCROLL_OFFSET/2 : SCROLL_OFFSET;
-    bool bScroll = false;
-
-    if ( rPos.Y() <= maItemListRect.Top()+nScrollOffset )
-    {
-        if ( mnFirstLine > 0 )
-        {
-            --mnFirstLine;
-            bScroll = true;
-        }
-    }
-    else if ( rPos.Y() >= maItemListRect.Bottom()-nScrollOffset )
-    {
-        if ( mnFirstLine < static_cast<sal_uInt16>(mnLines-mnVisLines) )
-        {
-            ++mnFirstLine;
-            bScroll = true;
-        }
-    }
-
-    if ( !bScroll )
-        return false;
-
-    if ( IsReallyVisible() && IsUpdateMode() )
-        Invalidate();
-
-    return true;
-}
-
 size_t ThumbnailView::ImplGetItem( const Point& rPos, bool bMove ) const
 {
     if ( !mbHasVisibleItems )
@@ -791,36 +757,6 @@ void ThumbnailView::DataChanged( const DataChangedEvent& rDCEvt )
     }
 }
 
-void ThumbnailView::InsertItem( sal_uInt16 nItemId, const BitmapEx& rImage,
-                           const OUString& rText, size_t nPos )
-{
-    ThumbnailViewItem* pItem = new ThumbnailViewItem( *this, this );
-    pItem->mnId     = nItemId;
-    pItem->maPreview1 = rImage;
-    pItem->maTitle   = rText;
-    pItem->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected));
-    ImplInsertItem( pItem, nPos );
-}
-
-void ThumbnailView::ImplInsertItem( ThumbnailViewItem *const pItem, const size_t nPos )
-{
-    assert(pItem->mnId); // "ItemId == 0"
-    assert(GetItemPos( pItem->mnId ) == THUMBNAILVIEW_ITEM_NOTFOUND); // ItemId already exists
-
-    if ( nPos < mItemList.size() ) {
-        ValueItemList::iterator it = mItemList.begin();
-        ::std::advance( it, nPos );
-        mItemList.insert( it, pItem );
-    } else {
-        mItemList.push_back( pItem );
-    }
-
-    CalculateItemPositions();
-
-    if ( IsReallyVisible() && IsUpdateMode() )
-        Invalidate();
-}
-
 void ThumbnailView::RemoveItem( sal_uInt16 nItemId )
 {
     size_t nPos = GetItemPos( nItemId );
@@ -863,11 +799,6 @@ void ThumbnailView::Clear()
         Invalidate();
 }
 
-size_t ThumbnailView::GetItemCount() const
-{
-    return mItemList.size();
-}
-
 size_t ThumbnailView::GetItemPos( sal_uInt16 nItemId ) const
 {
     for ( size_t i = 0, n = mItemList.size(); i < n; ++i ) {
diff --git a/sw/source/ui/inc/swvset.hxx b/sw/source/ui/inc/swvset.hxx
index 7bc919d..6320472 100644
--- a/sw/source/ui/inc/swvset.hxx
+++ b/sw/source/ui/inc/swvset.hxx
@@ -22,10 +22,9 @@
 
 class SwRulerValueSet : public SvxBmpNumValueSet
 {
-    public:
-        SwRulerValueSet(Window* pParent, const ResId& rResId);
-        SwRulerValueSet(Window* pParent, WinBits nWinStyle);
-        ~SwRulerValueSet();
+public:
+    SwRulerValueSet(Window* pParent, WinBits nWinStyle);
+    ~SwRulerValueSet();
     virtual void    UserDraw( const UserDrawEvent& rUDEvt );
 };
 #endif
diff --git a/sw/source/ui/misc/insrule.cxx b/sw/source/ui/misc/insrule.cxx
index 7b1b949..20a7af3 100644
--- a/sw/source/ui/misc/insrule.cxx
+++ b/sw/source/ui/misc/insrule.cxx
@@ -91,12 +91,6 @@ OUString SwInsertGrfRulerDlg::GetGraphicName() const
     return OUString();
 }
 
-SwRulerValueSet::SwRulerValueSet( Window* pParent, const ResId& rResId )
-    : SvxBmpNumValueSet(pParent, rResId)
-{
-    SetStyle(GetStyle() & ~WB_ITEMBORDER);
-}
-
 SwRulerValueSet::SwRulerValueSet(Window* pParent, WinBits nWinStyle)
     : SvxBmpNumValueSet(pParent, nWinStyle)
 {
diff --git a/unusedcode.easy b/unusedcode.easy
index 6c09c56..5c54e28 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1,24 +1,39 @@
 FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
+LanguageTag::overrideDataPath(rtl::OUString const&)
 RelatedMultipart::getIds()
 SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
-ScConditionalFormat::dumpInfo(rtl::OUStringBuffer&) const
+ScFiltersTest::testColorScaleODS()
+ScFiltersTest::testColorScaleXLSX()
 ScMenuFloatingWindow::getDoc()
 ScVbaFormat<ooo::vba::excel::XRange>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
 ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
 ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
 ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
-SvLBoxTreeList::Clone(SvListEntry*, unsigned long&) const
-SvLBoxTreeList::Prev(SvListEntry*, unsigned short*) const
 SvTreeEntryList::front()
 SvxAutoCorrect::DeleteText(String const&, unsigned short)
 TextEngine::GetLeftMargin() const
-ThumbnailView::GetItemCount() const
-ThumbnailView::ImplScroll(Point const&)
-ThumbnailView::InsertItem(unsigned short, BitmapEx const&, rtl::OUString const&, unsigned long)
 ThumbnailViewItemAcc::FireAccessibleEvent(short, com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)
 VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(Size const&, Fraction const&, Point const&, boost::shared_array<unsigned char> const&)
 Window::PostUserEvent(unsigned long&, unsigned long, void*)
 XclExpPivotCache::GetFieldAcc(rtl::OUString const&)
+apitest::XCellRangesQuery::testQueryFormulaCells()
+apitest::XDataPilotDescriptor::testGetHiddenFields()
+apitest::XDataPilotFieldGrouping::testCreateDateGroup()
+apitest::XElementAccess::testGetElementType()
+apitest::XElementAccess::testHasElements()
+apitest::XIndexAccess::XIndexAccess(int)
+apitest::XIndexAccess::testGetByIndex()
+apitest::XIndexAccess::testGetByIndexException()
+apitest::XIndexAccess::testGetCount()
+apitest::XNameContainer::XNameContainer()
+apitest::XNameReplace::testReplaceByName()
+apitest::XNamedRanges::XNamedRanges(rtl::OUString const&)
+apitest::XNamedRanges::testRemoveByName()
+apitest::XPropertySet::testAddPropertyChangeListener()
+apitest::XPropertySet::testAddVetoableChangeListener()
+apitest::XPropertySet::testRemovePropertyChangeListener()
+apitest::XPropertySet::testRemoveVetoableChangeListener()
+apitest::XSpreadsheetDocument::testGetSheets()
 binfilter::ImpSvtData::~ImpSvtData()
 binfilter::PCodeBuffConvertor<unsigned int, unsigned short>::GetBuffer()
 binfilter::PCodeBuffConvertor<unsigned int, unsigned short>::GetSize()
@@ -78,9 +93,12 @@ framework::OReadMenuDocumentHandler::getServiceFactory()
 jfw_plugin::VendorBase::createInstance()
 oox::drawingml::TextListStyle::dump() const
 oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
+sc_apitest::main()
 sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
 sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
 sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)
-sd::ViewShellBase::RegisterFactory(unsigned short)
+sd::ViewShellBase::CreateInstance(SfxViewFrame*, SfxViewShell*)
 std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector()
 std::__cxx1998::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~vector()
+test::BootstrapFixtureBase::getPathFromSolver(char const*)
+test::BootstrapFixtureBase::getURLFromSolver(char const*)


More information about the Libreoffice-commits mailing list