Ask Your Question

Looking for a strategy for taking notes in Writer

asked 2016-06-28 13:28:08 +0200

paul1149 gravatar image

I do a lot of work with Writer documents, and I'm looking for a way to take notes that I can easily access later on.

What I have in mind is a macro to take selected text, highlight it and make an endnote out of it. I think that would work fairly well, but am I overlooking something already built in to LO (, or does anyone have any other ideas?


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-06-28 14:19:46 +0200

pierre-yves samyn gravatar image


I do not see exactly the purpose of what you want but these actions are recordable: cut (selected text), insert end note, paste. So, something like:

document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("")
dispatcher.executeDispatch(document, ".uno:Cut", "", 0, Array())
dispatcher.executeDispatch(document, ".uno:InsertEndnote", "", 0, Array())
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())


edit flag offensive delete link more


Thanks, Pierre. I would copy rather than cut, and optionally mark the text in place with something like underlining, but that's the basic idea. I'm looking to gather the notes from various places in the text to one place, and I thought an endnote stream, aside from any footnotes the doc might have, would be a pretty good way to do it. But I'm opening this up to any other suggestions.

paul1149 gravatar imagepaul1149 ( 2016-06-28 18:37:22 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-06-28 13:28:08 +0200

Seen: 516 times

Last updated: Jun 28 '16