Issue 97530

Summary: Overwrite property when exporting to HTML partly ignored
Product: App Dev Reporter: tobiaskrais <tux-spam>
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description tobiaskrais 2008-12-23 11:32:33 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!
Comment 1 mikhail.voytenko 2009-01-02 12:01:25 UTC
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.
Comment 2 jsc 2009-01-05 09:22:24 UTC
jsc -> os: you probably knows who is responsible for the html filter
Comment 3 Mathias_Bauer 2009-03-11 13:07:31 UTC
It seems that the HTML export of Impress is the problem. Writer does not
generate more than one file.
Comment 4 clippka 2009-06-03 12:40:56 UTC
I see two issues here, first that "Overwrite" is ignored and second that in
headless mode we display the warning dialog. will fix both
Comment 5 Marcus 2017-05-20 11:28:06 UTC
Reset assigne to the default "issues@openoffice.apache.org".