Hi all
searching with Paolo for an activeCell equivalent, we found
some usefull
information in thisComponent.CurrentController.ViewData
100/60/0;0;tw:270;5/23/0/0/0/0/2/0/0/0/0;;
we guessed and found the information we need (5/23), but
before
submitting a codesnippet, where can i find information about
the meaning
of these elements ?
thanks in advance
Laurent
'-------------------
function ActiveCell()
'retreives viewData
ViewData = thisComponent.CurrentController.ViewData
'many sub-separators, unify
ViewData = join(split(ViewData,";"),"/")
ViewData = join(split(ViewData,":"),"/")
'handles IV65535 !
ViewData = join(split(ViewData,"+"),"/")
'split the string
ViewData = split(ViewData,"/")
'retreives positions
activeCol = ViewData(6)
activeRow = ViewData(7)
'get the activeCell
activeSheet = thisComponent.currentController.ActiveSheet
activeCell =
activeSheet.getCellByPosition(activeCol,activeRow)
End function
--
Laurent Godard <lgodard indesko.com> -
Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles
2004
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|