summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-11 22:56:04 +0000
committerKarl Berry <karl@freefriends.org>2010-09-11 22:56:04 +0000
commiteb1e0a22fee869ae52e26bf9cd370da5a15358f3 (patch)
tree87cb97ca719386815056c272aecf23a871e54773 /Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
parent1c41710dabbde19fb39689af8b04bc5cb0ab4007 (diff)
hyperref update (11sep10)
git-svn-id: svn://tug.org/texlive/trunk@19658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def140
1 files changed, 78 insertions, 62 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
index 9683f9293fa..f45ea7ed2c6 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def
@@ -29,7 +29,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hdvipdfm.def}
- [2010/06/18 v6.81g
+ [2010/09/11 v6.81m
Hyperref driver for dvipdfm]
\def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}}
\ifHy@pagelabels
@@ -123,6 +123,9 @@
\fi
\providecommand*{\XR@ext}{pdf}
\Hy@setbreaklinks{true}
+\def\HyPat@ObjRef{%
+ @[^ ]+%
+}
\newsavebox{\pdfm@box}
\def\@pdfm@mark#1{\special{pdf:#1}}
\def\@pdfm@dest#1{%
@@ -279,14 +282,14 @@
\begingroup
\ifHy@ocgcolorlinks
\def\Hy@ocgcolor{#1}%
- \setbox0=\color@hbox
+ \setbox0=\hbox\bgroup\color@begingroup
\else
\HyColor@UseColor#1%
\fi
}%
\def\Hy@endcolorlink{%
\ifHy@ocgcolorlinks
- \color@endbox
+ \color@endgroup\egroup
\mbox{%
\@pdfm@mark{content /OC/OCPrint BDC}%
\rlap{\copy0}%
@@ -348,6 +351,7 @@
/A<<%
/S/GoTo%
/D(\Hy@testname)%
+ \Hy@href@nextactionraw
>>%
>>%
}%
@@ -361,8 +365,11 @@
\def\hyper@linkfile#1#2#3{%
\leavevmode
\Hy@BeginAnnot{%
- \Hy@pstringdef\Hy@pstringF{#2}%
+ \def\Hy@pstringF{#2}%
+ \Hy@CleanupFile\Hy@pstringF
+ \Hy@pstringdef\Hy@pstringF\Hy@pstringF
\Hy@pstringdef\Hy@pstringD{#3}%
+ \Hy@MakeRemoteAction
\@pdfm@mark{%
bann<<%
/Type/Annot%
@@ -376,8 +383,14 @@
/A<<%
/S/GoToR%
/F(\Hy@pstringF)%
- /D\ifx\\#3\\[0 \@pdfstartview]\else(\Hy@pstringD)\fi
+ /D%
+ \ifx\\#3\\%
+ [\Hy@href@page\@pdfremotestartview]%
+ \else
+ (\Hy@pstringD)%
+ \fi
\Hy@SetNewWindow
+ \Hy@href@nextactionraw
>>%
>>%
}%
@@ -403,6 +416,10 @@
/A<<%
/S/URI%
/URI(\Hy@pstringURI)%
+ \ifHy@href@ismap
+ /IsMap true%
+ \fi
+ \Hy@href@nextactionraw
>>%
>>%
}%
@@ -422,6 +439,7 @@
/A<<%
/S/Named%
/N/#1%
+ \Hy@href@nextactionraw
>>%
\Hy@setpdfborder
\ifx\@menubordercolor\relax
@@ -619,7 +637,6 @@
\fi
}%
\begingroup
- \Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofText,#1%
}%
@@ -659,7 +676,6 @@
\ifdim\@tempdimb>\@tempdima\@tempdima\@tempdimb\fi
}%
\advance\@tempdima by 15\p@
- \Field@toks={ }%
\begingroup
\HyField@SetKeys{#1}%
\edef\x{\endgroup
@@ -767,7 +783,6 @@
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
\begingroup
- \Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofPushButton,#1%
}%
@@ -800,7 +815,6 @@
\endgroup
}
\def\@Submit[#1]#2{%
- \Field@toks={ }%
\def\Fld@width{\DefaultWidthofSubmit}%
\def\Fld@height{\DefaultHeightofSubmit}%
\begingroup
@@ -824,7 +838,6 @@
\endgroup
}
\def\@Reset[#1]#2{%
- \Field@toks={ }%
\def\Fld@width{\DefaultWidthofReset}%
\def\Fld@height{\DefaultHeightofReset}%
\begingroup
@@ -859,7 +872,6 @@
\begingroup
\def\Fld@width{\DefaultWidthofCheckBox}%
\def\Fld@height{\DefaultHeightofCheckBox}%
- \Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofCheckBox,#1%
}%
@@ -988,6 +1000,57 @@
\endgroup
\let\Fld@name\Hy@gtemp
}
+\def\Fld@@additionalactions{%
+ \ifx\Fld@keystroke@code\@empty
+ \else
+ /K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>%
+ \fi
+ \ifx\Fld@format@code\@empty
+ \else
+ /F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>%
+ \fi
+ \ifx\Fld@validate@code\@empty
+ \else
+ /V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>%
+ \fi
+ \ifx\Fld@calculate@code\@empty
+ \else
+ /C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>%
+ \fi
+ \ifx\Fld@onfocus@code\@empty
+ \else
+ /Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>%
+ \fi
+ \ifx\Fld@onblur@code\@empty
+ \else
+ /Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>%
+ \fi
+ \ifx\Fld@onmousedown@code\@empty
+ \else
+ /D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>%
+ \fi
+ \ifx\Fld@onmouseup@code\@empty
+ \else
+ /U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>%
+ \fi
+ \ifx\Fld@onenter@code\@empty
+ \else
+ /E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>%
+ \fi
+ \ifx\Fld@onexit@code\@empty
+ \else
+ /X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>%
+ \fi
+}
+\def\Fld@additionalactions{%
+ \if-\Fld@@additionalactions-%
+ \else
+ \ifHy@pdfa
+ \else
+ /AA<<\Fld@@additionalactions>>%
+ \fi
+ \fi
+}
\def\PDFForm@Check{%
/Subtype/Widget%
\Fld@annotflags
@@ -1015,6 +1078,7 @@
\ifx\Fld@color\@empty\else\space\Fld@color\fi)%
/H/P%
\ifFld@checked /V/Yes\else /V/Off\fi
+ \Fld@additionalactions
}
\ifHy@pdfa
\else
@@ -1042,59 +1106,9 @@
>>%
\fi
/A<</S/JavaScript/JS(\Hy@escapestring{\Fld@onclick@code})>>%
+ \Fld@additionalactions
}%
\fi
-\def\Fld@@additionalactions{%
- \ifx\Fld@keystroke@code\@empty
- \else
- /K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>%
- \fi
- \ifx\Fld@format@code\@empty
- \else
- /F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>%
- \fi
- \ifx\Fld@validate@code\@empty
- \else
- /V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>%
- \fi
- \ifx\Fld@calculate@code\@empty
- \else
- /C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>%
- \fi
- \ifx\Fld@onfocus@code\@empty
- \else
- /Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>%
- \fi
- \ifx\Fld@onblur@code\@empty
- \else
- /Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>%
- \fi
- \ifx\Fld@onmousedown@code\@empty
- \else
- /D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>%
- \fi
- \ifx\Fld@onmouseup@code\@empty
- \else
- /U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>%
- \fi
- \ifx\Fld@onenter@code\@empty
- \else
- /E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>%
- \fi
- \ifx\Fld@onexit@code\@empty
- \else
- /X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>%
- \fi
-}
-\def\Fld@additionalactions{%
- \if-\Fld@@additionalactions-%
- \else
- \ifHy@pdfa
- \else
- /AA<<\Fld@@additionalactions>>%
- \fi
- \fi
-}
\def\PDFForm@List{%
/Subtype/Widget%
\Fld@annotflags
@@ -1226,6 +1240,7 @@
>>%
\Fld@submitflags
>>%
+ \Fld@additionalactions
}
\ifHy@pdfa
\else
@@ -1254,6 +1269,7 @@
\fi
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
/A<</S/ResetForm>>%
+ \Fld@additionalactions
}%
\fi
\def\Hy@writebookmark#1#2#3#4#5{%