cvs: phpdoc-it /reference/printer/functions printer-create-dc.xml printer-create-font.xml printer-draw-text.xml printer-get-option.xml
printer-list.xml printer-logical-fontheight.xml printer-open.xml printer-select-brush.xml
| From: | Andrioli Darvin | Date: | Sun, 11 Jan 2004 20:16:53 +0000 |
| Subject: | cvs: phpdoc-it /reference/printer/functions printer-create-dc.xml printer-create-font.xml printer-draw-text.xml printer-get-option.xml printer-list.xml printer-logical-fontheight.xml printer-open.xml printer-select-brush.xml |
||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-502@lists.php.net to get a copy of this message | ||
darvina Sun Jan 11 15:16:53 2004 EDT
Modified files:
/phpdoc-it/reference/printer/functions printer-create-dc.xml
printer-create-font.xml
printer-draw-text.xml
printer-get-option.xml
printer-list.xml
printer-logical-fontheight.xml
printer-open.xml
printer-select-brush.xml
Log:
Sync to En tree
Index: phpdoc-it/reference/printer/functions/printer-create-dc.xml
diff -u phpdoc-it/reference/printer/functions/printer-create-dc.xml:1.2
phpdoc-it/reference/printer/functions/printer-create-dc.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-create-dc.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-create-dc.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-create-dc">
<refnamediv>
@@ -40,7 +40,7 @@
printer_delete_dc($handle);
-printer_endpage($handle);
+printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
Index: phpdoc-it/reference/printer/functions/printer-create-font.xml
diff -u phpdoc-it/reference/printer/functions/printer-create-font.xml:1.1
phpdoc-it/reference/printer/functions/printer-create-font.xml:1.2
--- phpdoc-it/reference/printer/functions/printer-create-font.xml:1.1 Wed May 15 15:29:20 2002
+++ phpdoc-it/reference/printer/functions/printer-create-font.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-create-font">
<refnamediv>
Index: phpdoc-it/reference/printer/functions/printer-draw-text.xml
diff -u phpdoc-it/reference/printer/functions/printer-draw-text.xml:1.2
phpdoc-it/reference/printer/functions/printer-draw-text.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-draw-text.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-draw-text.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-draw-text">
<refnamediv>
@@ -29,8 +29,7 @@
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
-
-$font = printer_create_font("Arial",72,48,400,false,false,false,0);
+$font = printer_create_font("Arial", 72, 48, 400, false, false, false ,0);
printer_select_font($handle, $font);
printer_draw_text($handle, "test", 10, 10);
printer_delete_font($font);
Index: phpdoc-it/reference/printer/functions/printer-get-option.xml
diff -u phpdoc-it/reference/printer/functions/printer-get-option.xml:1.2
phpdoc-it/reference/printer/functions/printer-get-option.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-get-option.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-get-option.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-get-option">
<refnamediv>
@@ -39,7 +39,7 @@
<![CDATA[
<?php
$handle = printer_open();
-print printer_get_option($handle, PRINTER_DRIVERVERSION);
+echo printer_get_option($handle, PRINTER_DRIVERVERSION);
printer_close($handle);
?>
]]>
Index: phpdoc-it/reference/printer/functions/printer-list.xml
diff -u phpdoc-it/reference/printer/functions/printer-list.xml:1.2
phpdoc-it/reference/printer/functions/printer-list.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-list.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-list.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-list">
<refnamediv>
@@ -77,7 +77,7 @@
<![CDATA[
<?php
/* rileva le stampanti locali condivise */
-var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) );
+var_dump(printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_SHARED) );
?>
]]>
</programlisting>
Index: phpdoc-it/reference/printer/functions/printer-logical-fontheight.xml
diff -u phpdoc-it/reference/printer/functions/printer-logical-fontheight.xml:1.2
phpdoc-it/reference/printer/functions/printer-logical-fontheight.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-logical-fontheight.xml:1.2 Fri Oct 3 15:27:44
2003
+++ phpdoc-it/reference/printer/functions/printer-logical-fontheight.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-logical-fontheight">
<refnamediv>
@@ -26,7 +26,7 @@
<![CDATA[
<?php
$handle = printer_open();
-print printer_logical_fontheight($handle, 72);
+echo printer_logical_fontheight($handle, 72);
printer_close($handle);
?>
]]>
Index: phpdoc-it/reference/printer/functions/printer-open.xml
diff -u phpdoc-it/reference/printer/functions/printer-open.xml:1.2
phpdoc-it/reference/printer/functions/printer-open.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-open.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-open.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-open">
<refnamediv>
@@ -21,7 +21,7 @@
Se non vengono passati parametri, la funzione tenta di aprire
una connessione con la stampante di default (se non viene specificata in
&php.ini; come
- <literal>printer.default_printer</literal>, il php tenta di determinarla).
+ <literal>printer.default_printer</literal>, il PHP tenta di determinarla).
</para>
<para>
Inoltre <function>printer_open</function> attiva un device context.
Index: phpdoc-it/reference/printer/functions/printer-select-brush.xml
diff -u phpdoc-it/reference/printer/functions/printer-select-brush.xml:1.2
phpdoc-it/reference/printer/functions/printer-select-brush.xml:1.3
--- phpdoc-it/reference/printer/functions/printer-select-brush.xml:1.2 Fri Oct 3 15:27:44 2003
+++ phpdoc-it/reference/printer/functions/printer-select-brush.xml Sun Jan 11 15:16:52 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/printer.xml, last change in rev 1.6 -->
<refentry id="function.printer-select-brush">
<refnamediv>
@@ -38,18 +38,13 @@
printer_select_pen($handle, $pen);
$brush = printer_create_brush(PRINTER_BRUSH_CUSTOM, "c:\\brush.bmp");
printer_select_brush($handle, $brush);
-
-printer_draw_rectangle($handle, 1,1,500,500);
-
+printer_draw_rectangle($handle, 1, 1, 500, 500);
printer_delete_brush($brush);
-
$brush = printer_create_brush(PRINTER_BRUSH_SOLID, "000000");
printer_select_brush($handle, $brush);
-printer_draw_rectangle($handle, 1,501,500,1001);
+printer_draw_rectangle($handle, 1, 501, 500, 1001);
printer_delete_brush($brush);
-
printer_delete_pen($pen);
-
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);