1. Start with no chapter.cfg in {user profile}/config [just to be pure] 2. Tools > Chapter Numbering 3. Use the dialog box to make some modifications (e.g., add numbering to first three levels) 4. Load/Save > Save As, give a name, and Ok. 5. Load/Save > Untitled 9 Actual Result: The just-saved profile remains loaded (as seen in preview and looking at the levels). Expected result: The dialog is "reset" to default, because nothing was saved for 'Untitled 9.' Enhancement request: a better design is needed here. - the "Reset" button does not reset anything,even just changing the Number control and then immediately using Reset does not reset. Maybe "Reset" should be removed from this dialog? - maybe a "Default" or "reset" entry should be available in Load/Save dropdown. - maybe a popup warning "Nothing saved for Untitled 9" should appear for all names in Load/save that do not actually have entries in chapter.cfg.
> Actual Result: The just-saved profile remains loaded (as seen in preview > and looking at the levels). Slight correction/elaboration: Actual result: Loading an empty entry loads the first "non-empty" entry. That is, if a numbering format was saved where Untitled 1 appeared, then this entry is always loaded, if an empty entry is selected.
Save As puts the new item at the end of the list and apparently "Untiled " means empty. The question is what happens when all slots are filled- I'd assume you either cannot save anymore until one item is removed or you overwrite the first. But in fact the application crashes for me. The approach with items in a menu is clearly not working. My take is to use a true list with Add/Remove buttons, as recommended everywhere else.
Created attachment 170368 [details] Backtrace from master Version: 7.0.4.2 Build ID: 00(Build:2) CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: kf5 Locale: de-DE (en_US.UTF-8); UI: en-US 7.0.4-2 Calc: threaded and Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 77285d2d0266e074520c539556e5a2b660d43b11 CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: kf5 Locale: de-DE (en_US.UTF-8); UI: en-US Calc: threaded Jumbo Steps: In Writer: Tools > Chapter Numbering, repeat Save As until the list of Untitled X is filled. Further access to this function and the dialog crashes the application.
(In reply to Heiko Tietze from comment #2) > Save As puts the new item at the end of the list and apparently "Untiled " > means empty. The question is what happens when all slots are filled- I'd > assume you either cannot save anymore until one item is removed or you > overwrite the first. But in fact the application crashes for me. Ummm...have you hijacked my bug report and made it into a duplicate of bug 140590, comment 6? No objections to changing how Load/Save works. But want to be sure that the other points in the OP and comment 1(e.g., "Preview" should update correctly, non-functional Reset button, etc.) do not get lost.
(In reply to sdc.blanco from comment #4) > ...made it into a duplicate of bug 140590 Oups, true it's the same. But my point is that you fill up a list and I don't know at the end. In any case it's not a good solution and I would not fiddle around with this menu. *** This bug has been marked as a duplicate of bug 140590 ***
(In reply to Heiko Tietze from comment #5) > don't know at the end. In any case it's not a good solution and I would not > fiddle around with this menu. Not a problem for me. I focused only on what was existing. But how to proceed now? You have hijacked (and closed) this ticket so that its original intent -- to point out some problems with how Load/Save works (even if it does not have all its entries filled) -- is lost. Should I file a new ticket? or may I resurrect this ticket back to its original purpose (and tag the crash part as "off-topic")?
Feel free to reopen, maybe change the summary and tag all inappropriate comments as such. Still would prefer to solve the whole topic with a new dialog.
New Description. 1. Tools > Chapter Numbering is where it is necessary to add numbering/bullets (and format their layout) for Heading 1-10. 2. At present, the Load/Save dialog offers the possibility to "save" a design (stored in {user profile}/config/chapter.cfg), which can then be loaded into other documents. 3. As noted in comment 2, maybe a new approach is needed. 4. Meanwhile, where are problems with current design that a new design should address. A. There needs to be a way to "reset" the dialog (i.e., values for numbering and position at different levels) to "null/initial state"), or maybe just a "New" command to get a "clean sheet" from which to start. B. In current design, it is possible to load an "empty" entry, but maybe the dropdown list should only show actually existing formats, so that you do not have to guess if the entry has been configured or not. C. There are some experiences (also by Timur) that "Position" information is not always saved (but have not found reliable STR) or maybe there is a problem with how Loading is working in relation to position (that makes it look like information is lost). In short, from user PoV (independently of how implemented): - "Save as" should save numbering and position information for all levels. - Loading a "saved entry" should completely update the loaded values for numbering and position for all levels, according to the saved entry. - Preview should be updated when loading a saved entry to correspond to the saved entry.
See bug 120905 what I have in mind.