MAJ V4.2.2
Débug sur la possibilité d'avoir pas de nodes enfant d'une page.
This commit is contained in:
parent
485737518b
commit
ae9a8e4a9a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1048,16 +1048,18 @@ public class meptl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(usage1=="1") {
|
if(usage1=="1") {
|
||||||
if(nodpage.get(j).getNodes().get(0)!=null) {
|
if(nodpage.get(j).getNodes().size()>0) {
|
||||||
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
if(nodpage.get(j).getNodes().get(0)!=null) {
|
||||||
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
||||||
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
||||||
if(nod6!=null) {
|
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
||||||
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
if(nod6!=null) {
|
||||||
if(nod7.getAttributs().get("style:page-number")!=null) {
|
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
||||||
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
if(nod7.getAttributs().get("style:page-number")!=null) {
|
||||||
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
||||||
if(numeroPage%2==0) {usage1="left";}else{usage1="right";}
|
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
||||||
|
if(numeroPage%2==0) {usage1="left";}else{usage1="right";}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1077,15 +1079,17 @@ public class meptl {
|
|||||||
}
|
}
|
||||||
if(usage2=="2") {
|
if(usage2=="2") {
|
||||||
if(nodpage.get(j-1).getNodes().get(0)!=null) {
|
if(nodpage.get(j-1).getNodes().get(0)!=null) {
|
||||||
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
if(nodpage.get(j).getNodes().size()>0) {
|
||||||
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
||||||
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
||||||
if(nod6!=null) {
|
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
||||||
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
if(nod6!=null) {
|
||||||
if(nod7.getAttributs().get("style:page-number")!=null) {
|
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
||||||
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
if(nod7.getAttributs().get("style:page-number")!=null) {
|
||||||
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
||||||
if(numeroPage%2==0) {usage2="left";}else{usage2="right";}
|
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
||||||
|
if(numeroPage%2==0) {usage2="left";}else{usage2="right";}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ public class rechercherUnNodeStudent {
|
|||||||
private static node findNodeByContenuTextuel(String nameNode, node nodSujet,node nod0Student, node nod1Student, node nod2Student, Run a) {
|
private static node findNodeByContenuTextuel(String nameNode, node nodSujet,node nod0Student, node nod1Student, node nod2Student, Run a) {
|
||||||
node nodStudent = null;
|
node nodStudent = null;
|
||||||
|
|
||||||
String valueAttribut = evaluation.withoutCodeAndPointPourRechercheContenuExact(nodSujet.retourneLesContenusEnfants(""));
|
String valueAttribut = evaluation.withoutCodeAndPointPourRechercheContenuExact(nodSujet.retourneLesContenusEnfants(""));
|
||||||
|
|
||||||
Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list|^text:line-break$|^text:note$|^text:tab$|"
|
Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list|^text:line-break$|^text:note$|^text:tab$|"
|
||||||
+ "^text:index-body$|^text:index-title$|^text:index-title-template^$|^text:table-of-content$"); //le node qui peuvent rechercher par le contenu textuel
|
+ "^text:index-body$|^text:index-title$|^text:index-title-template^$|^text:table-of-content$"); //le node qui peuvent rechercher par le contenu textuel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user