Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0B8B9555 for ; Thu, 26 Jan 2012 13:57:03 +0000 (UTC) Received: (qmail 73026 invoked by uid 500); 26 Jan 2012 13:57:03 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 72788 invoked by uid 500); 26 Jan 2012 13:57:02 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 72780 invoked by uid 99); 26 Jan 2012 13:57:02 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 13:57:02 +0000 Received: from localhost (HELO localhost) (127.0.0.1) (smtp-auth username arielch, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2012 13:57:01 +0000 Date: Thu, 26 Jan 2012 10:56:57 -0300 From: Ariel Constenla-Haile To: ooo-dev@incubator.apache.org Subject: Re: [EXT] disable/enable toolbar functions Message-ID: <20120126135657.GA4872@localhost> References: <20120123202618.GA6856@localhost> <20120125010435.GA6287@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20120125010435.GA6287@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Fabian, On Tue, Jan 24, 2012 at 10:04:35PM -0300, Ariel Constenla-Haile wrote: > It looks as if you had some issues translating the code from C++ to > Java, on the other hand the C++ has some issues if you want to implement > it in a real-world use case (where you send status updates according to > the current selection, etc). > I see if I can write some simple example, real-world oriented. =20 See http://people.apache.org/~arielch/api/ShapeComplexToolbarControl/ In a lack of imagination, I took the dummy shape example. The extensions add a toolbar in Writer with two edit fields, displaying the Title and Description of the currently selected shape. Of course, when no shape is selected in the current view, the controls are disabled. Notice that I wrote it fast and without much testing, so be warned. This is a complex subject, so the better way to understand it is to select "Debug Extension in Target OpenOffice.org" inside NetBeans, set break point on the ProtocolHandler implementation, and start debugging specially from queryDispatch(). Regards --=20 Ariel Constenla-Haile La Plata, Argentina --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPIVupAAoJEMjP1bm45QNWkNgP/jCcM4skKi6iP3WzPss1LIfz t1DJvjfiCbwsx7gz1QYTRKWd+ibIfmLLoxNNoIxvxnGqETy5175X6K0MNbbQ2wc0 lT7bwSVR2Z5QIq/W4n4UMeI/zRiY7ZFRZkBb59bOnkJ7UCGU5Z9iQXRZiQVT1h25 nl4j2zjRk8u+82lyhiCZ2beLW3L5joWUSbGv5dWFcvCgGY+OOWn6nejkW7ChPmFF cYS7/5nMwwRifQDspFOGdHzJhJqPaTnfufUA4RalwF+UuPC9wn8SnRCvP5Wq5wE8 gIchj0OtV+C5LQDUAFa7jSddWRFqeYQkVd164v7iXOzEJUMV+0BlJpNZex2PnjQi 1xJUjvNC/osWcUIuR/AzmSRdsKnQtJa7y0PqKa7rap20mu9p518ac0dmR91oyalF LYjKkb+oG/J39GtHcJocApfqudiZ6xplULEGjvWSyR7b7afNdWyVUSVwSu4wK8Tq Jrt0j+oNsRFxByzMahVKpxnSQNoGTXOwWCv2/0L/T4UufJT5gpphrtaaY541IQ45 QP/HMuyIf3Cv90wQf0khF1p9LgH9GxvoiKEBoihCoHrAzrfcK0QjbNzIrWP7akRY bmHQw/SBKUH4xhQdDbc2sZfi6vJjxzvmZYfC4EKr3vUb3lqPsla1vsq/Aj0JSY71 56FpUIrbBbef+zjzfv1n =e2s6 -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--