Here are the two answers, and the resulting code:
As Werner mentioned, \addcontentsline doesn't include the numbering of the line added, according to the level where it was added (ex.: subsubsection). So, we have to add the numbers (value of the chapter, value of the section, value of the subsection, value of the subsubsection), with the help of counters (see http://en.wikibooks.org/wiki/LaTeX/Counters).
\addtocounter{subsubsection}{1}
\addcontentsline{toc}{subsubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}~~ line added to TOC: subsubsection one}
A better option is pointed out by Werner (comment below): \protect\numberline{\thesubsubsection}
\addcontentsline{toc}{subsubsection}{\protect\numberline{\thesubsubsection} line added to TOC: subsubsection one}
Indeed, TOT doesn't exist, but "lot" does.
%!TEX TS-program = pdflatex
\documentclass[10pt,a4paper]{book}
\usepackage{array}
%------------
\newcommand{\SampleTable}{
\begin{table}
\caption{Title of Sample Table}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
\end{tabular}
\end{table}
}
%------------
\begin{document}
\frontmatter
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage
\part{part one}
\chapter{chapter one}
\section{section one}
\subsection{subsection one}
\addtocounter{subsubsection}{1}
\addcontentsline{toc}{subsubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}~~ line added to TOC: subsubsection one}
\addtocounter{table}{1}
\addcontentsline{lot}{section}{\arabic{table}~~~~ line added to TOT: subsubsection one}
\addtocounter{subsubsection}{1}
\addcontentsline{toc}{subsubsection}{\arabic{chapter}.\arabic{section}.\arabic{subsection}.\arabic{subsubsection}~~ line added to TOC: subsubsection two}
\addtocounter{table}{1}
\addcontentsline{lot}{section}{\arabic{table}~~~~ line added to TOT: subsubsection two}
\subsubsection{subsubsection after addcontentsline: three}
\SampleTable
\backmatter
\listoftables
\end{document}
%% Reference on counters: http://en.wikibooks.org/wiki/LaTeX/Counters
And the code with Werner's better option:
%!TEX TS-program = pdflatex
\documentclass[10pt,a4paper]{book}
\usepackage{array}
%------------
\newcommand{\SampleTable}{
\begin{table}
\caption{Title of Sample Table}
\begin{tabular}{ l c r }
1 & 2 & 3 \\
\end{tabular}
\end{table}
}
%------------
\begin{document}
\frontmatter
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
\tableofcontents
\newpage
\part{part one}
\chapter{chapter one}
\section{section one}
\subsection{subsection one}
\addtocounter{subsubsection}{1}
\addcontentsline{toc}{subsubsection}{\protect\numberline{\thesubsubsection} line added to TOC: subsubsection one}
\addtocounter{table}{1}
\addcontentsline{lot}{section}{\arabic{table}~~~~ line added to TOT: subsubsection one}
\addtocounter{subsubsection}{1}
\addcontentsline{toc}{subsubsection}{\protect\numberline{\thesubsubsection} line added to TOC: subsubsection two}
\addtocounter{table}{1}
\addcontentsline{lot}{section}{\arabic{table}~~~~ line added to TOT: subsubsection two}
\subsubsection{subsubsection after addcontentsline: three}
\SampleTable
\backmatter
\listoftables
\end{document}
%% Reference on counters: http://en.wikibooks.org/wiki/LaTeX/Counters
\tableofcontentsusestocfor an abbreviation,\listoftablesuseslot(nottot). Also, what numbers do you want to add to the ToC/LoT?\addcontentslineonly adds what you supply, and you didn't supply any number. – Werner Mar 08 '13 at 20:37lot, accessed by\listoftables), not "table of tables". – barbara beeton Mar 08 '13 at 20:40\addcontentslinemanually you should almost never need to do that\captionshould add the entries automatically to thelotand\(sub)sectionshould automatically add entries to thetoc. Also "usual" numbering is 1.1.1 not 0.1.1 you are usingbookso the intention is that all\sectionare within a\chapterIf you want\sectionto be the top level section unit you should usearticle– David Carlisle Mar 08 '13 at 22:45