Difference between revisions of "Documentation/DevGuide/Drawings/Setting the Current Page"
From Apache OpenOffice Wiki
< Documentation | DevGuide
(Initial author Sun Microsystems, Inc.) |
m |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/Drawings/Zooming | |NextPage=Documentation/DevGuide/Drawings/Zooming | ||
}} | }} | ||
| − | {{DISPLAYTITLE:Setting the Current Page, Using the Selection}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Drawings/{{SUBPAGENAME}}}} |
| + | {{DISPLAYTITLE:Setting the Current Page, Using the Selection}} | ||
<!--<idltopic>com.sun.star.drawing.DrawingDocumentDrawView;com.sun.star.view.XSelectionSupplier</idltopic>--> | <!--<idltopic>com.sun.star.drawing.DrawingDocumentDrawView;com.sun.star.view.XSelectionSupplier</idltopic>--> | ||
The controller is a <idl>com.sun.star.drawing.DrawingDocumentDrawView</idl> that supports the following interfaces: | The controller is a <idl>com.sun.star.drawing.DrawingDocumentDrawView</idl> that supports the following interfaces: | ||
| Line 15: | Line 16: | ||
The following methods of <idl>com.sun.star.view.XSelectionSupplier</idl> control the current selection in the GUI: | The following methods of <idl>com.sun.star.view.XSelectionSupplier</idl> control the current selection in the GUI: | ||
| − | + | <syntaxhighlight lang="idl"> | |
boolean select( [in] any anObject) | boolean select( [in] any anObject) | ||
any getSelection() | any getSelection() | ||
| Line 21: | Line 22: | ||
[in] com::sun::star::view::XSelectionChangeListener aListen | [in] com::sun::star::view::XSelectionChangeListener aListen | ||
void removeSelectionChangeListener ( | void removeSelectionChangeListener ( | ||
| − | [in] com::sun::star::view::XSelectionChangeListener aListener) | + | [in] com::sun::star::view::XSelectionChangeListener aListener)</syntaxhighlight> |
With these methods of <idl>com.sun.star.drawing.XDrawView</idl>, the visible page is set in the GUI: | With these methods of <idl>com.sun.star.drawing.XDrawView</idl>, the visible page is set in the GUI: | ||
| − | + | <syntaxhighlight lang="java"> | |
void setCurrentPage(com::sun::star::drawing::XDrawPage aPage) | void setCurrentPage(com::sun::star::drawing::XDrawPage aPage) | ||
com::sun::star::drawing::XDrawPage getCurrentPage() | com::sun::star::drawing::XDrawPage getCurrentPage() | ||
| + | </syntaxhighlight> | ||
In addition to <code>DrawingDocumentDrawView</code>, it supports the following interfaces. For details about these interfaces, refer to [[Documentation/DevGuide/OfficeDev/Office Development|Office Development]]. | In addition to <code>DrawingDocumentDrawView</code>, it supports the following interfaces. For details about these interfaces, refer to [[Documentation/DevGuide/OfficeDev/Office Development|Office Development]]. | ||
| Line 35: | Line 37: | ||
{{PDL1}} | {{PDL1}} | ||
| − | [[Category: Drawing Documents and Presentation Documents]] | + | |
| + | [[Category:Documentation/Developer's Guide/Drawing Documents and Presentation Documents]] | ||
Latest revision as of 14:54, 17 May 2022
The controller is a com.sun.star.drawing.DrawingDocumentDrawView that supports the following interfaces:
- com.sun.star.drawing.XDrawView
- com.sun.star.beans.XPropertySet
- com.sun.star.frame.XController
- com.sun.star.view.XSelectionSupplier
The following methods of com.sun.star.view.XSelectionSupplier control the current selection in the GUI:
boolean select( [in] any anObject)
any getSelection()
void addSelectionChangeListener (
[in] com::sun::star::view::XSelectionChangeListener aListen
void removeSelectionChangeListener (
[in] com::sun::star::view::XSelectionChangeListener aListener)
With these methods of com.sun.star.drawing.XDrawView, the visible page is set in the GUI:
void setCurrentPage(com::sun::star::drawing::XDrawPage aPage)
com::sun::star::drawing::XDrawPage getCurrentPage()
In addition to DrawingDocumentDrawView, it supports the following interfaces. For details about these interfaces, refer to Office Development.
- com.sun.star.task.XStatusIndicatorSupplier
- com.sun.star.ui.XContextMenuInterception
- com.sun.star.frame.XDispatchProvider
| Content on this page is licensed under the Public Documentation License (PDL). |