Issue 72395

Summary: c.s.s.sheet.XCellRangeMovement exported by c.s.s.sheet.Spreadsheet
Product: App Dev Reporter: villeroy <villeroy>
Component: apiAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P5 (lowest) CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description villeroy 2006-12-08 13:42:49 UTC
Each of the XCellRangeMovement methods may be called from any sheet. It makes no
difference. So I believe XCellRangeMovement should be exported from
c.s.s.sheet.SpreadsheetDocument rather than c.s.s.sheet.Spreadsheet.
StarBasic example:
Sub copyTest
REM copy a1:b3 from sheet #0 to sheet #1, using sheet #2
with thiscomponent.getSheets
	srcAddr = .getByIndex(0).getCellRangeByPosition(0,0,1,2).getRangeAddress
	tgtAddr = .getByIndex(1).getCellByPosition(0,0).getCellAddress
	oSh = .getByIndex(2) 'ANY existing sheet will do
end with
oSh.copyRange(tgtAddr,srcAddr)
REM it could/should be: thisComponent.copyRange(tgtAddr,srcAddr) as well
End Sub
Comment 1 jsc 2006-12-08 15:47:28 UTC
jsc -> nn: seems to be one for you
Comment 2 Marcus 2017-05-20 11:28:11 UTC
Reset assigne to the default "issues@openoffice.apache.org".