return resultURL;
}
private static String getXMLOutputFilterforXComponent(XComponent xComponent, StringBuffer suffix){
XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, xComponent);
if (xSI.supportsService("com.sun.star.text.TextDocument")){
resetBuffer(suffix, ".sxw");
return "swriter: StarOffice XML (Writer)";
}else if (xSI.supportsService("com.sun.star.sheet.SpreadsheetDocument")){
resetBuffer(suffix, ".sxc");
return "scalc: StarOffice XML (Calc)";
}else if (xSI.supportsService("com.sun.star.presentation.PresentationDocument")){
resetBuffer(suffix, ".sxi");
return "simpress: StarOffice XML (Impress)";
}else if(xSI.supportsService("com.sun.star.drawing.DrawingDocument")){
resetBuffer(suffix, ".sxd");
return "sdraw: StarOffice XML (Draw)";
}else if (xSI.supportsService("com.sun.star.formula.FormulaProperties")){
resetBuffer(suffix, ".sxm");
return "smath: StarOffice XML (Math)";
}
return null;
}