Skip to content

Add support for LibreOffice's default bibliography styles#1

Open
DTT12912 wants to merge 5 commits into
mainfrom
fix-issue-13049
Open

Add support for LibreOffice's default bibliography styles#1
DTT12912 wants to merge 5 commits into
mainfrom
fix-issue-13049

Conversation

@DTT12912

@DTT12912 DTT12912 commented May 2, 2025

Copy link
Copy Markdown
Owner

Closes JabRef#13049

This PR adds support for LibreOffice's default bibliography styles in JabRef's LibreOffice integration. The changes include:

  1. Added new bibliography styles:

    • "Bibliography Heading" for the bibliography section heading
    • "Bibliography 1" for bibliography entries (default)
    • "Text body" as an additional style option
  2. Updated the UI:

    • Renamed "Modify bibliography title" dialog to "Modify bibliography properties"
    • Added a new dropdown to select bibliography body text format
    • Maintained backward compatibility with existing styles
  3. Backend changes:

    • Added new styles to CSLFormatUtils.Format enum
    • Updated OpenOfficePreferences to store bibliography body format
    • Modified CSLCitationOOAdapter to use the selected body format

These changes ensure that JabRef uses LibreOffice's default bibliography styles by default while still allowing users to choose alternative styles if desired.

Mandatory checks

  • [] I own the copyright of the code submitted and I license it under the MIT license
  • [] Change in CHANGELOG.md described in a way that is understandable for the average user (if change is visible to the user)
  • [] Tests created for changes (if applicable)
  • [] Manually tested changed features in running JabRef (always required)
  • [] Screenshots added in PR description (if change is visible to the user)
  • [] Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • [] Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Bibliography Heading and Bibliography 1 styles for OO integration

1 participant