Issue 52848 - Macro Recorder: delete contents fails for non-contiguous ranges
Summary: Macro Recorder: delete contents fails for non-contiguous ranges
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: *Testproduct
Classification: Test
Component: code (show other issues)
Version: OOo 2.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: not determined
Assignee: issues@test
QA Contact: issues@test
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2005-08-03 22:15 UTC by azaz09
Modified: 2005-08-09 22:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description azaz09 2005-08-03 22:15:30 UTC
Example:

Cell Ranges A1:A9, C1:C9, E1:E9 formated with background color and
currency type.

Macro to record:

1. Start Macro recorder.
2. Paint the ranges with Ctrl key + Mouse Paint.
3. Right click -> Delete Contents (Selection == "Numbers").
4. Click "OK"
5. Click a cell outside the ranges to unpaint them.
6. Stop Recorder.

Expected:
Number contents of each range deleted.

Actual:
Only number contents for range A1:A9 deleted.
Other ranges left untouched.

The Basic that is generated:

REM  *****  BASIC  *****


sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$A$1:$A$9"

dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())

rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "Flags"
args2(0).Value = "V"

dispatcher.executeDispatch(document, ".uno:Delete", "", 0, args2())

rem ----------------------------------------------------------------------
dim args3(0) as new com.sun.star.beans.PropertyValue
args3(0).Name = "ToPoint"
args3(0).Value = "$G$6"

dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args3())


end sub
Comment 1 flibby05 2005-08-09 22:48:54 UTC
closing double of issue 52849,
closing test issue.
Comment 2 flibby05 2005-08-09 22:49:12 UTC
.