Re: [Libreoffice] problem with ScTableSheetsObj::replaceByName

2012-02-02 Thread Markus Mohrhard
Hey Eike, > >> >> If all parts of this are correct I suggest that we implement more >> >> something like: delete sheet and then create a copy of the passed >> >> sheet at this place with the new name. >> > >> > Um.. how would you create the copy? >> >> Through ScDocShell::TransferTab with bInsertNe

Re: [Libreoffice] problem with ScTableSheetsObj::replaceByName

2012-02-02 Thread Eike Rathke
Hi Markus, On Thursday, 2012-02-02 17:32:22 +0100, Markus Mohrhard wrote: > >> If all parts of this are correct I suggest that we implement more > >> something like: delete sheet and then create a copy of the passed > >> sheet at this place with the new name. > > > > Um.. how would you create the

Re: [Libreoffice] problem with ScTableSheetsObj::replaceByName

2012-02-02 Thread Markus Mohrhard
Hello Eike, >> while writing api tests I found ScTableSheetsObj::replaceByName. The >> method should take a name of a sheet and a ScTableSheetObj wrapped >> into an uno::Any and then replace the old sheet with the new one. >> >> I identified now several problems in this method. Line 2568 tests tha

Re: [Libreoffice] problem with ScTableSheetsObj::replaceByName

2012-02-02 Thread Eike Rathke
Hi Markus, On Thursday, 2012-02-02 00:37:16 +0100, Markus Mohrhard wrote: > while writing api tests I found ScTableSheetsObj::replaceByName. The > method should take a name of a sheet and a ScTableSheetObj wrapped > into an uno::Any and then replace the old sheet with the new one. > > I identifi

[Libreoffice] problem with ScTableSheetsObj::replaceByName

2012-02-01 Thread Markus Mohrhard
Hey, while writing api tests I found ScTableSheetsObj::replaceByName. The method should take a name of a sheet and a ScTableSheetObj wrapped into an uno::Any and then replace the old sheet with the new one. I identified now several problems in this method. Line 2568 tests that the ScTableSheetObj