MAJ V4.2.2 (amélioration générale)

This commit is contained in:
pablo rodriguez 2023-01-17 21:08:16 +01:00
parent a79c702fad
commit a7fefbd018
9 changed files with 36 additions and 13 deletions

View File

@ -12,6 +12,6 @@
<classpathentry kind="lib" path="C:/Users/pabr6/git/analyseWriter/MEPTL/miglayout15-swing.jar"/>
<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/Exportation documentation analyseWriter/plugins/documentation.analyseWriter_1.0.0.202212032022.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar"/>
<classpathentry kind="lib" path="C:/Users/pabr6/eclipse-workspace/cXML.jar" sourcepath="/cXML"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2659,17 +2659,31 @@ public class meptl {
return targetString;
}
/**
* Ajoute les valeurs par défaut du style de paragraphe par défaut.</br>
* @param ensembleDesParagraphes
* @return
*/
public static node ajouteValeurParDefautAuStyleParagraph(node ensembleDesParagraphes ) {
node LesStyleDefaut = null;
node LeStyleDefaut = null;
if(ensembleDesParagraphes.retourneEnfantsByNameExist("style:default-style")) {
LesStyleDefaut = ensembleDesParagraphes.retourneFirstNodeByNameAndAttributValue("style:default-style","style:family","paragraph");
if(LesStyleDefaut==null) return ensembleDesParagraphes;
LeStyleDefaut = ensembleDesParagraphes.retourneFirstNodeByNameAndAttributValue("style:default-style","style:family","paragraph");
if(LeStyleDefaut==null) return ensembleDesParagraphes;
if(LeStyleDefaut!=null) {
node styleparagraphproperties = LeStyleDefaut.retourneFirstEnfantsByName("style:paragraph-properties");
if(styleparagraphproperties!=null) {
if(styleparagraphproperties.getAttributs().get("fo:margin-bottom")==null) LeStyleDefaut.getAttributs().put("fo:margin-bottom", "0");
if(styleparagraphproperties.getAttributs().get("fo:margin-left")==null) LeStyleDefaut.getAttributs().put("fo:margin-left", "0");
if(styleparagraphproperties.getAttributs().get("fo:margin-right")==null) LeStyleDefaut.getAttributs().put("fo:margin-right", "0");
if(styleparagraphproperties.getAttributs().get("fo:margin-right")==null) LeStyleDefaut.getAttributs().put("fo:margin-right", "0");
if(styleparagraphproperties.getAttributs().get("fo:margin-top")==null) LeStyleDefaut.getAttributs().put("fo:margin-top", "0");
if(styleparagraphproperties.getAttributs().get("fo:text-indent")==null) LeStyleDefaut.getAttributs().put("fo:text-indent", "0");
}
}
}
for(int i =0 ; i < ensembleDesParagraphes.getNodes().size(); i++) {
node nodStyle = ensembleDesParagraphes.getNodes().get(i);
@ -2679,8 +2693,8 @@ public class meptl {
continue;
}
//le paragarph properties
node nodeStyleParDefautParagraphProperties = LesStyleDefaut.retourneFirstEnfantsByName("style:paragraph-properties");
//le paragraphe properties
node nodeStyleParDefautParagraphProperties = LeStyleDefaut.retourneFirstEnfantsByName("style:paragraph-properties");
node LesNodesStyleParagraph = nodStyle.retourneFirstEnfantsByName("style:paragraph-properties");
Enumeration<String > K = nodeStyleParDefautParagraphProperties.getAttributs().keys();
while(K.hasMoreElements()){
@ -2699,7 +2713,7 @@ public class meptl {
}
//le text properties
node nodeStyleParDefautTextProperties = LesStyleDefaut.retourneFirstEnfantsByName("style:text-properties");
node nodeStyleParDefautTextProperties = LeStyleDefaut.retourneFirstEnfantsByName("style:text-properties");
node LesNodesStyleText = nodStyle.retourneFirstEnfantsByName("style:text-properties");
K = nodeStyleParDefautTextProperties.getAttributs().keys();
while(K.hasMoreElements()){

View File

@ -186,7 +186,7 @@ public class evaluation {
//intervalle valeur simple pas de bordure, pas de couleur, et pas d'autres fonctions
if(Sujet.contains("") && A!=null && !Sujet.contains("#") && !Sujet.contains("¦") && !Sujet.contains("") && !Sujet.contains("") && !Sujet.contains("¢")) {
if(Sujet.contains("") && !Sujet.contains("#") && !Sujet.contains("¦") && !Sujet.contains("") && !Sujet.contains("") && !Sujet.contains("¢")) {
if (TraitementIntervalle(A,Sujet).equals("Correct : ")) {
IncrementPointClass(pointEnJeu);
return "Correct : +" + pointString;
@ -350,6 +350,7 @@ public class evaluation {
* @return
*/
private static String TraitementIntervalle(String A, String B) {
if(A==null) return "Erreur : ";
if(A.isEmpty()) return "Erreur : ";
String Text[] = B.split("");
@ -445,7 +446,7 @@ public class evaluation {
/**
* Traitement des bordures
* Avec ou sans intervalle sur l'épaisseur des traits
* Avec 3 styles de tarits solid, dashed, double
* Avec 3 styles de traits solid, dashed, double
* Avec traitement de la couleur
* @param Sujet
* @param B

View File

@ -648,6 +648,14 @@ public class evaluationAttribut {
if(nodeStudent!=null) {
int calcul = 0;
node nodeSujetfrereAvant = sujet.retourneLeNodeFrereAvant();
node nodParentSujet = sujet.getParent();
if(nodParentSujet!=null)if(sujet.getParent().getNomElt().equals("OU")) {
nodeSujetfrereAvant = nodParentSujet.retourneLeNodeFrereAvant();
}
if(nodeSujetfrereAvant!=null)if(nodeSujetfrereAvant.getNomElt().equals("OU")) {
nodeSujetfrereAvant = nodeSujetfrereAvant.getNodes().get(0);
}
node nodeStudentfereAvant = nodeStudent.retourneLeNodeFrereAvant();
if(nodeSujetfrereAvant==null) nodeSujetfrereAvant = new node();
if(nodeStudentfereAvant==null) nodeStudentfereAvant = new node();
@ -659,7 +667,7 @@ public class evaluationAttribut {
if(calcul==1) {
retour = evaluationPlacement(retour,B, A , sujet.getAttributs().get("evalPlacement"),"Placement");
}else {
retour = evaluationPlacement(retour,null, A , sujet.getAttributs().get("evalPlacement"),"Placement");
retour = evaluationPlacement(retour,B, A , sujet.getAttributs().get("evalPlacement"),"Placement");
}
}else {
node nodeSujetAvant = sujet.retourneLeNodeFrereAvant();