MAJ V4.2.2 - Adaptation à LibreOffice.
Les pages impaires sont à droite, les page paires sont gauches. Sauf si type droite uniquement ou gauche uniquement.
This commit is contained in:
parent
5dcd670df5
commit
b5e990484b
@ -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.
2
bin/.gitignore
vendored
Normal file
2
bin/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/MEPTL/
|
||||
/fenetres/
|
Binary file not shown.
Binary file not shown.
@ -1047,6 +1047,23 @@ public class meptl {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(usage1=="1") {
|
||||
if(nodpage.get(j).getNodes().get(0)!=null) {
|
||||
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
||||
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
||||
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
||||
if(nod6!=null) {
|
||||
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
||||
if(nod7.getAttributs().get("style:page-number")!=null) {
|
||||
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
||||
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
||||
if(numeroPage%2==0) {usage1="left";}else{usage1="right";}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(nodpage.get(j-1).getAttributs().get("style:master-page-name")!=null) {
|
||||
@ -1058,6 +1075,24 @@ public class meptl {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(usage2=="2") {
|
||||
if(nodpage.get(j-1).getNodes().get(0)!=null) {
|
||||
if(nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name")!=null) {
|
||||
String styleParagraphe = nodpage.get(j).getNodes().get(0).getAttributs().get("text:style-name");
|
||||
node nod6 = a.retourneFirstNodeByNameAttributValue(nodstyleparagraphe, "style:style", "style:name", styleParagraphe);
|
||||
if(nod6!=null) {
|
||||
node nod7 = nod6.retourneFirstEnfantsByName("style:paragraph-properties");
|
||||
if(nod7.getAttributs().get("style:page-number")!=null) {
|
||||
if(!nod7.getAttributs().get("style:page-number").equals("auto")) {
|
||||
int numeroPage = Integer.valueOf(nod7.getAttributs().get("style:page-number"));
|
||||
if(numeroPage%2==0) {usage2="left";}else{usage2="right";}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(j-1==0) usage2="right"; //la première page est toujours à droite.
|
||||
|
||||
@ -1117,8 +1152,10 @@ public class meptl {
|
||||
if(noddraw.get(j).getAttributs().get("text:anchor-type").equals("page")) {
|
||||
if(noddraw.get(j).getAttributs().get("text:anchor-page-number")!=null) {
|
||||
node page1 = null;
|
||||
if(pagezerosupprimer) page1 = a.retourneFirstNodeByNameAttributValue(nodpage, "page", "numeroabsolue", String.valueOf(Integer.valueOf(noddraw.get(j).getAttributs().get("text:anchor-page-number"))-1));
|
||||
if(!pagezerosupprimer) page1 = a.retourneFirstNodeByNameAttributValue(nodpage, "page", "numeroabsolue", noddraw.get(j).getAttributs().get("text:anchor-page-number"));
|
||||
// à vérifier sur plusierus fichiers la ligne ci-dessous
|
||||
int numpageAncrer = Integer.valueOf(noddraw.get(j).getAttributs().get("text:anchor-page-number"));
|
||||
page1 = a.retourneFirstNodeByNameAttributValue(nodpage, "page", "numeroabsolue", String.valueOf(Integer.valueOf(numpageAncrer)));
|
||||
|
||||
if(page1!=null) {
|
||||
if(pagezerosupprimer) {
|
||||
page1.getNodes().add(noddraw.get(j));
|
||||
@ -1130,6 +1167,7 @@ public class meptl {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +421,7 @@ public class createPopupMenu extends JPopupMenu {
|
||||
*/
|
||||
private JMenu mnEvalPiedPagePasActive() {
|
||||
JMenu mnEvalPiedPagePasActive = new JMenu("Pied page pas activé");
|
||||
mnEvalPiedPagePasActive.setIcon(new ImageIcon(create.class.getResource("/resources/evalnombredepagemaximini.png")));
|
||||
mnEvalPiedPagePasActive.setIcon(new ImageIcon(create.class.getResource("/resources/piedpagenonmini.png")));
|
||||
mnEvalPiedPagePasActive.add(new actEvalPiedPagePasActive());
|
||||
mnEvalPiedPagePasActive.add(new actEvalPiedPagePasActiveNon());
|
||||
return mnEvalPiedPagePasActive;
|
||||
|
Loading…
Reference in New Issue
Block a user