To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=97530
                 Issue #|97530
                 Summary|Overwrite property when exporting to HTML partly ignor
                        |ed
               Component|api
                 Version|OOo 3.0
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|tobiaskrais





------- Additional comments from tobiaskr...@openoffice.org Tue Dec 23 11:32:33 
+0000 2008 -------
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!

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@api.openoffice.org
For additional commands, e-mail: issues-h...@api.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to