LibreOffice5(117)コンテナウィンドウのサービスとインターフェイスの一覧

2017-12-31

旧ブログ

t f B! P L
Calcドキュメントからフレームを取得してそのフレームからコンテナウィンドウを取得しました。コンテナウィンドウとはつまりドキュメントのウィンドウのことになります。

前の関連記事:LibreOffice5(116)埋め込みマクロからPythonモジュールをロードする方法


コンテナウィンドウのサービスとインターフェイスの一覧

def macro():
 ctx = XSCRIPTCONTEXT.getComponentContext()  # コンポーネントコンテクストの取得。
 smgr = ctx.getServiceManager()  # サービスマネージャーの取得。 
 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx)  # サービス名か実装名でインスタンス化。
 doc = XSCRIPTCONTEXT.getDocument()
 frame = doc.getCurrentController().getFrame() 
 containerwindow = frame.getContainerWindow()
 tcu.wtree(containerwindow)

├─.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.XSystemDependentWindowPeer
│     any  getWindowHandle( [in] [byte] ProcessId,
│                           [in]  short SystemType)
├─.awt.XTopWindow2
│   │      long  Display
│   │   boolean  IsMaximized
│   │   boolean  IsMinimized
│   └─.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.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)

次の関連記事:LibreOffice5(118)コンポーネントウィンドウのサービスとインターフェイスの一覧

ブログ検索 by Blogger

Translate

最近のコメント

Created by Calendar Gadget

QooQ