summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-08-27 15:41:29 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-08-27 16:21:21 +0200
commit8d670c9452e930460be600212d73e22acd61cc0f (patch)
tree54de8af24539005d32698150075f28eadaf3a184
parenta2e70c0a329c1746947e0ef76002482bf681a1c9 (diff)
sw HTML export: handle embedded text documents
Change-Id: Ib7e55e3c82b1a1115335b68c317f5fcb084f6d28
-rw-r--r--sw/source/filter/html/htmlplug.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/filter/html/htmlplug.cxx b/sw/source/filter/html/htmlplug.cxx
index 8fdc499f848b..e4cf7d9a6bb1 100644
--- a/sw/source/filter/html/htmlplug.cxx
+++ b/sw/source/filter/html/htmlplug.cxx
@@ -1273,8 +1273,13 @@ Writer& OutHTML_FrmFmtOLENodeGrf( Writer& rWrt, const SwFrmFmt& rFrmFmt,
// Figure out what is the filter name of the embedded object.
uno::Reference<lang::XServiceInfo> xServiceInfo(xStorable, uno::UNO_QUERY);
OUString aFilter;
- if (xServiceInfo.is() && xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument"))
- aFilter = "HTML (StarCalc)";
+ if (xServiceInfo.is())
+ {
+ if (xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument"))
+ aFilter = "HTML (StarCalc)";
+ else if (xServiceInfo->supportsService("com.sun.star.text.TextDocument"))
+ aFilter = "HTML (StarWriter)";
+ }
if (xStorable.is() && !aFilter.isEmpty())
{