\ProvidesPackage{cv_ralligned}
%
% Changes the allignment of the right header of the cv package (from LyX)
%

%
% This package is distributed under the same license as the original cv.cls
% Feel free to use it
%
% Tzafrir Cohen, http://www.tzafrir.org.il/
%

%
% Use the allignment parameter from below to make right header right-alligned
%

\def\cv@l@all{l}
\def\cv@r@all{l}
\newcommand{\CvLeftAll} [1]{\def\cv@l@all{#1}}
\newcommand{\CvRightAll}[1]{\def\cv@r@all{#1}}

\renewcommand{\maketitle}{%
        \if@cv@title@above\cv@do@title\fi
        \par\noindent%
        \begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}l@{}}
        \cv@header[\cv@l@all]{\cv@lh}&\cv@header[\cv@r@all]{\cv@rh}
        \end{tabular*}
        \par
        \if@cv@title@above\else\cv@do@title\fi
        \bigskip\par}
%
% added a non-default paragraph allignment parameter:
%
\renewcommand{\cv@header}[2][l]{%
          \if@rl%
            \begin{tabular}[t]{@{\cv@hd@fnt\beginR}#1@{\endR}}%
          \else%
            \begin{tabular}[t]{@{\cv@hd@fnt}#1@{}}%
          \fi%
              #2%
          \end{tabular}}


