stardiv.Toolkit.UnoDialogControlはOpenOffice/LibreOffice Basicにおいてダイアログを制御するためのクラスです。

属性の概要

stardiv.Toolkit.UnoDialogControlの属性
属性 説明
SbxOBJECT MenuBar
SbxSTRING Title
SbxARRAY Types
SbxARRAY ImplementationId
SbxARRAY TabControllers
SbxARRAY Controls
SbxSTRING StatusText
SbxOBJECT ElementType
SbxARRAY Identifiers
SbxOBJECT Context
SbxOBJECT Peer
SbxOBJECT Model
SbxOBJECT View
SbxBOOL DesignMode
SbxOBJECT PosSize
SbxOBJECT OutputSize
SbxBOOL Visible
SbxBOOL Enable
SbxOBJECT Graphics
SbxOBJECT Size
SbxSTRING ImplementationName
SbxARRAY SupportedServiceNames
SbxOBJECT AccessibleContext
SbxOBJECT Delegator
SbxSTRING Dbg_SupportedInterfaces サポートしているインタフェースの一覧
SbxSTRING Dbg_Properties 属性の一覧
SbxSTRING Dbg_Methods メソッドの一覧

メソッドの概要

stardiv.Toolkit.UnoDialogControlのメソッド
メソッド 説明
SbxEMPTY queryInterface ( SbxOBJECT )
SbxVOID disposing ( SbxOBJECT )
SbxVOID elementInserted ( SbxOBJECT )
SbxVOID elementRemoved ( SbxOBJECT )
SbxVOID elementReplaced ( SbxOBJECT )
SbxVOID addTopWindowListener ( SbxOBJECT )
SbxVOID removeTopWindowListener ( SbxOBJECT )
SbxVOID toFront ( void )
SbxVOID toBack ( void )
SbxVOID setMenuBar ( SbxOBJECT )
SbxVOID setTitle ( SbxSTRING )
SbxSTRING getTitle ( void )
SbxINTEGER execute ( void ) ダイアログを実行させる
SbxVOID endExecute ( void ) ダイアログの実行を終了させる
SbxVOID changesOccurred ( SbxOBJECT )
SbxVOID modified ( SbxOBJECT )
SbxVOID windowResized ( SbxOBJECT )
SbxVOID windowMoved ( SbxOBJECT )
SbxVOID windowShown ( SbxOBJECT )
SbxVOID windowHidden ( SbxOBJECT )
SbxARRAY getTypes ( void )
SbxARRAY getImplementationId ( void )
SbxVOID setTabControllers ( SbxARRAY )
SbxARRAY getTabControllers ( void )
SbxVOID addTabController ( SbxOBJECT )
SbxVOID removeTabController ( SbxOBJECT )
SbxVOID setStatusText ( SbxSTRING )
SbxARRAY getControls ( void )
SbxOBJECT getControl ( SbxSTRING ) コントロールへの参照を返す
SbxVOID addControl ( SbxSTRING, SbxOBJECT )
SbxVOID removeControl ( SbxOBJECT )
SbxVOID addContainerListener ( SbxOBJECT )
SbxVOID removeContainerListener ( SbxOBJECT )
SbxOBJECT getElementType ( void )
SbxBOOL hasElements ( void )
SbxEMPTY getByIdentifier ( SbxLONG )
SbxARRAY getIdentifiers ( void )
SbxVOID replaceByIdentifer ( SbxLONG, SbxVARIANT )
SbxLONG insert ( SbxVARIANT )
SbxVOID removeByIdentifier ( SbxLONG )
SbxVOID dispose ( void )
SbxVOID addEventListener ( SbxOBJECT )
SbxVOID removeEventListener ( SbxOBJECT )
SbxVOID setContext ( SbxOBJECT )
SbxOBJECT getContext ( void )
SbxVOID createPeer ( SbxOBJECT, SbxOBJECT )
SbxOBJECT getPeer ( void )
SbxBOOL setModel ( SbxOBJECT )
SbxOBJECT getModel ( void )
SbxOBJECT getView ( void )
SbxVOID setDesignMode ( SbxBOOL )
SbxBOOL isDesignMode ( void )
SbxBOOL isTransparent ( void )
SbxVOID setPosSize ( SbxLONG, SbxLONG, SbxLONG, SbxLONG, SbxINTEGER )
SbxOBJECT getPosSize ( void )
SbxVOID setVisible ( SbxBOOL )
SbxVOID setEnable ( SbxBOOL )
SbxVOID setFocus ( void )
SbxVOID addWindowListener ( SbxOBJECT )
SbxVOID removeWindowListener ( SbxOBJECT )
SbxVOID addFocusListener ( SbxOBJECT )
SbxVOID removeFocusListener ( SbxOBJECT )
SbxVOID addKeyListener ( SbxOBJECT )
SbxVOID removeKeyListener ( SbxOBJECT )
SbxVOID addMouseListener ( SbxOBJECT )
SbxVOID removeMouseListener ( SbxOBJECT )
SbxVOID addMouseMotionListener ( SbxOBJECT )
SbxVOID removeMouseMotionListener ( SbxOBJECT )
SbxVOID addPaintListener ( SbxOBJECT )
SbxVOID removePaintListener ( SbxOBJECT )
SbxVOID setOutputSize ( SbxOBJECT )
SbxOBJECT getOutputSize ( void )
SbxBOOL isVisible ( void )
SbxBOOL isActive ( void )
SbxBOOL isEnabled ( void )
SbxBOOL hasFocus ( void )
SbxBOOL setGraphics ( SbxOBJECT )
SbxOBJECT getGraphics ( void )
SbxOBJECT getSize ( void )
SbxVOID draw ( SbxLONG, SbxLONG )
SbxVOID setZoom ( SbxSINGLE, SbxSINGLE )
SbxVOID propertiesChange ( SbxARRAY )
SbxSTRING getImplementationName ( void )
SbxBOOL supportsService ( SbxSTRING )
SbxARRAY getSupportedServiceNames ( void )
SbxOBJECT getAccessibleContext ( void )
SbxVOID addModeChangeListener ( SbxOBJECT )
SbxVOID removeModeChangeListener ( SbxOBJECT )
SbxVOID addModeChangeApproveListener ( SbxOBJECT )
SbxVOID removeModeChangeApproveListener ( SbxOBJECT )
SbxOBJECT queryAdapter ( void )
SbxVOID setDelegator ( SbxOBJECT )
SbxEMPTY queryAggregation ( SbxOBJECT )

属性の詳細

ダイアログ・コントロールの属性
名前 種類
Menubar Object(配列)
Title String
Types Object(配列)
ImplemnetationId Integer(配列)
TabControllers Object(配列)
Controls Object(配列)
StatusText String
ElementType Object
Identifiers Long(配列)
Context Object
Peer Object
DesignMode Boolean
Visible Boolean
Enable Boolean
Graphics Object
ImplementationName String
SupportedServiceNames String(配列)
AccessibleContext com.sun.start.comp.toolkit.AccessibleDropDownListBox
Delegator Object

Model

stardiv.Toolkit.UnoControlDialogModel

View

stardiv.Toolkit.UnoDialogControl

PosSize

com.sun.star.awt.Rectangle

OutputSize

com.sun.star.awt.Size

Size

ダイアログの大きさ(幅と高さ)を表すcom.sun.star.awt.Sizeオブジェクト

Dbg_Properties

Dim Dbg_Properties As String

このオブジェクトが持つ属性(プロパティ)の一覧(各属性がセミコロン記号で区切られた文字列)

Dbg_Methods

Dim Dbg_Methods As String

このオブジェクトが持つメソッドの一覧(各メソッドがセミコロン記号で区切られた文字列)

メソッドの詳細

execute

ダイアログを実行させる

呼び出し形式

Function endExecute As Integer

引数

無し

戻り値

使用例

Dim oDialog As Object

BasicLibraries.LoadLibrary("Tools")
oDialog = LoadDialog("Standard", "MyDialog")
oDialog.execute
oDialog.endExecute

endExecute

ダイアログの実行を終了させる

呼び出し形式

Sub endExecute

引数

無し

戻り値

無し

使用例

Dim oDialog As Object

BasicLibraries.LoadLibrary("Tools")
oDialog = LoadDialog("Standard", "MyDialog")
oDialog.execute
oDialog.endExecute

getControl

コントロール・オブジェクトへの参照を返す

呼び出し形式

Function getControl( name As String) As Object

引数

name
コントロールの名前

戻り値

コントロール・オブジェクトへの参照を返す

使用例

Dim oDialog As Object
Dim oCheckBox As Object
Dim oDateField As Object
Dim oListBox As Object
Dim oNumericField As Object
Dim oRadioButton As Object

BasicLibraries.LoadLibrary("Tools")
oDialog = LoadDialog("Standard", "MyDialog")
oDialog.execute

oCheckBox     = oDialog.GetControl("CheckBox1")
oDateField    = oDialog.GetControl("DateField1")
oListBox      = oDialog.GetControl("ListBox1")
oNumericField = oDialog.GetControl("NumericField1")
oRadioButton  = oDialog.GetControl("OptionButton1")