Is there a way to have both the main heading and the subheading on the same line in a table of contents?

Ok, so I am trying to create a table of contents via the insert index/table option. I have my document organized in such a way that I use two separate headings as the header to each chapter, one to say “Chapter xx” and one that is the actual name of the chapter. The first heading uses the style “Header 1” and the second uses “Header 2”. I want both of these to appear in my table of contents, but on the same line. I’ve looked all over Google and haven’t found anything. Currently I am able to get something like this:

Chapter 1..............................page 3
    The chapter's name.................page 3

But I want to get it to look like this:

Chapter 1: The chapter's name..........page 3

Any idea how this might be accomplished without putting both parts of the heading on the same line in the actual text of the document?

As a side note, I should mention that not all of the headings have a subheading. Some (e.g. “Prologue”) have only the main heading.

The short answer is not without manual editing. A heading like “Chapter 1: The chapter’s name” is a single heading for a chapter, rather than a heading + sub-heading combination. The “Chapter 1” part is essentially a leading enumerator, which can be setup in a custom heading style using numbering if required.

The index facility is designed to pull levels of heading out out the main body and present them in the same manner in the ToC. There are a variety of hacks to introduce changes between the ToC and the headings in the body of the work, but virtually all require manual intervention i.e., including a newline (SHIFT+ENTER) between “Chapter 1” and “The chapter’s name” in a single heading in the body and then editing this in the ToC to remove the newline and add the colon.

Thanks for the reply!
So, what you’re saying is that in this case it would probably be easiest to just write the table of contents out manually rather than using the “index/table” feature?

It depends on the size of the ToC. If it is small, then perhaps. For a larger ToC I would (and often have) generated the ToC, left it in whatever state it generates until the manuscript is finished, then edited it to suit at the end.