<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 2013-01-10 17:01, Gregory Pittman
wrote:<br>
</div>
<blockquote cite="mid:50EF6452.7010705@iglou.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">On 01/10/2013 07:47 PM, Mark Heieis
wrote:<br>
</div>
<blockquote cite="mid:50EF6134.9040606@alois.ca" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<tt>Further to my original post. I'm attempting to test/migrate
a script from 1.4 to 1.5 scripter2.<br>
<br>
Any clarity on the API's that I can't readily see available or
a replacement for would be great.<br>
<br>
Cheers.<br>
<br>
</tt><br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=UTF-8">
<table border="0" cellspacing="0" cols="2">
<colgroup width="161"></colgroup> <colgroup width="357"></colgroup>
<tbody>
<tr>
<td align="LEFT" height="17"><b>Scripter</b></td>
<td align="LEFT"><b>Scritper2</b></td>
</tr>
<tr>
<td align="LEFT" height="17"><br>
</td>
<td align="LEFT"><br>
</td>
</tr>
<tr>
<td align="LEFT" height="17">newDocument</td>
<td align="LEFT">? bug report <a moz-do-not-send="true"
href="http://bugs.scribus.net/view.php?id=11342">http://bugs.scribus.net/view.php?id=11342</a></td>
</tr>
<tr>
<td align="LEFT" height="17">getPageMargins</td>
<td align="LEFT">ActiveDocument.Dimensions()</td>
</tr>
<tr>
<td align="LEFT" height="17">createText</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">setFillColor</td>
<td align="LEFT">ActiveDocument.ActiveItem.setFillColor()</td>
</tr>
<tr>
<td align="LEFT" height="17">setText</td>
<td align="LEFT">ActiveDocument.ActiveItem.setText()</td>
</tr>
<tr>
<td align="LEFT" height="17">setTextColor</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">setFont</td>
<td align="LEFT">ActiveDocument.ActiveItem.setFont()</td>
</tr>
<tr>
<td align="LEFT" height="17">setFontColor</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">defineColor</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">setRedraw</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">getPageType</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">createImage</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">createText</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">setTextAlignment</td>
<td align="LEFT">ActiveDocument.ActiveItem.setTextAlignment()</td>
</tr>
<tr>
<td align="LEFT" height="17">setFontSize</td>
<td align="LEFT">ActiveDocument.ActiveItem.setFontSize()</td>
</tr>
<tr>
<td align="LEFT" height="17">newPage</td>
<td align="LEFT">?</td>
</tr>
<tr>
<td align="LEFT" height="17">loadImage</td>
<td align="LEFT">ActiveDocument.ActiveItem.load()</td>
</tr>
</tbody>
</table>
<title></title>
<meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
<style>
<!--
BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
-->
</style>
<div class="moz-cite-prefix">On 2013-01-10 14:27, Mark Heieis
wrote:<br>
</div>
<blockquote cite="mid:50EF4040.6000003@alois.ca" type="cite">Hi,
<br>
<br>
I seem to missing something? What api does one use to
create/insert page items (image and text)? I've searched
though the code (api_document (where I would expect to find
them), api_item, api_imageitem, etc) but haven't found
anything obvious. <br>
<br>
Thanks <br>
<br>
mrh. <br>
</blockquote>
<br>
</blockquote>
I think you need to consider Scripter 2 to be experimental.<br>
<br>
Greg<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
</pre>
</blockquote>
Yes. Absolutely. As I noted "test". There's nothing like using the
functionality of existing code/scripts to test a new
implementation/concepts. The functionality of scripter should be
available in scripter2 in some sort of implementation which will be
required when it is released. The reason that I didn't open a bug
report is that functionality may exist and I'm just not seeing it.
Either way, to move forward, testing, questions and presumably
answers will be needed, even for experimental stuff.<br>
<br>
Cheers,<br>
<br>
mrh.<br>
<br>
</body>
</html>