MAJ V4.5.0

This commit is contained in:
pablo rodriguez 2024-05-09 14:50:42 +02:00
parent 0df500acec
commit 267c3abff8
2 changed files with 30 additions and 1 deletions

View File

@ -99,6 +99,7 @@ import cXML.node;
import list.listeDesNodesAllContent;
import list.listeDesNodesAnalyseStyle;
import list.listeDesNodesAncrable;
import list.listeDesNodesContenantSaut;
import list.listeDesNodesEvalPlacement;
import list.listeDesNodesFormatageDirect;
import list.listeDesNodesPourEvaluationEntetePage;
@ -532,9 +533,11 @@ public final class create extends JFrame {
}
if(listeDesNodesFormatageDirect.isFormatageDirect(nod)) {
btnevalNameLegacyStyleTrue.setEnabled(true);
btnevalSautPageColonnetrue.setEnabled(true);
btnevalFormatageDirecttrue.setEnabled(true);
}
if(listeDesNodesContenantSaut.isNodesContenantSaut(nod)) {
btnevalSautPageColonnetrue.setEnabled(true);
}
if(listeDesNodesAnalyseStyle.isAnalyseStyle(nod)) {
btnanalyseStyletrue.setEnabled(true);
}

View File

@ -0,0 +1,26 @@
package list;
import cXML.node;
public class listeDesNodesContenantSaut {
public static boolean isNodesContenantSaut(node nod) {
String nameNode = nod.getNomElt();
switch (nameNode) {
case "text:p":{
if(nod.chemin().contains("structurepage")) return true;
return false;
}
case "text:h":{
if(nod.chemin().contains("structurepage")) return true;
return false;
}
default:
return false;
}
}
}