Bug 101613 - EDITING: Drag mode in Navigator from inactive document only copies
Summary: EDITING: Drag mode in Navigator from inactive document only copies
Status: RESOLVED DUPLICATE of bug 107031
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.5.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-19 13:22 UTC by grettir
Modified: 2017-10-13 01:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Zipped archive of two test files resulting from inserting links from one to the other (21.06 KB, application/zip)
2016-08-23 17:38 UTC, grettir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grettir 2016-08-19 13:22:40 UTC
I am trying to insert Links or Hyperlinks from one (inactive) odt text document to another odt text document or odm master document, using the Navigator pane of the Sidebar.

No matter if I set the Drag Mode to Link or Hyperlink, all that happens is that a copy of the text is created in the target (active) text or master document.
Comment 1 Alex Thurgood 2016-08-22 07:32:20 UTC Comment hidden (obsolete)
Comment 2 Alex Thurgood 2016-08-22 07:42:13 UTC Comment hidden (obsolete)
Comment 3 Cor Nouws 2016-08-22 09:42:26 UTC
Hi grettir,

(In reply to grettir from comment #0)

> No matter if I set the Drag Mode to Link or Hyperlink, all that happens is
> that a copy of the text is created in the target (active) text or master
> document.

You can only insert Links or Hyperlinks from outline content, i.e. parts that have a header that is referred in Tools > Outline numbering...
Works for me.
Can you please check that?
Thanks,
Cor
Comment 4 grettir 2016-08-22 16:58:43 UTC
(In reply to Cor Nouws from comment #3)
> Hi grettir,
> 
> (In reply to grettir from comment #0)
> 
> > No matter if I set the Drag Mode to Link or Hyperlink, all that happens is
> > that a copy of the text is created in the target (active) text or master
> > document.
> 
> You can only insert Links or Hyperlinks from outline content, i.e. parts
> that have a header that is referred in Tools > Outline numbering...
> Works for me.
> Can you please check that?
> Thanks,
> Cor

Yes. The headings are properly noted in the Outline Numbering styles
Comment 5 grettir 2016-08-22 17:05:13 UTC
Further exploration reveals the following (LO 5.1.5 and 5.2.04 on OSX El Capitan) - using the original (free-floating, not-in-sidebar) Navigator will insert Hyperlinks from headings in the inactive document, no matter what the Drag Mode is set to.

I have also double checked on this with the notion that, maybe a conflict in how Drag Mode is set in the 2 different Navigator panes (free floating, and sidebar). So I ensured that in the source and target documents, both the navigator panes were set to the same Drag Mode. This made no difference.

To summarize: Dragging a heading from an inactive document in the Sidebar Navigator will copy a section with the heading and its subordinate levels and text, no matter what Drag Mode is set at; dragging a heading from an inactive document in the free-floating Navigator will insert a Hyperlink to the heading, no matter what Drag Mode is set at.

Consistent on 2 different macs with this version of OSX and both these versions of LO.

Very odd that the behavior differs between the 2 Navigator panes; different code?
Comment 6 Alex Thurgood 2016-08-23 12:47:31 UTC
OK, my bad for incorrectly understanding how this worked.

Resetting version to 5.1.5.2 (as mentioned by the OP)

Tested against 
Version: 5.3.0.0.alpha0+
Build ID: dcfa38da9894bccff76b643aed92cc80d321ca55
Threads CPU : 2; Version de l'OS :Mac OS X 10.11.6; UI Render : par défaut; 
Locale : fr-FR (fr.UTF-8); Calc: group

Contrary to the findings in comment 5, I get a link inserted with Header styles to the linked document, irrespective of whether I use the detached Navigator window or the embedded Navigator in the sidebar. So from that point of view, no repro here, sorry.
Comment 7 Alex Thurgood 2016-08-23 12:51:22 UTC
I also can not reproduce with

Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
Threads CPU : 2; Version de l'OS :Mac OS X 10.11.6; UI Render : par défaut; 
Locale : fr-FR (fr.UTF-8)
Comment 8 Alex Thurgood 2016-08-23 12:55:02 UTC
@grettir : my attempts to reproduce in comments 6 and 7 used the standard default Header styles in LO.

Are you using anything specific (customised styles) or particular content for which you are trying to create a link ?

Ideally, please provide us with sample documents that show the problem and a detailed description on how to reproduce. 

Setting NEEDINFO until requested information is provided. Please set back to UCONFIRMED once you have done this. Thanks.
Comment 9 grettir 2016-08-23 17:38:35 UTC
Created attachment 126992 [details]
Zipped archive of two test files resulting from inserting links from one to the other
Comment 10 grettir 2016-08-23 17:42:56 UTC
(In reply to Alex Thurgood from comment #8)
> @grettir : my attempts to reproduce in comments 6 and 7 used the standard
> default Header styles in LO.
> 
> Are you using anything specific (customised styles) or particular content
> for which you are trying to create a link ?
> 
> Ideally, please provide us with sample documents that show the problem and a
> detailed description on how to reproduce. 
> 
> Setting NEEDINFO until requested information is provided. Please set back to
> UCONFIRMED once you have done this. Thanks.

OK have done so. This is what I did:

Created a new .odt text document. It uses builtin standard Heading 1 Heading 2 Heading 3 and Text Body paragraph styles.

I then duplicated this file and manually edited it so that all styles and outline numbering would be the same. The text I altered indicating how the various hyperlinks and copied sections were created.

Since others responding to this are using the same OS and version of LO, I wonder if one of the following might explain:

1. different settings or user profiles on the underling OS?

2. different basic settings on the user's LibreOffice?

otherwise I have no idea why the behavior persists for me but others can't duplicate.
Comment 11 Cor Nouws 2016-08-23 18:03:16 UTC
I can drag links and hyperlinks from one to the other file.
The only thing is that it's a bit slow in switching, takes some time/click before it reacts properly (daily from 20160816)
Comment 12 Regina Henschel 2016-08-23 21:54:12 UTC
I have tested with Version: 5.3.0.0.alpha0+
Build ID: 6431e91eca9e44684066a32ed3d6411509dac781
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-08-21_06:34:00
Locale: de-DE (de_DE); Calc: group

I have written a file with outline numbering and saved. File is still open.
I have opened a new document.
I open the navigator in the new document and select the saved (inactive) document. I see its headings.

I set the behavior to "Hyperlink" and drag a heading from the Navigator to the new document. I get a hyperlink with the heading text as link text.

I set the behavior to "Link" and drag a heading from the Navigator to the new document. I get a section, which shows the whole chapter of this heading. Opening the section in menu Format, I see, that the content is linked.

I set the behavior to "Copy" and drag a heading from the Navigator to the new document. I get a section, which shows the whole chapter of this heading. Opening the section in menu Format, I see, that the content is not linked, but indeed inserted as copy.

It works with the attached documents as well.

So for me the feature works in Writer without problems. Something special for Mac?
Comment 13 grettir 2016-08-24 16:49:59 UTC
Is there any setting other than Outline-Numbering that would affect Drag Mode behaviour in the Navigator from an inactive document to the active one?

For example, I have in my general settings 'Save URLs relative to file system' ie, that is checked. Would this affect the navigator's drag mode?

I see from the comments a couple reports exhibit the same behaviour as mine, and yet for most the programme acts as it should. Though I have been employing the programme ever since the days of StarWriter, I never used this Drag Mode behaviour other than to play with it whilst reading the manual/help files. This was my first occasion to employ it in production.

I have workarounds (Sidebar Navigator to intermediate document, then Insert-Section into the target odt/odm from the intermediate), but it would be nice to get my installation up to par.

Thanks for all the feedback. Damned curious.
Comment 14 grettir 2016-08-25 17:41:32 UTC
A thought occurred to me: could the Drag Mode rely on one of the vesitiges of Java in LO? I do not have a jre installed (and cannot install one to test).
Comment 15 Alex Thurgood 2016-08-26 07:33:25 UTC
(In reply to grettir from comment #14)
> A thought occurred to me: could the Drag Mode rely on one of the vesitiges
> of Java in LO? I do not have a jre installed (and cannot install one to
> test).

I would hope not, but I don't know the code responsible for the behaviour.
Comment 16 Alex Thurgood 2016-08-26 07:45:30 UTC
@grettir: you mention that you see the problem also in master documents, or is it only when trying to insert a link from an ODT to an ODM ?
Comment 17 grettir 2016-08-26 17:02:21 UTC
On my sys, the problem behaviour occurs when either an odt text or an odm master document is the target.
Comment 18 Alex Thurgood 2016-09-30 07:08:06 UTC
@grettir : just on the off-chance, what are your settings under LibreOffice > Preferences > Load/Save > General 

with regard to URLs ?
Comment 19 grettir 2016-09-30 13:38:53 UTC
(In reply to Alex Thurgood from comment #18)
> @grettir : just on the off-chance, what are your settings under LibreOffice
> > Preferences > Load/Save > General 
> 
> with regard to URLs ?

Save URLs relative to file system
Comment 20 Cor Nouws 2017-04-10 18:35:32 UTC
probably dupe of 107031

*** This bug has been marked as a duplicate of bug 107031 ***