summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-04-06 13:32:26 +0000
committerSascha Ballach <sab@openoffice.org>2001-04-06 13:32:26 +0000
commit1aec58dafda9599e97da0fa0bcbe8e9edc47f913 (patch)
tree6bbedb72bfaa3c6f958d93cc43e2ad161a2cebea /xmloff/source
parent67e9fd11181e9ed1609d2d69b79d399d330dc26a (diff)
#80363#; make it possible to export XNameContainer in the same way like XNameAccess and XIndexContainer like XIndexAccess
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/core/SettingsExportHelper.cxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/xmloff/source/core/SettingsExportHelper.cxx b/xmloff/source/core/SettingsExportHelper.cxx
index 171527af239a..4f1b831dcca5 100644
--- a/xmloff/source/core/SettingsExportHelper.cxx
+++ b/xmloff/source/core/SettingsExportHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SettingsExportHelper.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: cl $ $Date: 2001-04-05 16:41:01 $
+ * last change: $Author: sab $ $Date: 2001-04-06 14:32:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,7 @@
#ifndef _COMPHELPER_EXTRACT_HXX_
#include <comphelper/extract.hxx>
#endif
+
#ifndef _COMPHELPER_PROCESSFACTORYHXX_
#include <comphelper/processfactory.hxx>
#endif
@@ -90,6 +91,12 @@
#ifndef _COM_SUN_STAR_CONTAINER_XNAMEACCESS_HPP_
#include <com/sun/star/container/XNameAccess.hpp>
#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
+#include <com/sun/star/container/XNameContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XIndexCONTAINER_HPP_
+#include <com/sun/star/container/XIndexContainer.hpp>
+#endif
#ifndef _COM_SUN_STAR_UTIL_DATETIME_HPP_
#include <com/sun/star/util/DateTime.hpp>
#endif
@@ -181,13 +188,15 @@ void XMLSettingsExportHelper::CallTypeFunction(const uno::Any& rAny,
rAny >>= aProps;
exportSequencePropertyValue(aProps, rName);
}
- else if (aType.equals(getCppuType( (uno::Reference<container::XNameAccess> *)0 ) ) )
+ else if (aType.equals(getCppuType( (uno::Reference<container::XNameContainer> *)0 ) ) ||
+ aType.equals(getCppuType( (uno::Reference<container::XNameAccess> *)0 ) ))
{
uno::Reference< container::XNameAccess> aNamed;
rAny >>= aNamed;
exportNameAccess(aNamed, rName);
}
- else if (aType.equals(getCppuType( (uno::Reference<container::XIndexAccess> *)0 ) ) )
+ else if (aType.equals(getCppuType( (uno::Reference<container::XIndexAccess> *)0 ) ) ||
+ aType.equals(getCppuType( (uno::Reference<container::XIndexContainer> *)0 ) ) )
{
uno::Reference<container::XIndexAccess> aIndexed;
rAny >>= aIndexed;