Example #1
0
 public Store(Styling stylingFn, Taging tagingFn, IStatusInformation statusInfo)
 {
     _stylingFn  = stylingFn;
     _tagingFn   = tagingFn;
     _runs       = new List <Run>();
     _statusInfo = statusInfo;
 }
Example #2
0
        /// <summary>
        /// Setup helpers and namespaces
        /// </summary>
        /// <param name="documentXmlStream"></param>
        /// <param name="dotnetFn"></param>
        public Engine(Stream documentXmlStream, Numbering numberingFn, Imaging imagingFn, IStatusInformation statusInfo)
        {
            _statusInfo = statusInfo;
            _doc        = new XmlDocument();
            _doc.Load(documentXmlStream);
            _texingFn  = new TeXing();
            _stylingFn = new Styling();
            var tagingFn = new Taging();

            _tex = new Store(_stylingFn, tagingFn, statusInfo);

            _nsmgr = new XmlNamespaceManager(_doc.NameTable);
            _nsmgr.AddNamespace("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");
            _nsmgr.AddNamespace("wp", "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing");
            _nsmgr.AddNamespace("a", "http://schemas.openxmlformats.org/drawingml/2006/main");
            _nsmgr.AddNamespace("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");
            _nsmgr.AddNamespace("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            _nsmgr.AddNamespace("m", "http://schemas.openxmlformats.org/officeDocument/2006/math");
            _nsmgr.AddNamespace("v", "urn:schemas-microsoft-com:vml");

            _numberingFn = numberingFn;
            _imagingFn   = imagingFn;

            InitMathTables();
            CacheResolvedStyles();
            CacheBookmarks();
        }
Example #3
0
 public StyleEndRun(StyleEnum style, Styling stylingFn)
     : base(style, stylingFn)
 {
 }
Example #4
0
 public StyleRun(StyleEnum style, Styling stylingFn)
 {
     this.Style      = style;
     this._stylingFn = stylingFn;
 }