Bug 61493 - Captions don't respect paragraph styles
Summary: Captions don't respect paragraph styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
: 96610 (view as bug list)
Depends on:
Blocks: Caption
  Show dependency treegraph
 
Reported: 2013-02-26 09:04 UTC by TJ Meneses
Modified: 2023-02-07 00:26 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TJ Meneses 2013-02-26 09:04:54 UTC
Problem description: Enhancement bug. Have the ability to create custom Categories (apart from the built-in Table, Illustration, Drawing, etc.) for captions where the Labels used can be defined by the user.

Steps to reproduce:
1. In a document, select a picture or chart.
2. Select Insert > Caption... from the menu bar OR select Caption... from the context menu.
3. Select User-defined Category from the Category field of the dialog box.

Current behavior:
There is currently no User-defined Category option in the dropdown list for the Category field, or any other similar option in the Caption dialog box.

Expected behavior:
A dialog box opens that will allow the user to define a new Category along with a custom Label and associated Style.
Operating System: All
Version: 4.0.0.3 release
Comment 2 Joel Madero 2013-04-14 21:45:21 UTC
Sure, I think more accurately would be calling them styles as are stated in the ask site, basically the same thing just for captions (If I'm understanding correct).

Valid enhancement request, marking it:
New (valid)
Enhancement
Medium - default, seems appropriate

ProposedEasyHack - a lot of the structure for styles are already there, seems like it might be easy to expand on this
Comment 3 Florent Angly 2013-07-07 05:13:21 UTC
I think this feature has been present in LibreOffice for a long time.

In the caption menu > Category: simply write the name of the new category you would like to use.
Comment 4 Robinson Tryon (qubit) 2013-10-23 18:41:50 UTC Comment hidden (obsolete)
Comment 5 Joel Madero 2014-02-27 23:03:47 UTC
In order to limit the confusion between ProposedEasyHack and EasyHack and to make queries much easier we are changing ProposedEasyHack to NeedsDevEval.

Thank you and apologies for the noise
Comment 6 Robinson Tryon (qubit) 2015-12-13 11:21:08 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2015-12-23 19:27:32 UTC
*** Bug 96610 has been marked as a duplicate of this bug. ***
Comment 8 Dennis Schridde 2017-08-12 09:31:58 UTC
(In reply to Florent Angly from comment #3)
> I think this feature has been present in LibreOffice for a long time.
> 
> In the caption menu > Category: simply write the name of the new category
> you would like to use.

This works. What does not work, however, is editing the name of an existing category or changing the category of an existing caption.

See-Also: bug #67619, bug #60360
Comment 10 Thomas Lendo 2017-12-13 07:58:50 UTC
I support the idea of having an "Edit Caption..." item in the context menu and Format menu to change caption options and categories.

As Dennis said in comment 8, it's not possible to change existing categories and inserted captions. You can change caption names manually in the caption itself, but this must be done for every single caption and hasn't any effect for the category list in the caption's insert dialog.

Steps to reproduce:
1. open a new Writer file
2. insert a table
3. click into the table and insert a caption (menu Insert > Caption...)
4. insert a caption name like "caption name"
5. change Category name manually to "Bugreport"
6. click OK
7. insert a TOC (menu Insert > Table of Contents and Index > Table of Contents, Index or Bibliography...)
8. in tab Type: change Type to "Index of Tables"
9. changr Category to "Bugreport"
10. click OK
11. change existing caption name "Bugreport 1: caption name" to "BugreportX 1: caption name"
12. update the index of tables and "Bugreport" changes to "BugreportX"
13. insert a new table
14. add a caption to this new table

Actual behavior:
In the Category list of the insert caption dialog, there is "Bugreport" available but not "BugreportX"

Expected behavior:
Either every currently used caption name should be displayed in the Category list (also the manually changed ones) or it should be possible to change category names in a own dialog.

@Heiko, Jay: What's your opinion?


(Depending on what's decided how this issue should be solved, Bug 67619 could be a dupe of this bug.)
Comment 11 Heiko Tietze 2017-12-13 08:18:39 UTC
Wouldn't it make more sense to make the addition permanent? As stated in comment 3 you can add another item by just tying it in the combobox and this caption is available for the document. However, when you create a new document you have to enter the caption again - and that could be solved.

Drawback of user-extendable lists is that you have to take care of reverting the addition, i.e. delete and rename functions might be requested. I wouldn't allow users to change factory settings.
Comment 12 fadil.fikrillah 2019-09-24 22:22:34 UTC
hello, any news for this bug?

i think it's a very important missing feature, especially if you are working with multiple languages, for example:

1. your interface language is English (so we can easily get help from internet), but you want to write your document in your language, more problem if you are working on many devices, you cannot simply change language of every computer you use, for example: company, friend, or every computer you don't own

2. when you're writing in language that is not supported by libreoffice, there's a lot of less known local language that libreoffice does not support, and probably those language never will be supported ever
Comment 13 Heiko Tietze 2019-09-25 05:42:31 UTC
(In reply to Florent Angly from comment #3)
> In the caption menu > Category: simply write the name of the new category
> you would like to use.

(In reply to Dennis Schridde from comment #8)
> This works. What does not work, however, is editing the name of an existing
> category or changing the category of an existing caption.

The user-defined category is taken into paragraph styles as children of Caption. So far so good - you can edit the name, delete, modify. However, none of those changes are taken back into the list at the caption dialog. Seems it takes predefined/hard-coded values plus what's in the document.