This is the code documentation for the SproutCMS project
Search documentation |
class DocImportDOCX
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-16
**/
class NewClassName extends DocImportDOCX {
/**
* EM units to pixels
**/
private function EMUtoPX (int|float $emu, int $dpi) {
// Method code goes here
}
/**
* Walk the chain of styles via the "based on" field to generate a list of names
**/
private function flattenBasedOnTree (array $styles, array $heading) {
// Method code goes here
}
/**
* 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 function numbersFromStyles () {
// Method code goes here
}
/**
* Relationships is how the main document.xml links together with various media files etc
**/
private function loadRelationships () {
// Method code goes here
}
/**
* For a given paragraph element, determine the finalised style in use
**/
private function determineStyle (DOMElement $elem) {
// Method code goes here
}
/**
* For a given style tag, return a paragraph tag (either 'p' or 'h1', 'h2', etc)
**/
private function determineParaTag (array $style) {
// Method code goes here
}
/**
* For a given style tag, return a list tag (either 'ul' or 'ol')
**/
private function determineListTag (array $style) {
// Method code goes here
}
/**
* Render a w:drawing object, i.e. an image
**/
private function drawing (DOMElement $elem) {
// Method code goes here
}
/**
* Render a w:pict object, i.e. an image
**/
private function pict (DOMElement $elem) {
// Method code goes here
}
/**
* Convert 'Symbol' font Private-Use-Area characters into real characters
**/
public function symbolSanitizeString (string $string) {
// Method code goes here
}
/**
* Regular expression callback for Symbol font conversion
**/
public function symbolUnicodeToUtf8Entity (string $wchar) {
// Method code goes here
}
/**
* Parse given css
**/
private function parseCss (string $css) {
// Method code goes here
}
/**
* Load styles
**/
private function loadStyles () {
// Method code goes here
}
/**
* Load the number formats from numbering.xml
**/
private function loadFormats () {
// Method code goes here
}
/**
* 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...
**/
private function renderBlockRuns (DOMElement $block) {
// Method code goes here
}
/**
* Output one or more `w:r` elements
**/
private function drawRuns (array $runs) {
// Method code goes here
}
/**
* The main load function for a document.
* Throw an exception on error.
**/
public function load (string $filename) {
// Method code goes here
}
/**
* Validates element as block display
**/
private function isValidBlockElem (DOMElement $elem) {
// Method code goes here
}
/**
* Draw block element
**/
private function block (DOMElement $elem) {
// Method code goes here
}
/**
* Draw a w:tbl element
**/
private function drawTable (DOMElement $elem) {
// Method code goes here
}
}
?>
|
| 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 |
|