scribus-doc-getdocname.patch (1,463 bytes)
Index: fr/scripterapi-doc.html
===================================================================
--- fr/scripterapi-doc.html (révision 19120)
+++ fr/scripterapi-doc.html (copie de travail)
@@ -22,6 +22,13 @@
que Scribus ne remarquera pas automatiquement un changement de
document en utilisant un script.</p></dd>
+<dt><a name="-getDocname"><strong>getDocname</strong>(...)</dt>
+ <dd><code>getDocName() -> string</code>
+ <p>Retourne le nom et le chemin d'accès du fichier courant</p>
+ </dd>
+</dt>
+
+
<dt><a name="-getUnit"><strong>getUnit</strong></a>(...)</dt>
<dd><code><a href="#-getUnit">getUnit</a>() -> nombre entier
(constante d'unité de Scribus)</code>
Index: en/scripterapi-doc.html
===================================================================
--- en/scripterapi-doc.html (révision 19120)
+++ en/scripterapi-doc.html (copie de travail)
@@ -26,6 +26,12 @@
<dd><code>getUnit() -> integer (Scribus unit constant)</code>
<p>Returns the measurement units of the document. The returned value will be one of the UNIT_* constants: UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS.</p></dd>
+<dt><a name="-getDocname"><strong>getDocname</strong>(...)</dt>
+<dd><code>getDocName() -> string</code>
+<p>Returns the name of current file</p>
+</dd>
+</dt>
+
<dt><a name="-haveDoc"><strong>haveDoc</strong></a>(...)</dt>
<dd><code>haveDoc() -> bool</code>
<p>Returns true if there is a document open.</p></dd>