https://bz.apache.org/ooo/show_bug.cgi?id=128612

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|First copy and paste pastes |Copy and paste often pastes
                   |the value instead of the    |the value instead of the
                   |formula                     |formula

--- Comment #16 from [email protected] ---
Even without a clipboard manager, you cannot copy and paste formula cells
between different OpenOffice instances (let's say you have both OpenOffice
4.1.15 and OpenOffice 4.2.0 open, you cannot copy and paste formula cells
between them, it will only paste the values, just like happens in this bug for
other reasons).

When a clipboard manager is present, then OpenOffice usually isn't the
clipboard owner for very long, the clipboard manager takes ownership quickly,
and so even internal copy and paste gets treated as external.

So far I see a few possible solutions (1 mine, 2-3 Peter's):
1. Eliminate the internal clipboard, and make all clipboard formats external,
but protect them by obfuscation or encryption if necessary. This would work
correctly with all clipboard managers because they would copy all our clipboard
data and we would paste it back from them, and it would allow pasting between
different OpenOffice instances.
2. Change how we detect that the clipboard ownership is lost; treat a system
clipboard that (1) we most recently owned, (2) the clipboard manager took from
us, and (3) whose contents haven't changed, as "our" clipboard, and continue
using our internal clipboard as long as the system clipboard satisfies those
conditions. This approach would also work correctly with clipboard managers,
but wouldn't fix pasting between different OpenOffice instances. It's also
tricky to get right - we have multiple clipboard formats, downloading them all
to check their contents could take a while (especially when those contents
include images).
3. We could also use the TIMESTAMP value to determine when we truly lost
clipboard ownership: when the clipboard owner's TIMESTAMP value is the same as
the one we created, then it's holding our data, otherwise it's holding someone
else's. This also doesn't fix pasting between different OpenOffice instances.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to