//TODO Use PackageProperties. internal OpenXmlSdkDocumentProperties(OpenXmlSdkTextDocument document) { if (document == null) { throw new ArgumentNullException("document"); } _document = document; _xCorePropertiesNamespace = CorePropertiesSchema; _xDublinCoreNamespace = DublinCoreSchema; _xDCTermsNamespace = DublinCoreTermsSchema; _xCreatedElementName = _xDCTermsNamespace + "created"; _xCreatorElementName = _xDublinCoreNamespace + "creator"; _xDescriptionElementName = _xDublinCoreNamespace + "description"; _xKeywordsElementName = _xCorePropertiesNamespace + "keywords"; _xLanguageElementName = _xDublinCoreNamespace + "language"; _xLastModifiedByElementName = _xCorePropertiesNamespace + "lastModifiedBy"; _xLastPrintedElementName = _xCorePropertiesNamespace + "lastPrinted"; _xModifiedElementName = _xDCTermsNamespace + "modified"; _xRevisionElementName = _xCorePropertiesNamespace + "revision"; _xSubjectElementName = _xDublinCoreNamespace + "subject"; _xTitleElementName = _xDublinCoreNamespace + "title"; using (Stream stream = document.InnerObject.CoreFilePropertiesPart.GetStream()) { _xDocument = XDocument.Load(stream); } }
internal OpenXmlSdkParagraphCollection(OpenXmlSdkTextDocument textDocument) { if (textDocument == null) { throw new ArgumentNullException("textDocument"); } _textDocument = textDocument; }
internal OpenXmlSdkParagraph(OpenXmlSdkTextDocument textDocument, OpenXmlSdk.Paragraph paragraph) : base(textDocument, paragraph) { _rangeCollection = new OpenXmlSdkRangeCollection(this); }