[Libreoffice] problem with ScTableSheetsObj::replaceByName

Eike Rathke erack at redhat.com
Thu Feb 2 11:28:46 PST 2012

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?


LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120202/6e3b1ee8/attachment.pgp>

More information about the LibreOffice mailing list