Lines Matching refs:p
24 foreach ($xml->xpath('//w:body')[0]->children('w', true) as $p) {
25 $obj = $this->createParagraph($p);
52 public function createParagraph(\SimpleXMLElement $p): ?AbstractParagraph argument
54 $this->registerNamespaces($p); // FIXME is this still needed?
57 if ($p->getName() == 'tbl') {
58 return new Table($this->docx, $p);
62 if ($match = $p->xpath('w:pPr/w:rPr/w:rFonts')) {
64 return new CodeBlock($this->docx, $p);
69 …if ($this->docx->getStyles()->hasStyle($p, ['heading 1', 'heading 2', 'heading 3', 'heading 4', 'h…
70 return new Heading($this->docx, $p);
74 if ($this->docx->getStyles()->hasStyle($p, ['list paragraph'])) {
75 return new ListItem($this->docx, $p);
79 if ($p->xpath('w:r/w:drawing/wp:inline//a:blip')) {
80 return new Image($this->docx, $p);
84 if ($p->xpath('w:r/w:t')) {
85 return new Paragraph($this->docx, $p);