To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=46133
                  Issue #:|46133
                  Summary:|Format->Character->Language doesen't work in a macro
                Component:|Word processor
                  Version:|680m87
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|programming
              Assigned to:|mru
              Reported by:|gjano





------- Additional comments from [EMAIL PROTECTED] Mon Mar 28 00:57:56 -0800 
2005 -------
I recorded a macro which changes the language of the selected text. However, the
macro doesen't work, instead of doing this, it displays the dialogue box
"Character properties", when the Language can be chosen. 
When I record a macro which changes for ex. the text size, it works.

So the exact way to create my macro is:

1. Type in some text (in Spanish)
2. Select it
3. Select menu Tools -> Macros -> Record macro
4. Format -> Character. Selecting "Spanish (modern)"
5. "OK"
6. Stop macro recording.

When I start the macro, the text language won't change to Spanish instead I get
a dialogue box.
The generated code was the following:
 
 sub ChangeToSpanish
  dim document   as object
  dim dispatcher as object
  document   = ThisComponent.CurrentController.Frame
  dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
  
  dim args1(0) as new com.sun.star.beans.PropertyValue
  args1(0).Name = "Language"
  args1(0).Value = 3082

  dispatcher.executeDispatch(document, ".uno:Language", "", 0, args1())
end sub


(Similar macro worked for me in the 1.1.3, but I recorded this one in 680 m87
Hungarian Linux, and Windows too.)

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