Feature: Labelprint für Kistenetiketten hinzugefügt

This commit is contained in:
2025-10-27 12:14:44 +01:00
parent 43bc416554
commit 14bae6c9ef
1068 changed files with 229014 additions and 1807 deletions

View File

@@ -2,6 +2,8 @@
namespace PhpOffice\PhpSpreadsheet\Shared;
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
class Escher
{
/**
@@ -22,6 +24,14 @@ class Escher
return $this->dggContainer;
}
/**
* Get Drawing Group Container.
*/
public function getDggContainerOrThrow(): Escher\DggContainer
{
return $this->dggContainer ?? throw new SpreadsheetException('dggContainer is unexpectedly null');
}
/**
* Set Drawing Group Container.
*/
@@ -38,6 +48,14 @@ class Escher
return $this->dgContainer;
}
/**
* Get Drawing Container.
*/
public function getDgContainerOrThrow(): Escher\DgContainer
{
return $this->dgContainer ?? throw new SpreadsheetException('dgContainer is unexpectedly null');
}
/**
* Set Drawing Container.
*/

View File

@@ -2,6 +2,8 @@
namespace PhpOffice\PhpSpreadsheet\Shared\Escher;
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
class DggContainer
{
/**
@@ -94,6 +96,14 @@ class DggContainer
return $this->bstoreContainer;
}
/**
* Get BLIP Store Container.
*/
public function getBstoreContainerOrThrow(): DggContainer\BstoreContainer
{
return $this->bstoreContainer ?? throw new SpreadsheetException('bstoreContainer is unexpectedly null');
}
/**
* Set BLIP Store Container.
*/

View File

@@ -78,7 +78,7 @@ class PasswordHasher
*
* @param string $password Password to hash
* @param string $algorithm Hash algorithm used to compute the password hash value
* @param string $salt Pseudorandom string
* @param string $salt Pseudorandom base64-encoded string
* @param int $spinCount Number of times to iterate on a hash of a password
*
* @return string Hashed password

View File

@@ -420,7 +420,7 @@ class StringHelper
*/
public static function convertEncoding(string $textValue, string $to, string $from): string
{
if (self::getIsIconvEnabled()) {
if (static::getIsIconvEnabled()) {
$result = iconv($from, $to . self::$iconvOptions, $textValue);
if (false !== $result) {
return $result;
@@ -669,13 +669,16 @@ class StringHelper
return strlen("$string");
}
/** @param bool $convertBool If true, convert bool to locale-aware TRUE/FALSE rather than 1/null-string */
public static function convertToString(mixed $value, bool $throw = true, string $default = '', bool $convertBool = false): string
/**
* @param bool $convertBool If true, convert bool to locale-aware TRUE/FALSE rather than 1/null-string
* @param bool $lessFloatPrecision If true, floats will be converted to a more human-friendly but less computationally accurate value
*/
public static function convertToString(mixed $value, bool $throw = true, string $default = '', bool $convertBool = false, bool $lessFloatPrecision = false): string
{
if ($convertBool && is_bool($value)) {
return $value ? Calculation::getTRUE() : Calculation::getFALSE();
}
if (is_float($value)) {
if (is_float($value) && !$lessFloatPrecision) {
$string = (string) $value;
// look out for scientific notation
if (!Preg::isMatch('/[^-+0-9.]/', $string)) {

View File

@@ -39,6 +39,10 @@ class XMLWriter extends \XMLWriter
if (empty($this->tempFileName) || $this->openUri($this->tempFileName) === false) {
// Fallback to memory...
$this->openMemory();
if ($this->tempFileName != '') {
@unlink($this->tempFileName);
}
$this->tempFileName = '';
}
}
@@ -60,7 +64,8 @@ class XMLWriter extends \XMLWriter
}
}
public function __wakeup(): void
/** @param mixed[] $data */
public function __unserialize(array $data): void
{
$this->tempFileName = '';