Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F5ED192F7 for ; Tue, 15 Mar 2016 15:28:25 +0000 (UTC) Received: (qmail 93538 invoked by uid 500); 15 Mar 2016 15:28:25 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 93467 invoked by uid 500); 15 Mar 2016 15:28:25 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 93451 invoked by uid 99); 15 Mar 2016 15:28:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2016 15:28:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7194DC0250 for ; Tue, 15 Mar 2016 15:28:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id k3v2lW33h33A for ; Tue, 15 Mar 2016 15:28:23 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C3A945FBB7 for ; Tue, 15 Mar 2016 15:28:22 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id p65so31997844wmp.0 for ; Tue, 15 Mar 2016 08:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=FSJkVpauezrHJLsgWcYJqWhHMBSitdqvXZrsVLElvgs=; b=HxxU1BfN+Py5i9b38DWw20PGthk7aNzPTzlgFgzKIokOrQEjzQkCrImUsf9B6CIpPg m7LhDyTCVu4m3KEbKgsYSmEl+HzoY/TSWMVohelVpHFNfwUXpn5+CqB4gtWOS68g/JFx nl+PM5MAm8cxr88y+EewRpXGk1R6LRF3KNTbU8nwvysOJS6VdyO4u1zgO1tHSU//j8/3 C5V3/0hclnoyFzhvx4j7UARML5ZvyFmFz5hhCWIy7dFpfGNIY9ZdTqymhnMtdNqBlKw1 5E8AdYc037Yl8oweR4jV8ExnHhFdTeL+yEWR5ZwACcqwwf5b4MFkKLnmmu0cOtje1mqJ 0X4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=FSJkVpauezrHJLsgWcYJqWhHMBSitdqvXZrsVLElvgs=; b=TEtcBhflV4v6Y+v5NOFPI8amVNXYcq/xeIgvs6NUhj09V0KdZ3BrAl+wQpqwYvASqE SN05vQXJiUT7MFuUPWG6oPibZorZNgUDRpOJb+kfLw6Qrg7P5hLV//W2kcVQeM/viPjc Z4T5G5sjGQWJj6I+KhwZpKiWzunx4pwlaJzpYPZNPD0qXH+1eDVbNRcMJdvKSxa46VUC rHPJxJm60cmGOk7CtoaSjjb1XxBGEMfjv3bRF/Yl4UL6H53T5EuOeGYCpzAbW3h5hALk fWQMPs66GWdzaptlSWiV/Mv83aEZF/Jfq8EgSyLO+jdM0oAyoSq9rT/yTImW7qkK19/k jvWQ== X-Gm-Message-State: AD7BkJLhpPsgI/Twg8xuJ9farBtANW/Y6oLOUYSd41r3XiWKK6DssSZFAuuFXCLZFkTyPgW+xbNDMl3oicM3Nw== MIME-Version: 1.0 X-Received: by 10.28.146.209 with SMTP id u200mr23199818wmd.59.1458055695396; Tue, 15 Mar 2016 08:28:15 -0700 (PDT) Received: by 10.28.188.7 with HTTP; Tue, 15 Mar 2016 08:28:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Mar 2016 11:28:15 -0400 Message-ID: Subject: Re: ctrl+z not work when add a listener to keyboard From: JZA To: dev Content-Type: multipart/alternative; boundary=001a11442a02c97897052e180bcc --001a11442a02c97897052e180bcc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Even if there is not XUndoManager there was an Undo service AFAIK. Since the documentation has move on from 3.x I would suggest to use the XRay explorer and look for services available. I tried lookingfor legacy releases, but only the binaries are there, I could look for old documentation release notes regarding the API changes, but that would take a while. http://www.openoffice.org/development/releases/3.2_sdk.html#newapis On Tue, Mar 15, 2016 at 11:14 AM, homer wrote: > openoffice3.4 has com.sun.star.document.XUndoManager interface which 3.2 > has not. > Since I have to use 3.2 ,do we have any other way to solve this? > > > =E4=B8=8B=E9=9D=A2=E6=98=AF=E8=A2=AB=E8=BD=AC=E5=8F=91=E7=9A=84=E9=82= =AE=E4=BB=B6=EF=BC=9A > > > > =E5=8F=91=E4=BB=B6=E4=BA=BA: JZA > > =E4=B8=BB=E9=A2=98: =E5=9B=9E=E5=A4=8D=EF=BC=9A ctrl+z not work when ad= d a listener to keyboard > > =E6=97=A5=E6=9C=9F: 2016=E5=B9=B43=E6=9C=8815=E6=97=A5 GMT+8 21:38:13 > > =E6=94=B6=E4=BB=B6=E4=BA=BA: dev > > =E5=9B=9E=E5=A4=8D=EF=BC=8D=E6=94=B6=E4=BB=B6=E4=BA=BA: dev@openoffice.= apache.org > > > > Why not trigger the undo action instead through the API? > > On Mar 15, 2016 8:20 AM, "homer" wrote: > > > >> Hi, > >> > >> I=E2=80=99m using java on windows 64bit ,my open office version is 3.2= .1. > >> > >> If I click on a RectangleShape ,then press alt+z,the selected shape do > >> align action.(A keyhandler listen on key event.) > >> If I want to undo that align action,press ctrl+z as usual,nothing > happened. > >> But ctrl+a ,ctrl+c,ctrl+v,ctrl+x all work. > >> If I move a shape by hand,then i can undo it by click menu > "Edit/Undo:Move > >> Rectangle=E2=80=9D.But ctrl+z not work. > >> If the move is done by code, the edit menu is =E2=80=9CEdit/Undo:Input= =E2=80=9D. > >> > >> How can i tell openoffice that the move is done by hand when it is > >> actually did by code. > >> How can i undo the move code did by press ctrl+z. > >> Please advise. > >> > >> Best Regards > >> Randy > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org > >> For additional commands, e-mail: dev-help@openoffice.apache.org > >> > >> > > --=20 Alexandro Colorado Apache OpenOffice Contributor 9060 55AB FFD2 2F02 0E1A 3409 599C 14FC 9450 D3CF --001a11442a02c97897052e180bcc--