summaryrefslogtreecommitdiff
path: root/filter/source/graphic
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2016-02-04 14:43:28 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2016-02-04 15:15:02 +0100
commit9f84b757a2e6678a30a797e85d8236612b952646 (patch)
tree053d3b2c376d9a4d773e1dcbe09e4cfc543b8667 /filter/source/graphic
parente6c4b88f5bc4887aa498b2896b1261a4022affca (diff)
Allow HTML (WebDocument) to be exported as PNG or JPEG
Change-Id: Id6b70a88ea479b402e680c7c216a20be3d6e116e
Diffstat (limited to 'filter/source/graphic')
-rw-r--r--filter/source/graphic/GraphicExportDialog.cxx2
-rw-r--r--filter/source/graphic/GraphicExportFilter.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/graphic/GraphicExportDialog.cxx b/filter/source/graphic/GraphicExportDialog.cxx
index f2d9a8282bda..d9d0a0d6f260 100644
--- a/filter/source/graphic/GraphicExportDialog.cxx
+++ b/filter/source/graphic/GraphicExportDialog.cxx
@@ -135,7 +135,7 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum
{
aConfigPath = "Office.Draw/Layout/Other/MeasureUnit";
}
- else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") )
+ else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") || xServiceInfo->supportsService("com.sun.star.text.WebDocument") )
{
aConfigPath = "Office.Writer/Layout/Other/MeasureUnit";
}
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx
index 86f0d4932f5a..b4141f474f78 100644
--- a/filter/source/graphic/GraphicExportFilter.cxx
+++ b/filter/source/graphic/GraphicExportFilter.cxx
@@ -47,6 +47,7 @@ void GraphicExportFilter::gatherProperties( const Sequence<PropertyValue>& rProp
aInternalFilterName = aInternalFilterName.replaceFirst("impress_", "");
aInternalFilterName = aInternalFilterName.replaceFirst("calc_", "");
aInternalFilterName = aInternalFilterName.replaceFirst("writer_", "");
+ aInternalFilterName = aInternalFilterName.replaceFirst("web_", "");
}
else if ( aProperty.Name == "FilterData" )
{