/usr/lib/libreoffice/share/extensions/canzeley-client/Kanzleiprogramm/GerichtMod1.xba is in libreoffice-canzeley-client 0.5.0-2.
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 | <?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="GerichtMod1" script:language="StarBasic">REM ***** BASIC *****
REM ***** Canzeley *****
REM Copyright (C) 2008, 2009 Dr. Michael Stehmann
REM info@rechtsanwalt-stehmann.de
REM This program is free software: you can redistribute it and/or modify it
REM under the terms of the GNU General Public License as published by the
REM Free Software Foundation, either version 3 of the License, or any later version.
REM This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
REM without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
REM See the GNU General Public License for more details.
REM You should have received a copy of the GNU General Public License along with this program.
REM If not, see <http://www.gnu.org/licenses/>.
REM *** Version 0.5.0 ***
REM **** Kanzleiprogramm - GerichtMod1 ****
Option Explicit
Sub Gerichtsanzeige
Datenermittlung
Gerichtsdialog
GerichtDiaSeite1
DialogAusfuehren
End Sub
Sub Datenermittlung
ReDim aGericht()
sGerichtsortText = ""
iGerichtOrtVorArt = 0
SQLMod.GerichtMod1Abfrage1
While (oResultSet.next)
sGerichtsText = oResultSet.getString(1)
sStrasseText = oResultSet.getString(2)
sGerichtsPLZText= oResultSet.getString(3)
sOrtGerichtText = oResultSet.getString(4)
sGerichtTelefonText = oResultSet.getString(5)
sGerichtTelefaxText = oResultSet.getString(6)
Wend
aGericht=Split(sGerichtsText)
sGerichtsart = aGericht(0)
SQLMod.AktenAnsMod1Abfrage4
While (oResultSet.next)
aGericht(0)=oResultSet.getString(1)
Wend
If aGericht(0) = sGerichtsart Then
sGerichtsart = aGericht(UBound(aGericht))
SQLMod.AktenAnsMod1Abfrage4
While (oResultSet.next)
aGericht(UBound(aGericht))=oResultSet.getString(1)
Wend
sGerichtsart = aGericht(UBound(aGericht))
iGerichtOrtVorArt = 1
If UBound(aGericht) > 0 Then
For i = 0 To UBound(aGericht)-1
sGerichtsortText = sGerichtsortText+" "+aGericht(i)
Next i
sGerichtsortText = Right(sGerichtsortText, Len(sGerichtsortText)-1)
End If
Else
sGerichtsart = aGericht(0)
If UBound(aGericht) > 0 Then
For i = 1 To UBound(aGericht)
sGerichtsortText = sGerichtsortText+" "+aGericht(i)
Next i
sGerichtsortText = Right(sGerichtsortText, Len(sGerichtsortText)-1)
End If
End If
End Sub
Sub Gerichtsdialog
oDlg.endExecute()
DialogLibraries.LoadLibrary("Kanzleiprogramm")
oDlg = CreateUnoDialog(DialogLibraries.Kanzleiprogramm.GerichtDia)
End Sub
Sub DialogAusfuehren
oDlg.execute
End Sub
Sub GerichtDiaSeite1
oDlg.getModel().Step = 1
oDlg.Title = "Gericht: " + sGerichtsart + " " + sGerichtsortText
oDlg.getControl("GerichtsartAnzLabel").text = sGerichtsart
oDlg.getControl("GerichtsortText").text = sGerichtsortText
oDlg.getControl("StrasseText").text = sStrasseText
oDlg.getControl("PLZText").text = sGerichtsPLZText
oDlg.getControl("OrtText").text = sOrtGerichtText
oDlg.getControl("TelefonText").text = sGerichtTelefonText
oDlg.getControl("TelefaxText").text = sGerichtTelefaxText
oDlg.getControl("IDLabel").text = sGerichtsID
End Sub
REM **Dieses Makro wird durch Klicken auf die **
REM **Schaltfäche "GerichtDia.AbbruchButton" aufgerufen **
Sub GerichtDiaAbbruchButton
Select Case iGerichtFrom
Case 1
AktenAnsMod1.GerichtReload
Case 2
AdressenAWMod1.GerichtsDatenAnzeigen2
Case 3
SystemAdminMod1.CreateSystemAdminDia
Case else
AktenAWMod.Aktenauswahl
End Select
End Sub
</script:module>
|