Mathias Bauer wrote:

Paolo Lacatena wrote:
Hi All,

We are going to develop an open source application to design and run
business workflow and we are going to use OpenOffice.org suite as
document editor. We belive that maybe interesting to develop our
application as an extension of OOo suite; so we could create a new
document type to do this. We have a look to Developer's guide, but we
didn't find all information we need. We need to have more information
about the development of a new document type, how to add new command
in the framework layer and in the chain of responsability and how to
deploy the new application, like Writer, Calc etc , in the OOo
environment. We need more information about the system architecture
too.

You must develop a UNO component that implements the service
com.sun.star.document.OfficeDocument and a second UNO component that
implements the com.sun.star.frame.Controller service. Both are described
in the IDL reference and the Developers Guide.

Additionally you have to provide a window together with your controller
that either must be implemented using VCL directly or indirectly
(through our com.sun.star.awt.Toolkit). This window is used for drawing
output and user interaction. While parts of it are possible using our
Toolkit or (as I assume) our new Canvas API I'm afraid that currently it
would be too cumbersome and so you will need to use the VCL library
directly.

As an alternative you could try to do your drawing and user interaction
in an own native window and plug this into the window of your
controller, but I have only a limited experience with this, but I know
that it works because the same is done when plugins are embedded into an
OOo document, like e.g. the Acrobat Reader. Inside the native window you
can use any toolkit you like that allows you to get access to its window
handle for reparenting or that allows you to create a window as a child
of an arbitrary native window (that you again know by its window handle).

So as a start I recommend to study and understand the mentioned services
and think wether using VCL is an option or if you want to try the
"native window" approach. Then we can talk again. :-)

Best regards,
Mathias

We saw com.sun.star.document.OfficeDocument and com.sun.star.frame.Controller in the Developer's Guide and IDL Reference.
We haven't got problem about com.sun.star.document.OfficeDocument.
About com.sun.star.frame.Controller we have some questions:

how the user interface is built in the Frame-Controller-Model paradigm?
who create it and which interfaces are needed?

where we can find more documentation about the Dispatch Process? In particular, how we can add URL commands.

We want built a new application with a new document model. What do we do to load a new blank document with com.sun.star.frame.XComponentLoader Desktop Interface, i.e.

com.sun.star.lang.XComponent xComponentMyApp = xLoader.loadComponentFromURL(
                   "private:factory/myapp", "_blank", 0, null);
Is it possible?

Thanks
Paolo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to