libreofficelibreoffice-basiclibreoffice-writerclipboardmanager

clipboard manager extension for writer


I am trying to build a clipboard manager extension for Libre office. When-ever I cut (or copy) text from a document, it should be appended to another file so that I will never loose my work even if I forget to paste it somewhere. Is it possible in libre office?


Solution

  • This chapter explains how to register a clipboard listener: https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Common_Application_Features

    I wonder how your extension will handle when someone copies an image instead of text. Perhaps in that case you could catch an exception and end the call cleanly. Or perhaps you could determine that ahead of time, based on the mime type.