diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf')
-rw-r--r-- | Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf b/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf new file mode 100644 index 00000000000..a343c13462f --- /dev/null +++ b/Master/texmf-dist/doc/latex/pstricks-examples-en/aebocg.fdf @@ -0,0 +1,49 @@ +%FDF-1.2 +1 0 obj +<< /FDF << /JavaScript << /Doc 2 0 R >> >> >> +endobj +2 0 obj +[ (AeB Pro: OCG Support) 3 0 R ] +endobj +3 0 obj +<<>> +stream +var ocgs = this.getOCGOrder(); +var xBlds = new Array(); +console.println("Reindexing ocgs and creating xBlds"); +if ( ocgs != null ) { + var l = ocgs.length; + for ( i=0; i<l; i++ ) { + if (ocgs[0].name.substring(0,3) == "xb." ) + xBlds.push(ocgs.shift()); + else ocgs.push(ocgs.shift()); + } +} +var assocxLayers = new Array(); +if ( xBlds != null ) { + for ( var i=0; i<xBlds.length; i++) + assocxLayers[xBlds[i].name]=i; +} +function getxBld (name) { + var i = assocxLayers["xb."+name]; + return ( i == undefined ) ? null : xBlds[i]; +} +function toggleHelp (name) +{ + var o = getxBld(name); + if ( o != null ) o.state = (event.name.indexOf("Enter") != -1); +} +function toggleSetThisLayer(name, bState) { + var oLayer = getxBld(name); + if ( oLayer != null ) + oLayer.state = (arguments.length > 1) ? bState : !oLayer.state; +} +function getLayerState(name) { + var oLayer = getxBld(name); + return ( oLayer != null ) ? oLayer.state : null; +} +endstream +endobj +trailer +<< /Root 1 0 R >> +%%EOF |