summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba/vbafont.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba/vbafont.cxx')
-rw-r--r--sc/source/ui/vba/vbafont.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/vba/vbafont.cxx b/sc/source/ui/vba/vbafont.cxx
index 7d3cde109188..eddb2f392611 100644
--- a/sc/source/ui/vba/vbafont.cxx
+++ b/sc/source/ui/vba/vbafont.cxx
@@ -84,8 +84,8 @@ ScVbaFont::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio
for ( sal_Int32 row = 0; row < nRows; ++row )
{
uno::Reference< beans::XPropertySet > xProps( xCellRange->getCellByPosition( col, row ) , uno::UNO_QUERY_THROW );
- ScVbaFont aFont( getParent(), mxContext, mPalette, xProps );
- aFont.setSuperscript( aValue );
+ uno::Reference< ScVbaFont > aFont( new ScVbaFont( getParent(), mxContext, mPalette, xProps ) );
+ aFont->setSuperscript( aValue );
}
}
return;
@@ -124,10 +124,10 @@ ScVbaFont::getSuperscript() throw ( uno::RuntimeException, std::exception )
for ( sal_Int32 row = 0; row < nRows; ++row )
{
uno::Reference< beans::XPropertySet > xProps( xCellRange->getCellByPosition( col, row ), uno::UNO_QUERY_THROW );
- ScVbaFont aFont( getParent(), mxContext, mPalette, xProps );
+ uno::Reference< ScVbaFont > aFont( new ScVbaFont( getParent(), mxContext, mPalette, xProps ) );
if ( !col && !row )
- aRes = aFont.getSuperscript();
- else if ( aRes != aFont.getSuperscript() )
+ aRes = aFont->getSuperscript();
+ else if ( aRes != aFont->getSuperscript() )
return aNULL();
}
}
@@ -156,8 +156,8 @@ ScVbaFont::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeException,
for ( sal_Int32 row = 0; row < nRows; ++row )
{
uno::Reference< beans::XPropertySet > xProps( xCellRange->getCellByPosition( col, row ) , uno::UNO_QUERY_THROW );
- ScVbaFont aFont( getParent(), mxContext, mPalette, xProps );
- aFont.setSubscript( aValue );
+ uno::Reference< ScVbaFont > aFont( new ScVbaFont( getParent(), mxContext, mPalette, xProps ) );
+ aFont->setSubscript( aValue );
}
}
return;
@@ -198,10 +198,10 @@ ScVbaFont::getSubscript() throw ( uno::RuntimeException, std::exception )
for ( sal_Int32 row = 0; row < nRows; ++row )
{
uno::Reference< beans::XPropertySet > xProps( xCellRange->getCellByPosition( col, row ), uno::UNO_QUERY_THROW );
- ScVbaFont aFont( getParent(), mxContext, mPalette, xProps );
+ uno::Reference< ScVbaFont > aFont( new ScVbaFont( getParent(), mxContext, mPalette, xProps ) );
if ( !col && !row )
- aRes = aFont.getSubscript();
- else if ( aRes != aFont.getSubscript() )
+ aRes = aFont->getSubscript();
+ else if ( aRes != aFont->getSubscript() )
return aNULL();
}
}