diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-04-28 01:12:32 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-04-28 01:19:57 +0900 |
commit | d50f02bec4a70bd26a518e4e76f4a876454ab937 (patch) | |
tree | acd806362a7d6e4d014fa82e05cd1575a39c16b4 /svx | |
parent | 2d9b6917808b76af76a85755b9f24ff4b49ee38b (diff) |
removed dead code
Change-Id: If67f8e981e034890e4fde2280f537fdfff6af0ff
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 54 | ||||
-rw-r--r-- | svx/source/gallery2/galmisc.cxx | 2 | ||||
-rw-r--r-- | svx/source/gengal/gengal.cxx | 29 | ||||
-rw-r--r-- | svx/source/items/grfitem.cxx | 18 | ||||
-rw-r--r-- | svx/source/items/viewlayoutitem.cxx | 11 | ||||
-rw-r--r-- | svx/source/items/zoomslideritem.cxx | 11 | ||||
-rw-r--r-- | svx/source/sdr/properties/properties.cxx | 14 |
7 files changed, 0 insertions, 139 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index d0bccebaeab6..10b940a7a980 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2941,60 +2941,6 @@ void DbGridControl::DeleteSelectedRows() if (!m_pSeekCursor) return; - -/* Application::EnterWait(); - Reference< XPropertySet > xSet = (XPropertySet*)xSeekCursor->queryInterface(XPropertySet::getSmartUik()); - - // wenn mehr als 25 Datensaetze geloescht werden, wird der Cache abgeschaltet - // da das loeschen ansonsten zu langsam wird - sal_uInt16 nCacheSize = 0; - if (GetSelectRowCount() > 25) - { - // CacheSize merken und Cache zuruecksetzen - nCacheSize = xSet->getPropertyValue(L"CacheSize").getUINT16(); - if (nCacheSize) - xSet->setPropertyValue(L"CacheSize", Any(sal_uInt16(0))); - } */ - - - /* - // mu� der Cache wiederhergestellt werden? - if (nCacheSize) - { - // Cache wieder einschalten - xSet->setPropertyValue(L"CacheSize", Any(sal_uInt16(nCacheSize))); - - // Browser neu einstellen - RecalcRows(GetTopRow(), GetVisibleRows(), sal_True); - - // aktuelle Zeile aktualisieren - SeekCursor(GetCurRow()); - if (IsAppendRow(m_nSeekPos)) - xDataCursor->addRecord(); - else - { - Any aBookmark = xSeekCursor->getBookmark(); - xDataCursor->moveToBookmark(aBookmark); - } - m_xCurrentRow = new DbGridRow(xDataCursor); - m_nCurrentPos = m_nSeekPos; - - // complett invalidieren - Invalidate(); - } - else - // Browser neu einstellen - RecalcRows(GetTopRow(), GetVisibleRows(), sal_True); - - // gibt es keine Selection mehr? - if (!GetSelectRowCount()) - ActivateCell(); - - m_aBar.InvalidateAll(); - Application::LeaveWait(); - - m_bUpdating = sal_False; -*/ } //------------------------------------------------------------------------------ diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx index b7262c1073ac..a618e1dafa51 100644 --- a/svx/source/gallery2/galmisc.cxx +++ b/svx/source/gallery2/galmisc.cxx @@ -439,8 +439,6 @@ GalleryProgress::GalleryProgress( GraphicFilter* pFilter ) : GalleryProgress::~GalleryProgress() { -// if( mpFilter ) -// mpFilter->SetUpdatePercentHdl( Link() ); } // ------------------------------------------------------------------------ diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index 0104b70d753d..36a7571c3a27 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -150,7 +150,6 @@ static void createTheme( rtl::OUString aThemeName, Graphic aGraphic; String aFormat; -#if 1 if ( ! pGalTheme->InsertURL( *aIter ) ) fprintf( stderr, "Failed to import '%s'\n", rtl::OUStringToOString(*aIter, RTL_TEXTENCODING_UTF8).getStr() ); @@ -159,34 +158,6 @@ static void createTheme( rtl::OUString aThemeName, rtl::OUStringToOString(*aIter, RTL_TEXTENCODING_UTF8).getStr(), sal::static_int_cast< unsigned long >( pGalTheme->GetObjectCount() ) ); - -#else // only loads BMPs - SvStream *pStream = ::utl::UcbStreamHelper::CreateStream( *aIter, STREAM_READ ); - if (!pStream) { - fprintf( stderr, "Can't find image to import\n" ); - disposeGallery( pGallery ); - exit (1); - } - *pStream >> aGraphic; - delete pStream; - if( aGraphic.GetType() == GRAPHIC_NONE ) - { - fprintf( stderr, "Failed to load '%s'\n", - rtl::OUStringToOString( *aIter, RTL_TEXTENCODING_UTF8 ).getStr() ); - continue; - } - - SgaObjectBmp aObject( aGraphic, *aIter, aFormat ); - if ( ! aObject.IsValid() ) { - fprintf( stderr, "Failed to create thumbnail for image\n" ); - continue; - } - - if ( ! pGalTheme->InsertObject( aObject ) ) { - fprintf( stderr, "Failed to insert file or URL\n" ); - continue; - } -#endif } pGallery->ReleaseTheme( pGalTheme, aListener ); diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx index a27a2b9229c7..d44e653a3296 100644 --- a/svx/source/items/grfitem.cxx +++ b/svx/source/items/grfitem.cxx @@ -67,24 +67,6 @@ int SvxGrfCrop::operator==( const SfxPoolItem& rAttr ) const nBottom == ((const SvxGrfCrop&)rAttr).GetBottom(); } -/* -SfxPoolItem* SvxGrfCrop::Clone( SfxItemPool* ) const -{ - return new SvxGrfCrop( *this ); -} -*/ - -/* -sal_uInt16 SvxGrfCrop::GetVersion( sal_uInt16 nFFVer ) const -{ - DBG_ASSERT( SOFFICE_FILEFORMAT_31==nFFVer || - SOFFICE_FILEFORMAT_40==nFFVer || - SOFFICE_FILEFORMAT_NOW==nFFVer, - "SvxGrfCrop: exist a new fileformat?" ); - return GRFCROP_VERSION_SWDEFAULT; -} -*/ - SfxPoolItem* SvxGrfCrop::Create( SvStream& rStrm, sal_uInt16 nVersion ) const { sal_Int32 top, left, right, bottom; diff --git a/svx/source/items/viewlayoutitem.cxx b/svx/source/items/viewlayoutitem.cxx index ef26ecb8aed1..ce80dafc80d5 100644 --- a/svx/source/items/viewlayoutitem.cxx +++ b/svx/source/items/viewlayoutitem.cxx @@ -78,13 +78,6 @@ SfxPoolItem* SvxViewLayoutItem::Clone( SfxItemPool * /*pPool*/ ) const SfxPoolItem* SvxViewLayoutItem::Create( SvStream& /*rStrm*/, sal_uInt16 /*nVersion*/ ) const { -/* sal_uInt16 nValue; - sal_uInt16 nValSet; - sal_Int8 nType; - rStrm >> nValue >> nValSet >> nType; - SvxZoomItem* pNew = new SvxZoomItem( (SvxZoomType)nType, nValue, Which() ); - pNew->SetValueSet( nValSet ); - return pNew;*/ return 0; } @@ -92,9 +85,6 @@ SfxPoolItem* SvxViewLayoutItem::Create( SvStream& /*rStrm*/, sal_uInt16 /*nVersi SvStream& SvxViewLayoutItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const { -/* rStrm << (sal_uInt16)GetValue() - << nValueSet - << (sal_Int8)eType;*/ return rStrm; } @@ -138,7 +128,6 @@ bool SvxViewLayoutItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nM bool SvxViewLayoutItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { -// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); nMemberId &= ~CONVERT_TWIPS; switch ( nMemberId ) { diff --git a/svx/source/items/zoomslideritem.cxx b/svx/source/items/zoomslideritem.cxx index 06c754006de5..963785969e46 100644 --- a/svx/source/items/zoomslideritem.cxx +++ b/svx/source/items/zoomslideritem.cxx @@ -75,13 +75,6 @@ SfxPoolItem* SvxZoomSliderItem::Clone( SfxItemPool * /*pPool*/ ) const SfxPoolItem* SvxZoomSliderItem::Create( SvStream& /*rStrm*/, sal_uInt16 /*nVersion*/ ) const { -/* sal_uInt16 nValue; - sal_uInt16 nValSet; - sal_Int8 nType; - rStrm >> nValue >> nValSet >> nType; - SvxZoomItem* pNew = new SvxZoomItem( (SvxZoomType)nType, nValue, Which() ); - pNew->SetValueSet( nValSet ); - return pNew;*/ return 0; } @@ -89,9 +82,6 @@ SfxPoolItem* SvxZoomSliderItem::Create( SvStream& /*rStrm*/, sal_uInt16 /*nVersi SvStream& SvxZoomSliderItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const { -/* rStrm << (sal_uInt16)GetValue() - << nValueSet - << (sal_Int8)eType;*/ return rStrm; } @@ -157,7 +147,6 @@ bool SvxZoomSliderItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nM bool SvxZoomSliderItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) { -// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); nMemberId &= ~CONVERT_TWIPS; switch ( nMemberId ) { diff --git a/svx/source/sdr/properties/properties.cxx b/svx/source/sdr/properties/properties.cxx index ce3b99968e65..4d4794fc81da 100644 --- a/svx/source/sdr/properties/properties.cxx +++ b/svx/source/sdr/properties/properties.cxx @@ -108,20 +108,6 @@ namespace sdr // Overload where an ItemSet is implemented. } - //void BaseProperties::SetItemAndBroadcast(const SfxPoolItem& rItem) - //{ - // ItemChangeBroadcaster aC(GetSdrObject()); - // SetObjectItem(rItem); - // BroadcastItemChange(aC); - //} - - //void BaseProperties::ClearItemAndBroadcast(const sal_uInt16 nWhich) - //{ - // ItemChangeBroadcaster aC(GetSdrObject()); - // ClearObjectItem(nWhich); - // BroadcastItemChange(aC); - //} - void BaseProperties::SetMergedItemSetAndBroadcast(const SfxItemSet& rSet, sal_Bool bClearAllItems) { ItemChangeBroadcaster aC(GetSdrObject()); |