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 copy? > > Through ScDocShell::TransferTab with bInsertNew = true. That is the > same as a copy in the dialog. The only arguments against this idea is > that we do exactly this in ScTableSheetsObj::importSheet already. > > Any better ideas for that? No. But I think we're overlooking something and replaceByName() does not simply replace with an empty sheet. It's only the encompassing range that gets expanded to MAXCOL/MAXROW and otherwise the object is kept as is. Or am I mislead? Eike -- LibreOffice Calc developer. Number formatter stricken i18n transpositionizer. GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
pgpJuV8B4fOWI.pgp
Description: PGP signature
_______________________________________________ LibreOffice mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice
