Issue 26735 - macro recorder records incomplete macro
Summary: macro recorder records incomplete macro
Status: CLOSED DUPLICATE of issue 26116
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: issues@sw
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks: 20046
  Show dependency tree
 
Reported: 2004-03-19 13:15 UTC by stefankalte
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stefankalte 2004-03-19 13:15:46 UTC
In version 1.1.1.rc2 the macro recorder always don't function!!!
How it doesn't function?
Recodering an macro and opening for ex. file open an existining document copy
something and paste it in the document where i recorder the macro, only the
function paste ist active, nothing else.
thanks for your attention

grüsse stefan
Comment 1 flibby05 2004-03-20 15:26:42 UTC
set Prio P1 -> P3
Comment 2 flibby05 2004-03-20 18:54:32 UTC
Hello Stefan,

without wanting to insult you, due to lack of clear language it is very
difficult to follow your description. Please give a step by step description for
reproducing it.

Thank you,
Max Weber
OOo Volunteer
Comment 3 stefankalte 2004-03-22 11:23:52 UTC
here more infos

try follow, open a new text document, use tools macro macro recorder,
now i wan't an automatism who is coping the header from another text document in
this acutaly text document
so i open the original document with file open then i select the text and
grafiks in the header copy it, close the file,
next i activate my header in the new text document and i paste it.

in the macro is only only the paste written and something strange,

and it don't work

cu stefan

Comment 4 stefankalte 2004-03-22 11:24:32 UTC
here more infos

try follow, open a new text document, use tools macro macro recorder,
now i wan't an automatism who is coping the header from another text document in
this acutaly text document
so i open the original document with file open then i select the text and
grafiks in the header copy it, close the file,
next i activate my header in the new text document and i paste it.

in the macro is only only the paste written and something strange,

and it don't work

cu stefan

Comment 5 flibby05 2004-03-22 12:30:46 UTC
Hi Stefan,

>>try follow, open a new text document, use tools macro macro recorder,
>>now i wan't an automatism who is coping the header from another text document
>> in
>>this acutaly text document
>>so i open the original document with file open then i select the text and
>>grafiks in the header copy it,

ok, until this i can follow with 1.1.1rc3 linux build,
but when i

>> close the file,

i get the following message:
"Do you really want to cancel the recording? Any steps recorded up to this point
will be lost."

If you close the file and continue afterwards it will not work.
Comment 6 stefankalte 2004-03-23 09:20:02 UTC
hello,
it`s good that it don't function too.
I use win xp and OOo 1.1.1rc2 english.
the macro recorder give no information, what displayed on you.
i tried to let the original document open, and changed to the new docuemnt and
paste the selected header. it always don't function.

grüsse stefan
Comment 7 flibby05 2004-03-23 09:47:15 UTC
could you retest with a 1.1.1rc3 if possible?
Thanks Max
Comment 8 stefankalte 2004-03-23 09:58:00 UTC
ok i will try it, first i must donwlaod it, it came out only a few days ago

then i will let you know

grüsse stefan
Comment 9 stefankalte 2004-03-24 08:21:40 UTC
Here my new testing result,
it don't function.
I've seen I must forget it, mybe it will function in 2.0 but i don't think so.
For me it's coming a delusion more and more.
see below what the macro-recorder recordered it!
nowhere is shown opening a document and ...

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

Sub Main

End Sub


sub train1
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(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "PageStyle"
args1(0).Value = "Standard"
args1(1).Name = "On"
args1(1).Value = true

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

rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:Open", "", 0, Array())

rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())


end sub

grüsse stefan
Comment 10 flibby05 2004-04-05 21:40:18 UTC
confirmed with 1.1.1rc3

here is the basic code that OOo recorded in my session:


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

rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:PageDialog", "", 0, Array())

rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())


end sub
Comment 11 flibby05 2004-04-05 21:41:12 UTC
changing description
Comment 12 h.ilter 2004-04-07 15:55:19 UTC
reassigned to JSK
Comment 13 joerg.skottke 2004-04-30 07:55:33 UTC
To make it short:

1. open existing document
2. copy content from header to clipboard
3. close document
4. open a new, blank document
5. paste header content to new document

Expected result: Header is inserted into new document

Nothing of this happens.
There are several known issues invoved here:
1. Macros do not work with multiple documents
2. Inserting headers/footers does not work
3. ...

According to the OpenOffice.org PCDs i set this task to OOo Later, changing
'defect' to 'feature'.

Please read http://framework.openoffice.org/proposals/macro/macrorecording.html
for more details about macro recording and why this does - and will - not work.
Comment 14 joerg.skottke 2004-04-30 09:50:21 UTC
Duplicate to issue 26116

*** This issue has been marked as a duplicate of 26116 ***
Comment 15 joerg.skottke 2004-06-16 08:56:40 UTC
close