This file is indexed.

/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">&apos;OOoGdmath
&apos;Copyright (C) 2005-2009  Gilles Daurat

&apos;This program is free software; you can redistribute it and/or
&apos;modify it under the terms of the GNU General Public License
&apos;as published by the Free Software Foundation; either version 2
&apos;of the License, or (at your option) any later version.

&apos;This program is distributed in the hope that it will be useful,
&apos;but WITHOUT ANY WARRANTY; without even the implied warranty of
&apos;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
&apos;GNU General Public License for more details.

&apos;You should have received a copy of the GNU General Public License
&apos;along with this program; if not, write to the Free Software
&apos;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(&quot;OOoGdmath&quot;,&quot;DroiteGForm&quot;)
&apos;	DroiteGForm_Initialize()
	DroiteGForm_Activate()
&apos;	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, &quot;,&quot;, &quot;.&quot;
    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, &quot; &quot;)), 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 &lt;&gt; 0) And (Not affunite Or i &lt;&gt; 1) Then InsereTexte &quot;.&quot;, posxt, grady4, Shapes, 0, 0, 1
        If oDroiteGForm.Model.CheckBox1.State And (Not affori Or i &lt;&gt; 0) And (Not affunite Or i &lt;&gt; 1) Then InsereTexte &quot;.&quot;, posxt, grady3, Shapes, 0, 0, -1
        InsereLigne posxt, grady3, posxt, grady4, Shapes, oDroiteGForm.Model.ImageControl11
        If oDroiteGForm.Model.CheckBox29.State And i &lt;&gt; 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, &quot;ListBox1&quot;) - 1
    	param=GetList(oDroiteGForm, &quot;ListBox18&quot;, i)
    	ChargeParametre(param,tab(),&quot;;&quot;)
        oDroiteGForm.Model.ImageControl5.BackgroundColor = tab(2)
        oDroiteGForm.Model.ImageControl5.Helptext = tab(3)
        
        abscisse = DroiteGForm_ExtraitAbscisse(GetList(oDroiteGForm, &quot;ListBox1&quot;, i), np$)
        vabscisse = Trim(Str(CalculeFonction(abscisse, Defini)))
        posxt = posx + Val(vabscisse) * val(dx)
        If (tab(0) = 1) Then
            RemplaceTexte vabscisse, &quot;.&quot;, &quot;,&quot;
            If oDroiteGForm.Model.CheckBox25.State Then
&apos;                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, &quot;ListBox4&quot;) - 1
    	param=GetList(oDroiteGForm, &quot;ListBox19&quot;, i)
    	ChargeParametre(param, tab(), &quot;;&quot;)
        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, &quot;ListBox4&quot;, i)
        ChargeParametre Mid(intervalle, 2, Len(intervalle) - 2), Coord, &quot;;&quot;
        RemplaceTexte Coord(0), &quot;inf&quot;, &quot;10000&quot;
        RemplaceTexte Coord(1), &quot;inf&quot;, &quot;10000&quot;
        RemplaceTexte Coord(0), &quot;pi&quot;, Trim(Str(Pi))
        RemplaceTexte Coord(1), &quot;pi&quot;, 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 = &quot;&quot;
        If vcoord0 &gt; Val(xmax) Or vcoord0 &lt; Val(xmin) Then
            vcoord0 = MIif(vcoord0 &gt; Val(xmax), Val(xmax) + 0.5, Val(xmin) - 0.5)
            posxt0 = posx + Val(vcoord0) * val(dx)
            depasse = MIif(vcoord0 &gt; Val(xmax), &quot;+&quot;, &quot;-&quot;)
        Else
        	if left(intervalle, 1) = &quot;]&quot; 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 &gt; Val(xmax) Or vcoord1 &lt; Val(xmin) Then
            vcoord1 = MIif(vcoord1 &gt; Val(xmax), Val(xmax) + 0.5, Val(xmin) - 0.5)
            posxt1 = posx + Val(vcoord1) * val(dx)
            depasse = MIif(vcoord1 &gt; Val(xmax), &quot;+&quot;, &quot;-&quot;)
        Else
        	if Right(intervalle, 1) = &quot;]&quot; 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 &quot;Simple&quot;
			UneHachure.Style=com.sun.star.drawing.HatchStyle.SINGLE
		case &quot;Double&quot;
			UneHachure.Style=com.sun.star.drawing.HatchStyle.DOUBLE
		case &quot;Triple&quot;
			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), &quot;.&quot;, &quot;,&quot;
            RemplaceTexte Coord(1), &quot;.&quot;, &quot;,&quot;
            If oDroiteGForm.Model.CheckBox25.State Then
&apos;                If depasse &lt;&gt; &quot;-&quot; 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)
&apos;                If depasse &lt;&gt; &quot;+&quot; 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 &lt;&gt; &quot;-&quot; 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 &lt;&gt; &quot;+&quot; 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 &amp; &quot;(&quot; &amp; oDroiteGForm.Model.TextField26.Text &amp; &quot;)&quot;
    xx = Val(DroiteGForm_ExtraitAbscisse(texte$, np$))
    If i &lt;&gt; -1 Then
        If xx &lt; xmini() Or xx &gt; xmaxi() Then
            MsgBoxP &quot;message3&quot;
        Else
&apos;        	xray.xray oDroiteGForm.GetControl(&quot;ListBox1&quot;)
        	Add(oDroiteGForm, &quot;ListBox1&quot;, texte$)
        	param=oDroiteGForm.model.CheckBox10.State &amp; &quot;;&quot; &amp; oDroiteGForm.Model.CheckBox28.State &amp; &quot;;0;Continu 0.75 pt&quot;
            Add(oDroiteGForm, &quot;ListBox18&quot;, param)
            oDroiteGForm.Model.ImageControl5.BackgroundColor = 0
            oDroiteGForm.Model.ImageControl5.HelpText = &quot;Continu 0.75 pt&quot;
            If ListCount(oDroiteGForm, &quot;ListBox1&quot;) &gt; 0 Then SetListIndex(oDroiteGForm, &quot;ListBox1&quot;, ListCount(oDroiteGForm, &quot;ListBox1&quot;) - 1)
        End If
    End If
End Sub

Sub DroiteGForm_CommandButton11_Click()
Dim a
    a = GetListIndex(oDroiteGForm, &quot;ListBox1&quot;)
    If a &lt;&gt; -1 Then
        SupprimeItem(oDroiteGForm, &quot;ListBox1&quot; ,a)
        SupprimeItem(oDroiteGForm, &quot;ListBox18&quot; ,a)
        SetListIndex(oDroiteGForm, &quot;ListBox1&quot;, a - 1)
    End If
End Sub

Sub DroiteGForm_CommandButton15_Click()
dim i
dim param as string

	i=GetListIndex(oDroiteGForm, &quot;ListBox4&quot;)
	if i&lt;&gt;-1 then
		param=oDroiteGForm.Model.CheckBox27.State &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl2.BackgroundColor  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl2.Helptext  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl20.BackgroundColor  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl20.Helptext &amp; &quot;;&quot; &amp; GetList(oDroiteGForm, &quot;ListBox2&quot;, GetListIndex(oDroiteGForm, &quot;ListBox2&quot;)) &amp; &quot;;&quot; &amp; oDroiteGForm.Model.TextField1.Text &amp; &quot;;&quot; &amp; oDroiteGForm.Model.TextField2.Text
		RemplaceItem(oDroiteGForm, &quot;ListBox19&quot;, i, param)
	    RemplaceItem(oDroiteGForm, &quot;ListBox4&quot;, i, oDroiteGForm.Model.TextField11.Text)
   	end if
End Sub

Sub DroiteGForm_CommandButton16_Click()
dim param as string

	Add(oDroiteGForm, &quot;ListBox4&quot;, oDroiteGForm.Model.TextField11.Text)
	param=oDroiteGForm.Model.CheckBox27.State &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl2.BackGroundColor  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl2.Helptext  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl20.BackGroundColor  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl20.Helptext &amp; &quot;;&quot; &amp; GetList(oDroiteGForm, &quot;ListBox2&quot;, GetListIndex(oDroiteGForm, &quot;ListBox2&quot;)) &amp; &quot;;&quot; &amp; oDroiteGForm.Model.TextField1.Text &amp; &quot;;&quot; &amp; oDroiteGForm.Model.TextField2.Text
	Add(oDroiteGForm, &quot;ListBox19&quot;, param)
    If ListCount(oDroiteGForm, &quot;ListBox4&quot;) &gt; 0 Then SetListIndex(oDroiteGForm, &quot;ListBox4&quot;, ListCount(oDroiteGForm, &quot;ListBox4&quot;) - 1)
End Sub

Sub DroiteGForm_CommandButton17_Click()
Dim a
    a = GetListIndex(oDroiteGForm, &quot;ListBox4&quot;)
    If a &lt;&gt; -1 Then
        SupprimeItem(oDroiteGForm, &quot;ListBox4&quot;, a)
		SupprimeItem(oDroiteGForm, &quot;ListBox19&quot;, a)
		SetListIndex(oDroiteGForm, &quot;List4&quot;, a-1)
    End If
End Sub

Sub DroiteGForm_CommandButton2_Click()
    oDroiteGForm.EndExecute()
End Sub

Sub DroiteGForm_CommandButton30_Click()
    Clear(oDroiteGForm, &quot;ListBox1&quot;)
    Clear(oDroiteGForm, &quot;ListBox18&quot;)
End Sub

Sub DroiteGForm_CommandButton33_Click()
    Clear(oDroiteGForm, &quot;ListBox4&quot;)
    Clear(oDroiteGForm, &quot;ListBox19&quot;)
End Sub

Sub DroiteGForm_CommandButton9_Click()
Dim i, texte$, np$, xx
dim param as string

    i = 1
    texte$ = oDroiteGForm.Model.TextField25.Text &amp; &quot;(&quot; &amp; oDroiteGForm.Model.TextField26.Text &amp; &quot;)&quot;
    xx = Val(DroiteGForm_ExtraitAbscisse(texte$, np$))
    If i &lt;&gt; -1 Then
        If xx &lt; xmini() Or xx &gt; xmaxi() Then
            MsgBoxP &quot;message3&quot;
        Else
        	param=oDroiteGForm.Model.CheckBox10.State &amp; &quot;;&quot; &amp; oDroiteGForm.Model.CheckBox28.State &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl5.BackGroundColor  &amp; &quot;;&quot; &amp; oDroiteGForm.Model.ImageControl5.Helptext
            RemplaceItem(oDroiteGForm, &quot;ListBox18&quot;, GetListIndex(oDroiteGForm, &quot;ListBox1&quot;), param)
            RemplaceItem(oDroiteGForm, &quot;ListBox1&quot;, GetListIndex(oDroiteGForm, &quot;ListBox1&quot;), 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, &quot;ListBox1&quot;)
    If  i &gt; -1 Then
		param=GetList(oDroiteGForm, &quot;ListBox18&quot;, i)
		ChargeParametre(param, tab(), &quot;;&quot;)    
        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, &quot;ListBox1&quot;, 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, &quot;ListBox4&quot;)
    If  i &gt; -1 Then
    	param=GetList(oDroiteGForm, &quot;ListBox19&quot;, i)
    	ChargeParametre(param, tab(), &quot;;&quot;)
        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, &quot;ListBox4&quot;, i)
        select case tab(5)
        case &quot;Simple&quot;
        	SetListIndex(oDroiteGForm, &quot;ListBox2&quot;, 0)
        case &quot;Double&quot;
        	SetListIndex(oDroiteGForm, &quot;ListBox2&quot;, 1)
        case &quot;Triple&quot;
        	SetListIndex(oDroiteGForm, &quot;ListBox2&quot;, 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(&quot;ListBox2&quot;).SelectItem(&quot;Simple&quot;, True)
	oDroiteGForm.Model.TextField1.Text=&quot;2&quot;
	oDroiteGForm.Model.TextField2.Text=&quot;45&quot;
    Clear(oDroiteGForm, &quot;ListBox1&quot;)
    Clear(oDroiteGForm, &quot;ListBox18&quot;)
    Clear(oDroiteGForm, &quot;ListBox4&quot;)
    Clear(oDroiteGForm, &quot;ListBox19&quot;)
End Sub

Sub DroiteGForm_Initialize()
End Sub

Function DroiteGForm_ExtraitAbscisse(texte$, np$) As String
Dim a, b, c, coord1$

    DroiteGForm_ExtraitAbscisse = &quot;&quot;
    a = InStr(1, texte$, &quot;(&quot;)
    If a &gt; 1 Then
        b = InStr(1, texte$, &quot;)&quot;)
        If b &gt; a Then
            np$ = &quot;&quot;
            If a &gt; 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, &quot;,&quot;, &quot;.&quot;
    xmini=val(a)
End Function

Private Function xmaxi() as double
dim a as string
    a = oDroiteGForm.Model.TextField22.Text
    RemplaceTexte a, &quot;,&quot;, &quot;.&quot;
    xmaxi=val(a)
End Function
</script:module>