Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9753c3208b63a1407ed6c89b7bff2c6f27290843 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{makeidx}
%\usepackage{supertabular}
\usepackage{common/geclipse}
\evensidemargin=0pt
\oddsidemargin=0pt
\topmargin=-\headheight \advance\topmargin by -\headsep
\textwidth=15.99cm \textheight=22.5cm % normal A4, 1'' margin
\setcounter{tocdepth}{2}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\hypersetup{colorlinks}

\bibliographystyle{plain}

\newcommand{\edgfile}[1]{\texttt{#1}}
\newcommand{\edgcommand}[1]{\texttt{\b #1}}

% Here are the new commands for writing usecases. Use them with the new usecase-environment 
\usepackage{colortbl}
\newcommand{\ucitem}[2]{\hline \bfseries #1 & #2 \\}
\newcommand{\ucname}[1]{\multicolumn{2}{||>{\columncolor{gEclipse}}c||}{\color{white}{\large\scshape\bfseries #1}}\\}
\newcommand{\ucidentifier}[1]{\ucitem{Identifier}{#1}}
\newcommand{\ucgoals}[1]{\ucitem{Goals in context}{#1}}
\newcommand{\ucactors}[1]{\ucitem{Actors}{#1}}
\newcommand{\uctriggers}[1]{\ucitem{Triggers}{#1}}
\newcommand{\ucincludes}[1]{\ucitem{Included Use Cases}{#1}}
\newcommand{\ucextends}[1]{\ucitem{Extends Use Case}{#1}}
\newcommand{\ucpreconditions}[1]{\ucitem{Pre-Conditions}{#1}}
\newcommand{\ucpostconditions}[1]{\ucitem{Post-Conditions}{#1}}
\newcommand{\ucbasicflow}[1]{\ucitem{Basic Flow}{#1}}
\newcommand{\ucdeviantflow}[1]{\ucitem{Deviant Flow(s)}{#1}}
\newcommand{\ucimportance}[1]{\ucitem{Importance and Frequency}{#1}}
\newcommand{\ucadditional}[1]{\ucitem{Additional Requirements}{#1}}
\newcommand{\ucref}[2]{\hyperlink{uc:#1}{#2}}
\newenvironment{usecase}[3]
  {
    \begin{center}
    \phantomsection
  	\addcontentsline{toc}{subsection}{#2}
  	\tablefirsthead{}
    \tablehead{\hline \multicolumn{2}{||l||}{\footnotesize \ldots#2 - continued from last
    page}\\}
    \tabletail{\hline \multicolumn{2}{||r||}{\footnotesize #2 - continued on
    next page\ldots}\\ \hline}
    \tablelasttail{\hline}
    \begin{supertabular}{||p{4.8cm}|p{9.8cm}||}\hline
      \ucname{\hypertarget{uc:#3}{#2}}
      \ucidentifier{#1 - #2}
  }
  {
    \end{supertabular}
    \end{center}
    \vspace{0.5cm}
  }

%\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{hyperref}
\pagestyle{fancy}

\pagestyle{fancy}
\voffset=-1in

\usepackage{color}
\usepackage{colortbl}
\definecolor{black}{rgb}{0,0,0}
\definecolor{white}{rgb}{1,1,1}
\definecolor{gEclipse}{rgb}{0.3,0.3,0.9}
%\lhead{\includegraphics[width=30mm]{crossgrid-logo-2}\\[.1mm]}
%\rhead{\includegraphics[width=30mm]{ist_logo}}
%\lfoot{\small \istnumber}
\lfoot{\small \docfilename}
\cfoot{\docclassification}
%\rfoot{\thepage/\pageref{LastPage}}
\rfoot{\thepage}

\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0.7pt}
\renewcommand{\headheight}{40mm}

Back to the top