Difference between revisions of "Documentation/DevGuide/Drawings/Setting the Current Page"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
Line 27: Line 27:
 
<syntaxhighlight lang="java">
 
<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()</syntaxhighlight>
+
   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]].

Latest revision as of 14:54, 17 May 2022



The controller is a com.sun.star.drawing.DrawingDocumentDrawView that supports the following interfaces:

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.

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