/usr/lib/libreoffice/share/extensions/DmathsAddon/OOoGdmath/DroiteGForm.xba is in libreoffice-dmaths 3.4+dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="DroiteGForm" script:language="StarBasic">'OOoGdmath
'Copyright (C) 2005-2009 Gilles Daurat
'This program is free software; you can redistribute it and/or
'modify it under the terms of the GNU General Public License
'as published by the Free Software Foundation; either version 2
'of the License, or (at your option) any later version.
'This program is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.
'You should have received a copy of the GNU General Public License
'along with this program; if not, write to the Free Software
'Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Option Explicit
Private tabconst(1 To 10) As Integer
Dim oDroiteGForm as Object
Sub Main
oDroiteGForm=LoadDialog("OOoGdmath","DroiteGForm")
' DroiteGForm_Initialize()
DroiteGForm_Activate()
' RestaureForm(oDroiteGForm)
oDroiteGForm.Execute()
End Sub
Sub DroiteGForm_CheckBox7_Click()
oDroiteGForm.Model.TextField24.Enabled = oDroiteGForm.Model.CheckBox7.State
End Sub
Sub DroiteGForm_CheckBox8_Click()
oDroiteGForm.Model.TextField23.Enabled = oDroiteGForm.Model.CheckBox8.State
End Sub
Sub DroiteGForm_CommandButton1_Click()
Dim epaisseur, nombreg, largeur, largeurbis, dessus, dessous, posx, posy
Dim grady, grady0, grady1, grady2, grady3, grady4, k, j, i, abscisse As String
Dim np$, UnTrait As Object, Defini, vabscisse As String
Dim affx as boolean, affori as boolean, affunite as boolean, dx as String, posxt
Dim intervalle As String
Dim Coord() As String
Dim vcoord0, vcoord1, posxt0, posxt1
Dim secArray(0 to 3,0 to 1) As single
Dim depasse As String
Dim Shapes as Object
Dim UneLigne as Object
dim x0, x1
dim xmin, xmax
dim UnIntervalle as Object
dim tab() as string
dim TypeHachure
dim param as string
oDroiteGForm.EndExecute()
sauveForm(oDroiteGForm)
PointInsertion posx, posy
InitialiseDessin(true)
Shapes=InitialiseGroupe()
if oDroiteGForm.Model.OptionButton5.State then
grady = posy - 50
grady0 = posy + 50
grady1 = posy - 100
grady2 = posy + 100
grady3 = posy - 150
grady4 = posy + 150
else
grady = posy - 100
grady0 = posy + 100
grady1 = posy - 200
grady2 = posy + 200
grady3 = posy - 300
grady4 = posy + 300
end if
affx = oDroiteGForm.Model.CheckBox9.State
affori = oDroiteGForm.Model.CheckBox8.State
affunite = oDroiteGForm.Model.CheckBox7.State
dx = DroiteGForm.oDroiteGForm.Model.TextField8.Text
RemplaceTexte dx, ",", "."
dx = Val(dx) * 1000
xmin=xmini()
xmax=xmaxi()
If oDroiteGForm.Model.OptionButton1.State Then
UneLigne = InsereVecteur(posx + xmin * val(dx), posy, posx + xmax * val(dx), posy, Shapes,oDroiteGForm.Model.ImageControl1)
End If
If oDroiteGForm.Model.OptionButton2.State Then
UneLigne = InsereVecteur(posx + xmax * val(dx), posy, posx + xmin * val(dx), posy, Shapes,oDroiteGForm.Model.ImageControl1)
End If
If oDroiteGForm.Model.OptionButton3.State Then
UneLigne = InsereLigne(posx + xmax * val(dx), posy, posx + xmin * val(dx), posy, Shapes,oDroiteGForm.Model.ImageControl1)
End If
IOAttribut UneLigne, oDroiteGForm.Model.ImageControl1
For i = Fix(xmin) To Fix(xmax)
posxt = posx + i * val(dx)
abscisse = Str(i)
If affx Or (affunite And i = 1) Or (affori And i = 0) Then InsereTexte Right$(abscisse, Len(abscisse) - InStr(1, abscisse, " ")), posxt, grady4, Shapes,0, 0, 1
If i = 1 And affunite Then InsereTexte oDroiteGForm.Model.TextField24.Text, posxt, grady3, Shapes, 0, 0, -1
If i = 0 And affori Then InsereTexte oDroiteGForm.Model.TextField23.Text, posxt, grady3, Shapes, 0, 0, -1
If oDroiteGForm.Model.CheckBox2.State And Not affx And (Not affori Or i <> 0) And (Not affunite Or i <> 1) Then InsereTexte ".", posxt, grady4, Shapes, 0, 0, 1
If oDroiteGForm.Model.CheckBox1.State And (Not affori Or i <> 0) And (Not affunite Or i <> 1) Then InsereTexte ".", posxt, grady3, Shapes, 0, 0, -1
InsereLigne posxt, grady3, posxt, grady4, Shapes, oDroiteGForm.Model.ImageControl11
If oDroiteGForm.Model.CheckBox29.State And i <> Fix(xmax) Then
For j = 1 To Val(oDroiteGForm.Model.TextField27.Text) - 1
posxt = posx + i * val(dx) + j * val(dx) / Val(oDroiteGForm.Model.TextField27.Text)
InsereLigne posxt, grady1, posxt, grady2, Shapes, oDroiteGForm.Model.ImageControl12
If oDroiteGForm.Model.CheckBox30.State Then
For k = 1 To Val(oDroiteGForm.Model.TextField28.Text) - 1
posxt = posx + i * val(dx) + j * val(dx) / Val(oDroiteGForm.Model.TextField27.Text) + k * val(dx) / (Val(oDroiteGForm.Model.TextField27.Text) * Val(oDroiteGForm.Model.TextField28.Text))
InsereLigne posxt, grady, posxt, grady0, Shapes, oDroiteGForm.Model.ImageControl13
Next k
For k = -1 To -Val(oDroiteGForm.Model.TextField28.Text) + 1 Step -1
posxt = posx + i * val(dx) + j * val(dx) / Val(oDroiteGForm.Model.TextField27.Text) + k * val(dx) / (Val(oDroiteGForm.Model.TextField27.Text) * Val(oDroiteGForm.Model.TextField28.Text))
InsereLigne posxt, grady, posxt, grady0, Shapes, oDroiteGForm.Model.ImageControl13
Next k
End If
Next j
End If
If i = Fix(xmax) And oDroiteGForm.Model.CheckBox30.State Then
For k = 1 To Val(oDroiteGForm.Model.TextField28.Text) - 1
posxt = posx + (i + k / (Val(oDroiteGForm.Model.TextField27.Text) * Val(oDroiteGForm.Model.TextField28.Text))) * val(dx)
InsereLigne posxt, grady, posxt, grady0, Shapes, oDroiteGForm.Model.ImageControl13
Next k
End If
If i = Fix(xmin) And oDroiteGForm.Model.CheckBox30.State Then
For k = -1 To -Val(oDroiteGForm.Model.TextField28.Text) + 1 Step -1
posxt = posx + (i + k / (Val(oDroiteGForm.Model.TextField27.Text) * Val(oDroiteGForm.Model.TextField28.Text))) * val(dx)
InsereLigne posxt, grady, posxt, grady0, Shapes, oDroiteGForm.Model.ImageControl13
Next k
End If
Next i
For i = 0 To ListCount(oDroiteGForm, "ListBox1") - 1
param=GetList(oDroiteGForm, "ListBox18", i)
ChargeParametre(param,tab(),";")
oDroiteGForm.Model.ImageControl5.BackgroundColor = tab(2)
oDroiteGForm.Model.ImageControl5.Helptext = tab(3)
abscisse = DroiteGForm_ExtraitAbscisse(GetList(oDroiteGForm, "ListBox1", i), np$)
vabscisse = Trim(Str(CalculeFonction(abscisse, Defini)))
posxt = posx + Val(vabscisse) * val(dx)
If (tab(0) = 1) Then
RemplaceTexte vabscisse, ".", ","
If oDroiteGForm.Model.CheckBox25.State Then
' FractionZoneTexte InsereTexte(abscisse, posxt, grady4, Shapes)
InsereTexte abscisse, posxt, grady4, Shapes, mef := True, alignH := 0, alignV := 1
Else
InsereTexte vabscisse, posxt, grady4, Shapes, 0, 0, 1
End If
End If
If (tab(1) = 1) Then InsereTexte np$, posxt, grady3, Shapes,0,0,-1
InsereLigne posxt, grady1, posxt, grady2, Shapes, oDroiteGForm.Model.ImageControl5
Next i
For i = 0 To ListCount(oDroiteGForm, "ListBox4") - 1
param=GetList(oDroiteGForm, "ListBox19", i)
ChargeParametre(param, tab(), ";")
oDroiteGForm.Model.ImageControl2.BackgroundColor = tab(1)
oDroiteGForm.Model.ImageControl2.Helptext = tab(2)
oDroiteGForm.Model.ImageControl20.BackgroundColor = tab(3)
oDroiteGForm.Model.ImageControl20.Helptext = tab(4)
intervalle = GetList(oDroiteGForm, "ListBox4", i)
ChargeParametre Mid(intervalle, 2, Len(intervalle) - 2), Coord, ";"
RemplaceTexte Coord(0), "inf", "10000"
RemplaceTexte Coord(1), "inf", "10000"
RemplaceTexte Coord(0), "pi", Trim(Str(Pi))
RemplaceTexte Coord(1), "pi", Trim(Str(Pi))
vcoord0 = CalculeFonction(Coord(0), Defini)
vcoord1 = CalculeFonction(Coord(1), Defini)
posxt0 = posx + Val(vcoord0) * val(dx)
posxt1 = posx + Val(vcoord1) * val(dx)
depasse = ""
If vcoord0 > Val(xmax) Or vcoord0 < Val(xmin) Then
vcoord0 = MIif(vcoord0 > Val(xmax), Val(xmax) + 0.5, Val(xmin) - 0.5)
posxt0 = posx + Val(vcoord0) * val(dx)
depasse = MIif(vcoord0 > Val(xmax), "+", "-")
Else
if left(intervalle, 1) = "]" then
secArray(0,0) = posxt0-400
secArray(0,1)=posy + 600
secArray(3,0) = posxt0-400
secArray(3,1)=posy - 600
else
secArray(0,0) = posxt0+400
secArray(0,1)=posy + 600
secArray(3,0) = posxt0+400
secArray(3,1)=posy - 600
end if
secArray(1,0) = posxt0
secArray(1,1)=posy + 600
secArray(2,0) = posxt0
secArray(2,1)=posy - 600
InsereCourbe(secArray(), 4, Shapes, oDroiteGForm.Model.ImageControl2)
End If
If vcoord1 > Val(xmax) Or vcoord1 < Val(xmin) Then
vcoord1 = MIif(vcoord1 > Val(xmax), Val(xmax) + 0.5, Val(xmin) - 0.5)
posxt1 = posx + Val(vcoord1) * val(dx)
depasse = MIif(vcoord1 > Val(xmax), "+", "-")
Else
if Right(intervalle, 1) = "]" then
secArray(0,0) = posxt1-400
secArray(0,1)=posy + 600
secArray(3,0) = posxt1-400
secArray(3,1)=posy - 600
else
secArray(0,0) = posxt1+400
secArray(0,1)=posy + 600
secArray(3,0) = posxt1+400
secArray(3,1)=posy - 600
end if
secArray(1,0) = posxt1
secArray(1,1)=posy + 600
secArray(2,0) = posxt1
secArray(2,1)=posy - 600
InsereCourbe(secArray(), 4, Shapes, oDroiteGForm.Model.ImageControl2)
End If
UnIntervalle=InsereQuadrilatereB(posxt0, posy-200, posxt1, posy+200, Shapes, oDroiteGForm.Model.ImageControl2)
dim UneHachure as new com.sun.star.drawing.Hatch
select case tab(5)
case "Simple"
UneHachure.Style=com.sun.star.drawing.HatchStyle.SINGLE
case "Double"
UneHachure.Style=com.sun.star.drawing.HatchStyle.DOUBLE
case "Triple"
UneHachure.Style=com.sun.star.drawing.HatchStyle.TRIPLE
end select
UneHachure.Color=oDroiteGForm.Model.ImageControl20.BackgroundColor
UneHachure.Distance=val(tab(6))
UneHachure.Angle=val(tab(7))*10
UnIntervalle.FillHatch = UneHachure
UnIntervalle.FillStyle = com.sun.star.drawing.FillStyle.HATCH
If (tab(0) = 1) Then
RemplaceTexte Coord(0), ".", ","
RemplaceTexte Coord(1), ".", ","
If oDroiteGForm.Model.CheckBox25.State Then
' If depasse <> "-" And Not ((Int(vcoord0) = vcoord0 And affx) Or (affori And vcoord0 = 0) Or (affunite And vcoord0 = 1)) Then FractionZoneTexte InsereTexte(Coord(0), posxt0, posy + 10, Shapes)
' If depasse <> "+" And Not ((Int(vcoord1) = vcoord1 And affx) Or (affori And vcoord1 = 0) Or (affunite And vcoord1 = 1)) Then FractionZoneTexte InsereTexte(Coord(1), posxt1, posy + 10, Shapes)
Else
If depasse <> "-" And Not ((Int(vcoord0) = vcoord0 And affx) Or (affori And vcoord0 = 0) Or (affunite And vcoord0 = 1)) Then InsereTexte Trim(Str(vcoord0)), posxt0, posy + 500, Shapes
If depasse <> "+" And Not ((Int(vcoord1) = vcoord1 And affx) Or (affori And vcoord1 = 0) Or (affunite And vcoord1 = 1)) Then InsereTexte Trim(Str(vcoord1)), posxt1, posy + 500, Shapes
End If
End If
Next i
GroupeObjet(Shapes)
TermineDessin()
End Sub
Sub DroiteGForm_CommandButton10_Click()
Dim i, texte$, np$, xx
dim oListBox
dim param
i = 1
texte$ = oDroiteGForm.Model.TextField25.Text & "(" & oDroiteGForm.Model.TextField26.Text & ")"
xx = Val(DroiteGForm_ExtraitAbscisse(texte$, np$))
If i <> -1 Then
If xx < xmini() Or xx > xmaxi() Then
MsgBoxP "message3"
Else
' xray.xray oDroiteGForm.GetControl("ListBox1")
Add(oDroiteGForm, "ListBox1", texte$)
param=oDroiteGForm.model.CheckBox10.State & ";" & oDroiteGForm.Model.CheckBox28.State & ";0;Continu 0.75 pt"
Add(oDroiteGForm, "ListBox18", param)
oDroiteGForm.Model.ImageControl5.BackgroundColor = 0
oDroiteGForm.Model.ImageControl5.HelpText = "Continu 0.75 pt"
If ListCount(oDroiteGForm, "ListBox1") > 0 Then SetListIndex(oDroiteGForm, "ListBox1", ListCount(oDroiteGForm, "ListBox1") - 1)
End If
End If
End Sub
Sub DroiteGForm_CommandButton11_Click()
Dim a
a = GetListIndex(oDroiteGForm, "ListBox1")
If a <> -1 Then
SupprimeItem(oDroiteGForm, "ListBox1" ,a)
SupprimeItem(oDroiteGForm, "ListBox18" ,a)
SetListIndex(oDroiteGForm, "ListBox1", a - 1)
End If
End Sub
Sub DroiteGForm_CommandButton15_Click()
dim i
dim param as string
i=GetListIndex(oDroiteGForm, "ListBox4")
if i<>-1 then
param=oDroiteGForm.Model.CheckBox27.State & ";" & oDroiteGForm.Model.ImageControl2.BackgroundColor & ";" & oDroiteGForm.Model.ImageControl2.Helptext & ";" & oDroiteGForm.Model.ImageControl20.BackgroundColor & ";" & oDroiteGForm.Model.ImageControl20.Helptext & ";" & GetList(oDroiteGForm, "ListBox2", GetListIndex(oDroiteGForm, "ListBox2")) & ";" & oDroiteGForm.Model.TextField1.Text & ";" & oDroiteGForm.Model.TextField2.Text
RemplaceItem(oDroiteGForm, "ListBox19", i, param)
RemplaceItem(oDroiteGForm, "ListBox4", i, oDroiteGForm.Model.TextField11.Text)
end if
End Sub
Sub DroiteGForm_CommandButton16_Click()
dim param as string
Add(oDroiteGForm, "ListBox4", oDroiteGForm.Model.TextField11.Text)
param=oDroiteGForm.Model.CheckBox27.State & ";" & oDroiteGForm.Model.ImageControl2.BackGroundColor & ";" & oDroiteGForm.Model.ImageControl2.Helptext & ";" & oDroiteGForm.Model.ImageControl20.BackGroundColor & ";" & oDroiteGForm.Model.ImageControl20.Helptext & ";" & GetList(oDroiteGForm, "ListBox2", GetListIndex(oDroiteGForm, "ListBox2")) & ";" & oDroiteGForm.Model.TextField1.Text & ";" & oDroiteGForm.Model.TextField2.Text
Add(oDroiteGForm, "ListBox19", param)
If ListCount(oDroiteGForm, "ListBox4") > 0 Then SetListIndex(oDroiteGForm, "ListBox4", ListCount(oDroiteGForm, "ListBox4") - 1)
End Sub
Sub DroiteGForm_CommandButton17_Click()
Dim a
a = GetListIndex(oDroiteGForm, "ListBox4")
If a <> -1 Then
SupprimeItem(oDroiteGForm, "ListBox4", a)
SupprimeItem(oDroiteGForm, "ListBox19", a)
SetListIndex(oDroiteGForm, "List4", a-1)
End If
End Sub
Sub DroiteGForm_CommandButton2_Click()
oDroiteGForm.EndExecute()
End Sub
Sub DroiteGForm_CommandButton30_Click()
Clear(oDroiteGForm, "ListBox1")
Clear(oDroiteGForm, "ListBox18")
End Sub
Sub DroiteGForm_CommandButton33_Click()
Clear(oDroiteGForm, "ListBox4")
Clear(oDroiteGForm, "ListBox19")
End Sub
Sub DroiteGForm_CommandButton9_Click()
Dim i, texte$, np$, xx
dim param as string
i = 1
texte$ = oDroiteGForm.Model.TextField25.Text & "(" & oDroiteGForm.Model.TextField26.Text & ")"
xx = Val(DroiteGForm_ExtraitAbscisse(texte$, np$))
If i <> -1 Then
If xx < xmini() Or xx > xmaxi() Then
MsgBoxP "message3"
Else
param=oDroiteGForm.Model.CheckBox10.State & ";" & oDroiteGForm.Model.CheckBox28.State & ";" & oDroiteGForm.Model.ImageControl5.BackGroundColor & ";" & oDroiteGForm.Model.ImageControl5.Helptext
RemplaceItem(oDroiteGForm, "ListBox18", GetListIndex(oDroiteGForm, "ListBox1"), param)
RemplaceItem(oDroiteGForm, "ListBox1", GetListIndex(oDroiteGForm, "ListBox1"), texte$)
End If
End If
End Sub
Sub DroiteGForm_ImageControl1()
ChangeCouleur oDroiteGForm.Model.ImageControl1
End Sub
Sub DroiteGForm_ImageControl2()
ChangeCouleur oDroiteGForm.Model.ImageControl2
End Sub
Sub DroiteGForm_ImageControl20()
ChangeCouleur oDroiteGForm.Model.ImageControl20
End Sub
Sub DroiteGForm_ImageControl5()
ChangeCouleur oDroiteGForm.Model.ImageControl5
End Sub
Sub DroiteGForm_ImageControl11()
ChangeCouleur oDroiteGForm.Model.ImageControl11
End Sub
Sub DroiteGForm_ImageControl12()
ChangeCouleur oDroiteGForm.Model.ImageControl12
End Sub
Sub DroiteGForm_ImageControl13()
ChangeCouleur oDroiteGForm.Model.ImageControl13
End Sub
Sub DroiteGForm_ListBox1_Click()
Dim np$,i
dim param as string
dim tab() as string
i=GetListIndex(oDroiteGForm, "ListBox1")
If i > -1 Then
param=GetList(oDroiteGForm, "ListBox18", i)
ChargeParametre(param, tab(), ";")
oDroiteGForm.Model.CheckBox10.State = tab(0)
oDroiteGForm.Model.CheckBox28.State = tab(1)
oDroiteGForm.Model.ImageControl5.BackGroundColor = tab(2)
oDroiteGForm.Model.ImageControl5.Helptext = tab(3)
oDroiteGForm.Model.TextField26.Text = DroiteGForm_ExtraitAbscisse(GetList(oDroiteGForm, "ListBox1", i), np$)
oDroiteGForm.Model.TextField25.Text = np$
End If
End Sub
Sub DroiteGForm_ListBox4_Click()
Dim i
dim TypeHachure as string
dim tab() as string
dim param as string
i=GetListIndex(oDroiteGForm, "ListBox4")
If i > -1 Then
param=GetList(oDroiteGForm, "ListBox19", i)
ChargeParametre(param, tab(), ";")
oDroiteGForm.Model.CheckBox27.State = tab(0)
oDroiteGForm.Model.ImageControl2.BackGroundColor = tab(1)
oDroiteGForm.Model.ImageControl2.Helptext = tab(2)
oDroiteGForm.Model.ImageControl20.BackGroundColor = tab(3)
oDroiteGForm.Model.ImageControl20.Helptext = tab(4)
oDroiteGForm.Model.TextField11.Text = GetList(oDroiteGForm, "ListBox4", i)
select case tab(5)
case "Simple"
SetListIndex(oDroiteGForm, "ListBox2", 0)
case "Double"
SetListIndex(oDroiteGForm, "ListBox2", 1)
case "Triple"
SetListIndex(oDroiteGForm, "ListBox2", 2)
end select
oDroiteGForm.Model.TextField1.Text=tab(6)
oDroiteGForm.Model.TextField2.Text=tab(7)
End If
End Sub
Sub DroiteGForm_Activate()
ChangeTitreDialog(oDroiteGForm)
oDroiteGForm.GetControl("ListBox2").SelectItem("Simple", True)
oDroiteGForm.Model.TextField1.Text="2"
oDroiteGForm.Model.TextField2.Text="45"
Clear(oDroiteGForm, "ListBox1")
Clear(oDroiteGForm, "ListBox18")
Clear(oDroiteGForm, "ListBox4")
Clear(oDroiteGForm, "ListBox19")
End Sub
Sub DroiteGForm_Initialize()
End Sub
Function DroiteGForm_ExtraitAbscisse(texte$, np$) As String
Dim a, b, c, coord1$
DroiteGForm_ExtraitAbscisse = ""
a = InStr(1, texte$, "(")
If a > 1 Then
b = InStr(1, texte$, ")")
If b > a Then
np$ = ""
If a > 1 Then np$ = Mid$(texte$, a - 1, 1)
coord1$ = Mid$(texte$, a + 1, b - a - 1)
RemplaceVirgulePoint coord1$
DroiteGForm_ExtraitAbscisse = coord1$
End If
End If
End Function
Private Function xmini() as double
dim a as string
a = oDroiteGForm.Model.TextField21.Text
RemplaceTexte a, ",", "."
xmini=val(a)
End Function
Private Function xmaxi() as double
dim a as string
a = oDroiteGForm.Model.TextField22.Text
RemplaceTexte a, ",", "."
xmaxi=val(a)
End Function
</script:module>
|