summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-22 14:21:31 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-22 14:21:31 +0000
commita5b37bb9260285eb6c274325f5293f29c1019978 (patch)
tree23e645239411f9886fa1558c396453bbd7ffb407
parent9c6602613f09711389df9c448c485becb2fcd314 (diff)
INTEGRATION: CWS chart2mst3 (1.51.122); FILE MERGED
2007/02/07 18:57:39 iha 1.51.122.8: RESYNC: (1.65-1.66); FILE MERGED 2006/10/19 06:12:07 bm 1.51.122.7: RESYNC: (1.61-1.65); FILE MERGED 2005/10/09 00:22:09 bm 1.51.122.6: RESYNC: (1.60-1.61); FILE MERGED 2005/03/18 00:31:01 bm 1.51.122.5: RESYNC: (1.56-1.60); FILE MERGED 2004/11/02 21:46:09 bm 1.51.122.4: RESYNC: (1.55-1.56); FILE MERGED 2004/08/30 21:46:10 bm 1.51.122.3: RESYNC: (1.53-1.55); FILE MERGED 2004/08/04 17:49:57 bm 1.51.122.2: RESYNC: (1.51-1.53); FILE MERGED 2004/06/04 07:43:54 bm 1.51.122.1: +SvxUnoGetWhichIdForNamedProperty to get which ids for properties like FillGradientName (using the map for shapes SVXMAP_SHAPE)
-rw-r--r--svx/source/unodraw/unoprov.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx
index 9178cad06f41..232e1f63fdf4 100644
--- a/svx/source/unodraw/unoprov.cxx
+++ b/svx/source/unodraw/unoprov.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: unoprov.cxx,v $
*
- * $Revision: 1.66 $
+ * $Revision: 1.67 $
*
- * last change: $Author: ihi $ $Date: 2006-12-19 17:47:40 $
+ * last change: $Author: vg $ $Date: 2007-05-22 15:21:31 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1204,6 +1204,21 @@ bool SvxUnoGetResourceRanges( const short nWhich, int& nApiResIds, int& nIntResI
return TRUE;
}
+sal_Int16 SvxUnoGetWhichIdForNamedProperty( const ::rtl::OUString & rPropName )
+{
+ sal_Int16 nWhich = 0;
+
+ const SfxItemPropertyMap* pMap = aSvxMapProvider.GetMap( SVXMAP_SHAPE );
+ if( pMap )
+ {
+ const SfxItemPropertyMap* pFound = SfxItemPropertyMap::GetByName( pMap, rPropName );
+ if( pFound )
+ nWhich = pFound->nWID;
+ }
+
+ return nWhich;
+}
+
bool SvxUnoConvertResourceString( int nSourceResIds, int nDestResIds, int nCount, String& rString ) throw()
{
// first, calculate the search string length without an optional number behind the name