Difference between revisions of "Documentation/DevGuide/Text/Text Document Controller"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Text Documents) |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/Text/TextView | |NextPage=Documentation/DevGuide/Text/TextView | ||
}} | }} | ||
− | {{DISPLAYTITLE:Text Document Controller}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Text/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Text Document Controller}} | ||
<!--<idltopic>com.sun.star.frame.XModel;com.sun.star.document.XViewDataSupplier;com.sun.star.frame.Controller</idltopic>--> | <!--<idltopic>com.sun.star.frame.XModel;com.sun.star.document.XViewDataSupplier;com.sun.star.frame.Controller</idltopic>--> | ||
The text document model knows its controller and it can lock the controller to block user interaction. The appropriate methods in the model's <idl>com.sun.star.frame.XModel</idl> interface are: | The text document model knows its controller and it can lock the controller to block user interaction. The appropriate methods in the model's <idl>com.sun.star.frame.XModel</idl> interface are: | ||
Line 15: | Line 16: | ||
void setCurrentController( [in] com::sun::star::frame::XController xController) | void setCurrentController( [in] com::sun::star::frame::XController xController) | ||
− | The controller returned by <code>getCurrentController()</code> shares the following interfaces with all other document controllers in {{ | + | The controller returned by <code>getCurrentController()</code> shares the following interfaces with all other document controllers in {{AOo}}: |
* <idl>com.sun.star.frame.XController</idl> | * <idl>com.sun.star.frame.XController</idl> | ||
Line 25: | Line 26: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Text Documents]] |
Latest revision as of 16:22, 15 December 2020
The text document model knows its controller and it can lock the controller to block user interaction. The appropriate methods in the model's com.sun.star.frame.XModel interface are:
void lockControllers() void unlockControllers() boolean hasControllersLocked() com::sun::star::frame::XController getCurrentController() void setCurrentController( [in] com::sun::star::frame::XController xController)
The controller returned by getCurrentController()
shares the following interfaces with all other document controllers in Apache OpenOffice:
- com.sun.star.frame.XController
- com.sun.star.frame.XDispatchProvider
- com.sun.star.ui.XContextMenuInterceptor
Document controllers are explained in the Office Development.
Content on this page is licensed under the Public Documentation License (PDL). |