Bug 160955 - When selecting an alternative link target for an OLE object, button says "Insert"
Summary: When selecting an alternative link target for an OLE object, button says "Ins...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: OLE-Objects Files-Linked
  Show dependency treegraph
 
Reported: 2024-05-06 09:43 UTC by Eyal Rozenberg
Modified: 2024-05-06 13:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the "Edit Links" dialog (28.24 KB, image/png)
2024-05-06 11:25 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-05-06 09:43:53 UTC
Instructions:

1. Create a new document (e.g. Writer)
2. Insert an OLE Object: An existing file, with a link to the file, display as icon.
3. On the Edit menu, choose "External Links..."
4. Select the OLE object you've inserted
5. Press "Modify"

Expected results: File selection dialog comes up, selection button should say "Select" or "Set as new Target" or "Set as target" or "Set link target".

Actual results: File selection dialog comes up, selection button says "Insert"

Easy hack?
Comment 1 Heiko Tietze 2024-05-06 10:54:41 UTC
(In reply to Eyal Rozenberg from comment #0)
> 5. Press "Modify"
Where? I have Edit (opens the object), Properties, Delete, and Rename.
Comment 2 Eyal Rozenberg 2024-05-06 11:25:38 UTC
Created attachment 193988 [details]
Screenshot of the "Edit Links" dialog
Comment 3 Eyal Rozenberg 2024-05-06 11:25:59 UTC
(In reply to Heiko Tietze from comment #1)
> Where? I have Edit (opens the object), Properties, Delete, and Rename.

Have a look at the screenshot.
Comment 4 Heiko Tietze 2024-05-06 12:48:50 UTC
Edit > External Links... has a Modify button.

(In reply to Eyal Rozenberg from comment #0)
> Easy hack?
Don't spot the string in a quick glance in ChangeSourceClickHdl at cui/source/dialogs/linkdlg.cxx. Maybe mxFileDlg->setTitle( SfxResId( STR_SFX_EXPLORERFILE_INSERT ) ); in sfx2/source/dialog/filedlghelper.cxx but this affects all dialogs then. Could be solved by introducing another flag for FileDialogFlags but using this flag becomes a bit tricky.
Comment 5 Eyal Rozenberg 2024-05-06 13:01:27 UTC
(In reply to Heiko Tietze from comment #4)
> Don't spot the string in a quick glance in ChangeSourceClickHdl at
> cui/source/dialogs/linkdlg.cxx. Maybe mxFileDlg->setTitle( SfxResId(
> STR_SFX_EXPLORERFILE_INSERT ) ); in sfx2/source/dialog/filedlghelper.cxx but
> this affects all dialogs then. Could be solved by introducing another flag
> for FileDialogFlags but using this flag becomes a bit tricky.

But surely the button text is set differently for different file selection dialogs? Open, Save, Select, Insert ...