Well, that might not help if the target platform doesn't allow the user to replace the library in their copy of your application (e.g. iOS).
Also, if the code you're interested in is common to both LibreOffice and Apache OpenOffice, then why bother creating a library when you could just use the Apache code under the ASL?