Issue 20943

Summary: Macro recorder bug
Product: General Reporter: fkumkar <lutralutra>
Component: scriptingAssignee: joerg.skottke
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1   
Target Milestone: OOo 2.0   
Hardware: PC   
OS: Windows 98   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description fkumkar 2003-10-09 12:48:50 UTC
If I want to set a macro with the recorder, it produces a wrong script.
Example for setting back the text format:

xxxxxxxxxxxxxxx
sub Standard_setzen
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 ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:ResetAttributes", "", 0, Array())

end sub

xxxxxxxxxxxxxxx

It somehow forgets to change lines before the last dispatcher.exec....
If I change it manually, the script works fine.

OOo 1.1.0 German
Comment 1 noel.power 2003-10-20 13:26:31 UTC
Mathias,
Think this is for you
Comment 2 Mathias_Bauer 2003-10-22 17:20:36 UTC
Sorry, I can't understand what this issue is about.
Please write down:

What did you do while the recoder was running
What did the recorder record
And what did you expect him to record (or: what is missing)
Comment 3 fkumkar 2003-10-23 08:16:22 UTC
1. marked a paragraph, klicked on the MacroRecorder-Dot, klicked on 
Standard in the ContextMenu, stopped the Recorder
2. Exactly the thing I pasted 
3. rem <HERE IS A LINE CHANGE MISSING THUS IS THE FOLLOWING ONLY 
INTERPRETED AS A COMMENT!!!> dispatcher.executeDispatch  
(document, ".uno:ResetAttributes", "", 0, Array())

Hope I could help

Fabian
Comment 4 Mathias_Bauer 2003-10-23 10:09:48 UTC
Thank you, that helped!
Comment 5 Mathias_Bauer 2004-01-07 11:50:01 UTC
.
Comment 6 nanny 2004-02-03 13:30:35 UTC
Hi, I have an additional macro recorder bug. Recording works fine when it keeps
at formatting text, but as soon as I try to format a graphic the recording does
not work at all. Here my example: I need to insert several graphics into my
document and want to rezize them all. Since the "repeat last action"-button
isn´t active after rezizing one of the graphics (and I really don´t understand
why this is so) I tried to record a macro. Normally you are asked where to save
the macro when you press "quit recording", but now the button just disappeared
without saving any actions. I tried to do the rezizing over the context-menu as
well as over the toolbar. None of it worked. It would be great to know what I
did wrong, it is really boring to rezize everything manually.
Comment 7 Mathias_Bauer 2004-02-03 16:35:45 UTC
This is a completely different problem. Please file a separate issue.
Comment 8 Mathias_Bauer 2004-02-13 14:39:53 UTC
Writer didn't confirm successful execution, so the command was just recorded as
a comment.
Comment 9 Mathias_Bauer 2004-03-02 17:27:02 UTC
Please verify
Comment 10 fkumkar 2004-03-03 07:31:49 UTC
sorry for asking: is it my turn to do anything? I am not yet totally familiar
with the issue system...

Fabian
Comment 11 joerg.skottke 2004-03-03 07:59:05 UTC
Hi Fabian,

right now you have to do nothing. The developer who fixed the issue will hand
the task over to e.g. me. I will then check if the issues is indeed fixed. If
this is the case, a new developer release of OOo will be build which contains
the fixed issue. 

However, this will take some time. 
Comment 12 joerg.skottke 2004-03-04 11:49:44 UTC
the line is no longer rem'ed out.
Comment 13 joerg.skottke 2004-03-04 11:50:29 UTC
verified
Comment 14 joerg.skottke 2004-06-16 09:50:50 UTC
verified on master src680m42-4, linux. Closing