summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-05 23:11:48 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-06 17:38:50 +0100
commit9fb2730dc54926e054a85358bcfa03e35b37e94b (patch)
tree1523256f23ca7b40887d981b4e1c9a09917e9691
parent95909391a8b0232d10bef090f85c1b69352ad440 (diff)
Remove dead code
-rw-r--r--chart2/workbench/addin/sampleaddin.cxx24
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx56
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx48
3 files changed, 0 insertions, 128 deletions
diff --git a/chart2/workbench/addin/sampleaddin.cxx b/chart2/workbench/addin/sampleaddin.cxx
index 9491ae20d236..17c157481a85 100644
--- a/chart2/workbench/addin/sampleaddin.cxx
+++ b/chart2/workbench/addin/sampleaddin.cxx
@@ -388,30 +388,6 @@ void SAL_CALL SampleAddIn::refresh() throw( uno::RuntimeException )
}
}
}
-
- // set axis scale to 200
-// uno::Reference< beans::XPropertySet > xXAxis( getXAxis(), uno::UNO_QUERY );
-// if( xXAxis.is())
-// {
-// uno::Any aAny;
-// aAny <<= (sal_Bool)(sal_False);
-// xXAxis->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "AutoStepMain" )),
-// aAny );
-// aAny <<= (double)(200.0);
-// xXAxis->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StepMain" )),
-// aAny );
-// }
-
-// try setting symbols
-// uno::Reference< beans::XPropertySet > xProp = getDataRowProperties( 0 );
-// if( xProp.is())
-// {
-// uno::Any aAny;
-// aAny <<= (sal_Int32)(-1);
-// xProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "SymbolType" )), aAny );
-// aAny <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "http://mib-1168/www/images/go.gif" ));
-// xProp->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "SymbolBitmapURL" )), aAny );
-// }
}
void SAL_CALL SampleAddIn::addRefreshListener( const uno::Reference< util::XRefreshListener >& )
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index d9a01798a4c3..d8d8ca3d3616 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -240,8 +240,6 @@ uno::Sequence< rtl::OUString > SAL_CALL ScXMLOOoExport_getSupportedServiceNames(
uno::Reference< uno::XInterface > SAL_CALL ScXMLOOoExport_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception )
{
- // #110680#
- // return (cppu::OWeakObject*)new ScXMLExport(EXPORT_ALL);
return (cppu::OWeakObject*)new ScXMLExport( rSMgr, EXPORT_ALL );
}
@@ -259,8 +257,6 @@ uno::Sequence< rtl::OUString > SAL_CALL ScXMLOOoExport_Meta_getSupportedServiceN
uno::Reference< uno::XInterface > SAL_CALL ScXMLOOoExport_Meta_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception )
{
- // #110680#
- // return (cppu::OWeakObject*)new ScXMLExport(EXPORT_META);
return (cppu::OWeakObject*)new ScXMLExport( rSMgr, EXPORT_META );
}
@@ -278,8 +274,6 @@ uno::Sequence< rtl::OUString > SAL_CALL ScXMLOOoExport_Styles_getSupportedServic
uno::Reference< uno::XInterface > SAL_CALL ScXMLOOoExport_Styles_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception )
{
- // #110680#
- // return (cppu::OWeakObject*)new ScXMLExport(EXPORT_STYLES|EXPORT_MASTERSTYLES|EXPORT_AUTOSTYLES|EXPORT_FONTDECLS);
return (cppu::OWeakObject*)new ScXMLExport( rSMgr, EXPORT_STYLES|EXPORT_MASTERSTYLES|EXPORT_AUTOSTYLES|EXPORT_FONTDECLS);
}
@@ -297,8 +291,6 @@ uno::Sequence< rtl::OUString > SAL_CALL ScXMLOOoExport_Content_getSupportedServi
uno::Reference< uno::XInterface > SAL_CALL ScXMLOOoExport_Content_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception )
{
- // #110680#
- // return (cppu::OWeakObject*)new ScXMLExport(EXPORT_AUTOSTYLES|EXPORT_CONTENT|EXPORT_SCRIPTS|EXPORT_FONTDECLS);
return (cppu::OWeakObject*)new ScXMLExport( rSMgr, EXPORT_AUTOSTYLES|EXPORT_CONTENT|EXPORT_SCRIPTS|EXPORT_FONTDECLS);
}
@@ -316,8 +308,6 @@ uno::Sequence< rtl::OUString > SAL_CALL ScXMLOOoExport_Settings_getSupportedServ
uno::Reference< uno::XInterface > SAL_CALL ScXMLOOoExport_Settings_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception )
{
- // #110680#
- // return (cppu::OWeakObject*)new ScXMLExport(EXPORT_SETTINGS);
return (cppu::OWeakObject*)new ScXMLExport( rSMgr, EXPORT_SETTINGS );
}
@@ -1929,7 +1919,6 @@ void ScXMLExport::_ExportStyles( sal_Bool bUsed )
sal_Int32 nShapesCount(0);
sal_Int32 nCellCount(pDoc ? pDoc->GetCellCount() : 0);
CollectSharedData(nTableCount, nShapesCount, nCellCount);
- //DBG_ERROR("no shared data setted");
}
ScXMLStyleExport aStylesExp(*this, rtl::OUString(), GetAutoStylePool().get());
if (GetModel().is())
@@ -2996,7 +2985,6 @@ void ScXMLExport::WriteCell (ScMyCell& aCell)
void ScXMLExport::ExportShape(const uno::Reference < drawing::XShape >& xShape, awt::Point* pPoint)
{
uno::Reference < beans::XPropertySet > xShapeProps ( xShape, uno::UNO_QUERY );
-//BM sal_Bool bMemChart(sal_False); // das muss man jetzt umbenennen :-)
bool bIsChart( false );
rtl::OUString sPropCLSID (RTL_CONSTASCII_USTRINGPARAM("CLSID"));
rtl::OUString sPropModel (RTL_CONSTASCII_USTRINGPARAM("Model"));
@@ -3084,50 +3072,6 @@ void ScXMLExport::ExportShape(const uno::Reference < drawing::XShape >& xShape,
}
}
}
-
-//BM rtl::OUString sOUName;
-//BM xShapeProps->getPropertyValue(sPersistName) >>= sOUName;
-//BM String sName(sOUName);
-//BM if (!pChartListener)
-//BM {
-//BM String aEmptyString;
-//BM ScRange aRange;
-//BM pChartListener = new ScChartListener ( aEmptyString, GetDocument(), aRange );
-//BM }
-//BM if(pChartListener)
-//BM {
-//BM USHORT nIndex(0);
-//BM pChartListener->SetString( sName );
-//BM if ( GetDocument() && GetDocument()->GetChartListenerCollection()->Search( pChartListener, nIndex ) )
-//BM {
-//BM const ScRangeListRef& rRangeListRef(((ScChartListener*)
-//BM (GetDocument()->GetChartListenerCollection()->
-//BM At( nIndex )))->GetRangeList());
-//BM if (rRangeListRef.Is())
-//BM {
-//BM bMemChart = sal_True;
-//BM rtl::OUString sRanges;
-//BM ScRangeStringConverter::GetStringFromRangeList(sRanges, rRangeListRef, GetDocument());
-//BM SvXMLAttributeList* pAttrList = NULL;
-//BM if (sRanges.getLength())
-//BM {
-//BM pAttrList = new SvXMLAttributeList();
-//BM pAttrList->AddAttribute(
-//BM GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_DRAW, GetXMLToken(XML_NOTIFY_ON_UPDATE_OF_RANGES) ), sRanges );
-//BM }
-//BM GetShapeExport()->exportShape(xShape, SEF_EXPORT_NO_CHART_DATA | SEF_DEFAULT, pPoint, pAttrList);
-//BM }
-//BM }
-//BM else
-//BM {
-//BM bMemChart = sal_True;
-//BM SvXMLAttributeList* pAttrList = new SvXMLAttributeList();
-//BM pAttrList->AddAttribute(
-//BM GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_DRAW, GetXMLToken(XML_NOTIFY_ON_UPDATE_OF_RANGES) ), rtl::OUString() );
-//BM GetShapeExport()->exportShape(xShape, SEF_EXPORT_NO_CHART_DATA | SEF_DEFAULT, pPoint, pAttrList);
-//BM }
-//BM }
-
}
}
}
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index b26e418ce9ed..2eb8e2de08cc 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -53,54 +53,6 @@
#include "progress.hxx"
#include "sc.hrc"
-
-
-////========================================================================
-//// class ImportProgress
-////
-//// Bemerkung:
-//// Diese Klasse stellt lediglich den Handler fuer den ImportProgress des
-//// Grafikfilters bereit.
-////========================================================================
-//
-//class ImportProgress
-//{
-//public:
-// ImportProgress( GraphicFilter& rFilter );
-// ~ImportProgress();
-//
-// DECL_LINK( Update, GraphicFilter* );
-//
-//private:
-// ScProgress aProgress;
-//};
-//
-////------------------------------------------------------------------------
-//
-//ImportProgress::ImportProgress( GraphicFilter& rFilter )
-// : aProgress( NULL, // SfxViewFrame*, NULL == alle Docs locken
-// String( ScResId(STR_INSERTGRAPHIC) ),
-// 100 )
-//{
-// rFilter.SetUpdatePercentHdl( LINK( this, ImportProgress, Update) );
-//}
-//
-////------------------------------------------------------------------------
-//
-//ImportProgress::~ImportProgress()
-//{
-// aProgress.SetState( 100 );
-//}
-//
-////------------------------------------------------------------------------
-//
-//IMPL_LINK( ImportProgress, Update, GraphicFilter*, pGraphicFilter )
-//{
-// aProgress.SetState( pGraphicFilter->GetPercent() );
-// return 0;
-//}
-
-
//------------------------------------------------------------------------
void SC_DLLPUBLIC ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& rPage )