This file is indexed.

/usr/lib/libreoffice/share/extensions/DmathsAddon/Dmaths2/AxesDialogFns.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
<?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="AxesDialogFns" script:language="StarBasic">&apos;************************************************
&apos;Copyright (C) Andy Lewis.  (lewiss@ntlworld.com)
&apos;téléchargé sur www.ooomacros.org
&apos;
&apos;This library is free software; you can redistribute it and/or
&apos;modify it under the terms of the GNU Lesser General Public Licence (LGPL)
&apos;as published by the Free Software Foundation; either
&apos;version 2.1 of the License, or (at your option) any later version.

&apos;This library 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 GNU
&apos;General Public License for more details.

&apos;You should have received a copy of the GNU General Public Licence (GPL)
&apos;along with this library; if not, write to the Free Software
&apos;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
&apos;************************************************
&apos;Routines required by the AxesDialog box
&apos;This module requires modules &quot;AxesSetup&quot;, &quot;AxesDrawing&quot; and &quot;PiDialogFns&quot;

option explicit

private goAxesDialog as object
private AxesDialogExists as boolean

sub StopButton_Click
	oDesktop = createUnoService(&quot;com.sun.star.frame.Desktop&quot;)
	If getguitype = 1 Then oDocumentCourant.CurrentController.Frame.ContainerWindow.Visible = True
	goDoc= oDesktop.getCurrentComponent()
	goDoc.CurrentController.Select(oCollectionFigures)		
	ClipboardCopy(goDoc)
	goDoc.Dispose()
	If Not IsNull(oCollectionFigures) Then
	ClipboardPaste(oDocumentCourant)
	ToucheEchap(oDocumentCourant)
	Endif
	Stop
end sub

&apos;___________________________________________________________________________________________

sub OpenAxesDialog()
	DialogLibraries.loadLibrary( &quot;Dmaths&quot; )
	DialogLibraries.loadLibrary( &quot;Dmaths2&quot; )
	if not AxesDialogExists then
		goAxesDialog = Dmaths.LoadDialog(&quot;Dmaths2&quot;,&quot;AxesDialog&quot;)		 
		AxesDialogExists=TRUE
	end if	
	goAxesDialog.SetVisible(TRUE)
	goAxesDialog.SetPosSize(0,2900,0,0,com.sun.star.awt.PosSize.POS)	
	If getguitype = 1 Then oDocumentCourant.CurrentController.Frame.ContainerWindow.Visible = False	
	do
	loop
end sub

&apos;___________________________________________________________________________________________

sub AxesDialog_DrawAxes_Click()
	Dim Param()
	AxesParametres = TRUE 
	GetInitialScaleValues()
	GetAxesParameters(Param())
	ClearDrawPage2()

	DrawAxes(Param())
	Call GraphDrawing.Grouper rem fait grouper les objets
end sub

&apos;___________________________________________________________________________________________

sub AxesDialog_Close_Click()
	goAxesDialog.SetVisible(FALSE)
end sub	

&apos;___________________________________________________________________________________________

sub GetInitialScaleValues()
	Dim DiagramHeight as Long, DiagramWidth as Long, DiagramLeft as Long, DiagramBottom as Long
	Dim ScaleLeft as Single, ScaleRight as Single, ScaleTop as Single, ScaleBottom as Single 
	Dim temp as string, temp2 as object
	
	DiagramHeight=goAxesDialog.getControl(&quot;DiagramHeight&quot;).getValue()*1000
	DiagramWidth=goAxesDialog.getControl(&quot;DiagramWidth&quot;).getValue()*1000
	DiagramLeft=2000
	DiagramBottom=DiagramHeight+2000
	InitialiseDiagramArea(FALSE,DiagramHeight, DiagramWidth, DiagramLeft, DiagramBottom)
	
	temp2=goAxesDialog.getControl(&quot;ScaleLeft&quot;)
	ScaleLeft=goAxesDialog.getControl(&quot;ScaleLeft&quot;).Model.Value
	ScaleRight=goAxesDialog.getControl(&quot;ScaleRight&quot;).Model.Value
	ScaleTop=goAxesDialog.getControl(&quot;ScaleTop&quot;).Model.Value
	ScaleBottom=goAxesDialog.getControl(&quot;ScaleBottom&quot;).Model.Value
	InitialiseGraphArea(ScaleLeft, ScaleRight, ScaleBottom, ScaleTop)
	
	DegreesFlag=goAxesDialog.getControl(&quot;Degrees&quot;).getState()
end sub

&apos;___________________________________________________________________________________________

sub GetAxesParameters(Param())
	ReDim Param(1,11)

	Param(xAxis,ShowAxis)=goAxesDialog.getControl(&quot;ShowXaxis&quot;).getState()
	Param(xAxis,ShowMinorGrid) = goAxesDialog.getControl(&quot;xMinorGrid&quot;).getState()
	Param(xAxis,ShowMinorTicks) = goAxesDialog.getControl(&quot;xMinorTicks&quot;).getState()
	Param(xAxis,ShowMajorGrid) = goAxesDialog.getControl(&quot;xMajorGrid&quot;).getState()
	Param(xAxis,ShowMajorTicks) = goAxesDialog.getControl(&quot;xMajorTicks&quot;).getState()
	Param(xAxis,PiScaling) = goAxesDialog.getControl(&quot;xPiScaling&quot;).getState()
	Param(xAxis,MinorTickGap) = goAxesDialog.getControl(&quot;xMinorTickGap&quot;).Model.Value
	Param(xAxis,MajorTickGap)= goAxesDialog.getControl(&quot;xMajorTickGap&quot;).Model.Value
	Param(xAxis,ScaleGap) = goAxesDialog.getControl(&quot;xScaleGap&quot;).Model.Value
	Param(xAxis,MinorTickLength) = goAxesDialog.getControl(&quot;xMinorTickLength&quot;).getValue()*100
	Param(xAxis,MajorTickLength) =goAxesDialog.getControl(&quot;xMajorTickLength&quot;).getValue()*100 
	Param(xAxis,AxisLabel) = goAxesDialog.getControl(&quot;xAxisLabel&quot;).Peer.getText()

	Param(yAxis,ShowAxis)=goAxesDialog.getControl(&quot;ShowYaxis&quot;).getState()
	Param(yaxis,ShowMinorGrid) = goAxesDialog.getControl(&quot;yMinorGrid&quot;).getState()
	Param(yaxis,ShowMinorTicks) = goAxesDialog.getControl(&quot;yMinorTicks&quot;).getState()
	Param(yaxis,ShowMajorGrid) = goAxesDialog.getControl(&quot;yMajorGrid&quot;).getState()
	Param(yaxis,ShowMajorTicks) = goAxesDialog.getControl(&quot;yMajorTicks&quot;).getState()
	Param(yaxis,PiScaling) = goAxesDialog.getControl(&quot;yPiScaling&quot;).getState()
	Param(yaxis,MinorTickGap) = goAxesDialog.getControl(&quot;yMinorTickGap&quot;).Model.Value
	Param(yaxis,MajorTickGap)= goAxesDialog.getControl(&quot;yMajorTickGap&quot;).Model.Value
	Param(yaxis,ScaleGap) = goAxesDialog.getControl(&quot;yScaleGap&quot;).Model.Value
	Param(yaxis,MinorTickLength) = goAxesDialog.getControl(&quot;yMinorTickLength&quot;).getValue()*100
	Param(yaxis,MajorTickLength) =goAxesDialog.getControl(&quot;yMajorTickLength&quot;).getValue()*100 
	Param(yaxis,AxisLabel) = goAxesDialog.getControl(&quot;yAxisLabel&quot;).Peer.getText()
end sub

&apos;___________________________________________________________________________________________

sub SetUpDefaultTicks()
	Dim TempParam(1,11), oNull as object
	AxesParametres = TRUE
	GetInitialScaleValues()
	
	CalculateDefaultTicks(xAxis,TempParam())	
	goAxesDialog.getControl(&quot;xScaleGap&quot;).setText(CStr(TempParam(xAxis,ScaleGap)))
&apos;	goAxesDialog.getControl(&quot;xScaleGap&quot;).TextChanged(oNull)
	goAxesDialog.getControl(&quot;xMajorTickGap&quot;).setText(CStr(TempParam(xAxis,MajorTickGap)))
&apos;	goAxesDialog.getControl(&quot;xMajorTickGap&quot;).TextChanged(oNull)
	goAxesDialog.getControl(&quot;xMinorTickGap&quot;).setText(CStr(TempParam(xAxis,MinorTickGap)))
&apos;	goAxesDialog.getControl(&quot;xMinorTickGap&quot;).TextChanged(oNull)
	
	CalculateDefaultTicks(yAxis,TempParam())	
	goAxesDialog.getControl(&quot;yScaleGap&quot;).setText(CStr(TempParam(yAxis,ScaleGap)))
&apos;	goAxesDialog.getControl(&quot;yScaleGap&quot;).TextChanged(oNull)
	goAxesDialog.getControl(&quot;yMajorTickGap&quot;).setText(CStr(TempParam(yAxis,MajorTickGap)))
&apos;	goAxesDialog.getControl(&quot;yMajorTickGap&quot;).TextChanged(oNull)
	goAxesDialog.getControl(&quot;yMinorTickGap&quot;).setText(CStr(TempParam(yAxis,MinorTickGap)))
&apos;	goAxesDialog.getControl(&quot;yMinorTickGap&quot;).TextChanged(oNull)
End Sub

&apos;___________________________________________________________________________________________

sub xMinorTickGap_Click()
	If goAxesDialog.getControl(&quot;xPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;xMinorTickGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub xMajorTickGap_Click()
	If goAxesDialog.getControl(&quot;xPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;xMajorTickGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub xScaleGap_Click()
	If goAxesDialog.getControl(&quot;xPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;xScaleGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub ScaleLeft_Click()
	If goAxesDialog.getControl(&quot;xPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;ScaleLeft&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub ScaleRight_Click()
	If goAxesDialog.getControl(&quot;xPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;ScaleRight&quot;).setText(CStr(getPiScaling))
	end if
end sub


sub yMinorTickGap_Click()
	If goAxesDialog.getControl(&quot;yPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;yMinorTickGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub yMajorTickGap_Click()
	If goAxesDialog.getControl(&quot;yPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;yMajorTickGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub yScaleGap_Click()
	If goAxesDialog.getControl(&quot;yPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;yScaleGap&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub ScaleTop_Click()
	If goAxesDialog.getControl(&quot;yPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;ScaleTop&quot;).setText(CStr(getPiScaling))
	end if
end sub

sub ScaleBottom_Click()
	If goAxesDialog.getControl(&quot;yPiScaling&quot;).getState() = 1 then
		goAxesDialog.getControl(&quot;ScaleBottom&quot;).setText(CStr(getPiScaling))
	end if
end sub

</script:module>