Code: Select all
XComponentLoader xLoader = ...;
byte[] bytes = ...;
ByteArrayToXInputStreamAdapter batxisa = new ByteArrayToXInputStreamAdapter(bytes);
PropertyValue[] properties = new PropertyValue[2];
properties[0] = new PropertyValue();
properties[0].Name = "InputStream";
properties[0].Value = batxisa;
properties[1] = new PropertyValue();
properties[1].Name = "FilterName";
properties[1].Value = "writer8";
xComponent = xLoader.loadComponentFromURL("private:stream", "some XFrame name", com.sun.star.frame.FrameSearchFlag.CHILDREN, someProperties);
...
In File -> Recent Documents they are shown as 'private:' and in the Windows menu an empty row is shown.
Is it possible to specify a more meaningful name for the document, e.g. in analogy to documents loaded from the file system?
Thanks