Context:
I want to track changes using a VCS (i.e. Git) for a database input form built with LibreOffice Writer(*) and tried saving the document as a flat XML ODT file (.fodt) as described in the Wiki
Problem:
After saving the document, all dialogs are lost (whereas the wiki states: “If a document is saved as .fodt file it keeps the same data the .odt file would contain.”)
Question:
Is there a VCS-friendly way of saving a Writer document with all macros, dialogs, etc.?
Steps to reproduce:
- Create a new Writer document
- Open “Tools” > “Macros” > “Organize Dialogs…”
- Select the newly created document (e.g. “Untitled 1”)
- Click “New…”
- Confirm with “OK” (The name does not matter)
- The “Dialog:” tree should look similar to this:
- My Dialogs
- LibreOffice Dialogs
- Untitled 1
- Standard
- Dialog1
- Standard
- Close the “LibreOffice Basic Macro Manager”
- (optional)
- Save the document as a “normal” OpenDocument text file (*.odt)
- Close the document
- Open the document again
- Confirm the dialog still exists (“Tools” > “Macros” > “Organize Dialogs…”)
- Save the document as a flat XML document (*.fodt)
- (optional) Confirm the dialog still exists (“Tools” > “Macros” > “Organize Dialogs…”)
- Close the document
- Open the .fodt document again
- The dialog is missing in “Tools” > “Macros” > “Organize Dialogs…”
Environment:
Windows 10 64bit, LibreOffice 6.1.6 and 6.2.5
PS: The problem also applies to Calc spreadsheets saved as *.fods
(*) Not my decision to use LO Writer for this scenario, but I have to maintain it