Kaydet (Commit) 7c8db524 authored tarafından Eike Rathke's avatar Eike Rathke

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/42498Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 9d46ee5e
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
--> -->
<node oor:name="writer_jpg_Export" oor:op="replace"> <node oor:name="writer_jpg_Export" oor:op="replace">
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop> <prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop>
<prop oor:name="UIComponent"><value>com.sun.star.comp.GraphicExportDialog</value></prop> <prop oor:name="UIComponent"><value>com.sun.star.svtools.SvFilterOptionsDialog</value></prop>
<prop oor:name="FilterService"><value>com.sun.star.comp.GraphicExportFilter</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.GraphicExportFilter</value></prop>
<prop oor:name="UserData"><value></value></prop> <prop oor:name="UserData"><value></value></prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
--> -->
<node oor:name="writer_png_Export" oor:op="replace"> <node oor:name="writer_png_Export" oor:op="replace">
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER SUPPORTSSELECTION</value></prop> <prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER SUPPORTSSELECTION</value></prop>
<prop oor:name="UIComponent"><value>com.sun.star.comp.GraphicExportDialog</value></prop> <prop oor:name="UIComponent"><value>com.sun.star.svtools.SvFilterOptionsDialog</value></prop>
<prop oor:name="FilterService"><value>com.sun.star.comp.GraphicExportFilter</value></prop> <prop oor:name="FilterService"><value>com.sun.star.comp.GraphicExportFilter</value></prop>
<prop oor:name="UserData"><value></value></prop> <prop oor:name="UserData"><value></value></prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
......
...@@ -203,6 +203,7 @@ sal_Int16 SvFilterOptionsDialog::execute() ...@@ -203,6 +203,7 @@ sal_Int16 SvFilterOptionsDialog::execute()
aInternalFilterName = aInternalFilterName.replaceFirst( "draw_", "" ); aInternalFilterName = aInternalFilterName.replaceFirst( "draw_", "" );
aInternalFilterName = aInternalFilterName.replaceFirst( "impress_", "" ); aInternalFilterName = aInternalFilterName.replaceFirst( "impress_", "" );
aInternalFilterName = aInternalFilterName.replaceFirst( "calc_", "" ); aInternalFilterName = aInternalFilterName.replaceFirst( "calc_", "" );
aInternalFilterName = aInternalFilterName.replaceFirst( "writer_", "" );
break; break;
} }
else if ( rName == "Graphic" ) else if ( rName == "Graphic" )
...@@ -259,6 +260,8 @@ void SvFilterOptionsDialog::setSourceDocument( const uno::Reference< lang::XComp ...@@ -259,6 +260,8 @@ void SvFilterOptionsDialog::setSourceDocument( const uno::Reference< lang::XComp
mbGraphicsSource = false; mbGraphicsSource = false;
if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") ) if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") )
aConfigPath = "Office.Calc/Layout/Other/MeasureUnit"; aConfigPath = "Office.Calc/Layout/Other/MeasureUnit";
else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") )
aConfigPath = "Office.Writer/Layout/Other/MeasureUnit";
} }
if ( !aConfigPath.isEmpty() ) if ( !aConfigPath.isEmpty() )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment