public void SetDocumentDefaultContext() { CurrentSectionFormatting = new SectionFormatting(); CurrentSectionFormatting.FCSPageInformation = new FCSPageInformation(); if(StyleSheet != null && StyleSheet.Styles.ContainsKey("Normal")) { Style styleNormal = StyleSheet.Styles["Normal"]; if (styleNormal.FCSFormatting != null) { if (styleNormal.FCSFormatting.CharacterProperties != null) m_DocumentDefaultFormatting.Apply(styleNormal.FCSFormatting.CharacterProperties); if (styleNormal.FCSFormatting.ParagraphProperties != null) m_DocumentDefaultFormatting.Apply(styleNormal.FCSFormatting.ParagraphProperties); } } }
private object ResolveSectionFormatting(SectionFormatting sf) { CurrentSectionFormatting = new SectionFormatting(); CurrentSectionFormatting.Apply(sf); return sf; //if (CurrentSectionFormatting == null) // return sf; //SectionFormatting sfNew = new SectionFormatting(); //sfNew.Apply(CurrentSectionFormatting); //sfNew.Apply(sf); //return sfNew; }
public void SetDefaultStartContext() { StyleSheet = new StyleSheet(); ThemeTable = new ThemeTable(); CurrentSectionFormatting = new SectionFormatting(); CurrentSectionFormatting.FCSPageInformation = new FCSPageInformation(); }