Thanks for the feedback, indeed it makes intuitively sense to check out that part of the API. The simplest way of defining the rows to exchange (that I can think of right now) would be to just to select two rows in the spreadsheet. If more or less than two rows are selected, this would cause an exception.

Martin






On 16.06.11 10:42, Niklas Nebel wrote:
On 15.06.2011 23:19, Martin Hediger wrote:
I was thinking, would it be possible to implement some kind of row-row
exchange button in Calc? Of course, the same could apply to
column-column exchange.

It depends on the desired behavior of that button. Probably it can be a combination of "insert rows", "move cells" and "delete rows". These are all available via API, so it can be implemented as an extension. How do you want to select the rows to exchange?

Anyway, would be cool if someone could point me out to some part of the
code where one might start looking at this.

See http://wiki.services.openoffice.org/wiki/Extensions_development for general information about extension development.

Niklas
--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help

Reply via email to