summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-06-21 07:29:15 -0700
committerJoseph Powers <jpowers27@cox.net>2011-06-21 07:29:15 -0700
commita8a1afac4d1b476562ec60ef244ef15d6258dde0 (patch)
tree56a898fa11851d1662538e23203c859dc81247a8 /svx
parent6b0f98c64c73e26d789f968938d93ed02fee169f (diff)
Remove nDummy parameter from XPropertyList::Remove()
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/xtable.hxx26
-rw-r--r--svx/source/unodraw/XPropertyTable.cxx2
-rw-r--r--svx/source/xoutdev/xtabbtmp.cxx2
-rw-r--r--svx/source/xoutdev/xtabcolr.cxx2
-rw-r--r--svx/source/xoutdev/xtabdash.cxx2
-rw-r--r--svx/source/xoutdev/xtabgrdt.cxx2
-rw-r--r--svx/source/xoutdev/xtabhtch.cxx2
-rw-r--r--svx/source/xoutdev/xtable.cxx2
-rw-r--r--svx/source/xoutdev/xtablend.cxx2
9 files changed, 23 insertions, 19 deletions
diff --git a/svx/inc/svx/xtable.hxx b/svx/inc/svx/xtable.hxx
index 163666c86cc1..913a7665e195 100644
--- a/svx/inc/svx/xtable.hxx
+++ b/svx/inc/svx/xtable.hxx
@@ -217,9 +217,11 @@ public:
sal_Bool Insert(long nIndex, XPropertyEntry* pEntry);
XPropertyEntry* Replace(long nIndex, XPropertyEntry* pEntry);
XPropertyEntry* Remove(long nIndex);
- XPropertyEntry* Get( long nIndex, sal_uInt16 nDummy ) const;
+ // Note: Get(long) & Get( String& ) are ambiguous
+ XPropertyEntry* Get( long nIndex, sal_uInt16 nDummy ) const;
long Get(const String& rName);
+
Bitmap* GetBitmap( long nIndex ) const;
const String& GetName() const { return aName; }
@@ -252,9 +254,9 @@ protected:
XPropertyEntryList_impl aList;
List* pBmpList;
- sal_Bool bListDirty;
- sal_Bool bBitmapsDirty;
- sal_Bool bOwnPool;
+ sal_Bool bListDirty;
+ sal_Bool bBitmapsDirty;
+ sal_Bool bOwnPool;
XPropertyList(
const String& rPath,
@@ -270,24 +272,26 @@ public:
void Insert( XPropertyEntry* pEntry, long nIndex = LIST_APPEND );
XPropertyEntry* Replace( XPropertyEntry* pEntry, long nIndex );
- XPropertyEntry* Remove( long nIndex, sal_uInt16 nDummy );
- XPropertyEntry* Get( long nIndex, sal_uInt16 nDummy ) const;
+ XPropertyEntry* Remove( long nIndex );
+ // Note: Get(long) & Get( String& ) are ambiguous
+ XPropertyEntry* Get( long nIndex, sal_uInt16 nDummy ) const;
long Get(const String& rName);
+
Bitmap* GetBitmap( long nIndex ) const;
const String& GetName() const { return aName; }
void SetName( const String& rString );
const String& GetPath() const { return aPath; }
void SetPath( const String& rString ) { aPath = rString; }
- sal_Bool IsDirty() const { return bListDirty && bBitmapsDirty; }
+ sal_Bool IsDirty() const { return bListDirty && bBitmapsDirty; }
void SetDirty( sal_Bool bDirty = sal_True )
{ bListDirty = bDirty; bBitmapsDirty = bDirty; }
- virtual sal_Bool Load() = 0;
- virtual sal_Bool Save() = 0;
- virtual sal_Bool Create() = 0;
- virtual sal_Bool CreateBitmapsForUI() = 0;
+ virtual sal_Bool Load() = 0;
+ virtual sal_Bool Save() = 0;
+ virtual sal_Bool Create() = 0;
+ virtual sal_Bool CreateBitmapsForUI() = 0;
virtual Bitmap* CreateBitmapForUI( long nIndex, sal_Bool bDelete = sal_True ) = 0;
};
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx
index 926bc15346eb..7fbe55de5c78 100644
--- a/svx/source/unodraw/XPropertyTable.cxx
+++ b/svx/source/unodraw/XPropertyTable.cxx
@@ -171,7 +171,7 @@ void SAL_CALL SvxUnoXPropertyTable::removeByName( const OUString& Name )
if( pEntry && pEntry->GetName() == aInternalName )
{
if( mpList )
- delete mpList->Remove( i, 0 );
+ delete mpList->Remove( i );
else
delete mpTable->Remove( i );
return;
diff --git a/svx/source/xoutdev/xtabbtmp.cxx b/svx/source/xoutdev/xtabbtmp.cxx
index cb1eb690c182..79a499d5f139 100644
--- a/svx/source/xoutdev/xtabbtmp.cxx
+++ b/svx/source/xoutdev/xtabbtmp.cxx
@@ -175,7 +175,7 @@ XBitmapEntry* XBitmapList::Replace(XBitmapEntry* pEntry, long nIndex )
XBitmapEntry* XBitmapList::Remove(long nIndex)
{
- return (XBitmapEntry*) XPropertyList::Remove(nIndex, 0);
+ return (XBitmapEntry*) XPropertyList::Remove(nIndex);
}
/************************************************************************/
diff --git a/svx/source/xoutdev/xtabcolr.cxx b/svx/source/xoutdev/xtabcolr.cxx
index 4abf17bc6ac9..7f809d7b2989 100644
--- a/svx/source/xoutdev/xtabcolr.cxx
+++ b/svx/source/xoutdev/xtabcolr.cxx
@@ -493,7 +493,7 @@ XColorEntry* XColorList::Replace(XColorEntry* pEntry, long nIndex )
XColorEntry* XColorList::Remove(long nIndex)
{
- return (XColorEntry*) XPropertyList::Remove(nIndex, 0);
+ return (XColorEntry*) XPropertyList::Remove(nIndex);
}
/************************************************************************/
diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx
index 7e0390d9c2cf..f6d76b62062b 100644
--- a/svx/source/xoutdev/xtabdash.cxx
+++ b/svx/source/xoutdev/xtabdash.cxx
@@ -263,7 +263,7 @@ XDashEntry* XDashList::Replace(XDashEntry* pEntry, long nIndex )
XDashEntry* XDashList::Remove(long nIndex)
{
- return (XDashEntry*) XPropertyList::Remove(nIndex, 0);
+ return (XDashEntry*) XPropertyList::Remove(nIndex);
}
XDashEntry* XDashList::GetDash(long nIndex) const
diff --git a/svx/source/xoutdev/xtabgrdt.cxx b/svx/source/xoutdev/xtabgrdt.cxx
index a326b5c7cc5a..ced902ead484 100644
--- a/svx/source/xoutdev/xtabgrdt.cxx
+++ b/svx/source/xoutdev/xtabgrdt.cxx
@@ -249,7 +249,7 @@ XGradientEntry* XGradientList::Replace(XGradientEntry* pEntry, long nIndex )
XGradientEntry* XGradientList::Remove(long nIndex)
{
- return( (XGradientEntry*) XPropertyList::Remove( nIndex, 0 ) );
+ return( (XGradientEntry*) XPropertyList::Remove( nIndex ) );
}
XGradientEntry* XGradientList::GetGradient(long nIndex) const
diff --git a/svx/source/xoutdev/xtabhtch.cxx b/svx/source/xoutdev/xtabhtch.cxx
index be0f0e63842a..c7df40e196fd 100644
--- a/svx/source/xoutdev/xtabhtch.cxx
+++ b/svx/source/xoutdev/xtabhtch.cxx
@@ -257,7 +257,7 @@ XHatchEntry* XHatchList::Replace(XHatchEntry* pEntry, long nIndex )
XHatchEntry* XHatchList::Remove(long nIndex)
{
- return (XHatchEntry*) XPropertyList::Remove(nIndex, 0);
+ return (XHatchEntry*) XPropertyList::Remove(nIndex);
}
XHatchEntry* XHatchList::GetHatch(long nIndex) const
diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index 59cafd0eba4a..6279116690e5 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -493,7 +493,7 @@ XPropertyEntry* XPropertyList::Replace( XPropertyEntry* pEntry, long nIndex )
|*
*************************************************************************/
-XPropertyEntry* XPropertyList::Remove( long nIndex, sal_uInt16 /*nDummy*/)
+XPropertyEntry* XPropertyList::Remove( long nIndex )
{
if( pBmpList && !bBitmapsDirty )
{
diff --git a/svx/source/xoutdev/xtablend.cxx b/svx/source/xoutdev/xtablend.cxx
index 80ccbc11a33b..31f2a60ac01a 100644
--- a/svx/source/xoutdev/xtablend.cxx
+++ b/svx/source/xoutdev/xtablend.cxx
@@ -270,7 +270,7 @@ XLineEndEntry* XLineEndList::Replace(XLineEndEntry* pEntry, long nIndex )
XLineEndEntry* XLineEndList::Remove(long nIndex)
{
- return (XLineEndEntry*) XPropertyList::Remove(nIndex, 0);
+ return (XLineEndEntry*) XPropertyList::Remove(nIndex);
}
XLineEndEntry* XLineEndList::GetLineEnd(long nIndex) const