diff options
author | Eike Rathke <erack@redhat.com> | 2017-09-19 21:01:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-09-19 21:03:00 +0200 |
commit | 7c8db524248bacc1dfa22df7bad0ad81e31d63ca (patch) | |
tree | f7f3a8e427770c83a6eb4d511430ade4bdbdf917 /svtools | |
parent | 9d46ee5e17fe70fb6fc0cbdcb85096ca8c7cff20 (diff) |
Writer export to PNG,JPG: switch to proper SvFilterOptionsDialog
With all bells and whistles, instead of the crude size/dpi JPG dialog
even for PNG.
Change-Id: I695a78643e07900822ec9253ac818efd52339cc0
Reviewed-on: https://gerrit.libreoffice.org/42498
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/SvFilterOptionsDialog.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx index e5bd7ab7e392..8c3b8e61012e 100644 --- a/svtools/source/filter/SvFilterOptionsDialog.cxx +++ b/svtools/source/filter/SvFilterOptionsDialog.cxx @@ -203,6 +203,7 @@ sal_Int16 SvFilterOptionsDialog::execute() aInternalFilterName = aInternalFilterName.replaceFirst( "draw_", "" ); aInternalFilterName = aInternalFilterName.replaceFirst( "impress_", "" ); aInternalFilterName = aInternalFilterName.replaceFirst( "calc_", "" ); + aInternalFilterName = aInternalFilterName.replaceFirst( "writer_", "" ); break; } else if ( rName == "Graphic" ) @@ -259,6 +260,8 @@ void SvFilterOptionsDialog::setSourceDocument( const uno::Reference< lang::XComp mbGraphicsSource = false; if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") ) aConfigPath = "Office.Calc/Layout/Other/MeasureUnit"; + else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") ) + aConfigPath = "Office.Writer/Layout/Other/MeasureUnit"; } if ( !aConfigPath.isEmpty() ) { |