How to get the corresponding text under the headings of all levels

In Word,does the title belong to its corresponding body?

I want to do these:
1.Get titles at all levels
2.Gets the body corresponding to each level of headings
3.Indent the left side of the text under the corresponding heading by a fixed distance

@Anghost

Could you please ZIP and attach your input and expected output documents here for our reference? We will then provide you more information about your query along with code example.