https://bugs.freedesktop.org/show_bug.cgi?id=47065
Bug #: 47065
Summary: Advanced Easy Hack: Notification about document
closure
Classification: Unclassified
Product: LibreOffice
Version: LibO Master
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Libreoffice
AssignedTo: [email protected]
ReportedBy: [email protected]
This is an "Easy" Hack for somebody who likes more advanced hacking ;-)
When you open a document that is already open by a different user, you get a
warning like "Document file '$(ARG1)' is locked for editing by:" (see
STR_OPENLOCKED_MSG in uui/source/openlocked.src). You have the choice to open
it read-only, or a copy. In case of opening it read-only, it would be great to
get a notification when the document has been closed by the other person again.
The dialog is effectively created in sfx2/source/doc/docfile.cxx,
SfxMedium::ShowLockedDocumentDialog(). In the case that it is opened
read-only, you should trigger a thread that will wake up every minute, and
check for the presence of the lock file. If the lock file disappeared, it
should create a notification dialog that the file is not in use any more; if
possible, with an offer a reload of the file.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs