diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 14:38:43 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-05 14:40:58 -0500 |
commit | 7d3ddc2c6cc39fdd671f08059528464675cd6ecc (patch) | |
tree | b5e941937065d769dc9bdaa0ce144d1f91585360 /sc/source/ui/unoobj/exceldetect.cxx | |
parent | a0dd5a8d6a9213ad40d738f8639e1500a1b59caa (diff) |
Pass DocumentService to the loader during macro tests.
And disable user interaction during type detection, since that would
cause the test to fail.
With this change, 'make check' works once again.
Change-Id: I2f45a2e962e45ee64f7984e794cff814fbfe6dab
Diffstat (limited to 'sc/source/ui/unoobj/exceldetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/exceldetect.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/exceldetect.cxx b/sc/source/ui/unoobj/exceldetect.cxx index 4119b1d6592b..db040e3e46f7 100644 --- a/sc/source/ui/unoobj/exceldetect.cxx +++ b/sc/source/ui/unoobj/exceldetect.cxx @@ -53,7 +53,7 @@ namespace { bool hasStream(const uno::Reference<io::XInputStream>& xInStream, const OUString& rName) { SfxMedium aMedium; - aMedium.UseInteractionHandler(true); + aMedium.UseInteractionHandler(false); aMedium.setStreamToLoadFrom(xInStream, true); SvStream* pStream = aMedium.GetInStream(); if (!pStream) @@ -77,7 +77,7 @@ bool hasStream(const uno::Reference<io::XInputStream>& xInStream, const OUString bool isExcel40(const uno::Reference<io::XInputStream>& xInStream) { SfxMedium aMedium; - aMedium.UseInteractionHandler(true); + aMedium.UseInteractionHandler(false); aMedium.setStreamToLoadFrom(xInStream, true); SvStream* pStream = aMedium.GetInStream(); if (!pStream) |