Architecture/Process Flow

From Apache OpenOffice Wiki
< Architecture
Revision as of 11:56, 24 July 2006 by Kr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Startup- and Shutdown sequence of OpenOffice.org

  1. Construction of the global application object
  2. main() method of the executable
  3. Initialization of the VCL library
  4. Initialization of the application object
  5. Bootstrap initial UNO component context
  6. Sets global process service factory
  7. Creates Office configuration service
  8. Determines the current Office language and initialize language settings for Office configuration service.
  9. Creates IPC thread and named pipe for office-office communication
  10. Sets exception handler
  11. Calls Main() method on application object
  12. Handles bootstrap errors (show possible bootstrap errors to user and exit application)
  13. Creates and show splash screen
  14. Creates user configuration data on first startup
  15. Checks command line arguments and creates possible UNO acceptors
  16. Initialization of the UCB
  17. Creates global temporary directory for Office
  18. Sets user interface and application locale
  19. Creates global broadcaster service for application/document events
  20. Starts first start wizard for possible license agreement/user data input
  21. If no command line arguments
    1. Creates one instance framework desktop service
    2. Creates startup module service
    3. Creates frame and connects startup module to frame.
  22. Checks command line arguments and creates possible quickstart service
  23. Checks command line arguments for headless mode and if positive activates internal dialogs
  24. Starts the global application message loop
  25. Asynchronous (default) document creation/loading.
    1. Analyzes the command line arguments and determines a possible default document type.
    2. Loads/prints documents provided by command line
    3. Shows the document window(s)
    4. Enables the IPC thread to receive data from the named pipe.
  26. Asynchronous enabling of the UNO acceptors
  27. Office shutdown triggered by: Terminate call on the com.sun.star.frame.XDesktop interface or Menubar “File – Exit” or keyboard shortcut “CTRL-Q”
  28. Closes all open documents (asks for allowance for modified documents)
  29. IPC thread blocks all requests from other Offices
  30. Removes the global temporary directory
  31. Stops all UNO acceptors
  32. De-initializes UCB
  33. De-initializes VCL library
  34. De-initializes global application object
  35. Stores all Office configuration changes
  36. Disposes default UNO component context
  37. Disables IPC thread for office-office communication
  38. Leaves main() method
  39. Destroys global application object
Personal tools