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 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 |
|