-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Writer Word2007: Support for padding in Table Cell #2697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
3e182f0
ab9e012
c02637d
4e24657
29e979a
11056c2
01ca738
5beb34e
1d1de82
0e4573b
3cce02e
b1fc4db
66d33b3
f573c0a
68154a3
bec1fc7
9f75457
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,26 @@ | |
*/ | ||
private $vAlign; | ||
|
||
/** | ||
* @var null|int | ||
*/ | ||
private $paddingTop; | ||
|
||
/** | ||
* @var null|int | ||
*/ | ||
private $paddingBottom; | ||
|
||
/** | ||
* @var null|int | ||
*/ | ||
private $paddingLeft; | ||
|
||
/** | ||
* @var null|int | ||
*/ | ||
private $paddingRight; | ||
|
||
/** | ||
* Text Direction. | ||
* | ||
|
@@ -357,4 +377,92 @@ | |
{ | ||
return $this->noWrap; | ||
} | ||
|
||
/** | ||
* Get style padding-top. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPaddingTop(): ?int | ||
Check failure on line 386 in src/PhpWord/Style/Cell.php
|
||
{ | ||
return $this->paddingTop; | ||
} | ||
|
||
/** | ||
* Set style padding-top. | ||
* | ||
* @return $this | ||
*/ | ||
public function setPaddingTop(int $value): self | ||
Progi1984 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
$this->paddingTop = $value; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get style padding-bottom. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPaddingBottom(): ?int | ||
Check failure on line 408 in src/PhpWord/Style/Cell.php
|
||
{ | ||
return $this->paddingBottom; | ||
} | ||
|
||
/** | ||
* Set style padding-bottom. | ||
* | ||
* @return $this | ||
*/ | ||
public function setPaddingBottom(int $value): self | ||
{ | ||
$this->paddingBottom = $value; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get style padding-left. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPaddingLeft(): ?int | ||
{ | ||
return $this->paddingLeft; | ||
} | ||
|
||
/** | ||
* Set style padding-left. | ||
* | ||
* @return $this | ||
*/ | ||
public function setPaddingLeft(int $value): self | ||
{ | ||
$this->paddingLeft = $value; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get style padding-right. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getPaddingRight(): ?int | ||
{ | ||
return $this->paddingRight; | ||
} | ||
|
||
/** | ||
* Set style padding-right. | ||
* | ||
* @return $this | ||
*/ | ||
public function setPaddingRight(int $value): self | ||
{ | ||
$this->paddingRight = $value; | ||
|
||
return $this; | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.