不仅仅是一个“x主要内容●Office文档格式简介●Word文档开发●Exce|文档开发●PowerPoint文档开发oice文档格式简介●ECMAOfficeOpenXML规范●WordprocessingML●SpreadsheetML●PresentationML●DrawingMLECMAOfficeOpenXML规MarkupLanguagesWordprocessingMLSpreadsheetMLPresentationMLDrawingMLCustomXMLBibliographyVML(legacy)MetadataEquati---OpenPackagingConvention-----RelationshipsContentTypesDigitalCoretechnologiesXMLUnicodeWordprocessingML●WordprocessingML基本概念DOCX解析Document的结构Paragraph/Runs,Tables,HyperlinksFootnote/ments,Fields,,StructuredDocumentTags(SDT)StylesDocumentDefault,ParagraphStyle,TableStyle,CharacterStylDirectFormattingHelloworld创建一个最小化得WordprocessingMLI的文档3部分构成parts:documentbody,contenttypesrelationships每一部分(part)是一个简单的XML(tet)所有的部分被打包成一个ZP文档结果:一个完整的OpenXML文档●meoHeader(s)/Footer(s)Footnote(s)/Endnote(s)footnotes/ment(s)eaders/footersstylesfontTabParagraphandTextFormatting简单的文本格式化在paragraph/run级别段落属性指定为粗体<w:t>Thequick</w:t执行(Run)属性指定为斜体<w:rPr>结果如下:</w:rPr><w:t>brown</w:t></w:r>Thequickbrownfox<w:r><w:tfox.</w:t>ParagraphProperties可在paragraph上直接定义,或定义在paragraphstyle中共有24propertysettings绪进距口中点式n)<w:widowControlw:val="on'/><w:keepNext/>式置外顶<w:keepLines/><w:pageBreakBefore/>本柜造顶一<w:suppressLineNumbers/>坚密<w:suppressAutoHyphens/<w:textBoxTightWrap/></wpPr>runs,paragraphcontentRunContentunsmaycontainvariousinlinestructures●Text●Deletedtext●SoftlinebreaksOFieldcodes,deletedfieldcodesOFootnote/endnotereferencemarksOFields:pagenumbers,dates,documentproperties,etc.●Tabs●Rubytext●DrawingMLcontent●Embeddedobjects●Pictures
不仅仅是一个“x” 来自淘豆网m.daumloan.com转载请标明出处.