summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-11-26 15:19:48 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-11-26 15:19:48 +0000
commit8ae52b16cae27319de1bef545600cb62edfe7c80 (patch)
tree48d65926d6dd8ac02d9458f4574dde9f04818169 /xmloff/source/style
parentbe1bef29987f4aeb6f07f8212a02108f5dc4b2b7 (diff)
CWS-TOOLING: integrate CWS rtlchart01
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/xmlprmap.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmloff/source/style/xmlprmap.cxx b/xmloff/source/style/xmlprmap.cxx
index 7178a641a9f2..4cc091911c06 100644
--- a/xmloff/source/style/xmlprmap.cxx
+++ b/xmloff/source/style/xmlprmap.cxx
@@ -242,3 +242,14 @@ sal_Int32 XMLPropertySetMapper::FindEntryIndex( const sal_Int16 nContextId ) con
return -1;
}
+
+void XMLPropertySetMapper::RemoveEntry( sal_Int32 nIndex )
+{
+ const sal_Int32 nEntries = GetEntryCount();
+ if( nIndex>=nEntries || nIndex<0 )
+ return;
+ vector < XMLPropertySetMapperEntry_Impl >::iterator aEIter = aMapEntries.begin();
+ for( sal_Int32 nN=0; nN<nIndex; nN++ )
+ aEIter++;
+ aMapEntries.erase( aEIter );
+}