Issue 61894 - Macro recorder fails to record in Format > Page dialog
Summary: Macro recorder fails to record in Format > Page dialog
Status: CLOSED DUPLICATE of issue 20046
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Oliver Specht
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-02-10 12:06 UTC by dgehman
Modified: 2013-08-07 14:38 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 dgehman 2006-02-10 12:06:40 UTC
Macro recorder, while doing a fine job by recording entries in Format > 
Character, does not record information entered in Format > Page. The following 
macro resulted when trying to record a macro that (1) changes the page margins 
to 1.5 inches and (2) changes the default text to be spaced 1 point wider:

sub MarginTest 
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 ---------------------------------------------------------------------- 
dispatcher.executeDispatch(document, ".uno:PageDialog", "", 0, Array()) 

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

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


end sub

Argument name and value are created for the font spacing, but when played back, 
the macro merely opens the Format > Page dialog.

In both Format dialogs, margin and character width values were keyed in (that 
is, spinners were not used) and "OK" clicked on to close the dialog.
Comment 1 michael.ruess 2006-02-10 12:16:28 UTC
Reassigned to JSK.
Comment 2 lars 2006-02-10 18:25:02 UTC
confirmed with 680_m156 on WinXP Pro SP2
Comment 3 joerg.skottke 2006-03-31 08:34:22 UTC
Hi dgehman,

you just found one more of the non-working items of the macro recorder. We have
no timeline for Macro Recorder issues so chances are that this will not be fixed
in our lifetime. :-(

Adjusting platform, os, target, owner, set dep to issue 20046
Comment 4 joerg.skottke 2006-03-31 08:37:28 UTC
i set dupe and close this one

*** This issue has been marked as a duplicate of 20046 ***
Comment 5 joerg.skottke 2006-03-31 08:38:28 UTC
close, we'll track this in the meta-bug