Lines Matching refs:properties

49 		if ($this->mpdf->tableLevel > 1) { // inherit table properties from cell in which nested
129 if ($this->mpdf->tableLevel > 1) { // inherit table properties from cell in which nested
153 $properties = $this->cssManager->MergeCSS('TOPTABLE', 'TABLE', $attr);
155 $properties = $this->cssManager->MergeCSS('TABLE', 'TABLE', $attr);
159 if (isset($properties['WIDTH'])) {
160 $w = $properties['WIDTH'];
176 if (!empty($properties['DIRECTION'])) {
177 $table['direction'] = strtolower($properties['DIRECTION']);
184 if (isset($properties['BACKGROUND-COLOR'])) {
188 $table['bgcolor'][-1] = $properties['BACKGROUND-COLOR'];
189 } elseif (isset($properties['BACKGROUND'])) {
193 $table['bgcolor'][-1] = $properties['BACKGROUND'];
201 if (isset($properties['VERTICAL-ALIGN']) && array_key_exists(strtolower($properties['VERTICAL-ALIGN']), self::ALIGN)) {
202 $table['va'] = $this->getAlign($properties['VERTICAL-ALIGN']);
204 if (isset($properties['TEXT-ALIGN']) && array_key_exists(strtolower($properties['TEXT-ALIGN']), self::ALIGN)) {
205 $table['txta'] = $this->getAlign($properties['TEXT-ALIGN']);
208 if (!empty($properties['AUTOSIZE']) && $this->mpdf->tableLevel == 1) {
209 $this->mpdf->shrink_this_table_to_fit = $properties['AUTOSIZE'];
214 if (!empty($properties['ROTATE']) && $this->mpdf->tableLevel == 1) {
215 $this->mpdf->table_rotate = $properties['ROTATE'];
217 if (isset($properties['TOPNTAIL'])) {
218 $table['topntail'] = $properties['TOPNTAIL'];
220 if (isset($properties['THEAD-UNDERLINE'])) {
221 $table['thead-underline'] = $properties['THEAD-UNDERLINE'];
224 if (isset($properties['BORDER'])) {
225 $bord = $this->mpdf->border_details($properties['BORDER']);
234 if (isset($properties['BORDER-RIGHT'])) {
236 $table['border_details']['R'] = $this->mpdf->border_details($properties['BORDER-LEFT']); // *OTL*
239 $table['border_details']['R'] = $this->mpdf->border_details($properties['BORDER-RIGHT']);
243 if (isset($properties['BORDER-LEFT'])) {
245 $table['border_details']['L'] = $this->mpdf->border_details($properties['BORDER-RIGHT']); // *OTL*
248 $table['border_details']['L'] = $this->mpdf->border_details($properties['BORDER-LEFT']);
252 if (isset($properties['BORDER-BOTTOM'])) {
253 $table['border_details']['B'] = $this->mpdf->border_details($properties['BORDER-BOTTOM']);
256 if (isset($properties['BORDER-TOP'])) {
257 $table['border_details']['T'] = $this->mpdf->border_details($properties['BORDER-TOP']);
267 if (!empty($properties['LANG'])) {
269 if ($properties['LANG'] != $this->mpdf->default_lang && $properties['LANG'] !== 'UTF-8') {
270 list ($coreSuitable, $mpdf_pdf_unifont) = $this->languageToFont->getLanguageOptions($properties['LANG'], $this->mpdf->useAdobeCJK);
272 $properties['FONT-FAMILY'] = $mpdf_pdf_unifont;
276 $this->mpdf->currentLang = $properties['LANG'];
280 if (isset($properties['FONT-FAMILY'])) {
281 $this->mpdf->default_font = $properties['FONT-FAMILY'];
286 if (isset($properties['FONT-SIZE'])) {
289 $mmsize = $this->sizeConverter->convert($properties['FONT-SIZE'], $tableFontSize);
291 $mmsize = $this->sizeConverter->convert($properties['FONT-SIZE'], $this->mpdf->default_font_size / Mpdf::SCALE);
300 if (isset($properties['FONT-WEIGHT'])) {
301 if (strtoupper($properties['FONT-WEIGHT']) === 'BOLD') {
305 if (isset($properties['FONT-STYLE'])) {
306 if (strtoupper($properties['FONT-STYLE']) === 'ITALIC') {
310 if (isset($properties['COLOR'])) {
311 $this->mpdf->base_table_properties['COLOR'] = $properties['COLOR'];
313 if (isset($properties['FONT-KERNING'])) {
314 $this->mpdf->base_table_properties['FONT-KERNING'] = $properties['FONT-KERNING'];
316 if (isset($properties['LETTER-SPACING'])) {
317 $this->mpdf->base_table_properties['LETTER-SPACING'] = $properties['LETTER-SPACING'];
319 if (isset($properties['WORD-SPACING'])) {
320 $this->mpdf->base_table_properties['WORD-SPACING'] = $properties['WORD-SPACING'];
323 if (isset($properties['HYPHENS'])) {
324 $this->mpdf->base_table_properties['HYPHENS'] = $properties['HYPHENS'];
326 if (!empty($properties['LINE-HEIGHT'])) {
327 $table['cellLineHeight'] = $this->mpdf->fixLineheight($properties['LINE-HEIGHT']);
332 if (!empty($properties['LINE-STACKING-STRATEGY'])) {
333 $table['cellLineStackingStrategy'] = strtolower($properties['LINE-STACKING-STRATEGY']);
340 if (!empty($properties['LINE-STACKING-SHIFT'])) {
341 $table['cellLineStackingShift'] = strtolower($properties['LINE-STACKING-SHIFT']);
348 if (isset($properties['PADDING-LEFT'])) {
349 $table['padding']['L'] = $this->sizeConverter->convert($properties['PADDING-LEFT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
351 if (isset($properties['PADDING-RIGHT'])) {
352 $table['padding']['R'] = $this->sizeConverter->convert($properties['PADDING-RIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
354 if (isset($properties['PADDING-TOP'])) {
355 $table['padding']['T'] = $this->sizeConverter->convert($properties['PADDING-TOP'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
357 if (isset($properties['PADDING-BOTTOM'])) {
358 $table['padding']['B'] = $this->sizeConverter->convert($properties['PADDING-BOTTOM'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
361 if (isset($properties['MARGIN-TOP'])) {
363 $tmp = $this->sizeConverter->convert($properties['MARGIN-TOP'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
365 $properties['MARGIN-TOP'] = (int) $properties['MARGIN-TOP'] - $lastbottommargin;
367 $properties['MARGIN-TOP'] = 0;
370 $table['margin']['T'] = $this->sizeConverter->convert($properties['MARGIN-TOP'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
373 if (isset($properties['MARGIN-BOTTOM'])) {
374 $table['margin']['B'] = $this->sizeConverter->convert($properties['MARGIN-BOTTOM'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
376 if (isset($properties['MARGIN-LEFT'])) {
377 $table['margin']['L'] = $this->sizeConverter->convert($properties['MARGIN-LEFT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
380 if (isset($properties['MARGIN-RIGHT'])) {
381 $table['margin']['R'] = $this->sizeConverter->convert($properties['MARGIN-RIGHT'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
383 if (isset($properties['MARGIN-LEFT'], $properties['MARGIN-RIGHT']) && strtolower($properties['MARGIN-LEFT']) === 'auto' && strtolower($properties['MARGIN-RIGHT']) === 'auto') {
385 } elseif (isset($properties['MARGIN-LEFT']) && strtolower($properties['MARGIN-LEFT']) === 'auto') {
387 } elseif (isset($properties['MARGIN-RIGHT']) && strtolower($properties['MARGIN-RIGHT']) === 'auto') {
391 if (isset($properties['BORDER-COLLAPSE']) && strtoupper($properties['BORDER-COLLAPSE']) === 'SEPARATE') {
399 if (isset($properties['BORDER-SPACING-H'])) {
400 $table['border_spacing_H'] = $this->sizeConverter->convert($properties['BORDER-SPACING-H'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
402 if (isset($properties['BORDER-SPACING-V'])) {
403 $table['border_spacing_V'] = $this->sizeConverter->convert($properties['BORDER-SPACING-V'], $this->mpdf->blk[$this->mpdf->blklvl]['inner_width'], $this->mpdf->FontSize, false);
410 if (isset($properties['EMPTY-CELLS'])) {
411 $table['empty_cells'] = strtolower($properties['EMPTY-CELLS']); // 'hide' or 'show'
416 if (isset($properties['PAGE-BREAK-INSIDE']) && strtoupper($properties['PAGE-BREAK-INSIDE']) === 'AVOID' && $this->mpdf->tableLevel == 1 && !$this->mpdf->writingHTMLfooter) {
421 if (isset($properties['PAGE-BREAK-AFTER']) && $this->mpdf->tableLevel == 1) {
422 $table['page_break_after'] = strtoupper($properties['PAGE-BREAK-AFTER']);
426 if (isset($properties['BACKGROUND-GRADIENT']) && !$this->mpdf->kwt && !$this->mpdf->ColActive) {
427 $table['gradient'] = $properties['BACKGROUND-GRADIENT'];
430 if (!empty($properties['BACKGROUND-IMAGE']) && !$this->mpdf->kwt && !$this->mpdf->ColActive) {
431 $ret = $this->mpdf->SetBackground($properties, $this->mpdf->blk[$this->mpdf->blklvl]['inner_width']);
438 if (isset($properties['OVERFLOW'])) {
439 $table['overflow'] = strtolower($properties['OVERFLOW']); // 'hidden' 'wrap' or 'visible' or 'auto'
649 // Should Update all other arays set on row number, but cell properties have been set so not needed