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 2DACE7BCC for ; Tue, 15 Nov 2011 09:00:52 +0000 (UTC) Received: (qmail 55713 invoked by uid 500); 15 Nov 2011 09:00:51 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 55669 invoked by uid 500); 15 Nov 2011 09:00:51 -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 55661 invoked by uid 99); 15 Nov 2011 09:00:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 09:00:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [82.146.102.94] (HELO pmgroup.be) (82.146.102.94) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2011 09:00:45 +0000 Received: from [192.168.0.238] ([192.168.0.238]) by mail.pmgroup.be (PMGroup Mailserver) with ASMTP id YUP04821 for ; Tue, 15 Nov 2011 10:00:21 +0100 Message-ID: <4EC22A04.8030504@pmgroup.be> Date: Tue, 15 Nov 2011 09:59:48 +0100 From: Fernand Vanrie User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: [API] Re: No addRow method in XGridDataModel interface in Oo 3.4 beta References: <20111115004015.GB480@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Ariel, Gerardo I am working with LibreOffice OOO340m1 (Build:302) and all new featers (like Backgroundcolors etc..) using the API and Basic seems to work: dlg.Model.createInstance("com.sun.star.awt.grid.UnoControlGridModel") gcolm2 = CreateUnoService("com.sun.star.awt.grid.DefaultGridColumnModel") gcolm2.addColumn(oCol) gdatam2 = CreateUnoService("com.sun.star.awt.grid.DefaultGridDataModel") gdatam2.addRow(nRowCount,oData2()) Greetz Fernand > Hello Ariel. > Thank you again for pointing me in to the right direction. I think this > same error is caused in LibreOffice by this change in the UNO-AWT API. > Thanks. > > On Mon, Nov 14, 2011 at 6:40 PM, Ariel Constenla-Haile< > ariel.constenla.haile@gmail.com> wrote: > >> Hi Gerardo, >> >> On Mon, Nov 14, 2011 at 06:02:46PM -0600, Gerardo G�mez wrote: >>> Hello. >>> I've developed an extension which uses the XGridDataModel (especifically >> a >>> grid). This extension works ok on Ooo 3.3, but when i try to use it in >> the >>> new version, the 3.4 beta, the dialog that has the grid doesn't work at >>> all. This message is shown when i try to display the dialog with the >> grid: >>> /opt/ooo-dev3/program/../basis-link/ure-link/lib/libstdc++.so.6: version >>> `GLIBCXX_3.4.11' not found (required by /usr/lib/libproxy.so.1) >>> Failed to load module: /usr/lib/gio/modules/libgiolibproxy.so >>> Exception in thread "Thread-175" java.lang.NoSuchMethodError: >>> >> com.sun.star.awt.grid.XGridDataModel.addRow(Ljava/lang/String;[Ljava/lang/Object;)V >>> at util.OoGridDataModel.addRow(OoGridDataModel.java:43) >>> at util.OoGridDataModel.addRow(OoGridDataModel.java:39) >>> at >>> >> org.openoffice.gdocs.ui.dialogs.ImportDialog.getDocumentsGrid(ImportDialog.java:811) >>> at >>> >> org.openoffice.gdocs.ui.dialogs.ImportDialog.initComponents(ImportDialog.java:319) >>> at >>> >> org.openoffice.gdocs.ui.dialogs.ImportDialog.(ImportDialog.java:257) >>> at org.openoffice.gdocs.UNOGDocs$3.run(UNOGDocs.java:262) >>> at java.lang.Thread.run(Thread.java:662) >>> >>> I think that this problem has to do with the new version (maybe because >> it >>> is a beta). >> the API was changed in an incompatible way with >> http://hg.services.openoffice.org/OOO340/rev/435dac48d5dd >> since 3.4 you have to use css.awt.grid.XMutableGridDataModel, it should >> be document on the SDK you downloaded with OOo 3.4 beta >> >> >> Regards >> -- >> Ariel Constenla-Haile >> La Plata, Argentina >>