CSL4LibreOffice - F [Real-time switching of CSL Styles]#12472
Conversation
|
PR #12309 can be merged independent of this. |
|
@calixtus Architecture violation is due to the One thought was instead of constructor injection for the adapter, we could obtain the databases in Making a new instance of the adapter (and passing latest databases via constructor) every time we add or remove a new library would be the architecturally correct solution, but it didn't make sense. |
|
You could maybe add a supplier callback to be able to get the state manager's list of database from a UI context |
|
The real question is, why in logic (business logic, alternating bibentries and so on) one has to get an observable list of currently open databases? The failing architecture test is just telling us, that thre is stuff that does not belong there. I need to take a deeper look. I can probably look tomorrow at it. |
That's because there is no method in
Sure! |
|
@subhramit please mark the review comments that you handled as resolved. |
Real-time switching of CSL Styles
Follow-up to #11712 and #12309
Closes #12309 (comment)
Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/772 (internal)
Summary
CSLCitationOOAdapterare no longer created for each cite action. Only one instance throughout for a LibreOffice document connection.<sup>5</sup>used to be lost due to direct UNOsetTextcalls in the number reassignment feature. Now,OOTextIntoOO.writeis used, which properly parses those tags to apply formatting.Limitations
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user)