예제 #1
0
        internal DocxFont(IOpenXmlContext context)
            : base(context)
        {
            fontSizes = new Dictionary <int, int>();

            Init();
        }
예제 #2
0
        public void ProcessImage(IOpenXmlContext context, string imagePath, DocxNode node, ref Paragraph para, Dictionary <string, object> properties)
        {
            DocxImage image    = new DocxImage(context);
            DocxNode  docxNode = GetImageNode(imagePath);

            docxNode.Parent = node.Parent;
            image.Process(docxNode, ref para, properties);
        }
예제 #3
0
        public void ProcessImage(IOpenXmlContext context, string imagePath, DocxNode node, ref Paragraph para)
        {
            DocxImage image    = new DocxImage(context);
            DocxNode  docxNode = GetImageNode(imagePath);

            docxNode.Parent = node.Parent;
            image.Process(docxNode, ref para);
        }
예제 #4
0
        public WordDocument(string fileName)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentNullException("fileName");
            }

            context = new OpenXmlContext(WordprocessingDocument.Create(fileName, WordprocessingDocumentType.Document));
        }
예제 #5
0
        public void ProcessImage(IOpenXmlContext context, string imagePath, DocxNode node)
        {
            ITextElement image    = new DocxImage(context);
            DocxNode     docxNode = GetImageNode(imagePath);

            docxNode.Parent = node.Parent;

            image.Process(docxNode);
        }
예제 #6
0
        public WordDocument(MemoryStream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            context = new OpenXmlContext(WordprocessingDocument.Create(stream, WordprocessingDocumentType.Document));
        }
예제 #7
0
        internal DocxElement(IOpenXmlContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.context = context;
        }
예제 #8
0
 internal DocxBold(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #9
0
 internal DocxImage(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #10
0
        internal DocxElement(IOpenXmlContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.context = context;
        }
예제 #11
0
 internal DocxHeading(IOpenXmlContext context)
     : base(context)
 {
     isValid = new Regex(@"^[hH][1-6]{1}$");
 }
예제 #12
0
 internal DocxOL(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #13
0
 internal DocxTable(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #14
0
 internal DocxObject(IOpenXmlContext context) : base(context)
 {
 }
예제 #15
0
 internal DocxCenter(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #16
0
 internal DocxStrike(IOpenXmlContext context) : base(context)
 {
 }
예제 #17
0
        public WordDocument(MemoryStream stream)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            context = new OpenXmlContext(WordprocessingDocument.Create(stream, WordprocessingDocumentType.Document));
        }
예제 #18
0
 internal DocxItalic(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #19
0
 internal DocxStrike(IOpenXmlContext context) : base(context) { }
예제 #20
0
 internal DocxUnderline(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #21
0
 internal DocxItalic(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #22
0
		internal DocxHr(IOpenXmlContext context)
			: base(context)
		{
		}
예제 #23
0
 internal DocxSection(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #24
0
 internal DocxSection(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #25
0
 internal DocxInline(IOpenXmlContext context) : base(context)
 {
 }
예제 #26
0
        public WordDocument(string fileName)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentNullException("fileName");
            }

            context = new OpenXmlContext(WordprocessingDocument.Create(fileName, WordprocessingDocumentType.Document));
        }
예제 #27
0
        internal DocxFont(IOpenXmlContext context)
            : base(context)
        {
            fontSizes = new Dictionary<Int32, Int32>();

            Init();
        }
예제 #28
0
 internal DocxInline(IOpenXmlContext context) : base(context) { }
예제 #29
0
 internal DocxAddress(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #30
0
 internal DocxSpan(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #31
0
 internal DocxAddress(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #32
0
 internal DocxSpan(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #33
0
 internal DocxTable(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #34
0
 internal DocxUnderline(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #35
0
 internal DocxBold(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #36
0
 internal DocxImage(IOpenXmlContext context)
     : base(context)
 {
 }
예제 #37
0
 internal DocxHeader(IOpenXmlContext context) : base(context)
 {
 }
예제 #38
0
 internal DocxHeading(IOpenXmlContext context)
     : base(context)
 {
     isValid = new Regex(@"^[hH][1-6]{1}$");
 }