Apache OpenOffice (AOO) Bugzilla – Issue 97530
Overwrite property when exporting to HTML partly ignored
Last modified: 2017-05-20 11:28:06 UTC
I am exporting e.g. a presentation document to HTML via API. I set the Overwrite property like this: -----%<----- // XStorable to save document later XStorable xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, this.xComponent); // Set properties for conversions PropertyValue[] conversionProperties = new PropertyValue[2]; conversionProperties[0] = new PropertyValue(); conversionProperties[0].Name = "Overwrite"; conversionProperties[0].Value = new Boolean(true); conversionProperties[1] = new PropertyValue(); conversionProperties[1].Name = "FilterName"; conversionProperties[1].Value = "impress_html_Export"; // Convert String convertedTargetFileName = "file:///tmp/test.html"; try { xStorable.storeToURL(convertedTargetFileName, conversionProperties); } catch (IOException ignore) {} -----%<----- The HTML export consists of several files. The main file (presentation.html) is really overwritten while other files (text0.html and img0.jpg) are not overwritten. Instead a message appears that asks me to overwrite. Well, if I set the Overwrite option, I really want to overwrite and I don't want to be asked again, especially if the document is opened in hidden mode!
The framework implementation controls only the main file during export to the HTML format. All other files seem to be created by the HTML export filter implementation directly.
jsc -> os: you probably knows who is responsible for the html filter
It seems that the HTML export of Impress is the problem. Writer does not generate more than one file.
I see two issues here, first that "Overwrite" is ignored and second that in headless mode we display the warning dialog. will fix both
Reset assigne to the default "issues@openoffice.apache.org".