Bug 92688 - When inserting a cross-reference, remember last used format in "reference to" for each type
Summary: When inserting a cross-reference, remember last used format in "reference to"...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
: 105250 (view as bug list)
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2015-07-12 10:57 UTC by andis.lazdins
Modified: 2023-04-12 21:48 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot of inserting cross-reference (70.07 KB, application/vnd.oasis.opendocument.text)
2015-07-12 21:59 UTC, andis.lazdins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andis.lazdins 2015-07-12 10:57:56 UTC
Libreoffice has excellent implementation of cross-reference function, which is much more useful and flexible than implementation of this function in Microsoft Word. One really serious problem, which is common for both office suites is lack of ability to save cross-reference settings.

Current behaviour:
1. Open Insert cross-reference dialogue.
2. Select Table, Figure, Heading or whatever you need in Type field.
3. Select cross-reference in Selection field.
4. Select Category and Number in Insert reference to (the default option is always page).
5. Press Insert and Close the window.
6. Open Insert cross-reference dialogue again.
7. The selected value in Insert reference to field again is page.

Enhanced behaviour:

7. The selected value is the last choice I did in point 4.

That will save a lot of time to users and give additional points to Libreoffice against Microsoft office. I'm sure that most of writers use 1 dominant option for the value Insert reference to field and I never seen that this dominant option would be page number. It is usually Numbering or Category and Number.
Comment 1 Joel Madero 2015-07-12 16:18:19 UTC
Can you describe this a bit more? I'm not horribly familiar with cross-references and I'm getting a little lost in your steps. 

1) can this be done on a new (empty) document?

2) This step in particular is throwing me off: "3. Select cross-reference in Selection field."

Marking as NEEDINFO - please just describe the functionality a little more and then set to UNCONFIRMED. Thanks!
Comment 2 andis.lazdins 2015-07-12 21:58:28 UTC
(In reply to Joel Madero from comment #1)
> Can you describe this a bit more? I'm not horribly familiar with
> cross-references and I'm getting a little lost in your steps. 
> 
> 1) can this be done on a new (empty) document?

Of course, it can be done on any document. It is easier to explain, than to add sample files.

> 
> 2) This step in particular is throwing me off: "3. Select cross-reference in
> Selection field."

Sorry for my bad English! I attached file with a table with caption and screen shot of inserting cross-reference. Point 3 means that I select Table 1 in the "Selection" part of "Cross-reference" dialogue window.

It would be excellent, if the program would remember previous selection in the "Insert reference to" box for the next time so I don't have to select every time "Category and number".

I guess the program remembers type of reference "Type" box, so it should not be complicated to expand this feature to another box.

> 
> Marking as NEEDINFO - please just describe the functionality a little more
> and then set to UNCONFIRMED. Thanks!
Comment 3 andis.lazdins 2015-07-12 21:59:08 UTC
Created attachment 117195 [details]
Screen shot of inserting cross-reference
Comment 4 Buovjaga 2015-07-29 15:54:06 UTC
Reproduced.
Might be qualified for an easy hack..

Win 7 Pro 64-bit, Version: 4.4.4.3
Build ID: 2c39ebcf046445232b798108aa8a7e7d89552ea8
Locale: fi_FI
Comment 5 Robinson Tryon (qubit) 2015-12-13 11:20:41 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2017-06-04 13:36:52 UTC
*** Bug 105250 has been marked as a duplicate of this bug. ***
Comment 7 andis.lazdins 2017-06-04 13:48:01 UTC
This enhancement is already implemented in 5.2 version (I have Ubuntu 16.04 64 bit). I'm not sure if it works between sessions, but it works perfectly during the same session.

This is great enhancement in comparison to Microsoft product; of course, for those who are using this functionality.

Thanks to developers!
Comment 8 Buovjaga 2017-06-04 14:06:42 UTC
(In reply to andis.lazdins from comment #7)
> This enhancement is already implemented in 5.2 version (I have Ubuntu 16.04
> 64 bit). I'm not sure if it works between sessions, but it works perfectly
> during the same session.
> 
> This is great enhancement in comparison to Microsoft product; of course, for
> those who are using this functionality.
> 
> Thanks to developers!

Ah, well I will copy a relevant bit from the duplicate report:

Note: as of 5.2.3, LO is already quite a bit smarter than it used to be: it remembers the previous reference "type" and the previous "insert reference to". What is suggested here is a small additional refinement.

Steps to Reproduce:
1. Insert reference to a figure (Category and Name)
2. Insert a reference to a bookmark (Chapter)
3. Insert reference to another figure (Category and Name)

Actual Results:  
At step 3, it is necessary to manually select 'Category and Name' again.

Expected Results:
If the "Insert reference to" box could remember what kind of reference was last used for each reference type, then it would save additional clicks.
Comment 9 sdc.blanco 2023-04-08 11:58:08 UTC
Repro

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 375f85f8518f49ce4381b6663f1e94fc02bacf93
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded

1. The format in "Refer using" remains the same when changing the "Type".
2. Reopening the dialog gives the last setting for type and format.
3. Similarly, when editing a cross-reference variable, the type and format is set to the last value given in the "insert" dialog, regardless of the type and format of the inserted cross-reference field.