% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
% 
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
m4_ESKDX_INIT
m4_FILE_INIT
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{eskdinfo}[m4_dnl
m4_FILE_ID([[$Date:: 2010-01-14#$]]) Document Information]

m4_dnl ���������
\newcommand{\ESKDtheDepartment}{}
\newcommand{\ESKDdepartment}[1]{\renewcommand{\ESKDtheDepartment}{#1}}

m4_dnl �����������
\newcommand{\ESKDtheCompany}{}
\newcommand{\ESKDcompany}[1]{\renewcommand{\ESKDtheCompany}{#1}}

m4_dnl ��� �� �������������� ���������
\newcommand{\ESKDtheClassCode}{}
\newcommand{\ESKDclassCode}[1]{\renewcommand{\ESKDtheClassCode}{#1}}

m4_dnl ������������ �������/����
\newcommand{\ESKDtheUnitName}{}
\newcommand{\ESKDunitName}[1]{%
  \renewcommand{\ESKDtheUnitName}{#1}%
  \renewcommand{\@title}{#1}}
\newcommand{\ESKDtheTitle}{\ESKDtheUnitName}
\newcommand{\ESKDtitle}[1]{\ESKDunitName{#1}}
\renewcommand{\title}[1]{\ESKDunitName{#1}}

m4_dnl �������� ���������
\newcommand{\ESKDtheDocName}{}
\newcommand{\ESKDdocName}[1]{\renewcommand{\ESKDtheDocName}{#1}}

m4_dnl ����������� ���������
\newcommand{\ESKDtheSignature}{}
\newcommand{\ESKDsignature}[1]{\renewcommand{\ESKDtheSignature}{#1}}

m4_dnl ������
\newcommand{\ESKDtheLetterI}{}
\newcommand{\ESKDtheLetterII}{}
\newcommand{\ESKDtheLetterIII}{}
\newcommand{\ESKDletter}[3]{%
  \renewcommand{\ESKDtheLetterI}{#1}%
  \renewcommand{\ESKDtheLetterII}{#2}%
  \renewcommand{\ESKDtheLetterIII}{#3}}

m4_dnl ����������� ��������� ������
\newcommand{\ESKDtheMaterial}{}
\newcommand{\ESKDmaterial}[1]{%
  \renewcommand{\ESKDtheMaterial}{#1}}

m4_dnl ����� �������
\newcommand{\ESKDtheMass}{}
\newcommand{\ESKDmass}[1]{%
  \renewcommand{\ESKDtheMass}{#1}}

m4_dnl �������
\newcommand{\ESKDtheScale}{}
\newcommand{\ESKDscale}[1]{%
  \renewcommand{\ESKDtheScale}{#1}}

m4_dnl ������, ������, ��� ������������ �����������
\newcommand{\ESKDtheGroup}{}
\newcommand{\ESKDgroup}[1]{\renewcommand{\ESKDtheGroup}{#1}}

m4_dnl ������� ������
\newcommand{\ESKDtheAuthor}{}
\newcommand{\ESKDauthor}[1]{%
  \renewcommand{\ESKDtheAuthor}{#1}%
  \renewcommand{\@author}{#1}}
\renewcommand{\author}[1]{\ESKDauthor{#1}}

m4_dnl ������� ������������
\newcommand{\ESKDtheChecker}{}
\newcommand{\ESKDchecker}[1]{\renewcommand{\ESKDtheChecker}{#1}}

m4_dnl ������� ���������������
\newcommand{\ESKDtheNormContr}{}
\newcommand{\ESKDnormContr}[1]{\renewcommand{\ESKDtheNormContr}{#1}}

m4_dnl ������� ������������
\newcommand{\ESKDtheApprovedBy}{}
\newcommand{\ESKDapprovedBy}[1]{\renewcommand{\ESKDtheApprovedBy}{#1}}

m4_dnl ����
\newcommand{\ESKDtheYear}{\number\year}
\newcommand{\ESKDtheMonth}{\number\month}
\newcommand{\ESKDtheDay}{\number\day}
\def\ESKD@set@date#1/#2/#3 enddate{%
  \renewcommand{\ESKDtheYear}{#1}%
  \renewcommand{\ESKDtheMonth}{#2}%
  \renewcommand{\ESKDtheDay}{#3}}
\newcommand{\ESKDdate}[1]{%
  \ESKD@set@date #1 enddate%
  \renewcommand{\@date}{#1}}
\renewcommand{\date}[1]{\ESKDdate{#1}}

\RequirePackage{eskdafterpkg}
m4_dnl ��������� ������ hyperref
\ESKD@after@package{hyperref}{%
  \hypersetup{breaklinks,pdftitle=\ESKDtheUnitName,%
    pdfsubject=\ESKDtheDocName,pdfauthor=\ESKDtheAuthor}}

m4_dnl vim:ft=tex:sw=2:ai