KoMainWindow.h
virtual TDEInstance * instance() const
bool isImporting() const
Returns whether or not the current slotFileOpen() or openDocument() call is actually an import operat...
Definition KoMainWindow.cpp:1694
virtual void slotToolbarToggled(bool toggle)
Shows or hides a toolbar.
Definition KoMainWindow.cpp:1313
virtual void slotDocumentInfo()
Show a dialog with author and document information.
Definition KoMainWindow.cpp:1160
void setRootDocumentDirect(KoDocument *doc, const TQPtrList< KoView > &views)
Special method for KOShell, to allow switching the root document (and its views) among a set of them.
Definition KoMainWindow.cpp:428
bool isExporting() const
Returns whether or not the current slotFileSave[As]() or saveDocument() call is actually an export op...
Definition KoMainWindow.cpp:1699
virtual bool saveDocument(bool saveas=false, bool silent=false)
Saves the document, asking for a filename if necessary.
Definition KoMainWindow.cpp:725
void setDocToOpen(KoDocument *doc)
This is used to handle the document used at start up before it actually added as root document.
Definition KoMainWindow.cpp:1704
virtual void setRootDocument(KoDocument *doc)
Called when a document is assigned to this mainwindow.
Definition KoMainWindow.cpp:354
TQLabel * statusBarLabel()
Get hold of the label in the statusbar, to write messages to it.
Definition KoMainWindow.cpp:1566
virtual void slotFileSave()
Saves the current document with the current name.
Definition KoMainWindow.cpp:1148
void saveDialogShown()
This signals is emmitted before the save dialog is shown.
virtual void slotFileSaveAs()
Saves the current document with a new name.
Definition KoMainWindow.cpp:1154
virtual void slotFileOpenRecent(const KURL &)
Slot for opening a file among the recently opened files.
Definition KoMainWindow.cpp:1143
void slotVersionsFile()
This will call a dialogbox to add version to list of files.
Definition KoMainWindow.cpp:1644
void showToolbar(const char *tbName, bool shown)
The application should call this to show or hide a toolbar.
Definition KoMainWindow.cpp:1338
virtual KoDocument * rootDocument() const
Retrieves the document that is displayed in the mainwindow.
Definition KoMainWindow.cpp:534
bool toolbarIsVisible(const char *tbName)
Definition KoMainWindow.cpp:1332
void setMaxRecentItems(uint _number)
Sets the maximum number of recent documents entries.
Definition KoMainWindow.cpp:1576
virtual bool openDocument(const KURL &url)
Load the desired document and show it.
Definition KoMainWindow.cpp:551
void addRecentURL(const KURL &url)
The document opened a URL -> store into recent documents list.
Definition KoMainWindow.cpp:443
virtual void updateCaption()
Update caption from document info - call when document info (title in the about page) changes.
Definition KoMainWindow.cpp:499
void chooseNewDocument(int initDocFlags)
Helper method for slotFileNew and slotFileClose.
Definition KoMainWindow.cpp:1081
void documentSaved()
This signal is emitted if the document has been saved successfully.
virtual bool queryClose()
virtual void closeEvent(TQCloseEvent *)
