%%
%% This is file `hpdftex.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hyperref.dtx  (with options: `check,pdftex,outlines')
%% 
%% File: hyperref.dtx Copyright (C) 1995, 1996, 1997, 1998 Sebastian Rahtz
\ifhy@driverloaded\endinput\fi
\hy@driverloadedtrue

\def\new@pdflink#1{%
 \pdfdest name {#1} \@pdfview }
\let\pdf@endanchor\@empty
\AtBeginDocument{%
  \ifhy@colorlinks
   \def\pdfBorderAttrs{/Border [0 0 0]}%
  \fi
}
\def\@pdfborder{0 0 1}%
\def\pdfBorderAttrs{/Border [\@pdfborder]}
\def\find@pdflink#1#2{%
  \leavevmode\pdfannotlink
  attr{\pdfBorderAttrs /C [\CurrentBorderColor]}
  goto name {#2}%
  \colorlink{\csname @#1color\endcsname}%
}
\def\close@pdflink{\pdfendlink\hyper@resetcolor}
\def\hyper@anchor#1{\new@pdflink{#1}\anchor@spot\pdf@endanchor}
\def\hyper@anchorstart#1{\new@pdflink{#1}\hy@activeanchortrue}
\def\hyper@anchorend{\pdf@endanchor\hy@activeanchorfalse}
\def\hyper@linkstart#1#2{%
  \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
  \find@pdflink{#1}{#2}}
\def\hyper@linkend{\close@pdflink}
\def\hyper@link#1#2#3{%
    \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
    \find@pdflink{#1}{#2}#3\close@pdflink
}
\def\CurrentBorderColor{\@linkbordercolor}
\def\hyper@linkurl#1#2{%
   \bgroup
   \hyper@chars
   \leavevmode\pdfannotlink
   attr{\pdfBorderAttrs /C [\@urlbordercolor]}
   user{/Subtype /Link
    /A <<
        /Type /Action
        /S /URI
        /URI (#2)
    >>}{\colorlink{\@urlcolor}#1}%
   \pdfendlink
   \egroup
}
\def\hyper@linkfile#1#2#3{% anchor text, filename, linkname
   \bgroup
   \leavevmode\pdfannotlink
   attr{\pdfBorderAttrs /C [\@filebordercolor]}
   goto file{#2} name{#3}{\colorlink{\@filecolor}#1}%
   \pdfendlink
   \egroup
}
\def\@pdfproducer{pdfTeX}
\def\PDF@SetupDoc{%
  \pdfcatalog {            % Catalog dictionary of PDF output.
    /PageMode \@pdfpagemode
    /URI (\@baseurl)
    } openaction goto page \@pdfstartpage {\@pdfstartview}
 \pdfinfo {
  /Author (\@pdfauthor)
  /Title (\@pdftitle)
  /Subject (\@pdfsubject)
  /Creator ( \@pdfcreator)
  /Producer ( \@pdfproducer)
  /Keywords (\@pdfkeywords)
  \ifx\@pdfpagescrop\@empty\else
   /CropBox [\@pdfpagescrop]
  \fi
  }%
}
\pdfoutput=1
\pdfcompresslevel=9
\pdfpagewidth\paperwidth
\pdfpageheight\paperheight
\def\Acrobatmenu#1#2{%
   \leavevmode\pdfannotlink
   attr{\pdfBorderAttrs /C [\@menubordercolor]}
   user{
    /Subtype /Link
    /A <<
       /S /Named /N /#1
    >>
    }{\colorlink{\@menucolor}#2}%
   \pdfendlink
}
\let\H@old@sect\@sect
\def\@sect#1#2#3#4#5#6[#7]#8{%
 \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
 \ifx\\#1\\\else
  \ifnum#2>\c@secnumdepth\else
     \edef\@thishlabel{\csname theH#1\endcsname}%
\@writetorep{#7}{#1.\@thishlabel}{#2}\fi
 \fi
}
\let\H@old@part\@part
\def\@part[#1]#2{%
 \@writetorep{#1}{part.\theHpart}{-1}%
 \H@old@part[{#1}]{#2}%
}
\let\H@old@chapter\@chapter
\def\@chapter[#1]#2{%
 \H@old@chapter[{#1}]{#2}%
  \@writetorep{#1}{chapter.\theHchapter}{0}%
  }
\expandafter\def\csname Parent-2\endcsname{}
\expandafter\def\csname Parent-1\endcsname{}
\expandafter\def\csname Parent0\endcsname{}
\expandafter\def\csname Parent1\endcsname{}
\newwrite\@outlinefile
\def\@writetorep#1#2#3{%
\ifx\WriteBookmarks\relax\else
    \@tempcnta#3
    \expandafter\edef\csname Parent#3\endcsname{#2}%
    \advance\@tempcnta by -1
    \protected@write\@outlinefile%
       {\let~\space
        \def\LaTeX{LaTeX}%
        \def\eTeX{e-TeX}%
        \def\TeX{TeX}%
        \let\label\@gobble
        \let\index\@gobble
        \let\glossary\@gobble}%
       {%
  \protect\BOOKMARK{#2}{#1}{\csname Parent\the\@tempcnta\endcsname}}%
\fi
}
\def\pdfbookmark{\@ifnextchar[{\pdf@bookmark}{\pdf@bookmark[0]}}
\def\pdf@bookmark[#1]#2#3{%
\ifx\WriteBookmarks\relax\else
 \@writetorep{#2}{#3.#1}{#1}%
 \hyper@anchorstart{#3.#1}\hyper@anchorend
\fi
}
\AtBeginDocument{\ReadBookmarks}
\def\ReadBookmarks{%
  \def\BOOKMARK ##1##2##3{\calc@bm@number{##3}}%
  \InputIfFileExists{\jobname.out}{
}{}%
  \def\BOOKMARK ##1##2##3{%
    \def\@tempx{##2}%
     \pdfoutline goto
 name{##1}%
    count\@bookmarkopenstatus\check@bm@number{##1}{%
  \expandafter\strip@prefix\meaning\@tempx}%
  }%
  {\def\WriteBookmarks{0}%
   \escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
   \ifx\WriteBookmarks\relax\else
    \immediate\openout\@outlinefile=\jobname.out
   \fi
}
\def\check@bm@number#1{\expandafter \ifx\csname#1\endcsname \relax 0%
    \else \csname#1\endcsname \fi}
\def\calc@bm@number#1{\@tempcnta=\check@bm@number{#1}\relax
    \advance\@tempcnta by1
    \expandafter\xdef\csname#1\endcsname{\the\@tempcnta}}
\endinput
%%
%% End of file `hpdftex.def'.
