Re: Question about Star Office API
Reporter wrote:
Hello. The code below is Star Basic, but it is interfacing to a Java
library(?), so hopefully this is the correct place to post. I don't
think a Basic programmer could help me with this quesiton.
Generally, merely interfacing to Java libraries does not make it correct
to post to the java forums, the requirement is that the question/problem
specifically deal with Java.
In the code snipped below, it looks to me as though
loadComponentFromURL is a fairly specialized method which examines a
document format or suffix then returns a reference to the the
interface of a service(?) or object(?) of type
type ::com::sun::star::lang::XComponent, which (although the
documentation does not say so) which presumably also supports some
sort of a document service such
as ::com::sun::star::drawing::DrawingDocument
or ::com::sun::star::text::TextDocument.
Does this sound reasonable?
Judging from this question, posting to the basic forum would get you a
better answer, but there are so many forms of basic that they probably
wouldn't know either. Assuming that this is from StarOffice, there
should be an online forum at Sun's site where you could ask this question.
My personal opinion is 'yes', but I know nothing but what you told me
about StarOffice, and you seem to be confused yourself at the basic
information, so my answer shouldn't count for much.
oDesktop = createUnoService("com.sun.star.frame.Desktop")
oDocument = _
oDesktop.loadComponentFromURL("file:///home/testuser/Office52/work/
test.sdw","_blank",0,mNoArgs())