This is the code documentation for the SproutCMS project
Search documentation |
class DocImportDOCX
Variables
Functions
private EMUtoPXfloat $DocImportDOCX->EMUtoPX ( int|float $emu [, int $dpi ] ); EM units to pixels private blockstring $DocImportDOCX->block ( DOMElement $elem ); Draw block element private determineListTagstring $DocImportDOCX->determineListTag ( array $style ); For a given style tag, return a list tag (either 'ul' or 'ol') private determineParaTagstring $DocImportDOCX->determineParaTag ( array $style ); For a given style tag, return a paragraph tag (either 'p' or 'h1', 'h2', etc) private determineStylearray $DocImportDOCX->determineStyle ( DOMElement $elem ); For a given paragraph element, determine the finalised style in use private drawRunsstring $DocImportDOCX->drawRuns ( array $runs ); Output one or more `w:r` elements private drawTablestring $DocImportDOCX->drawTable ( DOMElement $elem ); Draw a w:tbl element private drawingstring $DocImportDOCX->drawing ( DOMElement $elem ); Render a w:drawing object, i.e. an image private flattenBasedOnTreearray $DocImportDOCX->flattenBasedOnTree ( array &$styles , array $heading ); Walk the chain of styles via the "based on" field to generate a list of names public getHeadingsTree (from DocImport)Treenode DocImport::getHeadingsTree ( string $filename , int $max_depth [, bool $include_body ] ); For a given XML document, return a tree of headings Any heading level past the max_depth option is treated like body text. public getHtml (from DocImport)string DocImport::getHtml ( string $filename , array $images , array $headings ); For a given XML doc file, return the HTML version. public getResources (from DocImport)array DocImport::getResources ( string $filename ); For a given XML doc file, return an array of resources, in name => data format. public instance (from DocImport)unknown DocImport::instance ( mixed $orig_filename ); Return a `DocImport` object instance for converting a file with a given original name Throws an exception on error private isValidBlockElembool|bool $DocImportDOCX->isValidBlockElem ( DOMElement $elem ); Validates element as block display public loadstring|DOMDocument $DocImportDOCX->load ( string $filename ); The main load function for a document. Throw an exception on error. private loadFormatsarray $DocImportDOCX->loadFormats ( ); Load the number formats from numbering.xml private loadRelationshipsarray $DocImportDOCX->loadRelationships ( ); Relationships is how the main document.xml links together with various media files etc private loadStylesarray $DocImportDOCX->loadStyles ( ); Load styles private numbersFromStylesvoid $DocImportDOCX->numbersFromStyles ( ); Sometimes a numbering format refers to a style, the style itself contains the actual number format This function dereferences the number formats back again private parseCssarray $DocImportDOCX->parseCss ( string $css ); Parse given css private pictstring $DocImportDOCX->pict ( DOMElement $elem ); Render a w:pict object, i.e. an image private renderBlockRunsstring $DocImportDOCX->renderBlockRuns ( DOMElement $block ); Render all the runs (i.e. w:r elements) for a given block element You would think this would be a simple draw_runs call on the getElementsByTagName, but we would never actually have it _that_ easy... public symbolSanitizeStringstring $DocImportDOCX->symbolSanitizeString ( string $string ); Convert 'Symbol' font Private-Use-Area characters into real characters public symbolUnicodeToUtf8Entitystring $DocImportDOCX->symbolUnicodeToUtf8Entity ( string $wchar ); Regular expression callback for Symbol font conversion |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|