Difference between revisions of "Documentation/DevGuide/OfficeDev/Component/Getting Frames, Controllers and Models from Each Other"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Office Development)
m (FINAL VERSION FOR L10N)
Line 6: Line 6:
 
|NextPage=Documentation/DevGuide/OfficeDev/Component/Frames
 
|NextPage=Documentation/DevGuide/OfficeDev/Component/Frames
 
}}
 
}}
{{DISPLAYTITLE:Getting Frames, Controllers and Models from Each Other}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/OfficeDev/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Getting Frames, Controllers and Models from Each Other}}
 
<!--<idltopic>com.sun.star.frame.XController;com.sun.star.frame.XModel;com.sun.star.frame.XFrame</idltopic>-->
 
<!--<idltopic>com.sun.star.frame.XController;com.sun.star.frame.XModel;com.sun.star.frame.XFrame</idltopic>-->
 
Usually developers require the controller and frame of an already loaded document model. The <idl>com.sun.star.frame.XModel</idl> interface of {{PRODUCTNAME}} document models gets the controller that provides access to the frame through its <idl>com.sun.star.frame.XController</idl> interface. The following illustration shows the methods that get the controller and frame for a document model and conversely. From the frame , obtain the corresponding component and container window.
 
Usually developers require the controller and frame of an already loaded document model. The <idl>com.sun.star.frame.XModel</idl> interface of {{PRODUCTNAME}} document models gets the controller that provides access to the frame through its <idl>com.sun.star.frame.XController</idl> interface. The following illustration shows the methods that get the controller and frame for a document model and conversely. From the frame , obtain the corresponding component and container window.

Revision as of 11:14, 13 May 2009



Usually developers require the controller and frame of an already loaded document model. The com.sun.star.frame.XModel interface of OpenOffice.org document models gets the controller that provides access to the frame through its com.sun.star.frame.XController interface. The following illustration shows the methods that get the controller and frame for a document model and conversely. From the frame , obtain the corresponding component and container window.

Frame-Controller-Model Organization

If the loaded component is a trivial component and implements com.sun.star.awt.XWindow only, the window and the window peer is reached by querying these interfaces from the com.sun.star.lang.XComponent returned by loadComponentFromURL().

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages