/** * Constructor. * @param IdmlStory $story */ public function __construct(IdmlStory $story = null) { parent::__construct(); $this->story = $story; $this->hasNestedStyle = false; $this->initTabData(); }
/** * Constructor. * @param string $content * @param IdmlContent $parent */ public function __construct($content, IdmlContent $parent) { parent::__construct(); $this->content = $content; $this->parentElement = $parent; $parent->childrenElements[] = $this; $this->usesNestedClass = true; }
/** * Constructor. * @param IdmlPage $page Could be null * @param IdmlStory $story Could be null if rectangle is not part of story. */ public function __construct(IdmlPage $page = null, IdmlStory $story = null) { parent::__construct(); $this->UID = ''; $this->page = $page; $this->story = $story; $this->visible = true; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->UID = ''; $this->parentStoryUID = ''; $this->contentType = ''; $this->visible = true; $this->story = null; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); $this->properties = array(); }
/** * Constructor. * @param IdmlPage $page Could be null * @param IdmlStory $story Could be null if rectangle is not part of story. */ public function __construct(IdmlPage $page = null, IdmlStory $story = null) { parent::__construct(); $this->tag = ''; $this->controls = true; $this->loop = false; $this->mediaFilename = ''; $this->autoplay = false; $this->UID = ''; $this->page = $page; $this->story = $story; $this->transformation = new IdmlTransformation(); $this->boundary = IdmlBoundary::createDefault(); $this->visible = true; }
/** * Constructor. */ public function __construct(IdmlContent $contentNode, $tabIndex) { parent::__construct(); $this->parentElement = $contentNode; $contentNode->childrenElements[] = $this; $this->paragraph = $this->getParagraph(); $this->usesNestedClass = true; /* *** Hack alert!!! *** * In some cases, tabs need to be managed by a complex hierarchy of spans dictating position, alignment, and styling. * In other cases, that strategy generates HTML that doesn't position the content correctly. * The strategy implemented here is that if the containing paragraph has a line indent property, * tabs are treated as simple content and are replaced with the html special character "	". * If there is no line indent property, we use the complex span strategy. * This is based on an admittedly incomplete understanding of how InDesign works, and is subject to reevaluation. */ $this->usesSpans = $this->paragraphUsesLeftIndent($this->paragraph); if (!$this->usesSpans) { return; } $this->paragraph->tabCount++; $tabData = $this->getTabLists(); $this->tabData = $tabData[$tabIndex]; $this->position = $tabData[$tabIndex]['Position']; $this->alignment = $tabData[$tabIndex]['Alignment']; $this->index = $tabIndex; // Save prior tab's position for determining the width of the current tab span if ($tabIndex > 0) { $this->lastPosition = $tabData[$tabIndex - 1]['Position']; $this->lastAlignment = $tabData[$tabIndex - 1]['Alignment']; } else { $this->lastPosition = 0; $this->lastAlignment = null; $this->paragraph->firstTabPosition = $tabData[$tabIndex]['Position']; $this->paragraph->firstTabAlignment = $tabData[$tabIndex]['Alignment']; } // Save next tab's position for determining width of the next tab span if (count($tabData) > $tabIndex + 1) { $this->nextPosition = $tabData[$tabIndex + 1]['Position']; $this->nextAlignment = $tabData[$tabIndex + 1]['Alignment']; } else { $this->nextPosition = null; $this->nextAlignment = null; } }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->usesNestedClass = true; }
/** * Constructor. * @param IdmlPage $page Could be null * @param IdmlStory $story Could be null if rectangle is not part of story. */ public function __construct() { parent::__construct(); }
/** * Constructor. * @param IdmlStory $story */ public function __construct(IdmlStory $story = null) { parent::__construct(); $this->story = $story; }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->vertices = array(); $this->frameFittingOption = new IdmlFrameFitting(0, 0, 0, 0); }
/** * Constructor. */ public function __construct() { parent::__construct(); $this->changeType = 'undefined'; }