summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbaaxes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbaaxes.cxx')
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index d563ba105108..43743e4926a9 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ using namespace ::ooo::vba::excel::XlAxisGroup;
// each 'Item' in the Axes collection is indexed via 2 indexes, group and type.
// We need to 'flatten' this into a single index in order to be able to wrap
// iteration over the set of Axis(s) in a XIndexAccess implementation
-//
+//
typedef ::std::pair<sal_Int32, sal_Int32 > AxesCoordinate; // type and group combination
typedef ::std::vector< AxesCoordinate > vecAxesIndices;
@@ -70,7 +70,7 @@ public:
uno::Reference< excel::XAxis >
ScVbaAxes::createAxis( const uno::Reference< excel::XChart >& xChart, const uno::Reference< uno::XComponentContext >& xContext, sal_Int32 nType, sal_Int32 nAxisGroup ) throw ( uno::RuntimeException )
{
- ScVbaChart* pChart = static_cast< ScVbaChart* >( xChart.get() );
+ ScVbaChart* pChart = static_cast< ScVbaChart* >( xChart.get() );
if ( !pChart )
throw uno::RuntimeException( rtl::OUString::createFromAscii( "Object failure, can't access chart implementation" ), uno::Reference< uno::XInterface >() );
@@ -89,18 +89,18 @@ ScVbaAxes::createAxis( const uno::Reference< excel::XChart >& xChart, const uno:
class AxisIndexWrapper : public AxisIndexWrapper_BASE
{
- // if necessary for better performance we could change this into a map and cache the
+ // if necessary for better performance we could change this into a map and cache the
// indices -> Axis, currently we create a new Axis object
// on each getByIndex
uno::Reference< uno::XComponentContext > mxContext;
vecAxesIndices mCoordinates;
uno::Reference< excel::XChart > mxChart;
-public:
+public:
AxisIndexWrapper( const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< excel::XChart >& xChart ) : mxContext( xContext ), mxChart( xChart )
{
if ( mxChart.is() )
{
- ScVbaChart* pChart = static_cast< ScVbaChart* >( mxChart.get() );
+ ScVbaChart* pChart = static_cast< ScVbaChart* >( mxChart.get() );
// primary
sal_Bool bBool = false;
uno::Reference< beans::XPropertySet > xDiagramPropertySet( pChart->xDiagramPropertySet() );
@@ -108,7 +108,7 @@ public:
mCoordinates.push_back( AxesCoordinate( xlPrimary, xlCategory ) );
if ( ( xDiagramPropertySet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "HasYAxis" ) ) ) >>= bBool ) && bBool )
mCoordinates.push_back( AxesCoordinate( xlPrimary, xlSeriesAxis ) );
-
+
if ( pChart->is3D() )
mCoordinates.push_back( AxesCoordinate( xlPrimary, xlValue ) );
@@ -118,7 +118,7 @@ public:
if ( ( xDiagramPropertySet->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "HasSecondaryYAxis" ) ) ) >>= bBool ) && bBool )
mCoordinates.push_back( AxesCoordinate( xlSecondary, xlSeriesAxis ) );
}
-
+
}
virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException) { return mCoordinates.size(); }
virtual uno::Any SAL_CALL getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, ::uno::RuntimeException)
@@ -147,19 +147,19 @@ ScVbaAxes::ScVbaAxes( const uno::Reference< XHelperInterface >& xParent,const un
{
}
-uno::Type SAL_CALL
+uno::Type SAL_CALL
ScVbaAxes::getElementType() throw (css::uno::RuntimeException)
{
- return excel::XAxes::static_type(0);
+ return excel::XAxes::static_type(0);
}
-uno::Reference< container::XEnumeration > SAL_CALL
+uno::Reference< container::XEnumeration > SAL_CALL
ScVbaAxes::createEnumeration() throw (css::uno::RuntimeException)
{
return new EnumWrapper( m_xIndexAccess );
}
-uno::Any SAL_CALL
+uno::Any SAL_CALL
ScVbaAxes::Item( const css::uno::Any& _nType, const css::uno::Any& _oAxisGroup) throw (css::uno::RuntimeException)
{
// #TODO map the possible index combinations to a container::XIndexAccess wrapper impl
@@ -176,20 +176,20 @@ ScVbaAxes::Item( const css::uno::Any& _nType, const css::uno::Any& _oAxisGroup)
return uno::makeAny( createAxis( moChartParent, mxContext, nType, nAxisGroup ) );
}
-uno::Any
+uno::Any
ScVbaAxes::createCollectionObject(const css::uno::Any& aSource)
{
return aSource; // pass through ( it's already an XAxis object
}
-rtl::OUString&
+rtl::OUString&
ScVbaAxes::getServiceImplName()
{
static rtl::OUString sImplName( RTL_CONSTASCII_USTRINGPARAM("ScVbaAxes") );
return sImplName;
}
-uno::Sequence< rtl::OUString >
+uno::Sequence< rtl::OUString >
ScVbaAxes::getServiceNames()
{
static uno::Sequence< rtl::OUString > aServiceNames;