createTableOfContentsHeading
Creates the heading for the Table of Contents, depending on:
Document type
User-set title in the TableOfContentsView
Localization availability
If the user-set title is empty, no title is used.