summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-08-29 06:57:05 -0700
committerJoseph Powers <jpowers27@cox.net>2011-08-29 07:18:46 -0700
commit10938788cee4387b2c8ada8b127142c8eef754b3 (patch)
treefdf83f4a65e202eff44d1794a8eef67e2058200d /svx
parentc142263e267028f14903ae4eecbe533e80a5afdf (diff)
Fix my bug: XColorTable is based on XPropertyList not XPropertyTable
I should have changed this in the "rebase patch".
Diffstat (limited to 'svx')
-rw-r--r--svx/source/unodraw/unoctabl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx
index 6f039f11b631..094432ac68ec 100644
--- a/svx/source/unodraw/unoctabl.cxx
+++ b/svx/source/unodraw/unoctabl.cxx
@@ -147,7 +147,7 @@ void SAL_CALL SvxUnoColorTable::insertByName( const OUString& aName, const uno::
void SAL_CALL SvxUnoColorTable::removeByName( const OUString& Name )
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
{
- long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( Name ) : -1;
+ long nIndex = pTable ? ((XPropertyList*)pTable)->Get( Name ) : -1;
if( nIndex == -1 )
throw container::NoSuchElementException();
@@ -162,7 +162,7 @@ void SAL_CALL SvxUnoColorTable::replaceByName( const OUString& aName, const uno:
if( !(aElement >>= nColor) )
throw lang::IllegalArgumentException();
- long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1;
+ long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1;
if( nIndex == -1 )
throw container::NoSuchElementException();
@@ -174,7 +174,7 @@ void SAL_CALL SvxUnoColorTable::replaceByName( const OUString& aName, const uno:
uno::Any SAL_CALL SvxUnoColorTable::getByName( const OUString& aName )
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
{
- long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1;
+ long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1;
if( nIndex == -1 )
throw container::NoSuchElementException();
@@ -202,7 +202,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoColorTable::getElementNames( )
sal_Bool SAL_CALL SvxUnoColorTable::hasByName( const OUString& aName )
throw( uno::RuntimeException )
{
- long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1;
+ long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1;
return nIndex != -1;
}