lib Library API Documentation

KoApplication Class Reference

Base class for all KOffice apps Base class for all KOffice apps. More...

#include <koApplication.h>

List of all members.

Public Member Functions

 KoApplication ()
virtual ~KoApplication ()
virtual bool start ()

Static Public Member Functions

bool isStarting ()


Detailed Description

Base class for all KOffice apps Base class for all KOffice apps.

This class handles given arguments giving on the command line and shows a generic about dialog for all KOffice apps.

In addition it adds the standard directories where KOffice applications can find their images etc.

If the last mainwindow becomes closed, KoApplication automatically calls QApplication::quit.

Definition at line 48 of file koApplication.h.


Constructor & Destructor Documentation

KoApplication::KoApplication  ) 
 

Creates an application object, adds some standard directories and initializes kimgio.

Definition at line 56 of file koApplication.cc.

KoApplication::~KoApplication  )  [virtual]
 

Destructor.

Definition at line 221 of file koApplication.cc.


Member Function Documentation

bool KoApplication::start  )  [virtual]
 

Call this to start the application.

Parses command line arguments and creates the initial shells and docs from them (or an empty doc if no cmd-line argument is specified ).

You must call this method directly before calling QApplication::exec.

It is valid behaviour not to call this method at all. In this case you have to process your command line parameters by yourself.

Definition at line 87 of file koApplication.cc.

References KoDocument::addShell(), KoDocument::checkAutoSaveFile(), KoDocumentEntry::createDoc(), KoDocument::initDoc(), KoDocumentEntry::isEmpty(), KoMainWindow::openDocument(), KoMainWindow::print(), KoDocument::resetURL(), KoDocument::setEmpty(), KoDocument::setInitDocFlags(), KoMainWindow::setRootDocument(), and KoDocument::setTitleModified().

bool KoApplication::isStarting  )  [static]
 

Returns:
true if the application is starting

Definition at line 227 of file koApplication.cc.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for lib Library Version 1.3.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Sep 28 04:04:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003