--- dmaths-3.1.orig/dmaths.patch +++ dmaths-3.1/dmaths.patch @@ -0,0 +1,504 @@ +diff -urN orig/Dmaths/Module1.xba dma/Dmaths/Module1.xba +--- orig/Dmaths/Module1.xba 2007-03-10 14:59:42.000000000 +0100 ++++ dma/Dmaths/Module1.xba 2008-05-12 00:24:26.000000000 +0200 +@@ -1,12 +1,13 @@ + + + '************************************************ +-'Copyright (C) 2005 Didier Dorange-Pattoret +-'8, impasse du Châtelet +-'74100 Ambilly ++'Copyright (C) 2007 Didier Dorange-Pattoret ++'38, chemin de l'Abbaye ++'74940 Annecy le Vieux + 'France + 'ddorange@dmaths.com + ' ++' Ceci est le module du patch + ' + 'This library is free software; you can redistribute it and/or + 'modify it under the terms of the GNU General Public Licence (GPL) +@@ -36,19 +37,20 @@ + Public aSel as New com.sun.star.awt.Selection 'GF pour Metentre Form et Form1 + Public aSel0 as New com.sun.star.awt.Selection 'GF pour Metentre Form + Public aSel1 as New com.sun.star.awt.Selection 'GF pour Metentre Form1 ++Public CursorPos as Integer 'for TextField1 in FormuleGraphique GF may 2007 + + REM the following is needed for visible accolades in many dialogues (formule, racine...) + Sub MetentreAccolades2 'GF +-MetEntre("\{","\}") 'GF +-End Sub 'GF ++MetEntre("\{","\}") ++End Sub + + Sub Metgeslant 'GF +-MetEntre(" geslant ","") 'GF +-End Sub 'GF ++MetEntre("`geslant`","") ++End Sub + + Sub Metleslant 'GF +-MetEntre(" leslant ","") 'GF +-End Sub 'GF ++MetEntre("`leslant`","") ++End Sub + + Sub LoadParCro + Call VerifOperationnel +@@ -57,15 +59,15 @@ + End Sub + + Sub MetLPi +-MetEntre(" %pi ","") ++MetEntre(" pi ","") + End Sub + + Sub MetLcdot +-MetEntre(" cdot ","") ++MetEntre("`cdot`","") + End Sub + + Sub MetLtimes +-MetEntre(" times ","") ++MetEntre("`times`","") + End Sub + + +@@ -85,8 +87,12 @@ + oCursor.Goleft(N,False) + End Function + +-Sub recul10 +-recul(10) ++Sub recul1 ++recul(1) ++End Sub ++ ++Sub recul2 ++recul(2) + End Sub + + Sub recul5 +@@ -101,35 +107,26 @@ + recul(8) + End Sub + +-Sub recul2 +-recul(2) +-End Sub +- +-Sub recul1 +-recul(1) ++Sub recul10 ++recul(10) + End Sub + +-Sub recul3 +-recul(3) ++Sub recul11 ++recul(11) + End Sub + + Sub recul12 + recul(12) + End Sub + +-Sub recul11 +-recul(11) ++Sub recul3 ++recul(3) + End Sub + + Sub recul14 + recul(4) + End Sub + +- +-Sub recul26 +-recul(26) +-End Sub +- + Sub recul21 + recul(21) + End Sub +@@ -138,6 +135,10 @@ + recul(22) + End Sub + ++Sub recul26 ++recul(26) ++End Sub ++ + Sub recul32 + recul(32) + End Sub +@@ -179,9 +180,6 @@ + End Function + + +- +- +- + Function Selec + Dim LongsEq as Integer,I as Integer,N as Integer,NbreBlanc as Integer + Dim Test as String +@@ -377,8 +375,6 @@ + iPos=iPos+iCurseur + End Function + +- +- + Function TraiteGeometrie(Chaine$,Param$) as String + ' Jerome Ortais + ' Gere l'affichage des angles, vecteurs et derives pointees. +@@ -482,7 +478,6 @@ + Erreur=False + End Function + +- + Sub MetenPointe + Call VerifOperationnel + rem macro modifiée le 15 novembre 2003 +@@ -490,7 +485,6 @@ + bPointe=True + InsertSourceFormule() + End Sub +-rem fin de MetenPointe + + Sub MetenDoublePointe + Call VerifOperationnel +@@ -499,8 +493,6 @@ + bDPointe=True + InsertSourceFormule() + End Sub +-rem fin de MetVecteur +- + + Sub MetenVecteur + Call VerifOperationnel +@@ -509,7 +501,6 @@ + bVecteur=True + InsertSourceFormule() + End Sub +-rem fin de MetVecteur + + Sub MetenVecteurColonne (sChaine as String) + rem macro crée le samedi 21 novembre 2003 +@@ -587,7 +578,6 @@ + bMesureAlg=True + InsertSourceFormule() + End Sub +-rem fin de MetenMesureAlgebrique + + Sub MetenAngle + Call VerifOperationnel +@@ -597,7 +587,6 @@ + bAngle=True + InsertSourceFormule() + End Sub +-rem fin de MetenAngle + + + Sub MetenFormule +@@ -662,8 +651,6 @@ + fin: + Erreur=False + End Function +-rem fin de la fonction Lissm +- + + Function TraiteModule(Chaine,Module) + Dim LongChaine,Mode as integer +@@ -673,7 +660,7 @@ + For I=1 To LongChaine + If Mid(Chaine,I,1)=";" Then Mode=Mode+1 + Next I +- ++ + If Module="Limite" Then + rem lim from{x rightarrow } {} + Dim BI as Integer ' rem determine si limite supperposee +@@ -761,6 +748,7 @@ + Resul=Resul+Mid(Chaine,M,LongChaine-M-1)+" } nitalic{d}"+Mid(Chaine,MP+1,LongChaine-MP)+" " + Endif + Endif ++rem fin integrale + + If Module="Somme" Then + If Mode>4 or Mode=2 Then Goto Pb +@@ -801,6 +789,7 @@ + Resul=Resul+Mid(Chaine,M,MP-M)+" } { "+Mid(Chaine,MP+1,LongChaine-MP)+" } " + Endif + Endif ++rem fin somme + + If Module="Produit" Then + If Mode>4 or Mode=2 Then Goto Pb +@@ -841,8 +830,7 @@ + Resul=Resul+Mid(Chaine,M,MP-M)+" } { "+Mid(Chaine,MP+1,LongChaine-MP)+" } " + Endif + Endif +- +- ++rem fin produit + + If Module="Racine" Then + If Mode>2 Then Goto Pb +@@ -855,6 +843,7 @@ + Resul="nroot{"+Mid(Chaine,1,M-1)+"}{"+Mid(Chaine,M+1,LongChaine)+"}" + Endif + Endif ++rem fin racine + + If Module="Systeme" Then + If Mode=1 Then Goto Pb +@@ -874,6 +863,7 @@ + M=MP + Loop + Endif ++rem fin systeme + + If Module="Matrice" Then + If Mode=1 Then Goto Pb +@@ -903,7 +893,8 @@ + MP=MP+1 + M=MP + Loop +-Endif ++Endif ++rem fin matrice + + If Module="MatriceSysteme" Then + If Mode=1 Then Goto Pb +@@ -924,7 +915,7 @@ + M=MP + Loop + Endif +- ++rem fin matricesysteme + + TraiteModule=Resul + Goto finT +@@ -933,8 +924,6 @@ + finT: + End Function + +- +- + Sub MetenLimite + Call VerifOperationnel + rem Macro enregistrée : vendredi 23 novembre 2001, 21:00 +@@ -975,7 +964,6 @@ + Fin: + End Sub + +- + Sub MetenRacine + Call VerifOperationnel + rem Macro enregistrée : vendredi 23 novembre 2001, 21:00 +@@ -1023,14 +1011,11 @@ + MetEntre(" \~ ","") + End Sub + +- + Sub MetentreAccolades + Call VerifOperationnel + MetEntre("{","}") + End Sub + +- +- + Sub MetentreAccoladesVariables + MetEntre("left lbrace "," right rbrace") + End Sub +@@ -1081,7 +1066,6 @@ + MetEntre(" left]","right[") + End Sub + +- + Sub MetenValeurAbsolue + MetEntre(" abs{","}") + End Sub +@@ -1114,7 +1098,7 @@ + rem ---------------------------------------------------------------------------------- + ' on fixe la taille de la formule à la taille imposée si option choisie. + If Not bTailleFormCarac Then iTailleDElaFormule = iTailleFormules +- oVCursor.String() = "" ++ rem oVCursor.String() = "" + WriteFormula(oDocument,oVCursor,oCursor,sEq,iTailleDElaFormule,sNomPolice) + Else + oDispHelper = createUnoService("com.sun.star.frame.DispatchHelper") +@@ -1127,16 +1111,25 @@ + Sub WriteFormula(oDoc as object, oViewCursor as Object, oTextCursor as Object, sFormule as String, iTaille as Integer, sNomPolice as string) + + dim obj as object, document as object +- obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject") +- obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997" +- obj.AnchorType=com.sun.star.text.TextContentAnchorType.AS_CHARACTER ++' obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject") ++' obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997" ++ ' obj.AnchorType=com.sun.star.text.TextContentAnchorType.AS_CHARACTER + rem regle la marge des formules ++ oProvider = ThisComponent.CurrentController.Frame ++oDispHelper = createUnoService("com.sun.star.frame.DispatchHelper") ++ dim Array(0) as new com.sun.star.beans.PropertyValue ++ oDispHelper.executeDispatch(oProvider, ".uno:InsertObjectStarMath", "", 0, Array()) ++ ++ ++ obj = ThisComponent.getCurrentSelection() ++ + obj.LeftMargin = cint(iMargesFormules)*100 + obj.RightMargin = cint(iMargesFormules)*100 + + document = oDoc.CurrentController ++ + oDoc.getCurrentController().select(oTextCursor) +- oTextCursor.Text.insertTextContent(oTextCursor, obj, true) ++ ' oTextCursor.Text.insertTextContent(oTextCursor, obj, true) + + obj.EmbeddedObject.BaseFontHeight= iTaille + rem la police de la formule est celle de la ligne si option choisie +@@ -1175,12 +1168,16 @@ + If InStr(obj.embeddedObject.Formula,"overline")>0 or InStr(obj.embeddedObject.Formula,"bar")>0 Then + obj.embeddedObject.RelativeSymbolPrimaryHeight = 10 + Endif +- +- obj.EmbeddedObject.formula=sFormule + ++ ++ obj.EmbeddedObject.formula= sFormule + obj.embeddedObject.setmodified(true) +- oViewCursor.goLeft(1,False) +- oViewCursor.goRight(1,False) ++ ++ ' Xray obj ++ oDispHelper.executeDispatch(oProvider, ".uno:Escape", "", 0, Array()) ++ ++ ' oViewCursor.goLeft(1,False) ++ ' oViewCursor.goRight(1,False) + Goto FinSub: + + Fin: MsgBox sVocab305 +@@ -1196,7 +1193,7 @@ + Dim LongsEq, iTailleDElaFormule, iNbrePas as Integer + Dim oTextActif as Object, oCursor as Object + Dim oDesktop as Object, oDocument as Object, oVCursor as Object +- ++ + oDesktop = createUnoService("com.sun.star.frame.Desktop") + oDocument= oDesktop.getCurrentComponent() + +@@ -1299,7 +1296,7 @@ + Endif + iNbreCaracteres = iNbreCaracteres + Len(obj.embeddedobject.Formula) '+ 1 + iNbreFormulesPassees = iNbreFormulesPassees + 1 +- oTextCursor2.String()="" ++ oTextCursor2.String()=" " + endif + endif + endif +@@ -1313,23 +1310,30 @@ + End Sub + + +-Sub MetEntre (ChaineG,ChaineD as String) ++Sub MetEntre (ChaineG,ChaineD as String) ' improved with insertion at position of cursor GF may 2007 + If Form=True or Form1=True Then + +-' following If... + 1 line for insert at position of cursor GF +- +- If Form1=True Then +- fSel1 = oBoite.GetControl(TF) +- aSel = fSel1.Selection +- Else +- fSel0 = oBoiteFormuleGraphique.GetControl(TF) +- aSel = fSel0.Selection +- End If ++ If Form1=True Then ++ fSel1 = oBoite.GetControl(TF) ++ aSel = fSel1.Selection ++ Else ++ fSel0 = oBoiteFormuleGraphique.GetControl(TF) ++ aSel = fSel0.Selection ++ End If + + oTextIndex.Text = Left(oTextIndex.Text,aSel.MIN)+ChaineG+ChaineD+Right(oTextIndex.Text,Len(oTextIndex.Text)-aSel.MIN) +-' oTextIndex.Text=oTextIndex.Text+ChaineG+ChaineD +- 'Xray oTextIndex +- 'oTextIndex.SelectedText=oTextIndex.SelectedText+ChaineG+ChaineD ++ ++' must not loose the focus! therefore buttons metLcdot etc must have FocusOnClick=False ++ ++' new position of cursor: ++ aSel.MIN=aSel.MIN+Len(ChaineG) 'between brackets ++ aSel.MAX=aSel.MIN ++ If Form1=True Then ++ oBoite.GetControl(TF).Selection = aSel ++ Else ++ oBoiteFormuleGraphique.GetControl(TF).Selection = aSel ++ End If ++ + Else + oDesktop = createUnoService("com.sun.star.frame.Desktop") + oDocument= oDesktop.getCurrentComponent() +@@ -1337,15 +1341,16 @@ + oVCursor = oDocument.currentcontroller.getViewCursor() + oTextActif = oVCursor.Text ' la zone de texte actif page ou cellule .... + oCursor = oTextActif.createTextCursorByRange(oVCursor.Getstart()) +- If oVCursor.iscollapsed Then ++ If oVCursor.iscollapsed Then + oTextActif.insertString(oCursor,ChaineG+ChaineD,True) + oVCursor.Goleft(Len(ChaineD),False) +- Else ++ Else + oCursor.GotoRange(oVCursor.GetEnd(),True) + oTextActif.insertString(oCursor,ChaineG+oCursor.GetString()+ChaineD,True) +- Endif ++ Endif + Endif +- If bBoite=True Then oBoite.Endexecute() ++ ++ If bBoite=True Then oBoite.Endexecute() + End Sub + + Sub VerifDateSauvegarde +@@ -1356,4 +1361,5 @@ + if iLadifdedate >= iDelaiEntreSauvegardes Then MsgBox(sVocab382+" "+sDateSauvegarde,48,"Dmaths Backup") + End If + End Sub ++ + +\ No newline at end of file +Binary files orig/DmathsAddon.oxt and dma/DmathsAddon.oxt differ +diff -urN orig/DmInstall/Install_Addon.xba dma/DmInstall/Install_Addon.xba +--- orig/DmInstall/Install_Addon.xba 2007-03-10 14:57:12.000000000 +0100 ++++ dma/DmInstall/Install_Addon.xba 2008-05-12 00:31:18.000000000 +0200 +@@ -88,20 +88,7 @@ + + + Sub AfficheLicence +- rem chargement de la boite valider licence +- oValiderLicence = CreateUnoDialog( DialogLibraries.DmInstall.ValiderLicence ) +- oCell=oSheetLangues.GetCellByPosition(iLangInstall,2) +- oValiderLicence.SetTitle(oCell.String()) +- oCell=oSheetLangues.GetCellByPosition(iLangInstall,3) +- oValiderLicence.Model.OptionButton2.Label=oCell.String() +- oCell=oSheetLangues.GetCellByPosition(iLangInstall,4) +- oValiderLicence.Model.OptionButton1.Label=oCell.String() +- oCell=oSheetLangues.GetCellByPosition(iLangInstall,5) +- oValiderLicence.Model.CommandButton1.Label=oCell.String() +- oCell=oSheetLangues.GetCellByPosition(iLangInstall,6) +- oValiderLicence.Model.Label1.Label=oCell.String() +- oValiderLicence.GetControl("OptionButton2").State=True +- oValiderLicence.Execute() ++ AfficheChoixRepertoireInstallation + End Sub + + Sub RelireLicence +@@ -1113,4 +1100,4 @@ + GetRepertoire = join(NewSplit(),GetPathSeparator) + End Function + +- +\ No newline at end of file ++ --- dmaths-3.1.orig/debian/docs +++ dmaths-3.1/debian/docs @@ -0,0 +1,6 @@ +install.odt +Lisez-moi-Mac.odt +Lisez-moi.odt +memo_OOo_dmaths_1.5.odt +mini_memo_dmaths_1.5.odt +r_typo.pdf --- dmaths-3.1.orig/debian/rules +++ dmaths-3.1/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + mkdir tmp + unzip DmathsAddon.oxt -d tmp + cd tmp ; patch -p1 <../dmaths.patch ; zip -r DmathsAddon.oxt * + touch $@ +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -rm -Rf tmp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install tmp/DmathsAddon.oxt usr/lib/openoffice/share/extension/install + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_install + dh_installdocs + dh_installman + dh_installmenu + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- dmaths-3.1.orig/debian/preinst +++ dmaths-3.1/debian/preinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +flush_unopkg_cache() { + /usr/lib/openoffice/program/unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1 +} + +remove_extension() { + if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then + echo -n "Removing extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg remove --shared $1 \ + "-env:UserInstallation=file://$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." + flush_unopkg_cache + fi +} + +case "$1" in + upgrade) + id=`/usr/lib/openoffice/program/unopkg list --shared | egrep '^(Name|Identifier):.*Dmaths' | cut -d":" -f2` + remove_extension $id + ;; +esac + +#DEBHELPER# --- dmaths-3.1.orig/debian/postinst +++ dmaths-3.1/debian/postinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +add_extension() { + echo -n "Adding extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg add --shared $1 \ + "-env:UserInstallation=file:///$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." +} + +if [ "$1" = "configure" -o "$1" = "upgrade" ]; then + add_extension /usr/lib/openoffice/share/extension/install/DmathsAddon.oxt +fi + +#DEBHELPER# --- dmaths-3.1.orig/debian/copyright +++ dmaths-3.1/debian/copyright @@ -0,0 +1,193 @@ +This package was debianized by Miguel Gea Milvaques on +Wed, 12 Dec 2007 00:21:35 +0100. + +It was downloaded from http://www.dmaths.org + +Upstream Author: + Didier Dorange-Pattoret + +Copyright: + + (C) 2003-2007 Didier DORANGE-PATTORET + 8, impasse du Châtelet + 74100 Ambilly + France + +License: + + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +===== +Some applications have other licenses: +================ +BatchConv/Module1.xba +Upstream: + Laurent Godard +Copyright: + Copyright (C) 2003 Laurent Godard +License: + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + +================ +CmathOOo/mCmathOOo.xba +Upstream: + Christophe Devalland +Copyright: + Copyright (C) 2005 Christophe devalland +License: +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. +============== +CmathOOo +Upstream: + Robert DARGAUD +Copyright: + Copyright © 2003-2004 - Robert DARGAUD - BOBICIEL. +License: +This source file is free software; you can redistribute it and/or | +modify it under the terms of the GNU Lesser General Public | +License as published by the Free Software Foundation; either | +version 2.1 of the License, or (at your option) any later version. | + | +This source file 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 | +Lesser General Public License for more details. | +http://www.opensource.org/licenses/lgpl-license.php | + | +You should have received a copy of the GNU General Public License | +along with this source file; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. +================ +DmathsBup/Module2.xba +Upstream: + Laurent Godard and Bernard Marcelly +Copyright: + Copyright (C) 2004 Laurent Godard and Bernard Marcelly +License: +This module is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This module 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 +Lesser General Public License for more details. +http://www.opensource.org/licenses/lgpl-license.php + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. +=============== +Dmaths/TailleEquations.xba +Upstream: + Laurent Godard + +Copyright: + Copyright (C) 2003 Laurent Godard +License: +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. +http://www.opensource.org/licenses/lgpl-license.php + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. +================== +OOoGdmath and OOTep +Upstream: + Gilles Daurat +Copyright: + Copyright (C) 2005-2006 Gilles Daurat +License: +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. +=================== +OOoTep/UtilAPI.xba +Upstream: + Danny Brewer +Copyright: + Copyright (c) 2003 - 2004 Danny Brewer +License: + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +See: http://www.gnu.org/licenses/lgpl.html +=================== + +The Debian packaging is (C) 2007, Miguel Gea Milvaques and +is licensed under the GPL, see above. --- dmaths-3.1.orig/debian/control +++ dmaths-3.1/debian/control @@ -0,0 +1,18 @@ +Source: dmaths +Section: doc +Priority: extra +Maintainer: Miguel Gea Milvaques +Build-Depends: debhelper (>= 5), docbook-to-man, zip, unzip +Standards-Version: 3.7.3 +Homepage: http://www.dmaths.org + +Package: openoffice.org-dmaths +Architecture: all +Depends: openoffice.org-writer, openoffice.org-draw, openoffice.org-common, zenity +Suggests: dia, drgeo +Description: Formula editor improvements for OpenOffice.org + Dmaths is software that integrates with office suites OpenOffice (free), + StarOffice and NeoOffice (Mac OS X) and which aids scientists and those + who wish to edit mathematical formulas and / or scientists. It also directly + use your favorite drawing software and incorporate graphs functions in a + document. --- dmaths-3.1.orig/debian/compat +++ dmaths-3.1/debian/compat @@ -0,0 +1 @@ +5 --- dmaths-3.1.orig/debian/changelog +++ dmaths-3.1/debian/changelog @@ -0,0 +1,24 @@ +dmaths (3.1-3) unstable; urgency=low + + * Added zip and unzip build-depends (Closes: #483339) + * Removed obsolete manpage + + -- Miguel Gea Milvaques Wed, 28 May 2008 22:58:56 +0200 + +dmaths (3.1-2) unstable; urgency=low + + * dmaths binary package renamed to openoffice.org-dmaths (Closes: #474374) + * Modified package description (Closes: #474772) + * Moved oxt file to /usr/lib/openoffice/share/extension/install/ + (Closes: #474382) + * Removed GPL popup and registered globally. Removed install-dmaths script + (Closes: #474375) + + -- Miguel Gea Milvaques Sat, 10 May 2008 17:06:36 +0200 + +dmaths (3.1-1) unstable; urgency=low + + * Initial release (Closes: #405988) + + -- Miguel Gea Milvaques Wed, 12 Dec 2007 00:21:35 +0100 + --- dmaths-3.1.orig/debian/prerm +++ dmaths-3.1/debian/prerm @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +flush_unopkg_cache() { + /usr/lib/openoffice/program/unopkg list --shared "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" > /dev/null 2>&1 +} + +remove_extension() { + if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then + echo -n "Removing extension $1..." + INSTDIR=`mktemp -d` + /usr/lib/openoffice/program/unopkg remove --shared $1 \ + "-env:UserInstallation=file://$INSTDIR" \ + '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \ + "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1" + if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi + echo " done." + flush_unopkg_cache + fi +} + +case "$1" in + remove) + remove_extension Dmaths + ;; +esac + +#DEBHELPER#