Bug 85441 - Macro Recorder doesn't give working code for character border
Summary: Macro Recorder doesn't give working code for character border
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.2.6.3 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-25 14:14 UTC by Sooraj Kenoth
Modified: 2014-10-29 05:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Record Macro Output (544 bytes, text/plain)
2014-10-25 14:14 UTC, Sooraj Kenoth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sooraj Kenoth 2014-10-25 14:14:02 UTC
Created attachment 108393 [details]
Record Macro Output

I was trying to create a Macro for putting character boarder, with the help of record. I am able to create a working code for all most all other function except for character boarder

Attaching the generated code as text file.
Comment 1 tommy27 2014-10-26 04:56:10 UTC
please describe step by step which buttons or menus do you click while the macro recorder is activated.

please also remember that the power of the macro recorder is limited and there are some situations where it cannot always replicate 100% of the user activity and translate it in a working code, so you should start learning the LibO BASIC language and manually code your macro
Comment 2 Sooraj Kenoth 2014-10-27 09:02:07 UTC
(In reply to tommy27 from comment #1)
> please describe step by step which buttons or menus do you click while the
> macro recorder is activated.

Selected the charecters first. Then,
Tools->Record Macro, then

Method 1 (Using Keyboard)
Alt+o -> Down Arrow(To select Charecter)-> Entre Key -> Tab button(to get control on tabs) ->Side Arrow(to get border sub window) -> ctrl+u -> Down Arrow(to select Border) -> Space Bar(To activate) -> Enter Key

Stop recording and save

Method 2(Using Mouse)


Selected the charecters first. Then,
Tools->Record Macro, then

Right Click -> select charecter -> select boeder tab -> select the border type -> ok

Stop recording and save
----------------

Both method gave same result.
Comment 3 tommy27 2014-10-27 21:23:53 UTC
are you trying to record this macro in Writer or Calc?
Comment 4 Sooraj Kenoth 2014-10-28 03:10:22 UTC
(In reply to tommy27 from comment #3)
> are you trying to record this macro in Writer or Calc?

Writer.
Comment 5 Sooraj Kenoth 2014-10-29 00:41:35 UTC
(In reply to tommy27 from comment #3)

@tommy27 can you confirm the bug? A code some what related the following is suppose to generate, instead of the generated one.

<https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=73137&p=329616#p329616>

<api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1style_1_1CharacterProperties.html>
Comment 6 tommy27 2014-10-29 05:29:33 UTC
the macro recorder is a very old feature which is inherited by StarOffice (the ancestor of OpenOffice).

so it's no surprise that new features of LibO like character borders (which do not exist in OOo) cannot be recognized and recorded by the macro recorder.

as said before, the power of that macro recorder is limited which means that it cannot exactly record everything you want.

from talks I had with developers I know there's no plan to rewrite the recorder which means that this feature will not be improved.

so you should accept it's limitations and if the generated code is not functional there's no other way to start learning LibO BASIC (download this very interesting e-book from Pytoniak http://www.pitonyak.org/OOME_3_0.pdf ) and asking for help in OOo/LibO forums which always have sections dedicated to macro coding.

I started using the macro recorder years ago (and I still use if for some easy tasks) and it helped me to get familiar with OOo/LibO basic and start learning how to manually code my own macros. 

you should do the same: it may seem hard at the beginning but you will enjoy it at the end. Handmade pasta always tastes better than precooked meals :-)

so I'm closing this report as RESOLVED WONTFIX