%==============================================================================
% Prosper -- (PPRwhitecross) Style file
% A LaTeX class for creating slides
% Author: Alberto Ornaghi (alor@sikurezza.org)
%
% Copyright (c) 2003 Alberto Ornaghi
% All rights reserved.
% 
% Permission is hereby granted, without written agreement and without
% license or royalty fees, to use, copy, modify, and distribute this
% software and its documentation for any purpose, provided that the
% above copyright notice and the following two paragraphs appear in
% all copies of this software.
% 
% IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 
% SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF 
% THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED 
% OF THE POSSIBILITY OF SUCH DAMAGE.
% 
% THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
% AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
% ON AN "AS IS" BASIS, AND THE AUTHOR HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
%
%==============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRwhitecross}[2003/01/24]
\typeout{`whitecross' style for prosper ---}
\typeout{(c) 2003 Alberto Ornaghi, Milano, Italy}
\typeout{ }

\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}

\newrgbcolor{darkblue}{0.0 0.0 0.4}
\newrgbcolor{lightblue}{0.0 0.0 0.6}
\newrgbcolor{myblue}{0.4 0.639 0.921}

\ifinColor
   \def\colorA{darkblue}
   \def\colorB{lightblue}
   \def\colorC{\yellow}
   \ifcolorBG
      \def\colorD{\white}
   \else
      \def\colorD{\black}
   \fi
\else
   \def\colorA{lightgray}
   \def\colorB{white}
   \def\colorC{\black}
   \def\colorD{\black}
\fi

\FontTitle{%  'ptm' has serif, 'phv' sans serif
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorC}{%
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorD}
\FontText{\colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt} \selectfont}{%
  \colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}

\ifinColor
   \ColorFoot{\myblue}
\else
   \ColorFoot{\black}
\fi

\newcommand{\slidetitle}[1]{ \rput[lt](-.0,4){\fontTitle{#1}}}

\LogoPosition{-.4,-.7}

\newcommand{\whitecrossFrame}[1]{%
  \psframe[fillstyle=solid,fillcolor=\colorA,linestyle=none](-2,-1.4)(12.5,9)
\ifinColor
 \ifcolorBG
  \psframe[fillstyle=gradient,gradbegin=\colorB,gradend=\colorA,%
           gradmidpoint=0,gradangle=90,linestyle=none](-.23,-.5)(12.5,6.7)
 \else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-.23,-.5)(12.5,6.7)
 \fi
\else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-.23,-.5)(12.5,6.7)
\fi
%horizzontal gradient
  \psframe[fillstyle=gradient,gradbegin=\colorA,gradend=white,gradmidpoint=1,%
           gradangle=90,linestyle=none](-1.7,6.73)(-.23,6.68)
  \psframe[fillstyle=gradient,gradbegin=white,gradend=\colorA,gradmidpoint=1,%
           gradangle=90,linestyle=none](-.25,6.68)(10,6.73)
%vertical gradient
  \psframe[fillstyle=gradient,gradbegin=white,gradend=\colorA,gradmidpoint=1,%
           gradangle=0,linestyle=none](-.22,6.7)(-.26,0.0)
  \psframe[fillstyle=gradient,gradbegin=\colorA,gradend=white,gradmidpoint=1,%
           gradangle=0,linestyle=none](-.22,8.7)(-.26,6.7)
           
  \PutLogo % Mandatory
  {#1}}

\ifinColor
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-blue-wc.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-blue-wc.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-blue-wc.ps}}
\else
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-white.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-white.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-white.ps}}
\fi


\NewSlideStyle{t}{5.5,2.4}{whitecrossFrame}

\RequirePackage{semhelv}

\PDFCroppingBox{5 10 590 810}


\endinput

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
