Stel uw vraag

dcweaver01's profiel - activiteit

2018-08-23 14:17:55 +0200 badge ontvangen  Beroemde vraag (bron)
2018-08-23 14:17:55 +0200 badge ontvangen  Opvallende Vraag (bron)
2018-07-26 16:25:15 +0200 badge ontvangen  Mooie Vraag (bron)
2018-04-26 17:28:23 +0200 badge ontvangen  Student (bron)
2018-02-22 03:09:08 +0200 badge ontvangen  Beroemde vraag (bron)
2017-11-16 02:23:44 +0200 badge ontvangen  Beroemde vraag (bron)
2017-10-02 13:09:05 +0200 badge ontvangen  Opvallende Vraag (bron)
2017-06-28 21:17:54 +0200 badge ontvangen  Beroemde vraag (bron)
2017-06-28 19:40:24 +0200 badge ontvangen  Supporter (bron)
2017-06-28 19:40:14 +0200 koos een beste antwoord How to write a character border macro?

Hello, I've been trying to create a macro that adds a border around the selected text.

I've used the macro recorder but to my knowledge it doesn't support character borders.

This is the code that is generated for a paragraph border macro:

sub ParagraphBorder
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(7) as new com.sun.star.beans.PropertyValue
args1(0).Name = "BorderOuter.LeftBorder"
args1(0).Value = Array(0,0,2,0,0,2)
args1(1).Name = "BorderOuter.LeftDistance"
args1(1).Value = 49
args1(2).Name = "BorderOuter.RightBorder"
args1(2).Value = Array(0,0,2,0,0,2)
args1(3).Name = "BorderOuter.RightDistance"
args1(3).Value = 49
args1(4).Name = "BorderOuter.TopBorder"
args1(4).Value = Array(0,0,2,0,0,2)
args1(5).Name = "BorderOuter.TopDistance"
args1(5).Value = 49
args1(6).Name = "BorderOuter.BottomBorder"
args1(6).Value = Array(0,0,2,0,0,2)
args1(7).Name = "BorderOuter.BottomDistance"
args1(7).Value = 49

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

rem ----------------------------------------------------------------------
dim args2(3) as new com.sun.star.beans.PropertyValue
args2(0).Name = "BorderShadow.Location"
args2(0).Value = com.sun.star.table.ShadowLocation.NONE
args2(1).Name = "BorderShadow.Width"
args2(1).Value = 180
args2(2).Name = "BorderShadow.IsTransparent"
args2(2).Value = false
args2(3).Name = "BorderShadow.Color"
args2(3).Value = 8421504

dispatcher.executeDispatch(document, ".uno:BorderShadow", "", 0, args2())

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

rem ----------------------------------------------------------------------
dim args4(0) as new com.sun.star.beans.PropertyValue
args4(0).Name = "NumberingStart"
args4(0).Value = false

dispatcher.executeDispatch(document, ".uno:NumberingStart", "", 0, args4())

rem ----------------------------------------------------------------------
dim args5(0) as new com.sun.star.beans.PropertyValue
args5(0).Name = "NumNewStartAt"
args5(0).Value = 65535

dispatcher.executeDispatch(document, ".uno:NumNewStartAt", "", 0, args5())


end sub

And this is the code that is generated for a character border macro:

sub CharacterBorder
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:BorderInner", "", 0, Array())


end sub

I don't know enough LibreOffice basic to be able to write a macro from scratch, but I would appreciate if someone could at least point out how one would go about writing such a macro.

2017-06-28 19:40:11 +0200 reageerde op een antwoord How to write a character border macro?

This is great, I didn't think of using styles to do this. It's much easier this way because I don't have to specify all

2017-06-28 19:21:10 +0200 badge ontvangen  Populaire Vraag (bron)
2017-06-28 16:43:50 +0200 stelde een vraag How to write a character border macro?

How to write a character border macro? Hello, I've been trying to create a macro that adds a border around the selected

2017-06-28 16:31:24 +0200 bewerkte een vraag Libre Office Writer character border macro not working

Libre Office Writer character border macro not working I've created a macro for a code block (alters selected paragraph

2017-06-28 16:30:22 +0200 badge ontvangen  Opvallende Vraag (bron)
2017-06-02 12:23:57 +0200 bewerkte een vraag How to migrate entire configuration for LibreOffice Writer?

How to migrate entire configuration for LibreOffice Writer? Hello, I'm migrating my Writer configuration files to a new

2017-06-02 12:23:08 +0200 bewerkte een vraag How to migrate entire configuration for LibreOffice Writer?

How to migrate entire configuration for LibreOffice Writer? Hello, I'm migrating my Writer configuration files to a new

2017-06-02 09:55:52 +0200 badge ontvangen  Opvallende Vraag (bron)
2017-06-01 14:16:32 +0200 reageerde op een antwoord How to migrate entire configuration for LibreOffice Writer?

These two paths are identical, I just omitted the ~/ home directory symbol. But as explained in the question not all of

2017-05-31 18:42:53 +0200 reageerde op een antwoord How to migrate entire configuration for LibreOffice Writer?

But you just repeated what I said has not worked.

2017-05-31 18:42:16 +0200 reageerde op een antwoord How to migrate entire configuration for LibreOffice Writer?

But you just repeated what I said hasn't worked.

2017-05-31 08:01:34 +0200 badge ontvangen  Populaire Vraag (bron)
2017-05-30 23:55:20 +0200 stelde een vraag How to migrate entire configuration for LibreOffice Writer?

How to migrate entire configuration for LibreOffice Writer? Hello, I'm migrating my Writer configuration files to a new

2017-03-31 15:09:07 +0200 badge ontvangen  Beroemde vraag (bron)
2017-03-30 22:00:23 +0200 badge ontvangen  Opvallende Vraag (bron)
2017-03-30 22:00:23 +0200 badge ontvangen  Populaire Vraag (bron)
2017-01-17 20:49:19 +0200 badge ontvangen  Populaire Vraag (bron)
2017-01-16 22:40:50 +0200 reageerde op een vraag Libre Office Writer character border macro not working

The code is only there for reference, this forum doesn't have a folding of code blocks so it shows all of it. I purposefully put everything on top of the page. I don't see a problem.

2017-01-15 22:24:54 +0200 stelde een vraag Libre Office Writer character border macro not working

I've created a macro for a code block (alters selected paragraph style):

code block

I also tried creating the same macro for in-line code (alters selected character style) but with no success - the macro doesn't apply the border:

inline code

This is what I want the end result to be:

inline code with a border

The macro doesn't apply the border style to the selected characters. Even though it's done through the same interface that I used for the paragraph styling.

Below is the macro code that is generated when adding a simple border around selected text.

Any ideas as to why the border doesn't get applied?

sub addBorder
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:BorderInner", "", 0, Array())


end sub
2017-01-03 16:13:11 +0200 badge ontvangen  enthousiast
2017-01-01 05:39:22 +0200 badge ontvangen  Populaire Vraag (bron)
2016-12-31 13:54:29 +0200 stelde een vraag Page longer than 300cm

Is there a way of increasing the maximum page height beyond 300cm?

2016-12-31 13:52:51 +0200 badge ontvangen  Redacteur (bron)
2016-12-31 10:35:11 +0200 stelde een vraag Web view margins

When I enable the Web view in LibreOffice Writer, the text is right by the window edge.

I'd like to be able to add some margin between the window sides and the content.

I've tried changing the ruller sliders but the 'indent' slider only works for text.

While the other slider (filled grey area) just breaks the whole page and the document no longer re-flows when the window is resized. (seems bugged, although I don't know what the intention of that slider is)

Is there a reliable way to add some spacing between the window edge and the content in the web view?

2016-09-28 14:51:58 +0200 badge ontvangen  Opvallende Vraag (bron)
2016-09-27 13:54:28 +0200 koos een beste antwoord LibreOffice Writer font spacing problems

LibreOffice Writer seems to have problems with displaying fonts under somewhat arbitrary conditions (zoom, font type).

Note:

  • This problem doesn't show up on printed pages.
  • Monospaced fonts are not affected.

This image illustrates the issue:

image description