\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeIPCA2.sty,v 1.8 2004/10/07 20:53:10 tantau Exp $

\mode<presentation>

\usepackage{tikz}
\usepackage{pdfrender}
\usetikzlibrary{shapes,arrows}

\useinnertheme[shadow=true]{rounded}

\pgfdeclareimage[width=10mm]{ipca}{ipca-blue}
\setbeamertemplate{navigation symbols}{}
% OUTTER THEME

\useoutertheme{split}
\setbeamercolor{frametitle}{fg=white,bg=black,parent=subsection in head/foot}
\setbeamercolor{frametitle right}{parent=section in head/foot, bg=white}


\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{%
  color(-2pt)=(blue);
  color(.3\paperwidth)=(blue);
  color(1.01\paperwidth)=(brightblue)
}

\AtBeginDocument{
  \pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
    color(0pt)=(bg);
    color(4pt)=(black!50!bg)}
}

\addtobeamertemplate{headline}
{}
{%
  \vskip-0.2pt
  \pgfuseshading{beamer@topshade}
  \vskip-2pt
}

\defbeamertemplate*{frametitle}{shadow theme}
{%
  \nointerlineskip%
  \vskip-2pt%
  \hbox{\leavevmode
    \advance\beamer@leftmargin by -12bp%
    \advance\beamer@rightmargin by -12bp%
    \beamer@tempdim=\textwidth%
    \advance\beamer@tempdim by \beamer@leftmargin%
    \advance\beamer@tempdim by \beamer@rightmargin%
    \hskip-\Gm@lmargin\hbox{%
      \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
          \vbox{}
          \vskip 0mm\pgfuseimage{ipca}%
          \vskip-4.3ex%
          \leftskip12mm%
          \rightskip0.3cm plus1fil\leavevmode
          \insertframetitle%
          \ifx\insertframesubtitle\@empty%
          \\[-5mm]\strut\par%
          \else
            \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
          \fi%
          \nointerlineskip
          \vbox{}%
          \end{minipage}}%
      \beamer@tempdim=\ht\beamer@tempbox%
      \advance\beamer@tempdim by 2pt%
      \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
        \usebeamercolor{frametitle right}
        \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
        \pgfusepath{clip}
        \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}
      \end{pgfpicture}
      \hskip-\paperwidth%
      \box\beamer@tempbox%
    }%
    \hskip-\Gm@rmargin%
  }%
  \nointerlineskip
    \vskip-0.2pt
    \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
    \vskip-2pt
}


\defbeamertemplate*{sidebar right}{ipcatheme}
{
  \vfill%
  \llap{\insertlogo\hskip0.1cm}%
}


\usecolortheme{ipca_blue}

\setbeamerfont{block title}{size={}}

%%%%%%%%% For the \includeSlides command %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\let\fsvtpage=\ps@navigation
\def\bar{\nointerlineskip%
  \vskip-2pt%
  \hbox{\leavevmode
    \advance\beamer@leftmargin by -12bp%
    \advance\beamer@rightmargin by -12bp%
    \beamer@tempdim=\textwidth%
    \advance\beamer@tempdim by \beamer@leftmargin%
    \advance\beamer@tempdim by \beamer@rightmargin%
    \hskip-\Gm@lmargin\hbox{%
      \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
          \vbox{}
          \vskip 0mm\hskip95mm\pgfuseimage{ipca}%
          \vskip-4.5ex%
          \leftskip5mm%
          \rightskip0.3cm plus1fil\leavevmode
          \usebeamerfont*{frametitle}{\usebeamercolor[fg]{frametitle}\insertframetitle}%
          \ifx\insertframesubtitle\@empty%
            \strut\par%
          \else
            \par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
          \fi%
          \nointerlineskip
          \vbox{}%
          \end{minipage}}%
      \beamer@tempdim=\ht\beamer@tempbox%
      \advance\beamer@tempdim by 2pt%
      \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
        \usebeamercolor{frametitle right}
        \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
        \pgfusepath{clip}
        \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}
      \end{pgfpicture}
      \hskip-\paperwidth%
      \box\beamer@tempbox%
    }%
    \hskip-\Gm@rmargin%
  }%
  \nointerlineskip
    \vskip-0.2pt
    \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
    \vskip-2pt
}


\defbeamertemplate*{footline}{ipcatheme}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle\hfill\thepage
  \end{beamercolorbox}}%
  \vskip0pt%
}

\newcommand{\includeSlides}[2]{{    \setbeamercolor{background canvas}{bg=} 
    \includepdf[pagecommand={\frametitle{#1}\bar\fsvtpage},scale=0.9,pages=-]{#2} }}

\defbeamertemplate*{part page}{customized}[1][]
{
\begin{tikzpicture}[remember picture,overlay]
\fill[blue]
  (current page.north west) rectangle (current page.south east);
\node[anchor=west]
   at (current page.west) (logo)
   {\parbox[t]{.1\paperwidth}{\raggedleft\pgfuseimage{ipca} }};
   
\node[anchor=west] 
  at (logo.east) (title) { \Large \textcolor{white}{\insertpart}  };

\node[anchor=south east]
  at ([xshift=-5pt]current page.south east) (page)
      { \textcolor{white}{\tiny \insertpagenumber} };
   
\end{tikzpicture}
}

\defbeamertemplate*{title page}{customized}[1][]
{
\begin{tikzpicture}[remember picture,overlay]
\fill[blue]
  (current page.north west) rectangle (current page.south east);

\node[anchor=north west] 
  at (current page.north west) (logo)
  {\parbox[t]{.19\paperwidth}{\raggedleft%
    \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic}};

\node[anchor=south east] 
  at ([yshift=3pt]current page.south east) (author)
  {\parbox[t]{.6\paperwidth}{\raggedleft%
    \usebeamerfont{author}\textcolor{white}{\insertauthor}\\\textcolor{brightgray}{\insertinstitute}}~~~};

\node[anchor=center]
  at (current page.center) (title)
  {\parbox[t]{\textwidth}{\centering
      \usebeamerfont{author}\textcolor{white}{\LARGE\bf \inserttitle}
      \\[3mm]
      \usebeamerfont{subtitle}\textcolor{brightergray}{\Large \insertsubtitle}
    }};
\end{tikzpicture}

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mode
<all>

