summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-09-05 16:03:39 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-09-05 16:06:28 +0200
commit4233cba407b62629be202daa3cc37c9d16fab7cf (patch)
tree9bca9555b02ca8875cb27dce2a7d92effc915348 /dbaccess
parentparseExternalDocName() also for ConventionXL_A1::parseAnyToken(), fdo#83481 (diff)
downloadcore-4233cba407b62629be202daa3cc37c9d16fab7cf.tar.gz
core-4233cba407b62629be202daa3cc37c9d16fab7cf.zip
document oddity by comment
Change-Id: I4c4637c9b1ae7329b9872da74dd8542b2fda5dd2
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index e55ad34e6e20..570e32821377 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -156,6 +156,14 @@ namespace dbaxml
::comphelper::MimeConfigurationHelper aHelper( m_xContext );
SvtModuleOptions aModuleOptions;
+ // This looks like it makes no sense,
+ // but is probably used to lower latency
+ // of the user interface for the user:
+ // when the user will do anything that requires
+ // the data connection to be established,
+ // calc will already have been loaded, initialised, etc
+ // so establishing the data connection (to a Calc sheet)
+ // will be "faster".
uno::Reference< frame::XModel > xModel(xFrameLoad->loadComponentFromURL(
aModuleOptions.GetFactoryEmptyDocumentURL( SvtModuleOptions::ClassifyFactoryByServiceName( aHelper.GetDocServiceNameFromMediaType(MIMETYPE_OASIS_OPENDOCUMENT_SPREADSHEET) )),
OUString(), // empty frame name