UNPKG

docx4js

Version:
20 lines 585 B
define(['../model','./style/paragraph'], function(Model, Style){ return Model.extend(function(wXml,wDoc,mParent){ Model.apply(this,arguments) },{ type:'paragraph', getStyleId: function(a){ return this._val('>pPr>pStyle') }, getNamedStyle: function(){ return this.wDoc.style.get(this.getStyleId()) || this.wDoc.style.getDefault(Style.prototype.type) }, getDirectStyle: function(pr){ if(pr=this.wXml.$1('>pPr')) return new Style.Properties(pr,this.wDoc,this) }, _shouldIgnore: function(wXml){ return wXml.localName=='pPr' } }) })