forked from amazingfate/loongoffice
This is a rework of f9059d4eee8e53c0a6b531fff16e1fade58cb8b0 "Key all browser plugin features to --enable-nsplugin." The problem with that was that Mac OS X supports pluging browser plugins into LO documents (which was originally controlled by --enable-mozilla) but not plugging LO into browser windows (which was originally controlled by --enable-nsplugin), so controlling the former with the same switch as the latter did not actually work. Thus I replaced the single ENABLE_NSPLUGIN feature flag with two dedicated ones, ENABLE_NPAPI_FROM_BROWSER (for plugging browser plugins into LO documents) and ENABLE_NPAPI_INTO_BROWSER (for plugging LO into browser windows). The --enable-nsplugin configure switch is gone completely, setting the feature flags is always done fully automatically now. Change-Id: Iecf706637465e865c987563b5de489fa90b4c904
Browser plugin, activex control, scanner bits. Online update. == Application online update checking == When we start LO, first InitUpdateCheckJobThread is created, via UpdateCheckJob::execute() (from extensions/source/update/check/updatecheckjob.cxx), as a reaction to a "onFirstVisibleTask" event. It waits 25 seconds (so that it does not interfere with the startup itself), and then calls UpdateCheck::initialize() (from extensions/source/update/check/updatecheck.cxx). This creates one more thread, UpdateCheckThread, that regularly checks whether we have reached the time when we should ask for the update. If yes, asks for that, and shows the download button in the menu (if the new update is available).