Skip to content

Commit

Permalink
Have updated the files related to issue #78 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marqitos authored Feb 21, 2025
1 parent 822ee54 commit 3bd4ffd
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 51 deletions.
17 changes: 8 additions & 9 deletions reference/xlswriter/xlsx-format/align.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 547a556ea0ffcae65a07fba5eac97f6f5c4faf2c Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-format.align" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -53,24 +53,23 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de estilo de alineación</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$alignStyle = $format->align(\Vtiful\Kernel\Format::FORMAT_ALIGN_LEFT)->toResource();
$alignStyle = \Vtiful\Kernel\Format::align($fileHandle, \Vtiful\Kernel\Format::FORMAT_ALIGN_LEFT);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $align)
->setColumn('A:A', 200, $alignStyle)
->output();
?>
]]>
Expand Down
15 changes: 7 additions & 8 deletions reference/xlswriter/xlsx-format/bold.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 547a556ea0ffcae65a07fba5eac97f6f5c4faf2c Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-format.bold" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -44,22 +44,21 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de estilo negrita</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$boldStyle = $format->bold()->toResource();
$boldStyle = \Vtiful\Kernel\Format::bold($fileHandle);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $boldStyle)
->output();
Expand Down
15 changes: 7 additions & 8 deletions reference/xlswriter/xlsx-format/italic.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 547a556ea0ffcae65a07fba5eac97f6f5c4faf2c Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-format.italic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -44,22 +44,21 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de estilo cursiva</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$italicStyle = $format->italic()->toResource();
$italicStyle = \Vtiful\Kernel\Format::italic($fileHandle);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $italicStyle)
->output();
Expand Down
15 changes: 7 additions & 8 deletions reference/xlswriter/xlsx-format/underline.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 547a556ea0ffcae65a07fba5eac97f6f5c4faf2c Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-format.underline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -53,22 +53,21 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de estilo subrayado</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$underlineStyle = $format->underline(\Vtiful\Kernel\Format::UNDERLINE_SINGLE)->toResource();
$underlineStyle = \Vtiful\Kernel\Format::underline($fileHandle, \Vtiful\Kernel\Format::UNDERLINE_SINGLE);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $underlineStyle)
->output();
Expand Down
15 changes: 7 additions & 8 deletions reference/xlswriter/xlsx-kernel/set-column.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 547a556ea0ffcae65a07fba5eac97f6f5c4faf2c Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-excel.setColumn" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -62,22 +62,21 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de setColumn</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$boldStyle = $format->bold()->toResource();
$boldStyle = \Vtiful\Kernel\Format::bold($fileHandle);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setColumn('A:A', 200, $boldStyle)
->output();
Expand Down
19 changes: 9 additions & 10 deletions reference/xlswriter/xlsx-kernel/set-row.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4691215483797da841e61de00eef8adba2960d21 Maintainer: andresdzphp Status: ready -->
<!-- EN-Revision: 8fc3f2a5728adba894b9f926d92af575d025519f Maintainer: andresdzphp Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="vtiful-kernel-excel.setRow" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -18,7 +18,7 @@
<methodparam choice="opt"><type>resource</type><parameter>format</parameter></methodparam>
</methodsynopsis>
<para>
Establece el formato de la columna.
Establece el formato de la fila.
</para>
</refsect1>

Expand Down Expand Up @@ -62,24 +62,23 @@
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>ejemplo</title>
<title>Ejemplo de setRow</title>
<programlisting role="php">
<![CDATA[
<?php
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial01.xlsx');
$fileObject = $excel->fileName('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($excel->getHandle());
$boldStyle = $format->bold()->toResource();
$boldStyle = \Vtiful\Kernel\Format::bold($fileHandle);
$fileObject->header(['name', 'age'])
$excel->header(['name', 'age'])
->data([['viest', 21]])
->setRow('A1', 20, $boldStyle,)
->setRow('A1', 20, $boldStyle)
->output();
]]>
</programlisting>
Expand Down

0 comments on commit 3bd4ffd

Please sign in to comment.