Kaydet (Commit) 5b41f1c3 authored tarafından Frank Schoenheit [fs]'s avatar Frank Schoenheit [fs]

autorecovery: commit resolved merge (after rebase to m71)

...@@ -43,7 +43,6 @@ import com.sun.star.uno.UnoRuntime; ...@@ -43,7 +43,6 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.ucb.ContentInfo; import com.sun.star.ucb.ContentInfo;
import com.sun.star.ucb.InsertCommandArgument; import com.sun.star.ucb.InsertCommandArgument;
import com.sun.star.ucb.XContent; import com.sun.star.ucb.XContent;
import com.sun.star.ucb.XContentCreator;
import com.sun.star.io.XInputStream; import com.sun.star.io.XInputStream;
...@@ -154,18 +153,17 @@ public class ResourceCreator { ...@@ -154,18 +153,17 @@ public class ResourceCreator {
boolean result = false; boolean result = false;
if ( stream != null && name != null && !name.equals( "" )) { if ( stream != null && name != null && !name.equals( "" )) {
// Obtain content creator interface. // Note: The data for info may have been obtained from
XContentCreator creator = ( XContentCreator )UnoRuntime.queryInterface( // property CreatableContentsInfo.
XContentCreator.class, m_content );
// Note: The data for info may have been obtained using
// XContentCreator::queryCreatableContentsInfo().
ContentInfo info = new ContentInfo(); ContentInfo info = new ContentInfo();
info.Type = "application/vnd.sun.staroffice.fsys-file"; info.Type = "application/vnd.sun.staroffice.fsys-file";
info.Attributes = 0; info.Attributes = 0;
// Create new, empty content. // Create new, empty content (execute command "createNewContent").
XContent newContent = creator.createNewContent( info ); XContent newContent = ( XContent )UnoRuntime.queryInterface(
XContent.class,
m_helper.executeCommand( m_content, "createNewContent", info ) );
if ( newContent != null ) { if ( newContent != null ) {
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
...@@ -181,7 +179,7 @@ public class ResourceCreator { ...@@ -181,7 +179,7 @@ public class ResourceCreator {
props[ 0 ] = prop; props[ 0 ] = prop;
// Execute command "setPropertyValues". // Execute command "setPropertyValues".
m_helper.executeCommand( newContent, "setPropertyValues",props ); m_helper.executeCommand( newContent, "setPropertyValues", props );
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// Write the new file to disk... // Write the new file to disk...
......
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