前の関連記事:LibreOffice5(117)コンテナウィンドウのサービスとインターフェイスの一覧
コンポーネントウィンドウのサービスとインターフェイスの一覧
def macro(): ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。 smgr = ctx.getServiceManager() # サービスマネージャーの取得。 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。 doc = XSCRIPTCONTEXT.getDocument() frame = doc.getCurrentController().getFrame() componentwindow = frame.getComponentWindow() tcu.wtree(componentwindow)
├─.accessibility.XAccessible
│ .accessibility.XAccessibleContext getAccessibleContext()
├─.awt.XDevice
│ .awt.XBitmap createBitmap( [in] long nX,
│ [in] long nY,
│ [in] long nWidth,
│ [in] long nHeight)
│ .awt.XDevice createDevice( [in] long nWidth,
│ [in] long nHeight)
│ .awt.XDisplayBitmap createDisplayBitmap( [in] .awt.XBitmap Bitmap)
│ .awt.XGraphics createGraphics()
│ .awt.XFont getFont( [in] .awt.FontDescriptor aDescriptor)
│ [.awt.FontDescriptor] getFontDescriptors()
│ .awt.DeviceInfo getInfo()
├─.awt.XDockableWindow
│ void addDockableWindowListener( [in] .awt.XDockableWindowListener xListener)
│ void enableDocking( [in] boolean bEnable)
│ boolean isFloating()
│ boolean isInPopupMode()
│ boolean isLocked()
│ void lock()
│ void removeDockableWindowListener( [in] .awt.XDockableWindowListener xListener)
│ void setFloatingMode( [in] boolean bFloating)
│ void startPopupMode( [in] .awt.Rectangle WindowRect)
│ void unlock()
├─.awt.XLayoutConstrains
│ .awt.Size calcAdjustedSize( [in] .awt.Size aNewSize)
│ .awt.Size getMinimumSize()
│ .awt.Size getPreferredSize()
├─.awt.XStyleSettingsSupplier
│ .awt.XStyleSettings StyleSettings
├─.awt.XUnitConversion
│ .awt.Point convertPointToLogic( [in] .awt.Point Point,
│ [in] short TargetUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Point convertPointToPixel( [in] .awt.Point Point,
│ [in] short SourceUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Size convertSizeToLogic( [in] .awt.Size Size,
│ [in] short TargetUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Size convertSizeToPixel( [in] .awt.Size Size,
│ [in] short SourceUnit
│ ) raises ( .lang.IllegalArgumentException)
├─.awt.XVclContainer
│ void addVclContainerListener( [in] .awt.XVclContainerListener l)
│ [.awt.XWindow] getWindows()
│ void removeVclContainerListener( [in] .awt.XVclContainerListener l)
├─.awt.XVclContainerPeer
│ void enableDialogControl( [in] boolean bEnable)
│ void setGroup( [in] [.awt.XWindow] Windows)
│ void setTabOrder( [in] [.awt.XWindow] WindowOrder,
│ [in] [any] Tabs,
│ [in] boolean GroupControl)
├─.awt.XVclWindowPeer
│ │ void enableClipSiblings( [in] boolean bClip)
│ │ any getProperty( [in] string PropertyName)
│ │ void getStyles( [in] short nType,
│ │ [out] .awt.FontDescriptor Font,
│ │ [out] .util.Color ForegroundColor,
│ │ [out] .util.Color BackgroundColor)
│ │ boolean isChild( [in] .awt.XWindowPeer Peer)
│ │ boolean isDesignMode()
│ │ void setControlFont( [in] .awt.FontDescriptor aFont)
│ │ void setDesignMode( [in] boolean bOn)
│ │ void setForeground( [in] .util.Color Color)
│ │ void setProperty( [in] string PropertyName,
│ │ [in] any Value)
│ └─.awt.XWindowPeer
│ │ .awt.XToolkit getToolkit()
│ │ void invalidate( [in] short Flags)
│ │ void invalidateRect( [in] .awt.Rectangle Rect,
│ │ [in] short Flags)
│ │ void setBackground( [in] .util.Color Color)
│ │ void setPointer( [in] .awt.XPointer Pointer)
│ └─.lang.XComponent
│ void addEventListener( [in] .lang.XEventListener xListener)
│ void dispose()
│ void removeEventListener( [in] .lang.XEventListener aListener)
├─.awt.XView
│ void draw( [in] long nX,
│ [in] long nY)
│ .awt.XGraphics getGraphics()
│ .awt.Size getSize()
│ boolean setGraphics( [in] .awt.XGraphics aDevice)
│ void setZoom( [in] float fZoomX,
│ [in] float fZoomY)
├─.awt.XWindow2
│ │ .awt.Size getOutputSize()
│ │ boolean hasFocus()
│ │ boolean isActive()
│ │ boolean isEnabled()
│ │ boolean isVisible()
│ │ void setOutputSize( [in] .awt.Size Size)
│ └─.awt.XWindow
│ void addFocusListener( [in] .awt.XFocusListener xListener)
│ void addKeyListener( [in] .awt.XKeyListener xListener)
│ void addMouseListener( [in] .awt.XMouseListener xListener)
│ void addMouseMotionListener( [in] .awt.XMouseMotionListener xListener)
│ void addPaintListener( [in] .awt.XPaintListener xListener)
│ void addWindowListener( [in] .awt.XWindowListener xListener)
│ .awt.Rectangle getPosSize()
│ void removeFocusListener( [in] .awt.XFocusListener xListener)
│ void removeKeyListener( [in] .awt.XKeyListener xListener)
│ void removeMouseListener( [in] .awt.XMouseListener xListener)
│ void removeMouseMotionListener( [in] .awt.XMouseMotionListener xListener)
│ void removePaintListener( [in] .awt.XPaintListener xListener)
│ void removeWindowListener( [in] .awt.XWindowListener xListener)
│ void setEnable( [in] boolean Enable)
│ void setFocus()
│ void setPosSize( [in] long X,
│ [in] long Y,
│ [in] long Width,
│ [in] long Height,
│ [in] short Flags)
│ void setVisible( [in] boolean Visible)
└─.beans.XPropertySetInfo
[.beans.Property] getProperties()
.beans.Property getPropertyByName( [in] string aName
) raises ( .beans.UnknownPropertyException)
boolean hasPropertyByName( [in] string Name)
│ .accessibility.XAccessibleContext getAccessibleContext()
├─.awt.XDevice
│ .awt.XBitmap createBitmap( [in] long nX,
│ [in] long nY,
│ [in] long nWidth,
│ [in] long nHeight)
│ .awt.XDevice createDevice( [in] long nWidth,
│ [in] long nHeight)
│ .awt.XDisplayBitmap createDisplayBitmap( [in] .awt.XBitmap Bitmap)
│ .awt.XGraphics createGraphics()
│ .awt.XFont getFont( [in] .awt.FontDescriptor aDescriptor)
│ [.awt.FontDescriptor] getFontDescriptors()
│ .awt.DeviceInfo getInfo()
├─.awt.XDockableWindow
│ void addDockableWindowListener( [in] .awt.XDockableWindowListener xListener)
│ void enableDocking( [in] boolean bEnable)
│ boolean isFloating()
│ boolean isInPopupMode()
│ boolean isLocked()
│ void lock()
│ void removeDockableWindowListener( [in] .awt.XDockableWindowListener xListener)
│ void setFloatingMode( [in] boolean bFloating)
│ void startPopupMode( [in] .awt.Rectangle WindowRect)
│ void unlock()
├─.awt.XLayoutConstrains
│ .awt.Size calcAdjustedSize( [in] .awt.Size aNewSize)
│ .awt.Size getMinimumSize()
│ .awt.Size getPreferredSize()
├─.awt.XStyleSettingsSupplier
│ .awt.XStyleSettings StyleSettings
├─.awt.XUnitConversion
│ .awt.Point convertPointToLogic( [in] .awt.Point Point,
│ [in] short TargetUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Point convertPointToPixel( [in] .awt.Point Point,
│ [in] short SourceUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Size convertSizeToLogic( [in] .awt.Size Size,
│ [in] short TargetUnit
│ ) raises ( .lang.IllegalArgumentException)
│ .awt.Size convertSizeToPixel( [in] .awt.Size Size,
│ [in] short SourceUnit
│ ) raises ( .lang.IllegalArgumentException)
├─.awt.XVclContainer
│ void addVclContainerListener( [in] .awt.XVclContainerListener l)
│ [.awt.XWindow] getWindows()
│ void removeVclContainerListener( [in] .awt.XVclContainerListener l)
├─.awt.XVclContainerPeer
│ void enableDialogControl( [in] boolean bEnable)
│ void setGroup( [in] [.awt.XWindow] Windows)
│ void setTabOrder( [in] [.awt.XWindow] WindowOrder,
│ [in] [any] Tabs,
│ [in] boolean GroupControl)
├─.awt.XVclWindowPeer
│ │ void enableClipSiblings( [in] boolean bClip)
│ │ any getProperty( [in] string PropertyName)
│ │ void getStyles( [in] short nType,
│ │ [out] .awt.FontDescriptor Font,
│ │ [out] .util.Color ForegroundColor,
│ │ [out] .util.Color BackgroundColor)
│ │ boolean isChild( [in] .awt.XWindowPeer Peer)
│ │ boolean isDesignMode()
│ │ void setControlFont( [in] .awt.FontDescriptor aFont)
│ │ void setDesignMode( [in] boolean bOn)
│ │ void setForeground( [in] .util.Color Color)
│ │ void setProperty( [in] string PropertyName,
│ │ [in] any Value)
│ └─.awt.XWindowPeer
│ │ .awt.XToolkit getToolkit()
│ │ void invalidate( [in] short Flags)
│ │ void invalidateRect( [in] .awt.Rectangle Rect,
│ │ [in] short Flags)
│ │ void setBackground( [in] .util.Color Color)
│ │ void setPointer( [in] .awt.XPointer Pointer)
│ └─.lang.XComponent
│ void addEventListener( [in] .lang.XEventListener xListener)
│ void dispose()
│ void removeEventListener( [in] .lang.XEventListener aListener)
├─.awt.XView
│ void draw( [in] long nX,
│ [in] long nY)
│ .awt.XGraphics getGraphics()
│ .awt.Size getSize()
│ boolean setGraphics( [in] .awt.XGraphics aDevice)
│ void setZoom( [in] float fZoomX,
│ [in] float fZoomY)
├─.awt.XWindow2
│ │ .awt.Size getOutputSize()
│ │ boolean hasFocus()
│ │ boolean isActive()
│ │ boolean isEnabled()
│ │ boolean isVisible()
│ │ void setOutputSize( [in] .awt.Size Size)
│ └─.awt.XWindow
│ void addFocusListener( [in] .awt.XFocusListener xListener)
│ void addKeyListener( [in] .awt.XKeyListener xListener)
│ void addMouseListener( [in] .awt.XMouseListener xListener)
│ void addMouseMotionListener( [in] .awt.XMouseMotionListener xListener)
│ void addPaintListener( [in] .awt.XPaintListener xListener)
│ void addWindowListener( [in] .awt.XWindowListener xListener)
│ .awt.Rectangle getPosSize()
│ void removeFocusListener( [in] .awt.XFocusListener xListener)
│ void removeKeyListener( [in] .awt.XKeyListener xListener)
│ void removeMouseListener( [in] .awt.XMouseListener xListener)
│ void removeMouseMotionListener( [in] .awt.XMouseMotionListener xListener)
│ void removePaintListener( [in] .awt.XPaintListener xListener)
│ void removeWindowListener( [in] .awt.XWindowListener xListener)
│ void setEnable( [in] boolean Enable)
│ void setFocus()
│ void setPosSize( [in] long X,
│ [in] long Y,
│ [in] long Width,
│ [in] long Height,
│ [in] short Flags)
│ void setVisible( [in] boolean Visible)
└─.beans.XPropertySetInfo
[.beans.Property] getProperties()
.beans.Property getPropertyByName( [in] string aName
) raises ( .beans.UnknownPropertyException)
boolean hasPropertyByName( [in] string Name)
AccessibleWindowのサービスとインターフェイスの一覧
AccessibleWindowはコンテナウィンドウやコンポーネントウィンドウのgetAccessibleContext()メソッドで取得できます。
AccessibleWindowのgetLocationOnScreen()メソッドでそれぞれのウィンドウの左上の角のディスプレイ上の相対位置がピクセルで取得できました。
def macro(): ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。 smgr = ctx.getServiceManager() # サービスマネージャーの取得。 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。 doc = XSCRIPTCONTEXT.getDocument() frame = doc.getCurrentController().getFrame() componentwindow = frame.getComponentWindow() tcu.wtree(componentwindow.getAccessibleContext())
├─.awt.AccessibleWindow
│ ├─.accessibility.XAccessibleComponent
│ │ boolean containsPoint( [in] .awt.Point Point)
│ │ .accessibility.XAccessible getAccessibleAtPoint( [in] .awt.Point Point)
│ │ .util.Color getBackground()
│ │ .awt.Rectangle getBounds()
│ │ .util.Color getForeground()
│ │ .awt.Point getLocation()
│ │ .awt.Point getLocationOnScreen()
│ │ .awt.Size getSize()
│ │ void grabFocus()
│ ├─.accessibility.XAccessibleContext
│ │ .accessibility.XAccessible getAccessibleChild( [in] long i
│ │ ) raises ( .lang.IndexOutOfBoundsException)
│ │ long getAccessibleChildCount()
│ │ string getAccessibleDescription()
│ │ long getAccessibleIndexInParent()
│ │ string getAccessibleName()
│ │ .accessibility.XAccessible getAccessibleParent()
│ │ .accessibility.XAccessibleRelationSet getAccessibleRelationSet()
│ │ short getAccessibleRole()
│ │ .accessibility.XAccessibleStateSet getAccessibleStateSet()
│ │ .lang.Locale getLocale()
│ ├─.accessibility.XAccessibleEventBroadcaster
│ │ void addAccessibleEventListener( [in] .accessibility.XAccessibleEventListener xListener)
│ │ void removeAccessibleEventListener( [in] .accessibility.XAccessibleEventListener xListener)
│ └─.accessibility.XAccessibleExtendedComponent
│ .awt.XFont getFont()
│ string getTitledBorderText()
│ string getToolTipText()
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
│ ├─.accessibility.XAccessibleComponent
│ │ boolean containsPoint( [in] .awt.Point Point)
│ │ .accessibility.XAccessible getAccessibleAtPoint( [in] .awt.Point Point)
│ │ .util.Color getBackground()
│ │ .awt.Rectangle getBounds()
│ │ .util.Color getForeground()
│ │ .awt.Point getLocation()
│ │ .awt.Point getLocationOnScreen()
│ │ .awt.Size getSize()
│ │ void grabFocus()
│ ├─.accessibility.XAccessibleContext
│ │ .accessibility.XAccessible getAccessibleChild( [in] long i
│ │ ) raises ( .lang.IndexOutOfBoundsException)
│ │ long getAccessibleChildCount()
│ │ string getAccessibleDescription()
│ │ long getAccessibleIndexInParent()
│ │ string getAccessibleName()
│ │ .accessibility.XAccessible getAccessibleParent()
│ │ .accessibility.XAccessibleRelationSet getAccessibleRelationSet()
│ │ short getAccessibleRole()
│ │ .accessibility.XAccessibleStateSet getAccessibleStateSet()
│ │ .lang.Locale getLocale()
│ ├─.accessibility.XAccessibleEventBroadcaster
│ │ void addAccessibleEventListener( [in] .accessibility.XAccessibleEventListener xListener)
│ │ void removeAccessibleEventListener( [in] .accessibility.XAccessibleEventListener xListener)
│ └─.accessibility.XAccessibleExtendedComponent
│ .awt.XFont getFont()
│ string getTitledBorderText()
│ string getToolTipText()
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
0 件のコメント:
コメントを投稿