autosave feature help

Krisztian Pinter pin.terminator at gmail.com
Sat Mar 2 03:05:23 PST 2013


Hi All!

I'd like to request some help with implementing a feature. I'm a bsc
student working as a trainee and I'm still very unfamiliar with the LO
codebase.
I was given the task to implement this:
https://bugs.freedesktop.org/show_bug.cgi?id=47011

I have added a checkbox in Tools -> Options -> Load/Save -> General with
the text "Save document when saving AutoRecovery information", copying how
other checkboxes work. I triple checked everything, but this checkbox still
won't save its state.

In the code where AutoRecovery does the recovery saving, I have added an
if, so if the value set by the checkbox mentioned above is true, it would
call store() on the file, and save it. I would think I'd also need to do
something else here that lets the UI know that the file has been saved (eg.
the floppy disk icon gets greyed out), but I have no idea where should I
begin with that (I haven't been able to find the code that handles regular
saving.).

Here is what I have done so far: https://gerrit.libreoffice.org/2506

Krisztian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130302/5f7d7a90/attachment.html>


More information about the LibreOffice mailing list