示例#1
0
        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);
                }
            }
        }
示例#2
0
        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;
        }
示例#3
0
 public void SetDefaultStartContext()
 {
     StyleSheet = new StyleSheet();
     ThemeTable = new ThemeTable();
     CurrentSectionFormatting = new SectionFormatting();
     CurrentSectionFormatting.FCSPageInformation = new FCSPageInformation(); 
 }