Re: Adding an implemented UNO interface

2023-09-15 Thread Michael Stahl
On 05/09/2023 14:29, Lionel Élie Mamane wrote: On Tue, Sep 05, 2023 at 08:34:56AM +0200, Noel Grandin wrote: On Mon, 4 Sept 2023 at 21:54, Noel Grandin wrote: On Mon, 4 Sept 2023 at 20:43, Lionel Élie Mamane wrote: becomes an ambiguous base of class bar, as it is derived from twice :-|

Re: Adding an implemented UNO interface

2023-09-05 Thread Lionel Élie Mamane
On Tue, Sep 05, 2023 at 08:34:56AM +0200, Noel Grandin wrote: > On Mon, 4 Sept 2023 at 21:54, Noel Grandin wrote: >> On Mon, 4 Sept 2023 at 20:43, Lionel Élie Mamane wrote: >>> becomes an ambiguous base of class bar, as it is derived from twice >>> :-| > Likely you will have to implement disamb

Re: Adding an implemented UNO interface

2023-09-05 Thread Pierre Vacher
If I modify TConnection.hxx to derive from XConnection2 instead of Xconnection, and implement the new XConnection2 methods in all connection objects relying on TConnection.hxx then the compilation passes but fails in testing... I have access in Base to the default schema (ie: XConnection2.getSchem

Re: Adding an implemented UNO interface

2023-09-04 Thread Noel Grandin
On Mon, 4 Sept 2023 at 21:54, Noel Grandin wrote: > > On Mon, 4 Sept 2023 at 20:43, Lionel Élie Mamane wrote: > >> becomes an ambiguous base of class bar, as it is derived from twice >> :-| >> >> How do we solve that? >> >> > using using > > Sorry, could not resist that. But unfortunately, I'm

Re: Adding an implemented UNO interface

2023-09-04 Thread Noel Grandin
On Mon, 4 Sept 2023 at 20:43, Lionel Élie Mamane wrote: > becomes an ambiguous base of class bar, as it is derived from twice > :-| > > How do we solve that? > > using using

Re: Adding an implemented UNO interface

2023-09-04 Thread Lionel Élie Mamane
On Mon, Sep 04, 2023 at 11:58:23AM +0200, Lionel Élie Mamane wrote: > Reading up on ImplInheritanceHelper, I think you meant (or my question > was unclear, but the answer to the question I had meant to ask is) > typedef cppu::ImplInheritanceHelper bar_BASE; > class bar: public bar_BASE > { >

Re: Adding an implemented UNO interface

2023-09-04 Thread Lionel Élie Mamane
On Sun, Sep 03, 2023 at 07:21:40PM +0200, Noel Grandin wrote: > On Sat, 2 Sept 2023 at 09:26, Lionel Élie Mamane wrote: >> #include >> /* grault .hxx contains: >> * >> * typedef ::cppu::WeakComponentImplHelper2 < >> *css::Baz, >> *css::qux > grault_BASE; >> * >> *

Re: Adding an implemented UNO interface

2023-09-03 Thread Noel Grandin
On Sat, 2 Sept 2023 at 09:26, Lionel Élie Mamane wrote: > > #include > /* grault .hxx contains: > * > * typedef ::cppu::WeakComponentImplHelper2 < > *css::Baz, > *css::qux > grault_BASE; > * > * class grault : public grault_BASE { ... } > */ > > You can do class

Adding an implemented UNO interface

2023-09-02 Thread Lionel Élie Mamane
Context https://gerrit.libreoffice.org/c/core/+/155950/5/connectivity/source/inc/java/sql/Connection.hxx Given the following code: typedef ::cppu::WeakComponentImplHelper2 < css::Baz, css::qux > bar_BASE; class bar : public bar_BASE { ... } to implement css:corg