This commit is contained in:
wangjinlei
2024-07-17 09:23:45 +08:00
parent edf9deeb1a
commit 881ac3e056
1001 changed files with 41032 additions and 5452 deletions

View File

@@ -441,7 +441,7 @@ class DocInfo
*
* @param string $propertyName
*
* @return string
* @return ?string
*/
public function getCustomPropertyType($propertyName)
{

View File

@@ -114,7 +114,7 @@ class Settings
/**
* Theme Font Languages.
*
* @var Language
* @var ?Language
*/
private $themeFontLang;
@@ -149,7 +149,7 @@ class Settings
/**
* The allowed amount of whitespace before hyphenation is applied.
*
* @var null|float
* @var null|float|int
*/
private $hyphenationZone;
@@ -160,6 +160,13 @@ class Settings
*/
private $doNotHyphenateCaps;
/**
* Enable or disable book-folded printing.
*
* @var bool
*/
private $bookFoldPrinting = false;
/**
* @return Protection
*/
@@ -213,7 +220,7 @@ class Settings
/**
* Hide spelling errors.
*
* @param bool $hideSpellingErrors
* @param ?bool $hideSpellingErrors
*/
public function setHideSpellingErrors($hideSpellingErrors): void
{
@@ -233,7 +240,7 @@ class Settings
/**
* Hide grammatical errors.
*
* @param bool $hideGrammaticalErrors
* @param ?bool $hideGrammaticalErrors
*/
public function setHideGrammaticalErrors($hideGrammaticalErrors): void
{
@@ -249,7 +256,7 @@ class Settings
}
/**
* @param bool $evenAndOddHeaders
* @param ?bool $evenAndOddHeaders
*/
public function setEvenAndOddHeaders($evenAndOddHeaders): void
{
@@ -268,8 +275,6 @@ class Settings
/**
* Set the Visibility of Annotation Types.
*
* @param TrackChangesView $trackChangesView
*/
public function setRevisionView(?TrackChangesView $trackChangesView = null): void
{
@@ -285,7 +290,7 @@ class Settings
}
/**
* @param bool $trackRevisions
* @param ?bool $trackRevisions
*/
public function setTrackRevisions($trackRevisions): void
{
@@ -301,7 +306,7 @@ class Settings
}
/**
* @param bool $doNotTrackMoves
* @param ?bool $doNotTrackMoves
*/
public function setDoNotTrackMoves($doNotTrackMoves): void
{
@@ -317,7 +322,7 @@ class Settings
}
/**
* @param bool $doNotTrackFormatting
* @param ?bool $doNotTrackFormatting
*/
public function setDoNotTrackFormatting($doNotTrackFormatting): void
{
@@ -364,22 +369,20 @@ class Settings
/**
* Returns the Language.
*
* @return Language
*/
public function getThemeFontLang()
public function getThemeFontLang(): ?Language
{
return $this->themeFontLang;
}
/**
* sets the Language for this document.
*
* @param Language $themeFontLang
* Sets the Language for this document.
*/
public function setThemeFontLang($themeFontLang): void
public function setThemeFontLang(Language $themeFontLang): self
{
$this->themeFontLang = $themeFontLang;
return $this;
}
/**
@@ -391,7 +394,7 @@ class Settings
}
/**
* @param bool $updateFields
* @param ?bool $updateFields
*/
public function setUpdateFields($updateFields): void
{
@@ -451,7 +454,7 @@ class Settings
}
/**
* @return null|float
* @return null|float|int
*/
public function getHyphenationZone()
{
@@ -459,7 +462,7 @@ class Settings
}
/**
* @param float $hyphenationZone Measurement unit is twip
* @param null|float|int $hyphenationZone Measurement unit is twip
*/
public function setHyphenationZone($hyphenationZone): void
{
@@ -481,4 +484,16 @@ class Settings
{
$this->doNotHyphenateCaps = (bool) $doNotHyphenateCaps;
}
public function hasBookFoldPrinting(): bool
{
return $this->bookFoldPrinting;
}
public function setBookFoldPrinting(bool $bookFoldPrinting): self
{
$this->bookFoldPrinting = $bookFoldPrinting;
return $this;
}
}