fix: modules directement dans le menu, sans panneau intermediaire
app.execDialog et app.popUpMenuEx ne fonctionnent pas depuis un menu item dans Acrobat 2026. Chaque module est maintenant un item direct dans le sous-menu Imposition Pro. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -238,10 +238,61 @@ try {
|
||||
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpOuvrirPanneau",
|
||||
cName: "CDImpLivret",
|
||||
cUser: "Livret / Delivretiser",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "CDImp.UI.ouvrirPanneauPrincipal(event.target);",
|
||||
cExec: "if(CDImp.Livret&&CDImp.Livret.lancer)CDImp.Livret.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 0
|
||||
});
|
||||
} catch (e) {}
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpNUp",
|
||||
cUser: "N-Up / Step and Repeat",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "if(CDImp.NUp&&CDImp.NUp.lancer)CDImp.NUp.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 1
|
||||
});
|
||||
} catch (e) {}
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpDecoupe",
|
||||
cUser: "Decoupe et reassemblage",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "if(CDImp.Decoupe&&CDImp.Decoupe.lancer)CDImp.Decoupe.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 2
|
||||
});
|
||||
} catch (e) {}
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpMarges",
|
||||
cUser: "Marges et cadrages",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "if(CDImp.Marges&&CDImp.Marges.lancer)CDImp.Marges.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 3
|
||||
});
|
||||
} catch (e) {}
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpReperes",
|
||||
cUser: "Reperes et numerotation",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "if(CDImp.Reperes&&CDImp.Reperes.lancer)CDImp.Reperes.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 4
|
||||
});
|
||||
} catch (e) {}
|
||||
try {
|
||||
app.addMenuItem({
|
||||
cName: "CDImpAuto",
|
||||
cUser: "Automatisation",
|
||||
cParent: "ImpositionPro",
|
||||
cExec: "if(CDImp.Auto&&CDImp.Auto.lancer)CDImp.Auto.lancer(event.target);",
|
||||
cEnable: "event.rc = true;",
|
||||
nPos: 5
|
||||
});
|
||||
} catch (e) {}
|
||||
|
||||
Reference in New Issue
Block a user