diff options
author | Michael Brauer <mib@openoffice.org> | 2001-09-05 07:32:07 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2001-09-05 07:32:07 +0000 |
commit | cbd497bc67b5bf776eb9ba8f5e7d6ef9a132a315 (patch) | |
tree | 1b072792f4d5f76bde1dbcabc83cfc0b8b809d80 /xmloff/source/style/MultiPropertySetHelper.cxx | |
parent | 13a3ac4b9b4d2b8274624a318c9f199fae8a82b7 (diff) |
#i1558#: Export master documents with bullet lists correctly, some optimization
Diffstat (limited to 'xmloff/source/style/MultiPropertySetHelper.cxx')
-rw-r--r-- | xmloff/source/style/MultiPropertySetHelper.cxx | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/xmloff/source/style/MultiPropertySetHelper.cxx b/xmloff/source/style/MultiPropertySetHelper.cxx index 606f38422f3b..6a2761d0fe76 100644 --- a/xmloff/source/style/MultiPropertySetHelper.cxx +++ b/xmloff/source/style/MultiPropertySetHelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: MultiPropertySetHelper.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dvo $ $Date: 2001-05-17 16:13:53 $ + * last change: $Author: mib $ $Date: 2001-09-05 08:30:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -222,6 +222,38 @@ void MultiPropertySetHelper::getValues( } +const Any& MultiPropertySetHelper::getValue( sal_Int16 nIndex, + const Reference< XPropertySet> & rPropSet, + sal_Bool bTryMulti ) +{ + if( !pValues ) + { + if( bTryMulti ) + { + Reference < XMultiPropertySet > xMultiPropSet( rPropSet, + UNO_QUERY ); + if( xMultiPropSet.is() ) + getValues( xMultiPropSet ); + else + getValues( rPropSet ); + } + else + { + getValues( rPropSet ); + } + } + + return getValue( nIndex ); +} + +const Any& MultiPropertySetHelper::getValue( sal_Int16 nIndex, + const Reference< XMultiPropertySet> & rMultiPropSet ) +{ + if( !pValues ) + getValues( rMultiPropSet ); + + return getValue( nIndex ); +} // inline methods defined in header: // inline Any& MultiPropertySetHelper::getValue( sal_Int16 nIndex ) |