I realize that support for nested NumberedLists wont be provided until the Q1 of 2011 release, so I am attempting to build the formatting manually.
I have the "Title" and "Content" fields for each of the highlighted sections. I am building up a Span > Paragraph > Section for each of the correspnding highlighted sections and adding it to a raddoc.
For example, for section II.a.2 the code looks like:
private Section BuildActivity(RPActivitiesItem activity)
{
Span spanTitle = new Span(activity.PublicationTitle);
Span spanContent = new Span(activity.TextContent);
Paragraph paragraphContent = new Paragraph();
paragraphContent.Children.Add(spanTitle);
paragraphContent.Children.Add(spanContent);
Section section = new Section();
section.Children.Add(paragraphContent);
return section;
}
The result of this is (obviously) something like:
II.a.2.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed suscipit magna leo. Fusce sed dolor ante. Nam velit sem, varius ut pellentesque nec, cursus at justo. In hac habitasse platea dictumst. Sed porta egestas nisi, et porta massa tempus et. Sed ultricies felis ac lectus faucibus ac ultrices tortor interdum. In in turpis eu tortor varius consectetur. Morbi tincidunt rhoncus felis sed tincidunt. Donec pellentesque, neque vel tincidunt congue, sem odio sollicitudin mauris, sit amet blandit lorem dui id ipsum. Phasellus vitae augue velit, condimentum lacinia magna. Nullam commodo imperdiet libero, quis aliquet diam malesuada quis. Vestibulum imperdiet, lorem at elementum sagittis, nulla est malesuada libero, quis euismod sapien neque non nisl. In hac habitasse platea dictumst. Aliquam rhoncus ligula eu
I need the main body content to wrap within its own container as shown in the attached screen shot. I have been researching all day today and cant seem to figure out how to do this. I have looked at the SpanLayoutBox and the SpanBoxPositionHandler and both require a DocumentElementStructureCollection, that I cant seem to figure out how to integrate.
I am hard pressed to find any good examples of this or even how to implement those classes. Any direction would be much appreciated.
Thanks in Advance