[Libreoffice-bugs] [Bug 99744] Add "Save as" to cloud version

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 24 08:22:01 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=99744

--- Comment #2 from Aditya Dewan <callmedewan at gmail.com> ---
If we wish to implement this feature, the series of events would be a bit
similar to that of the save feature, as implemented currently.

As per my understanding, this is what was happening when a save request was
sent:

- on a save request
    DocumentBroker::sendUnoSave
    -
    DocumentBroker::forwardtotochild, sent to lokit
    -
    *very less idea what happens here, any guidance would be helpful here*
    -
    ClientSession::handleKitToClientMessage, we get response of uno command
    -
    check members and call DocumentBroker::savetostorage

- on a saveas request
    request recieved from click/shortuct press
    DocumentBroker -> send uno saveas request
        we write request
        and forward to kit
    -
    call function to save jailed file to the new specified location 
        we write a new method for this that will save the jailed file to a new
location and now documentbroker's uri.
    -
    then, we need to make a new DocumentBroker, for the current session.
    -
    remove current session from previous docbroker and attach it to the new
one.
    -
    call save function from the new document broker.
    (would that be it?)


*some code was already written regarding handling messages related to Saveas
from the lokit to the clientsession.(clientsession.cpp, l.no. - 573), but all
it does is creates the uri corresponding to the new path, sends the file(why?),
removes the client session, and signals the docbroker to exit.
The last part makes this confusing though,lets say 3 users a, b, c have opened
the same document, now if 'a'saves it as some other file, then we need not
shift 'b' and 'c'.(or do we?)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170524/6383a22f/attachment.html>


More information about the Libreoffice-bugs mailing list