Paolo Lacatena wrote: > 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?
Currently the only way is to provide an own FrameLoader component that creates the controller and the window. For one of the next releases we plan to add a "view factory" interface to the model that can be used by a generic FrameLoader implementation. > where we can find more documentation about the Dispatch Process? In > particular, how we can add URL commands. AFAIK the Developers Guide should explain everything. You can handle all commands that your Controller supports by returning a Dispatch object for it. You can recycle the built-in command names or create your own ones, that's up to you. > 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? Yes. If you provide the FrameLoader as described above and register it properly (IIRC the Database Document of OOo does exactly this) your component can be created that way. May be the new Database document can be used as a good "template" for your own document, though AFAIK the devlopers "forgot" to implement at least one of the necessary interfaces. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
