Return-Path: X-Original-To: apmail-openoffice-utenti-it-archive@www.apache.org Delivered-To: apmail-openoffice-utenti-it-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E0F4105B6 for ; Thu, 20 Mar 2014 12:23:48 +0000 (UTC) Received: (qmail 75194 invoked by uid 500); 20 Mar 2014 12:23:48 -0000 Delivered-To: apmail-openoffice-utenti-it-archive@openoffice.apache.org Received: (qmail 74987 invoked by uid 500); 20 Mar 2014 12:23:47 -0000 Mailing-List: contact utenti-it-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: utenti-it@openoffice.apache.org Delivered-To: mailing list utenti-it@openoffice.apache.org Delivered-To: moderator for utenti-it@openoffice.apache.org Received: (qmail 66936 invoked by uid 99); 20 Mar 2014 12:18:30 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddozza@gmail.com designates 209.85.192.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KvREWRwxK/w+ORUdXRY4QQ3kno/nhlgEd79BQnnAdfQ=; b=vOFtb10lTvucODlJvf4K8QoYeCWz9WhUSiTJAGBW+OHIkQi4OlwWT5Epn3IjNJ8emk sj2agCbLB5u/IlOJoDGlKzk1CVacqpiq03hv0ySIpxTpPe62ukWkmRK8KRrdiS4sEKya j6o2ZSNf7hPZMQ1EDI2GSGOqWV+P0cE1exvU0NqJhsO0G0ndvQCFScWHs4jbEqiqaKmv 63w3q7Zi1MpOk5RBcAnMJkfoLOxPgVB0JTEbu/B7Oig7hzmzicGdyeXV4DVcVKkKRKoh NcHeMV4FuVt2dMQnWVOAHrgLIRBeUc1X42tVcCfTjig+tB0d1JKuHLW8F/PhhoQQTa3d Je4Q== MIME-Version: 1.0 X-Received: by 10.66.149.7 with SMTP id tw7mr46964438pab.72.1395317885035; Thu, 20 Mar 2014 05:18:05 -0700 (PDT) Date: Thu, 20 Mar 2014 13:18:05 +0100 Message-ID: From: Davide Dozza To: utenti-it@openoffice.apache.org Content-Type: multipart/alternative; boundary=047d7b6d8a44e2ea4704f508c258 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [utenti-it] Enumerare i segnaposto con una macro --047d7b6d8a44e2ea4704f508c258 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Salve a tutti, ho scritto questa macro per enumerare i segnaposto in un documento writer oTextElementEnum =3D3D thisComponent.getTextFields().createEnumeration() while oTextElementEnum.hasMoreElements() oTextElement =3D3D oTextElementEnum.nextElement oAnchor =3D3D oTextElement.getAnchor() oCurs =3D3D ThisComponent.getCurrentController().getViewCursor() oCurs.gotoRange(oAnchor, False) msgbox("Trovato!") wend Ora le domande sono: - perch=E8 i segnaposti non sono ordinati secondo l'ordine in cui si trovano nel documento? - dato il cursore visibile, come si pu=F2 trovare il segnaposto successivo = al cursore stesso? Ciao --047d7b6d8a44e2ea4704f508c258--