To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=72955
Issue #|72955
Summary|XChartDataChangeEvent does not return StartRow,StarCol
|umn,EndRow,EndColumn
Component|Spreadsheet
Version|680
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|programming
Assigned to|spreadsheet
Reported by|rawlik
------- Additional comments from [EMAIL PROTECTED] Wed Dec 27 11:57:25 -0800
2006 -------
I wrote some code:
<code>
global listener,listen_range as object
sub workbook_ChartDataChanged(Optional oEvent)
if Not IsMissing(oEvent) then
msgBox "Change region " & oEvent.StartRow & " x " &
oEvent.StartColumn & " - "
& oEvent.EndRow & " x " & oEvent.EndColumn
end if
end sub
sub register_eventsHandler()
listener =
CreateUnoListener("workbook_","com.sun.star.chart.XChartDataChangeEventListener")
listen_range = thisComponent.CurrentSelection
listen_range.addChartDataChangeEventListener(listener)
End Sub
sub unregister_eventsHandler()
if (not isNull(listener)) and (not isNull(listen_range)) then
'Я знаю это не достаточная проверка но для примера хватит и так ...
listen_range.removeChartDataChangeEventListener(listener)
end if
End Sub
</code>
This code must report the range/position of changed cells but it always return
only 0x0 - Ox0.
I found in the source code position there is called this method
'./sc/source/core/tools/chartlis.cxx' and found at line 170:
-------------------------
chart::ChartDataChangeEvent aEvent( pUnoData->GetSource(),
chart::ChartDataChangeType_ALL,
0, 0, 0, 0 );
pUnoData->GetListener()->chartDataChanged( aEvent );
--------------------------
I understand that the last 4 zeroes must be chaged by data, but for me it's too
involved to find the source of :'StartRow,StarColumn,EndRow,EndColumn'.
P.S.
Excuse me for my english ;-)
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]