To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61894
                  Issue #:|61894
                  Summary:|Macro recorder fails to record in Format > Page
                          |dialog
                Component:|Word processor
                  Version:|OOo 2.0.1
                 Platform:|Other
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|formatting
              Assigned to:|mru
              Reported by:|dgehman





------- Additional comments from [EMAIL PROTECTED] Fri Feb 10 04:06:40 -0800 
2006 -------
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.

---------------------------------------------------------------------
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]

Reply via email to