前の関連記事:LibreOffice5(123)コントロールダイアログのサービスとインターフェイスの一覧
コントロールダイアログとコンテナウィンドウとのサービスとインターフェイスの比較
def macro(): ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。 smgr = ctx.getServiceManager() # サービスマネージャーの取得。 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。 doc = XSCRIPTCONTEXT.getDocument() frame = doc.getCurrentController().getFrame() containerwindow = frame.getContainerWindow() unocontroldialog = smgr.createInstanceWithContext("com.sun.star.awt.UnoControlDialog", ctx) # コントロールダイアログ。 tcu.wcompare(unocontroldialog, containerwindow)object1がコントロールダイアログ、object2がドキュメントのコンテナウィンドウになります。
object1とobject2に共通するサービスとインターフェイス一覧
├─.accessibility.XAccessible
│ .accessibility.XAccessibleContext getAccessibleContext()
├─.awt.XStyleSettingsSupplier
│ .awt.XStyleSettings StyleSettings
├─.awt.XTopWindow
│ void addTopWindowListener( [in] .awt.XTopWindowListener xListener)
│ void removeTopWindowListener( [in] .awt.XTopWindowListener xListener)
│ void setMenuBar( [in] .awt.XMenuBar xMenu)
│ void toBack()
│ void toFront()
├─.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.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)
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
object1だけがもつサービスとインターフェイス一覧
├─.awt.UnoControlDialog
│ └─.awt.XUnoControlDialog
│ ├─.awt.XControl
│ │ void createPeer( [in] .awt.XToolkit Toolkit,
│ │ [in] .awt.XWindowPeer Parent)
│ │ .uno.XInterface getContext()
│ │ .awt.XControlModel getModel()
│ │ .awt.XWindowPeer getPeer()
│ │ .awt.XView getView()
│ │ boolean isDesignMode()
│ │ boolean isTransparent()
│ │ void setContext( [in] .uno.XInterface Context)
│ │ void setDesignMode( [in] boolean bOn)
│ │ boolean setModel( [in] .awt.XControlModel Model)
│ ├─.awt.XControlContainer
│ │ void addControl( [in] string Name,
│ │ [in] .awt.XControl Control)
│ │ .awt.XControl getControl( [in] string aName)
│ │ [.awt.XControl] getControls()
│ │ void removeControl( [in] .awt.XControl Control)
│ │ void setStatusText( [in] string StatusText)
│ └─.awt.XDialog2
│ │ void endDialog( [in] long Result)
│ │ void setHelpId( [in] string Id)
│ └─.awt.XDialog
│ void endExecute()
│ short execute()
│ string getTitle()
│ void setTitle( [in] string Title)
├─.awt.XUnoControlContainer
│ void addTabController( [in] .awt.XTabController TabController)
│ [.awt.XTabController] getTabControllers()
│ void removeTabController( [in] .awt.XTabController TabController)
│ void setTabControllers( [in] [.awt.XTabController] TabControllers)
├─.container.XContainer
│ void addContainerListener( [in] .container.XContainerListener xListener)
│ void removeContainerListener( [in] .container.XContainerListener xListener)
├─.container.XIdentifierContainer
│ │ long insert( [in] any aElement
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException)
│ │ void removeByIdentifier( [in] long Identifier
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException)
│ └─.container.XIdentifierReplace
│ │ void replaceByIdentifer( [in] long Identifier,
│ │ [in] any aElement
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException,
│ │ .lang.IllegalArgumentException)
│ └─.container.XIdentifierAccess
│ │ any getByIdentifier( [in] long Identifier
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException)
│ │ [long] getIdentifiers()
│ └─.container.XElementAccess
│ type getElementType()
│ boolean hasElements()
├─.util.XModeChangeBroadcaster
│ void addModeChangeApproveListener( [in] .util.XModeChangeApproveListener rxListener
│ ) raises ( .lang.NoSupportException)
│ void addModeChangeListener( [in] .util.XModeChangeListener rxListener)
│ void removeModeChangeApproveListener( [in] .util.XModeChangeApproveListener rxListener
│ ) raises ( .lang.NoSupportException)
│ void removeModeChangeListener( [in] .util.XModeChangeListener rxListener)
└─stardiv.vcl.control.Dialog
object2だけがもつサービスとインターフェイス一覧
├─.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.XSystemDependentWindowPeer
│ any getWindowHandle( [in] [byte] ProcessId,
│ [in] short SystemType)
├─.awt.XTopWindow2
│ long Display
│ boolean IsMaximized
│ boolean IsMinimized
├─.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)
└─.beans.XPropertySetInfo
[.beans.Property] getProperties()
.beans.Property getPropertyByName( [in] string aName
) raises ( .beans.UnknownPropertyException)
boolean hasPropertyByName( [in] string Name)
├─.accessibility.XAccessible
│ .accessibility.XAccessibleContext getAccessibleContext()
├─.awt.XStyleSettingsSupplier
│ .awt.XStyleSettings StyleSettings
├─.awt.XTopWindow
│ void addTopWindowListener( [in] .awt.XTopWindowListener xListener)
│ void removeTopWindowListener( [in] .awt.XTopWindowListener xListener)
│ void setMenuBar( [in] .awt.XMenuBar xMenu)
│ void toBack()
│ void toFront()
├─.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.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)
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
object1だけがもつサービスとインターフェイス一覧
├─.awt.UnoControlDialog
│ └─.awt.XUnoControlDialog
│ ├─.awt.XControl
│ │ void createPeer( [in] .awt.XToolkit Toolkit,
│ │ [in] .awt.XWindowPeer Parent)
│ │ .uno.XInterface getContext()
│ │ .awt.XControlModel getModel()
│ │ .awt.XWindowPeer getPeer()
│ │ .awt.XView getView()
│ │ boolean isDesignMode()
│ │ boolean isTransparent()
│ │ void setContext( [in] .uno.XInterface Context)
│ │ void setDesignMode( [in] boolean bOn)
│ │ boolean setModel( [in] .awt.XControlModel Model)
│ ├─.awt.XControlContainer
│ │ void addControl( [in] string Name,
│ │ [in] .awt.XControl Control)
│ │ .awt.XControl getControl( [in] string aName)
│ │ [.awt.XControl] getControls()
│ │ void removeControl( [in] .awt.XControl Control)
│ │ void setStatusText( [in] string StatusText)
│ └─.awt.XDialog2
│ │ void endDialog( [in] long Result)
│ │ void setHelpId( [in] string Id)
│ └─.awt.XDialog
│ void endExecute()
│ short execute()
│ string getTitle()
│ void setTitle( [in] string Title)
├─.awt.XUnoControlContainer
│ void addTabController( [in] .awt.XTabController TabController)
│ [.awt.XTabController] getTabControllers()
│ void removeTabController( [in] .awt.XTabController TabController)
│ void setTabControllers( [in] [.awt.XTabController] TabControllers)
├─.container.XContainer
│ void addContainerListener( [in] .container.XContainerListener xListener)
│ void removeContainerListener( [in] .container.XContainerListener xListener)
├─.container.XIdentifierContainer
│ │ long insert( [in] any aElement
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException)
│ │ void removeByIdentifier( [in] long Identifier
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException)
│ └─.container.XIdentifierReplace
│ │ void replaceByIdentifer( [in] long Identifier,
│ │ [in] any aElement
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException,
│ │ .lang.IllegalArgumentException)
│ └─.container.XIdentifierAccess
│ │ any getByIdentifier( [in] long Identifier
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .container.NoSuchElementException)
│ │ [long] getIdentifiers()
│ └─.container.XElementAccess
│ type getElementType()
│ boolean hasElements()
├─.util.XModeChangeBroadcaster
│ void addModeChangeApproveListener( [in] .util.XModeChangeApproveListener rxListener
│ ) raises ( .lang.NoSupportException)
│ void addModeChangeListener( [in] .util.XModeChangeListener rxListener)
│ void removeModeChangeApproveListener( [in] .util.XModeChangeApproveListener rxListener
│ ) raises ( .lang.NoSupportException)
│ void removeModeChangeListener( [in] .util.XModeChangeListener rxListener)
└─stardiv.vcl.control.Dialog
object2だけがもつサービスとインターフェイス一覧
├─.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.XSystemDependentWindowPeer
│ any getWindowHandle( [in] [byte] ProcessId,
│ [in] short SystemType)
├─.awt.XTopWindow2
│ long Display
│ boolean IsMaximized
│ boolean IsMinimized
├─.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)
└─.beans.XPropertySetInfo
[.beans.Property] getProperties()
.beans.Property getPropertyByName( [in] string aName
) raises ( .beans.UnknownPropertyException)
boolean hasPropertyByName( [in] string Name)
0 件のコメント:
コメントを投稿