On 04/06/10 10:40, rashi dhing wrote:
Hi Niklas ! I came across SetValue / SetString and GetValue / GetString
functions in the document.cxx which work at the cell level . I was actually
looking for something at the range
level  (i.e)  which can give me the values/contents of the entire range in
some array so that I don't have to iterate over each cell of the range .

ScRangeToSequence has helper methods to fill UNO sequences, but these methods just iterate over the cells, too.

Could you also shed some light on the following :

- Which file handles the calculations and recalculations in the spreadsheet.
Is it ScDocument again ?

Calculation of a formula is done by ScFormulaCell::Interpret, which uses ScInterpreter. After modifications to a document, cells are notified using broadcasters which call ScFormulaCell::Notify.

- Where exactly is ScRange (class / struct ?)  defined ? Can't seem to
locate it.

OpenGrok answers such questions (http://svn.services.openoffice.org/opengrok/). ScRange is in address.hxx.

- What exactly is  " tableview " ? Does it refer to all the cells on the
spreadsheet ? I know that Topview => Input line view.

In the input handler, that's the EditView in the cell in the table, as opposed to the input line.

- ScInputHandler has a function StartTable. What is it really doing ?

It basically checks if editing is possible at the cell cursor position, and puts the cell content into the EditEngine.

Niklas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to