예제 #1
0
        public RPLElementStyle GetSimpleStyles(RPLParagraph paragraph, RPLTextRun textRun)
        {
            RPLStyleProps shared    = null;
            RPLStyleProps nonShared = null;

            GetSimpleStyles(out nonShared, out shared, paragraph, textRun);
            return(new RPLElementStyle(nonShared, shared));
        }
예제 #2
0
 internal void AddParagraph(RPLParagraph paragraph)
 {
     if (m_paragraphs == null)
     {
         m_paragraphs = new Queue <RPLParagraph>();
     }
     m_paragraphs.Enqueue(paragraph);
     m_paragraphCount++;
 }
예제 #3
0
 public void GetSimpleStyles(out RPLStyleProps nonShared, out RPLStyleProps shared, RPLParagraph paragraph, RPLTextRun textRun)
 {
     shared    = new RPLStyleProps();
     nonShared = new RPLStyleProps();
     shared.AddAll(ElementPropsDef.SharedStyle);
     nonShared.AddAll(ElementProps.NonSharedStyle);
     nonShared.AddAll(paragraph.ElementProps.NonSharedStyle);
     if (paragraph.ElementProps.Definition != null)
     {
         shared.AddAll(paragraph.ElementProps.Definition.SharedStyle);
     }
     nonShared.AddAll(textRun.ElementProps.NonSharedStyle);
     if (textRun.ElementProps.Definition != null)
     {
         shared.AddAll(textRun.ElementProps.Definition.SharedStyle);
     }
 }