[Libreoffice] Removed some commented out code in calc
There you go! Hope it works for you. Timo H. From 8da85e6725a0be25617fa326fed7c92723867fcf Mon Sep 17 00:00:00 2001 From: Timo Heino Date: Fri, 10 Dec 2010 16:04:41 +0200 Subject: [PATCH] Removed commented code Signed-off-by: Timo Heino --- chart2/source/model/inc/BaseCoordinateSystem.hxx | 22 -- chart2/source/model/inc/ChartTypeManager.hxx |1 - chart2/source/model/inc/Diagram.hxx |9 - 3 files changed, 0 insertions(+), 32 deletions(-) diff --git a/chart2/source/model/inc/BaseCoordinateSystem.hxx b/chart2/source/model/inc/BaseCoordinateSystem.hxx index 6b7584c..2cb9d9d 100644 --- a/chart2/source/model/inc/BaseCoordinateSystem.hxx +++ b/chart2/source/model/inc/BaseCoordinateSystem.hxx @@ -92,12 +92,6 @@ protected: // XCoordinateSystem virtual ::sal_Int32 SAL_CALL getDimension() throw (::com::sun::star::uno::RuntimeException); -// not implemented -// virtual ::rtl::OUString SAL_CALL getCoordinateSystemType() -// throw (::com::sun::star::uno::RuntimeException); -// not implemented -// virtual ::rtl::OUString SAL_CALL getViewServiceName() -// throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setAxisByDimension( ::sal_Int32 nDimension, const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XAxis >& xAxis, @@ -128,22 +122,6 @@ protected: throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); -// XCloneable -// not implemented -// virtual ::com::sun::star::uno::Reference< -// ::com::sun::star::util::XCloneable > SAL_CALL createClone() -// throw (::com::sun::star::uno::RuntimeException); - -// XServiceInfo -// not implemented -// virtual ::rtl::OUString SAL_CALL getImplementationName() -// throw (::com::sun::star::uno::RuntimeException); -// virtual ::sal_Bool SAL_CALL supportsService( -// const ::rtl::OUString& ServiceName ) -// throw (::com::sun::star::uno::RuntimeException); -// virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() -// throw (::com::sun::star::uno::RuntimeException); - // XModifyBroadcaster virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) diff --git a/chart2/source/model/inc/ChartTypeManager.hxx b/chart2/source/model/inc/ChartTypeManager.hxx index 1cc8794..2a3a449 100644 --- a/chart2/source/model/inc/ChartTypeManager.hxx +++ b/chart2/source/model/inc/ChartTypeManager.hxx @@ -44,7 +44,6 @@ namespace chart class ChartTypeManager : public ::cppu::WeakImplHelper2< ::com::sun::star::lang::XMultiServiceFactory, -// ::com::sun::star::lang::XMultiComponentFactory, ::com::sun::star::chart2::XChartTypeManager > { public: diff --git a/chart2/source/model/inc/Diagram.hxx b/chart2/source/model/inc/Diagram.hxx index 3b9a077..c243a97 100644 --- a/chart2/source/model/inc/Diagram.hxx +++ b/chart2/source/model/inc/Diagram.hxx @@ -110,16 +110,7 @@ protected: virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const; -// virtual sal_Bool SAL_CALL convertFastPropertyValue -// ( ::com::sun::star::uno::Any & rConvertedValue, -// ::com::sun::star::uno::Any & rOldValue, -// sal_Int32 nHandle, -// const ::com::sun::star::uno::Any& rValue ) -// throw (::com::sun::star::lang::IllegalArgumentException); - // XDiagram -// virtual ::rtl::OUString SAL_CALL getChartTypeTemplateServiceName() -// throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getWall() throw (::com::sun::star::uno::RuntimeException); -- 1.7.1 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] Removed some commented out code
Check attachment and comments please. (so i know can i search more these) From 382e3715abb3f8ee718192f6974a50b862b2a1f0 Mon Sep 17 00:00:00 2001 From: Timo Heino Date: Mon, 22 Nov 2010 18:32:45 +0200 Subject: [PATCH] Removed commented out code Removed code that was commented out from some files inside calc/chart2/source/controller/accessibility/ folder. Signed-off-by: Timo Heino --- .../controller/accessibility/AccessibleBase.cxx|1 - .../accessibility/AccessibleChartElement.cxx | 31 -- .../accessibility/AccessibleChartView.cxx |3 - .../accessibility/ChartElementFactory.cxx | 64 4 files changed, 0 insertions(+), 99 deletions(-) diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index 2b7eaec..1bc5425 100644 --- a/chart2/source/controller/accessibility/AccessibleBase.cxx +++ b/chart2/source/controller/accessibility/AccessibleBase.cxx @@ -779,7 +779,6 @@ awt::Rectangle SAL_CALL AccessibleBase::getBounds() if( xParent.is() ) aParentLocOnScreen = xParent->getLocationOnScreen(); -// aOffset = aParentLocOnScreen - GetUpperLeftOnScreen() awt::Point aULOnScreen = GetUpperLeftOnScreen(); awt::Point aOffset( aParentLocOnScreen.X - aULOnScreen.X, aParentLocOnScreen.Y - aULOnScreen.Y ); diff --git a/chart2/source/controller/accessibility/AccessibleChartElement.cxx b/chart2/source/controller/accessibility/AccessibleChartElement.cxx index dd00d7e..f0cee9c 100644 --- a/chart2/source/controller/accessibility/AccessibleChartElement.cxx +++ b/chart2/source/controller/accessibility/AccessibleChartElement.cxx @@ -130,30 +130,6 @@ void AccessibleChartElement::InitTextEdit() ASSERT_EXCEPTION( ex ); } } -// OSL_ASSERT( m_pTextHelper == 0 ); - -// // /-- solar -// SolarMutexGuard aSolarGuard; -// Window* pWindow( VCLUnoHelper::GetWindow( GetInfo().m_xWindow )); -// if( pWindow ) -// { -// // we need ChartController::m_pDrawViewWrapper here -// SdrView * pView = 0; -// if( pView ) -// { -// SdrObject * pTextObj = m_pDrawViewWrapper->getTextEditObject(); -// if( pTextObj ) -// { -// SvxEditSource * pEditSource = new SvxEditSource( pTextObj, pView, pWindow ); -// m_pTextHelper = new ::accessibility::AccessibleTextHelper( -// ::std::auto_ptr< SvxEditSource >( pEditSource )); -// if( m_pTextHelper ) -// m_pTextHelper->SetEventSource( this ); -// } -// } -// } -// // \-- solar -// } // // @@ -169,14 +145,7 @@ Reference< XAccessible > AccessibleChartElement::ImplGetAccessibleChildById( sal Reference< XAccessible > xResult; if( m_bHasText ) -{ xResult.set( m_xTextHelper->getAccessibleChild( i )); -// /-- solar -// SolarMutexGuard aSolarGuard; -// if( m_pTextHelper ) -// xResult.set( m_pTextHelper->GetChild( i ) ); -// \-- solar -} else xResult.set( AccessibleBase::ImplGetAccessibleChildById( i )); diff --git a/chart2/source/controller/accessibility/AccessibleChartView.cxx b/chart2/source/controller/accessibility/AccessibleChartView.cxx index b816204..1b3280f 100644 --- a/chart2/source/controller/accessibility/AccessibleChartView.cxx +++ b/chart2/source/controller/accessibility/AccessibleChartView.cxx @@ -93,9 +93,6 @@ awt::Rectangle AccessibleChartView::GetWindowPosSize() const if( ! xWindow.is()) return awt::Rectangle(); -// this should do, but it doesn't => HACK -// return xWindow->getPosSize(); - awt::Rectangle aBBox( xWindow->getPosSize() ); Window* pWindow( VCLUnoHelper::GetWindow( GetInfo().m_xWindow )); diff --git a/chart2/source/controller/accessibility/ChartElementFactory.cxx b/chart2/source/controller/accessibility/ChartElementFactory.cxx index c630ff9..3fff9b7 100644 --- a/chart2/source/controller/accessibility/ChartElementFactory.cxx +++ b/chart2/source/controller/accessibility/ChartElementFactory.cxx @@ -77,70 +77,6 @@ AccessibleBase* ChartElementFactory::CreateChartElement( const AccessibleElement } return 0; - -/* -sal_uInt16 nObjId = rId.GetObjectId(); -switch( nObjId ) -{ -case CHOBJID_LEGEND: -return new AccLegend( pParent ); -case AccLegendEntry::ObjectId: -return new AccLegendEntry( pParent, rId.GetIndex1() ); - -case CHOBJID_TITLE_MAIN: -return new AccTitle( pParent, Title::MAIN ); -case CHOBJID_TITLE_SUB: -return new AccTitle( pParent, Title::SUB ); -case CHOBJID_DIAGRAM_TITLE_X_AXIS: -return new AccTitle( pP