lib
KoMainWindow Class Reference
#include <KoMainWindow.h>
Inheritance diagram for KoMainWindow:

Detailed Description
Main window for a KOffice application.This class is used to represent a main window of a KOffice component. Each main window contains a menubar and some toolbars.
- Note:
- This class does NOT need to be subclassed in your application.
Definition at line 51 of file KoMainWindow.h.
Public Slots | |
void | slotEmailFile () |
virtual void | slotFileNew () |
virtual void | slotFileOpen () |
virtual void | slotFileOpenRecent (const KURL &) |
virtual void | slotFileSave () |
virtual void | slotFileSaveAs () |
virtual void | slotFilePrint () |
void | slotFilePrintPreview () |
virtual void | slotDocumentInfo () |
virtual void | slotFileClose () |
virtual void | slotFileQuit () |
virtual void | slotConfigureKeys () |
virtual void | slotConfigureToolbars () |
virtual void | slotNewToolbarConfig () |
virtual void | slotToolbarToggled (bool toggle) |
virtual void | slotSplitView () |
virtual void | slotRemoveView () |
virtual void | slotSetOrientation () |
virtual void | slotCloseAllViews () |
void | slotReloadFile () |
void | slotVersionsFile () |
void | slotImportFile () |
void | slotExportFile () |
Signals | |
void | documentSaved () |
void | saveDialogShown () |
Public Member Functions | |
KoMainWindow (KInstance *instance, const char *_name=0) | |
~KoMainWindow () | |
virtual void | setRootDocument (KoDocument *doc) |
void | setDocToOpen (KoDocument *doc) |
virtual void | updateCaption () |
virtual KoDocument * | rootDocument () const |
virtual KoView * | rootView () const |
virtual KParts::PartManager * | partManager () |
void | print (bool quick) |
void | showToolbar (const char *tbName, bool shown) |
bool | toolbarIsVisible (const char *tbName) |
QLabel * | statusBarLabel () |
void | setMaxRecentItems (uint _number) |
void | addRecentURL (const KURL &url) |
virtual bool | openDocument (const KURL &url) |
bool | openDocument (KoDocument *newdoc, const KURL &url) |
virtual DCOPObject * | dcopObject () |
void | reloadRecentFileList () |
virtual void | updateCaption (const QString caption, bool mod) |
void | updateReloadFileAction (KoDocument *doc) |
void | updateVersionsFileAction (KoDocument *doc) |
Protected Slots | |
virtual void | slotActivePartChanged (KParts::Part *newPart) |
Protected Member Functions | |
void | chooseNewDocument (intinitDocFlags) |
void | setRootDocumentDirect (KoDocument *doc, const QPtrList< KoView > &views) |
virtual KoDocument * | createDoc () const |
virtual bool | saveDocument (bool saveas=false, bool silent=false) |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual bool | queryClose () |
virtual bool | openDocumentInternal (const KURL &url, KoDocument *newdoc=0L) |
bool | isExporting () const |
bool | isImporting () const |
void | saveRecentFiles () |
KRecentFilesAction * | recentAction () const |
Constructor & Destructor Documentation
|
Constructor. Initializes a KOffice main window (with its basic GUI etc.). Definition at line 185 of file KoMainWindow.cpp. |
|
Destructor.
Definition at line 310 of file KoMainWindow.cpp. |
Member Function Documentation
|
The document opened a URL -> store into recent documents list.
Definition at line 434 of file KoMainWindow.cpp. |
|
Helper method for slotFileNew and slotFileClose.
Definition at line 1063 of file KoMainWindow.cpp. |
|
Create a new empty document.
Definition at line 484 of file KoMainWindow.cpp. |
|
This signal is emitted if the document has been saved successfully.
|
|
Returns whether or not the current slotFileSave[As]() or saveDocument() call is actually an export operation (like File --> Export). If this is true, you must call KoDocument::export() instead of KoDocument::save() or KoDocument::saveAs(), in any reimplementation of saveDocument(). Definition at line 1676 of file KoMainWindow.cpp. |
|
Returns whether or not the current slotFileOpen() or openDocument() call is actually an import operation (like File --> Import). If this is true, you must call KoDocument::import() instead of KoDocument::openURL(), in any reimplementation of openDocument() or openDocumentInternal(). Definition at line 1671 of file KoMainWindow.cpp. |
|
Load the URL into this document (and make it root doc after loading). Special method for KoApplication::start, don't use. Definition at line 555 of file KoMainWindow.cpp. |
|
Load the desired document and show it.
Definition at line 542 of file KoMainWindow.cpp. |
|
Prints the document.
Definition at line 1180 of file KoMainWindow.cpp. |
|
Ask user about saving changes to the document upon exit.
Reimplemented from KMainWindow. Definition at line 1003 of file KoMainWindow.cpp. |
|
Reloads the recent documents list.
Definition at line 478 of file KoMainWindow.cpp. |
|
Retrieves the document that is displayed in the mainwindow.
Definition at line 525 of file KoMainWindow.cpp. |
|
This signals is emmitted before the save dialog is shown.
|
|
Saves the document, asking for a filename if necessary.
Definition at line 714 of file KoMainWindow.cpp. |
|
Save the list of recent files.
Definition at line 461 of file KoMainWindow.cpp. |
|
This is used to handle the document used at start up before it actually added as root document.
Definition at line 1681 of file KoMainWindow.cpp. |
|
Sets the maximum number of recent documents entries.
Definition at line 1553 of file KoMainWindow.cpp. |
|
Called when a document is assigned to this mainwindow. This creates a view for this document, makes it the active part, etc. Definition at line 345 of file KoMainWindow.cpp. |
|
Special method for KOShell, to allow switching the root document (and its views) among a set of them.
Definition at line 419 of file KoMainWindow.cpp. |
|
The application should call this to show or hide a toolbar. It also takes care of the corresponding action in the settings menu. Definition at line 1315 of file KoMainWindow.cpp. |
|
Close all views.
Definition at line 1349 of file KoMainWindow.cpp. |
|
Configure key bindings.
Definition at line 1255 of file KoMainWindow.cpp. |
|
Configure toolbars.
Definition at line 1260 of file KoMainWindow.cpp. |
|
Show a dialog with author and document information.
Definition at line 1142 of file KoMainWindow.cpp. |
|
Slot for eMailing the document using KMail. This is a very simple extension that will allow any document that is currently being edited to be emailed using KMail. Definition at line 1568 of file KoMainWindow.cpp. |
|
File --> Export. This will call slotFileSaveAs(). To differentiate this from an ordinary call to slotFileSaveAs() call isExporting(). Definition at line 1662 of file KoMainWindow.cpp. |
|
Closes the document.
Definition at line 1163 of file KoMainWindow.cpp. |
|
Slot for opening a new document. If the current document is empty, the new document replaces it. If not, a new shell will be opened for showing the document. Definition at line 1094 of file KoMainWindow.cpp. |
|
Slot for opening a saved file. If the current document is empty, the opened document replaces it. If not a new shell will be opened for showing the opened file. Definition at line 1099 of file KoMainWindow.cpp. |
|
Slot for opening a file among the recently opened files. If the current document is empty, the opened document replaces it. If not a new shell will be opened for showing the opened file. Definition at line 1125 of file KoMainWindow.cpp. |
|
Prints the actual document.
Definition at line 1215 of file KoMainWindow.cpp. |
|
Show a print preview.
Definition at line 1220 of file KoMainWindow.cpp. |
|
Closes the shell.
Definition at line 1175 of file KoMainWindow.cpp. |
|
Saves the current document with the current name.
Definition at line 1130 of file KoMainWindow.cpp. |
|
Saves the current document with a new name.
Definition at line 1136 of file KoMainWindow.cpp. |
|
File --> Import. This will call slotFileOpen(). To differentiate this from an ordinary call to slotFileOpen() call isImporting(). Definition at line 1653 of file KoMainWindow.cpp. |
|
Post toolbar config. (Plug action lists back in, etc.) Definition at line 1269 of file KoMainWindow.cpp. |
|
Reload file.
Definition at line 1628 of file KoMainWindow.cpp. |
|
View splitting stuff.
Definition at line 1339 of file KoMainWindow.cpp. |
|
Shows or hides a toolbar.
Definition at line 1290 of file KoMainWindow.cpp. |
|
This will call a dialogbox to add version to list of files.
Definition at line 1621 of file KoMainWindow.cpp. |
|
Get hold of the label in the statusbar, to write messages to it. You can also insert other items in the status bar by using QStatusBar::addWidget. Definition at line 1543 of file KoMainWindow.cpp. |
|
Definition at line 1309 of file KoMainWindow.cpp. |
|
Updates the window caption based on the document info and path.
Definition at line 519 of file KoMainWindow.cpp. |
|
Update caption from document info - call when document info (title in the about page) changes.
Definition at line 490 of file KoMainWindow.cpp. |
The documentation for this class was generated from the following files: