summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2001-04-05 08:17:57 +0000
committerSascha Ballach <sab@openoffice.org>2001-04-05 08:17:57 +0000
commit3c357844bff2ef32ca1dcf2b72f82ffba8ee1ca5 (patch)
tree2e6a365af4d99fca2fcbe49ff16572c45cf561a0 /sc/source/filter/xml/xmlwrap.cxx
parent7a3c56e478c8c13ce18870963368db898a625b6d (diff)
#81983#; change the order of loading to load the settings and in special the printer name before create the first OLE object
Diffstat (limited to 'sc/source/filter/xml/xmlwrap.cxx')
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index 3340c396b2e3..07abf1efd5bf 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlwrap.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: nn $ $Date: 2001-04-04 09:19:46 $
+ * last change: $Author: sab $ $Date: 2001-04-05 09:17:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -301,6 +301,16 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly)
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("styles.xml")),
sEmpty, aStylesArgs);
+ if (!bStylesOnly)
+ {
+ uno::Sequence<uno::Any> aSettingsArgs(0);
+
+ sal_Bool bSettingsRetval = ImportFromComponent(xServiceFactory, xModel, xXMLParser, aParserInput,
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Calc.XMLSettingsImporter")),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("settings.xml")),
+ sEmpty, aSettingsArgs);
+ }
+
sal_Bool bDocRetval(sal_False);
if (!bStylesOnly)
{
@@ -341,16 +351,6 @@ sal_Bool ScXMLImportWrapper::Import(sal_Bool bStylesOnly)
SvXMLEmbeddedObjectHelper::Destroy( pObjectHelper );
}
- if (!bStylesOnly)
- {
- uno::Sequence<uno::Any> aSettingsArgs(0);
-
- sal_Bool bSettingsRetval = ImportFromComponent(xServiceFactory, xModel, xXMLParser, aParserInput,
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Calc.XMLSettingsImporter")),
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("settings.xml")),
- sEmpty, aSettingsArgs);
- }
-
// Don't test bStylesRetval and bMetaRetval, because it could be an older file which not contain such streams
return !bStylesOnly ? bDocRetval : bStylesRetval;
}