Kaydet (Commit) 73400f7a authored tarafından Eike Rathke's avatar Eike Rathke

Export to PNG: also Calc has MeasureUnit

Though meFieldUnit appears to not be used anywhere, but ...

Change-Id: I99e8392e4a773ba00868904e0f2ff5fdbc4bc47d
Reviewed-on: https://gerrit.libreoffice.org/40521Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 1cbe551d
...@@ -130,6 +130,10 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum ...@@ -130,6 +130,10 @@ void GraphicExportDialog::setSourceDocument( const Reference<XComponent>& xDocum
{ {
aConfigPath = "Office.Draw/Layout/Other/MeasureUnit"; aConfigPath = "Office.Draw/Layout/Other/MeasureUnit";
} }
else if ( xServiceInfo->supportsService("com.sun.star.sheet.SpreadsheetDocument") )
{
aConfigPath = "Office.Calc/Layout/Other/MeasureUnit";
}
else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") || xServiceInfo->supportsService("com.sun.star.text.WebDocument") ) else if ( xServiceInfo->supportsService("com.sun.star.text.TextDocument") || xServiceInfo->supportsService("com.sun.star.text.WebDocument") )
{ {
aConfigPath = "Office.Writer/Layout/Other/MeasureUnit"; aConfigPath = "Office.Writer/Layout/Other/MeasureUnit";
......
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