前の関連記事:LibreOffice5(95)デスクトップのサービスとインターフェイスの一覧
デスクトップとフレームのサービスとインターフェイスの一覧
def macro(): ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。 smgr = ctx.getServiceManager() # サービスマネージャーの取得。 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。 desktop = ctx.getByName('/singletons/com.sun.star.frame.theDesktop') # com.sun.star.frame.Desktopはdeprecatedになっている。 doc = XSCRIPTCONTEXT.getDocument() # Calcドキュメント。 docframe = doc.getCurrentController().getFrame() # モデル→コントローラ→フレーム、でドキュメントのフレームを取得。 tcu.wcompare(desktop, docframe)object1がデスクトップ、object2がフレームになります。
object1とobject2に共通するサービスとインターフェイス一覧
├─.beans.XPropertySet
│ void addPropertyChangeListener( [in] string aPropertyName,
│ [in] .beans.XPropertyChangeListener xListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void addVetoableChangeListener( [in] string PropertyName,
│ [in] .beans.XVetoableChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ .beans.XPropertySetInfo getPropertySetInfo()
│ any getPropertyValue( [in] string PropertyName
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void removePropertyChangeListener( [in] string aPropertyName,
│ [in] .beans.XPropertyChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void removeVetoableChangeListener( [in] string PropertyName,
│ [in] .beans.XVetoableChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void setPropertyValue( [in] string aPropertyName,
│ [in] any aValue
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException,
│ .beans.UnknownPropertyException)
├─.frame.XComponentLoader
│ .lang.XComponent loadComponentFromURL( [in] string URL,
│ [in] string TargetFrameName,
│ [in] long SearchFlags,
│ [in] [.beans.PropertyValue] Arguments
│ ) raises ( .lang.IllegalArgumentException,
│ .io.IOException)
├─.frame.XDispatchProvider
│ .frame.XDispatch queryDispatch( [in] .util.URL URL,
│ [in] string TargetFrameName,
│ [in] long SearchFlags)
│ [.frame.XDispatch] queryDispatches( [in] [.frame.DispatchDescriptor] Requests)
├─.frame.XDispatchProviderInterception
│ void registerDispatchProviderInterceptor( [in] .frame.XDispatchProviderInterceptor Interceptor)
│ void releaseDispatchProviderInterceptor( [in] .frame.XDispatchProviderInterceptor Interceptor)
└─.frame.XFramesSupplier
│ .frame.XFrame getActiveFrame()
│ .frame.XFrames getFrames()
│ void setActiveFrame( [in] .frame.XFrame Frame)
└─.frame.XFrame
│ void activate()
│ void addFrameActionListener( [in] .frame.XFrameActionListener xListener)
│ void contextChanged()
│ void deactivate()
│ .frame.XFrame findFrame( [in] string aTargetFrameName,
│ [in] long nSearchFlags)
│ .awt.XWindow getComponentWindow()
│ .awt.XWindow getContainerWindow()
│ .frame.XController getController()
│ .frame.XFramesSupplier getCreator()
│ string getName()
│ void initialize( [in] .awt.XWindow xWindow)
│ boolean isActive()
│ boolean isTop()
│ void removeFrameActionListener( [in] .frame.XFrameActionListener xListener)
│ boolean setComponent( [in] .awt.XWindow xComponentWindow,
│ [in] .frame.XController xController)
│ void setCreator( [in] .frame.XFramesSupplier Creator)
│ void setName( [in] string aName)
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
object1だけがもつサービスとインターフェイス一覧
├─.frame.Desktop
│ └─.frame.XDesktop2
│ └─.frame.XDesktop
│ void addTerminateListener( [in] .frame.XTerminateListener Listener)
│ .container.XEnumerationAccess getComponents()
│ .lang.XComponent getCurrentComponent()
│ .frame.XFrame getCurrentFrame()
│ void removeTerminateListener( [in] .frame.XTerminateListener Listener)
│ boolean terminate()
├─.beans.XFastPropertySet
│ any getFastPropertyValue( [in] long nHandle
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void setFastPropertyValue( [in] long nHandle,
│ [in] any aValue
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException,
│ .beans.UnknownPropertyException)
├─.beans.XMultiPropertySet
│ void addPropertiesChangeListener( [in] [string] aPropertyNames,
│ [in] .beans.XPropertiesChangeListener xListener)
│ void firePropertiesChangeEvent( [in] [string] aPropertyNames,
│ [in] .beans.XPropertiesChangeListener xListener)
│ .beans.XPropertySetInfo getPropertySetInfo()
│ [any] getPropertyValues( [in] [string] aPropertyNames)
│ void removePropertiesChangeListener( [in] .beans.XPropertiesChangeListener xListener)
│ void setPropertyValues( [in] [string] aPropertyNames,
│ [in] [any] aValues
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException)
├─.frame.XTasksSupplier
│ .frame.XTask getActiveTask()
│ .container.XEnumerationAccess getTasks()
├─.frame.XUntitledNumbers
│ string getUntitledPrefix()
│ long leaseNumber( [in] .uno.XInterface xComponent
│ ) raises ( .lang.IllegalArgumentException)
│ void releaseNumber( [in] long nNumber
│ ) raises ( .lang.IllegalArgumentException)
│ void releaseNumberForComponent( [in] .uno.XInterface xComponent
│ ) raises ( .lang.IllegalArgumentException)
├─.task.XInteractionHandler
│ void handle( [in] .task.XInteractionRequest Request)
└──(サービスやインターフェイスに属しないプロパティ)
.lang.XComponent ActiveFrame
boolean IsPlugged
boolean SuspendQuickstartVeto
object2だけがもつサービスとインターフェイス一覧
├─.frame.Frame
│ └─.frame.XFrame2
│ │ .frame.XDispatchRecorderSupplier DispatchRecorderSupplier
│ │ .uno.XInterface LayoutManager
│ │ string Title
│ │ .container.XNameContainer UserDefinedAttributes
│ ├─.frame.XDispatchInformationProvider
│ │ [.frame.DispatchInformation] getConfigurableDispatchInformation( [in] short CommandGroup)
│ │ [short] getSupportedCommandGroups()
│ └─.task.XStatusIndicatorFactory
│ .task.XStatusIndicator createStatusIndicator()
├─.beans.XPropertySetInfo
│ [.beans.Property] getProperties()
│ .beans.Property getPropertyByName( [in] string aName
│ ) raises ( .beans.UnknownPropertyException)
│ boolean hasPropertyByName( [in] string Name)
├─.document.XActionLockable
│ void addActionLock()
│ boolean isActionLocked()
│ void removeActionLock()
│ short resetActionLocks()
│ void setActionLocks( [in] short nLock)
├─.frame.XTitle
│ string getTitle()
│ void setTitle( [in] string sTitle)
├─.frame.XTitleChangeBroadcaster
│ void addTitleChangeListener( [in] .frame.XTitleChangeListener xListener)
│ void removeTitleChangeListener( [in] .frame.XTitleChangeListener xListener)
├─.util.XCloseable
│ │ void close( [in] boolean DeliverOwnership
│ │ ) raises ( .util.CloseVetoException)
│ └─.util.XCloseBroadcaster
│ void addCloseListener( [in] .util.XCloseListener Listener)
│ void removeCloseListener( [in] .util.XCloseListener Listener)
└──(サービスやインターフェイスに属しないプロパティ)
.task.XStatusIndicator IndicatorInterception
boolean IsHidden
├─.beans.XPropertySet
│ void addPropertyChangeListener( [in] string aPropertyName,
│ [in] .beans.XPropertyChangeListener xListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void addVetoableChangeListener( [in] string PropertyName,
│ [in] .beans.XVetoableChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ .beans.XPropertySetInfo getPropertySetInfo()
│ any getPropertyValue( [in] string PropertyName
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void removePropertyChangeListener( [in] string aPropertyName,
│ [in] .beans.XPropertyChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void removeVetoableChangeListener( [in] string PropertyName,
│ [in] .beans.XVetoableChangeListener aListener
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void setPropertyValue( [in] string aPropertyName,
│ [in] any aValue
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException,
│ .beans.UnknownPropertyException)
├─.frame.XComponentLoader
│ .lang.XComponent loadComponentFromURL( [in] string URL,
│ [in] string TargetFrameName,
│ [in] long SearchFlags,
│ [in] [.beans.PropertyValue] Arguments
│ ) raises ( .lang.IllegalArgumentException,
│ .io.IOException)
├─.frame.XDispatchProvider
│ .frame.XDispatch queryDispatch( [in] .util.URL URL,
│ [in] string TargetFrameName,
│ [in] long SearchFlags)
│ [.frame.XDispatch] queryDispatches( [in] [.frame.DispatchDescriptor] Requests)
├─.frame.XDispatchProviderInterception
│ void registerDispatchProviderInterceptor( [in] .frame.XDispatchProviderInterceptor Interceptor)
│ void releaseDispatchProviderInterceptor( [in] .frame.XDispatchProviderInterceptor Interceptor)
└─.frame.XFramesSupplier
│ .frame.XFrame getActiveFrame()
│ .frame.XFrames getFrames()
│ void setActiveFrame( [in] .frame.XFrame Frame)
└─.frame.XFrame
│ void activate()
│ void addFrameActionListener( [in] .frame.XFrameActionListener xListener)
│ void contextChanged()
│ void deactivate()
│ .frame.XFrame findFrame( [in] string aTargetFrameName,
│ [in] long nSearchFlags)
│ .awt.XWindow getComponentWindow()
│ .awt.XWindow getContainerWindow()
│ .frame.XController getController()
│ .frame.XFramesSupplier getCreator()
│ string getName()
│ void initialize( [in] .awt.XWindow xWindow)
│ boolean isActive()
│ boolean isTop()
│ void removeFrameActionListener( [in] .frame.XFrameActionListener xListener)
│ boolean setComponent( [in] .awt.XWindow xComponentWindow,
│ [in] .frame.XController xController)
│ void setCreator( [in] .frame.XFramesSupplier Creator)
│ void setName( [in] string aName)
└─.lang.XComponent
void addEventListener( [in] .lang.XEventListener xListener)
void dispose()
void removeEventListener( [in] .lang.XEventListener aListener)
object1だけがもつサービスとインターフェイス一覧
├─.frame.Desktop
│ └─.frame.XDesktop2
│ └─.frame.XDesktop
│ void addTerminateListener( [in] .frame.XTerminateListener Listener)
│ .container.XEnumerationAccess getComponents()
│ .lang.XComponent getCurrentComponent()
│ .frame.XFrame getCurrentFrame()
│ void removeTerminateListener( [in] .frame.XTerminateListener Listener)
│ boolean terminate()
├─.beans.XFastPropertySet
│ any getFastPropertyValue( [in] long nHandle
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ void setFastPropertyValue( [in] long nHandle,
│ [in] any aValue
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException,
│ .beans.UnknownPropertyException)
├─.beans.XMultiPropertySet
│ void addPropertiesChangeListener( [in] [string] aPropertyNames,
│ [in] .beans.XPropertiesChangeListener xListener)
│ void firePropertiesChangeEvent( [in] [string] aPropertyNames,
│ [in] .beans.XPropertiesChangeListener xListener)
│ .beans.XPropertySetInfo getPropertySetInfo()
│ [any] getPropertyValues( [in] [string] aPropertyNames)
│ void removePropertiesChangeListener( [in] .beans.XPropertiesChangeListener xListener)
│ void setPropertyValues( [in] [string] aPropertyNames,
│ [in] [any] aValues
│ ) raises ( .lang.WrappedTargetException,
│ .lang.IllegalArgumentException,
│ .beans.PropertyVetoException)
├─.frame.XTasksSupplier
│ .frame.XTask getActiveTask()
│ .container.XEnumerationAccess getTasks()
├─.frame.XUntitledNumbers
│ string getUntitledPrefix()
│ long leaseNumber( [in] .uno.XInterface xComponent
│ ) raises ( .lang.IllegalArgumentException)
│ void releaseNumber( [in] long nNumber
│ ) raises ( .lang.IllegalArgumentException)
│ void releaseNumberForComponent( [in] .uno.XInterface xComponent
│ ) raises ( .lang.IllegalArgumentException)
├─.task.XInteractionHandler
│ void handle( [in] .task.XInteractionRequest Request)
└──(サービスやインターフェイスに属しないプロパティ)
.lang.XComponent ActiveFrame
boolean IsPlugged
boolean SuspendQuickstartVeto
object2だけがもつサービスとインターフェイス一覧
├─.frame.Frame
│ └─.frame.XFrame2
│ │ .frame.XDispatchRecorderSupplier DispatchRecorderSupplier
│ │ .uno.XInterface LayoutManager
│ │ string Title
│ │ .container.XNameContainer UserDefinedAttributes
│ ├─.frame.XDispatchInformationProvider
│ │ [.frame.DispatchInformation] getConfigurableDispatchInformation( [in] short CommandGroup)
│ │ [short] getSupportedCommandGroups()
│ └─.task.XStatusIndicatorFactory
│ .task.XStatusIndicator createStatusIndicator()
├─.beans.XPropertySetInfo
│ [.beans.Property] getProperties()
│ .beans.Property getPropertyByName( [in] string aName
│ ) raises ( .beans.UnknownPropertyException)
│ boolean hasPropertyByName( [in] string Name)
├─.document.XActionLockable
│ void addActionLock()
│ boolean isActionLocked()
│ void removeActionLock()
│ short resetActionLocks()
│ void setActionLocks( [in] short nLock)
├─.frame.XTitle
│ string getTitle()
│ void setTitle( [in] string sTitle)
├─.frame.XTitleChangeBroadcaster
│ void addTitleChangeListener( [in] .frame.XTitleChangeListener xListener)
│ void removeTitleChangeListener( [in] .frame.XTitleChangeListener xListener)
├─.util.XCloseable
│ │ void close( [in] boolean DeliverOwnership
│ │ ) raises ( .util.CloseVetoException)
│ └─.util.XCloseBroadcaster
│ void addCloseListener( [in] .util.XCloseListener Listener)
│ void removeCloseListener( [in] .util.XCloseListener Listener)
└──(サービスやインターフェイスに属しないプロパティ)
.task.XStatusIndicator IndicatorInterception
boolean IsHidden
0 件のコメント:
コメントを投稿