1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE script:module PUBLIC
"-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:
script=
"http://openoffice.org/2000/script" script:
name=
"Dialog" script:
language=
"StarBasic">REM =======================================================================================================================
4 REM === The Access2Base library is a part of the LibreOffice project. ===
5 REM === Full documentation is available on http://www.access2base.com ===
6 REM =======================================================================================================================
13 REM -----------------------------------------------------------------------------------------------------------------------
14 REM --- CLASS ROOT FIELDS ---
15 REM -----------------------------------------------------------------------------------------------------------------------
17 Private _Type As String
' Must be FORM
18 Private _Name As String
19 Private _Shortcut As String
20 Private _Dialog As Object
' com.sun.star.io.XInputStreamProvider
21 Private UnoDialog As Object
' com.sun.star.awt.XControl
23 REM -----------------------------------------------------------------------------------------------------------------------
24 REM --- CONSTRUCTORS / DESTRUCTORS ---
25 REM -----------------------------------------------------------------------------------------------------------------------
26 Private Sub Class_Initialize()
30 Set UnoDialog = Nothing
31 End Sub
' Constructor
33 REM -----------------------------------------------------------------------------------------------------------------------
34 Private Sub Class_Terminate()
35 On Local Error Resume Next
36 Call Class_Initialize()
37 End Sub
' Destructor
39 REM -----------------------------------------------------------------------------------------------------------------------
41 Call Class_Terminate()
42 End Sub
' Explicit destructor
44 REM -----------------------------------------------------------------------------------------------------------------------
45 REM --- CLASS GET/LET/SET PROPERTIES ---
46 REM -----------------------------------------------------------------------------------------------------------------------
47 REM -----------------------------------------------------------------------------------------------------------------------
48 Property Get Caption() As Variant
49 Caption = _PropertyGet(
"Caption
")
50 End Property
' Caption (get)
52 Property Let Caption(ByVal pvValue As Variant)
53 Call _PropertySet(
"Caption
", pvValue)
54 End Property
' Caption (set)
56 REM -----------------------------------------------------------------------------------------------------------------------
57 Property Get Height() As Variant
58 Height = _PropertyGet(
"Height
")
59 End Property
' Height (get)
61 Property Let Height(ByVal pvValue As Variant)
62 Call _PropertySet(
"Height
", pvValue)
63 End Property
' Height (set)
65 REM -----------------------------------------------------------------------------------------------------------------------
66 Property Get IsLoaded() As Boolean
67 IsLoaded = _PropertyGet(
"IsLoaded
")
70 REM -----------------------------------------------------------------------------------------------------------------------
71 Property Get Name() As String
72 Name = _PropertyGet(
"Name
")
73 End Property
' Name (get)
75 Public Function pName() As String
' For compatibility with
< V0.9
.0
76 pName = _PropertyGet(
"Name
")
77 End Function
' pName (get)
79 REM -----------------------------------------------------------------------------------------------------------------------
80 Property Get ObjectType() As String
81 ObjectType = _PropertyGet(
"ObjectType
")
82 End Property
' ObjectType (get)
84 REM -----------------------------------------------------------------------------------------------------------------------
85 Public Function OptionGroup(ByVal Optional pvGroupName As Variant) As Variant
86 ' Return either an error or an object of type OPTIONGROUP based on its name
87 ' A group is determined by the successive TabIndexes of the radio button
88 ' The name of the group = the name of its first element
90 Utils._SetCalledSub(
"Dialog.OptionGroup
")
91 If IsMissing(pvGroupName) Then Call _TraceArguments()
92 If _ErrorHandler() Then On Local Error Goto Error_Function
94 Set OptionGroup = Nothing
95 If Not Utils._CheckArgument(pvGroupName,
1, vbString) Then Goto Exit_Function
97 Dim iAllCount As Integer, iRadioLast As Integer, iGroupCount As Integer, iBegin As Integer, iEnd As Integer
98 Dim oRadios() As Object, sGroupName As String
99 Dim i As Integer, j As Integer, bFound As Boolean, ocControl As Object, oRadio As Object, iTabIndex As Integer
100 Dim ogGroup As Object, vGroup() As Variant, vIndex() As Variant
101 iAllCount = Controls.Count
102 If iAllCount
> 0 Then
104 ReDim oRadios(
0 To iAllCount -
1)
105 For i =
0 To iAllCount -
1 ' Store all RadioButtons objects
106 Set ocControl = Controls(i)
107 If ocControl._SubType = CTLRADIOBUTTON Then
108 iRadioLast = iRadioLast +
1
109 Set oRadios(iRadioLast) = ocControl
113 Goto Error_Arg
' No control in dialog
116 If iRadioLast
< 0 then Goto Error_Arg
' No radio buttons in the dialog
118 'Resort oRadio array based on tab indexes
119 If iRadioLast
> 0 Then
120 For i =
0 To iRadioLast -
1 ' Bubble sort
121 For j = i +
1 To iRadioLast
122 If oRadios(i).TabIndex
> oRadios(j).TabIndex Then
123 Set oRadio = oRadios(i)
124 Set oRadios(i) = oRadios(j)
125 Set oRadios(j) = oRadio
131 'Scan Names to find match with argument
133 For i =
0 To iRadioLast
134 If UCase(oRadios(i)._Name) = UCase(pvGroupName) Then
136 Case
0 : bFound = True
138 If oRadios(i).TabIndex
> oRadios(i -
1).TabIndex +
1 Then
141 Goto Error_Arg
' same group as preceding item although name correct
147 sGroupName = oRadios(i)._Name
150 If oRadios(i).TabIndex = oRadios(i -
1).TabIndex +
1 Then iEnd = i
154 If bFound Then
' Create OptionGroup
155 iGroupCount = iEnd - iBegin +
1
156 Set ogGroup = New OptionGroup
157 ReDim vGroup(
0 To iGroupCount -
1)
158 ReDim vIndex(
0 To iGroupCount -
1)
161 ._Count = iGroupCount
162 ._ButtonsGroup = vGroup
163 ._ButtonsIndex = vIndex
164 For i =
0 To iGroupCount -
1
165 Set ._ButtonsGroup(i) = oRadios(iBegin + i).ControlModel
166 ._ButtonsIndex(i) = i
168 ._ParentType = CTLPARENTISDIALOG
169 ._ParentComponent = UnoDialog
174 Set OptionGroup = ogGroup
177 Utils._ResetCalledSub(
"Dialog.OptionGroup
")
180 TraceError(TRACEFATAL, ERRWRONGARGUMENT, Utils._CalledSub(),
0, , Array(
1, pvGroupName))
183 TraceError(TRACEABORT, Err,
"Dialog.OptionGroup
", Erl)
185 End Function
' OptionGroup V0.9
.1
187 REM -----------------------------------------------------------------------------------------------------------------------
188 Property Get Page() As Variant
189 Page = _PropertyGet(
"Page
")
190 End Property
' Page (get)
192 Property Let Page(ByVal pvValue As Variant)
193 Call _PropertySet(
"Page
", pvValue)
194 End Property
' Page (set)
196 REM -----------------------------------------------------------------------------------------------------------------------
197 Public Function Properties(ByVal Optional pvIndex As Variant) As Variant
199 ' a Collection object if pvIndex absent
200 ' a Property object otherwise
202 Dim vProperty As Variant, vPropertiesList() As Variant, sObject As String
203 vPropertiesList = _PropertiesList()
204 sObject = Utils._PCase(_Type)
205 If IsMissing(pvIndex) Then
206 vProperty = PropertiesGet._Properties(sObject, _Name, vPropertiesList)
208 vProperty = PropertiesGet._Properties(sObject, _Name, vPropertiesList, pvIndex)
209 vProperty._Value = _PropertyGet(vPropertiesList(pvIndex))
213 Set Properties = vProperty
215 End Function
' Properties
217 REM -----------------------------------------------------------------------------------------------------------------------
218 Property Get Visible() As Variant
219 Visible = _PropertyGet(
"Visible
")
220 End Property
' Visible (get)
222 Property Let Visible(ByVal pvValue As Variant)
223 Call _PropertySet(
"Visible
", pvValue)
224 End Property
' Visible (set)
226 REM -----------------------------------------------------------------------------------------------------------------------
227 Property Get Width() As Variant
228 Width = _PropertyGet(
"Width
")
229 End Property
' Width (get)
231 Property Let Width(ByVal pvValue As Variant)
232 Call _PropertySet(
"Width
", pvValue)
233 End Property
' Width (set)
235 REM -----------------------------------------------------------------------------------------------------------------------
236 REM --- CLASS METHODS ---
237 REM -----------------------------------------------------------------------------------------------------------------------
239 Public Function Controls(Optional ByVal pvIndex As Variant) As Variant
240 ' Return a Control object with name or index = pvIndex
242 If _ErrorHandler() Then On Local Error Goto Error_Function
243 Utils._SetCalledSub(
"Dialog.Controls
")
245 Dim ocControl As Variant, sParentShortcut As String, iControlCount As Integer
246 Dim oCounter As Variant, sControls() As Variant, i As Integer, bFound As Boolean, sIndex As String
249 Set ocControl = Nothing
250 If Not IsLoaded Then Goto Trace_Error_NotOpen
251 Set ocControl = New Control
252 ocControl._ParentType = CTLPARENTISDIALOG
253 sParentShortcut = _Shortcut
254 sControls() = UnoDialog.Model.getElementNames()
255 iControlCount = UBound(sControls) +
1
257 If IsMissing(pvIndex) Then
' No argument, return Collection object
258 Set oCounter = New Collect
259 oCounter._CollType = COLLCONTROLS
260 oCounter._Count = iControlCount
261 Set Controls = oCounter
265 If Not Utils._CheckArgument(pvIndex,
1, Utils._AddNumeric(vbString)) Then Goto Exit_Function
267 ' Start building the ocControl object
268 ' Determine exact name
270 Select Case VarType(pvIndex)
271 Case vbInteger, vbLong, vbSingle, vbDouble, vbCurrency, vbBigint, vbDecimal
272 If pvIndex
< 0 Or pvIndex
> iControlCount -
1 Then Goto Trace_Error_Index
273 ocControl._Name = sControls(pvIndex)
274 Case vbString
' Check control name validity (non case sensitive)
276 sIndex = UCase(Utils._Trim(pvIndex))
277 For i =
0 To iControlCount -
1
278 If UCase(sControls(i)) = sIndex Then
283 If bFound Then ocControl._Name = sControls(i) Else Goto Trace_NotFound
286 ocControl._Shortcut = sParentShortcut
& "!
" & Utils._Surround(ocControl._Name)
287 Set ocControl.ControlModel = UnoDialog.Model.getByName(ocControl._Name)
288 Set ocControl.ControlView = UnoDialog.getControl(ocControl._Name)
289 ocControl._ImplementationName = ocControl.ControlModel.getImplementationName()
290 ocControl._FormComponent = UnoDialog
292 ocControl._Initialize()
293 Set Controls = ocControl
296 Utils._ResetCalledSub(
"Dialog.Controls
")
299 TraceError(TRACEFATAL, ERRWRONGARGUMENT, Utils._CalledSub(),
0, , Array(iArg, pvIndex))
300 Set Controls = Nothing
303 TraceError(TRACEFATAL, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0, , _Name)
304 Set Controls = Nothing
307 TraceError(TRACEFATAL, ERRCOLLECTION, Utils._CalledSub(),
0,
1)
308 Set Controls = Nothing
311 TraceError(TRACEFATAL, ERRCONTROLNOTFOUND, Utils._CalledSub(),
0, , Array(pvIndex, pvIndex))
312 Set Controls = Nothing
315 TraceError(TRACEABORT, Err,
"Dialog.Controls
", Erl)
316 Set Controls = Nothing
318 End Function
' Controls
320 REM -----------------------------------------------------------------------------------------------------------------------
321 Public Sub EndExecute(ByVal Optional pvReturn As Variant)
322 ' Stop executing the dialog
324 If _ErrorHandler() Then On Local Error Goto Error_Sub
325 Utils._SetCalledSub(
"Dialog.endExecute
")
327 If IsMissing(pvReturn) Then pvReturn =
0
328 If Not Utils._CheckArgument(pvReturn,
1, Utils._AddNumeric(), , False) Then Goto Trace_Error
331 lExecute = CLng(pvReturn)
332 If IsNull(_Dialog) Then Goto Error_Execute
333 If IsNull(UnoDialog) Then Goto Error_Not_Started
334 Call UnoDialog.endDialog(lExecute)
337 Utils._ResetCalledSub(
"Dialog.endExecute
")
340 TraceError(TRACEFATAL, ERRWRONGARGUMENT, Utils._CalledSub(),
0, , Array(
"1", Utils._CStr(pvReturn)))
343 TraceError(TRACEFATAL, ERRDIALOGUNDEFINED, Utils._CalledSub(),
0)
346 TraceError(TRACEWARNING, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0,
1, _Name)
349 TraceError(TRACEABORT, Err,
"Dialog.endExecute
", Erl)
351 End Sub
' EndExecute
353 REM -----------------------------------------------------------------------------------------------------------------------
354 Public Function Execute() As Long
355 ' Execute dialog
357 'If _ErrorHandler() Then On Local Error Goto Error_Function
358 'Seems smart not to trap errors: debugging of dialog events otherwise made very difficult !
359 Utils._SetCalledSub(
"Dialog.Execute
")
362 If IsNull(_Dialog) Then Goto Error_Execute
363 If IsNull(UnoDialog) Then Goto Error_Not_Started
364 lExecute = UnoDialog.execute()
367 Case
1 : Execute = dlgOK
368 Case
0 : Execute = dlgCancel
369 Case Else : Execute = lExecute
373 Utils._ResetCalledSub(
"Dialog.Execute
")
376 TraceError(TRACEFATAL, ERRDIALOGUNDEFINED, Utils._CalledSub(),
0)
379 TraceError(TRACEWARNING, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0,
1, _Name)
382 TraceError(TRACEABORT, Err,
"Dialog.Execute
", Erl)
384 End Function
' Execute
386 REM -----------------------------------------------------------------------------------------------------------------------
387 Public Function getProperty(Optional ByVal pvProperty As Variant) As Variant
388 ' Return property value of psProperty property name
390 Utils._SetCalledSub(
"Dialog.getProperty
")
391 If IsMissing(pvProperty) Then Call _TraceArguments()
392 getProperty = _PropertyGet(pvProperty)
393 Utils._ResetCalledSub(
"Dialog.getProperty
")
395 End Function
' getProperty
397 REM -----------------------------------------------------------------------------------------------------------------------
398 Public Function hasProperty(ByVal Optional pvProperty As Variant) As Boolean
399 ' Return True if object has a valid property called pvProperty (case-insensitive comparison !)
401 If IsMissing(pvProperty) Then hasProperty = PropertiesGet._hasProperty(_Type, _PropertiesList()) Else hasProperty = PropertiesGet._hasProperty(_Type, _PropertiesList(), pvProperty)
404 End Function
' hasProperty
406 REM -----------------------------------------------------------------------------------------------------------------------
407 Public Function Move( ByVal Optional pvLeft As Variant _
408 , ByVal Optional pvTop As Variant _
409 , ByVal Optional pvWidth As Variant _
410 , ByVal Optional pvHeight As Variant _
412 ' Execute Move method
413 Utils._SetCalledSub(
"Dialog.Move
")
414 If IsMissing(pvLeft) Then Call _TraceArguments()
415 On Local Error Goto Error_Function
417 Dim iArgNr As Integer
418 Select Case UCase(_A2B_.CalledSub)
419 Case UCase(
"Move
") : iArgNr =
1
420 Case UCase(
"Dialog.Move
") : iArgNr =
0
422 If IsMissing(pvLeft) Then Call _TraceArguments()
423 If IsMissing(pvTop) Then pvTop = -
1
424 If IsMissing(pvWidth) Then pvWidth = -
1
425 If IsMissing(pvHeight) Then pvHeight = -
1
426 If Not Utils._CheckArgument(pvLeft, iArgNr +
1, Utils._AddNumeric()) Then Goto Exit_Function
427 If Not Utils._CheckArgument(pvTop, iArgNr +
2, Utils._AddNumeric()) Then Goto Exit_Function
428 If Not Utils._CheckArgument(pvWidth, iArgNr +
3, Utils._AddNumeric()) Then Goto Exit_Function
429 If Not Utils._CheckArgument(pvHeight, iArgNr +
4, Utils._AddNumeric()) Then Goto Exit_Function
431 Dim iArg As Integer, iWrong As Integer
' Check arguments values
433 If pvHeight
< -
1 Then
434 iArg =
4 : iWrong = pvHeight
435 ElseIf pvWidth
< -
1 Then
436 iArg =
3 : iWrong = pvWidth
437 ElseIf pvTop
< -
1 Then
438 iArg =
2 : iWrong = pvTop
439 ElseIf pvLeft
< -
1 Then
440 iArg =
1 : iWrong = pvLeft
443 TraceError(TRACEFATAL, ERRWRONGARGUMENT, Utils._CalledSub(),
0,
1, Array(iArgNr + iArg, iWrong))
447 Dim iPosSize As Integer
449 If pvLeft
>=
0 Then iPosSize = iPosSize + com.sun.star.awt.PosSize.X
450 If pvTop
>=
0 Then iPosSize = iPosSize + com.sun.star.awt.PosSize.Y
451 If pvWidth
> 0 Then iPosSize = iPosSize + com.sun.star.awt.PosSize.WIDTH
452 If pvHeight
> 0 Then iPosSize = iPosSize + com.sun.star.awt.PosSize.HEIGHT
453 If iPosSize
> 0 Then UnoDialog.setPosSize(pvLeft, pvTop, pvWidth, pvHeight, iPosSize)
457 Utils._ResetCalledSub(
"Dialog.Move
")
460 TraceError(TRACEABORT, Err,
"Dialog.Move
", Erl)
462 End Function
' Move
464 REM -----------------------------------------------------------------------------------------------------------------------
465 Public Function setProperty(ByVal Optional psProperty As String, ByVal Optional pvValue As Variant) As Boolean
466 ' Return True if property setting OK
467 Utils._SetCalledSub(
"Dialog.setProperty
")
468 setProperty = _PropertySet(psProperty, pvValue)
469 Utils._ResetCalledSub(
"Dialog.setProperty
")
472 REM -----------------------------------------------------------------------------------------------------------------------
473 Public Function Start() As Boolean
476 If _ErrorHandler() Then On Local Error Goto Error_Function
477 Utils._SetCalledSub(
"Dialog.Start
")
481 If IsNull(_Dialog) Then Goto Error_Start
482 If Not IsNull(UnoDialog) Then Goto Error_Yet_Started
483 Set oStart = CreateUnoDialog(_Dialog)
484 If IsNull(oStart) Then
488 Set UnoDialog = oStart
490 If .hasItem(COLLALLDIALOGS, _Name) Then .Dialogs.Remove(_Name)
' Inserted to solve errors, when aborts between start and terminate
491 .Dialogs.Add(UnoDialog, UCase(_Name))
496 Utils._ResetCalledSub(
"Dialog.Start
")
499 TraceError(TRACEFATAL, ERRDIALOGUNDEFINED, Utils._CalledSub(),
0)
502 TraceError(TRACEWARNING, ERRDIALOGSTARTED, Utils._CalledSub(),
0)
505 TraceError(TRACEABORT, Err,
"Dialog.Start
", Erl)
507 End Function
' Start
509 REM -----------------------------------------------------------------------------------------------------------------------
510 Public Function Terminate() As Boolean
513 If _ErrorHandler() Then On Local Error Goto Error_Function
514 Utils._SetCalledSub(
"Dialog.Terminate
")
517 If IsNull(_Dialog) Then Goto Error_Terminate
518 If IsNull(UnoDialog) Then Goto Error_Not_Started
520 Set UnoDialog = Nothing
521 _A2B_.Dialogs.Remove(_Name)
525 Utils._ResetCalledSub(
"Dialog.Terminate
")
528 TraceError(TRACEFATAL, ERRDIALOGUNDEFINED, Utils._CalledSub(),
0)
531 TraceError(TRACEWARNING, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0,
1, _Name)
534 TraceError(TRACEABORT, Err,
"Dialog.Terminate
", Erl)
536 End Function
' Terminate
538 REM -----------------------------------------------------------------------------------------------------------------------
539 REM --- PRIVATE FUNCTIONS ---
540 REM -----------------------------------------------------------------------------------------------------------------------
541 REM -----------------------------------------------------------------------------------------------------------------------
542 Private Function _PropertiesList() As Variant
545 _PropertiesList = Array(
"Caption
",
"Height
",
"IsLoaded
",
"Name
" _
546 ,
"ObjectType
",
"Page
",
"Visible
",
"Width
" _
549 _PropertiesList = Array(
"IsLoaded
",
"Name
" _
553 End Function
' _PropertiesList
555 REM -----------------------------------------------------------------------------------------------------------------------
556 Private Function _PropertyGet(ByVal psProperty As String) As Variant
557 ' Return property value of the psProperty property name
559 If _ErrorHandler() Then On Local Error Goto Error_Function
560 Utils._SetCalledSub(
"Dialog.get
" & psProperty)
563 Dim vEMPTY As Variant
564 _PropertyGet = vEMPTY
566 Select Case UCase(psProperty)
567 Case UCase(
"Name
"), UCase(
"IsLoaded
")
569 If IsNull(UnoDialog) Then Goto Trace_Error_Dialog
571 Select Case UCase(psProperty)
572 Case UCase(
"Caption
")
573 _PropertyGet = UnoDialog.getTitle()
574 Case UCase(
"Height
")
575 _PropertyGet = UnoDialog.getPosSize().Height
576 Case UCase(
"IsLoaded
")
577 _PropertyGet = _A2B_.hasItem(COLLALLDIALOGS, _Name)
578 Case UCase(
"Name
")
580 Case UCase(
"ObjectType
")
582 Case UCase(
"Page
")
583 _PropertyGet = UnoDialog.Model.Step
584 Case UCase(
"Visible
")
585 _PropertyGet = UnoDialog.IsVisible()
586 Case UCase(
"Width
")
587 _PropertyGet = UnoDialog.getPosSize().Width
593 Utils._ResetCalledSub(
"Dialog.get
" & psProperty)
596 TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(),
0,
1, psProperty)
597 _PropertyGet = vEMPTY
600 TraceError(TRACEFATAL, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0,
1, _Name)
601 _PropertyGet = vEMPTY
604 TraceError(TRACEABORT, Err,
"Dialog._PropertyGet
", Erl)
605 _PropertyGet = vEMPTY
607 End Function
' _PropertyGet
609 REM -----------------------------------------------------------------------------------------------------------------------
610 Private Function _PropertySet(ByVal psProperty As String, ByVal pvValue As Variant) As Boolean
612 Utils._SetCalledSub(
"Dialog.set
" & psProperty)
613 If _ErrorHandler() Then On Local Error Goto Error_Function
617 Dim iArgNr As Integer
619 If _IsLeft(_A2B_.CalledSub,
"Dialog.
") Then iArgNr =
1 Else iArgNr =
2
620 If IsNull(UnoDialog) Then Goto Trace_Error_Dialog
621 Select Case UCase(psProperty)
622 Case UCase(
"Caption
")
623 If Not Utils._CheckArgument(pvValue, iArgNr, vbString, , False) Then Goto Trace_Error_Value
624 UnoDialog.setTitle(pvValue)
625 Case UCase(
"Height
")
626 If Not Utils._CheckArgument(pvValue, iArgNr, Utils._AddNumeric(), , False) Then Goto Trace_Error_Value
627 UnoDialog.setPosSize(
0,
0,
0, pvValue, com.sun.star.awt.PosSize.HEIGHT)
628 Case UCase(
"Page
")
629 If Not Utils._CheckArgument(pvValue, iArgNr, Utils._AddNumeric(), , False) Then Goto Trace_Error_Value
630 If pvValue
< 0 Then Goto Trace_Error_Value
631 UnoDialog.Model.Step = pvValue
632 Case UCase(
"Visible
")
633 If Not Utils._CheckArgument(pvValue, iArgNr, vbBoolean, , False) Then Goto Trace_Error_Value
634 UnoDialog.setVisible(pvValue)
635 Case UCase(
"Width
")
636 If Not Utils._CheckArgument(pvValue, iArgNr, Utils._AddNumeric()) Then Goto Trace_Error_Value
637 UnoDialog.setPosSize(
0,
0, pvValue,
0, com.sun.star.awt.PosSize.WIDTH)
643 Utils._ResetCalledSub(
"Dialog.set
" & psProperty)
646 TraceError(TRACEFATAL, ERRDIALOGNOTSTARTED, Utils._CalledSub(),
0,
1, _Name)
650 TraceError(TRACEFATAL, ERRPROPERTY, Utils._CalledSub(),
0,
1, psProperty)
654 TraceError(TRACEFATAL, ERRPROPERTYVALUE, Utils._CalledSub(),
0,
1, Array(pvValue, psProperty))
658 TraceError(TRACEABORT, Err,
"Dialog._PropertySet
", Erl)
661 End Function
' _PropertySet