#include <KoMainWindow.h>
Graphe de collaboration de KoMainWindow:
Connecteurs publics | |
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 () |
Signaux | |
void | documentSaved () |
void | saveDialogShown () |
This signals is emmitted before the save dialog is shown. | |
Fonctions membres publiques | |
KoMainWindow (KInstance *instance) | |
~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) |
void | reloadRecentFileList () |
virtual void | updateCaption (const QString &caption, bool mod) |
void | updateReloadFileAction (KoDocument *doc) |
void | updateVersionsFileAction (KoDocument *doc) |
void | setReadWrite (bool readwrite) |
QDockWidget * | createDockWidget (KoDockFactory *factory) |
Connecteurs protégés | |
virtual void | slotActivePartChanged (KParts::Part *newPart) |
Fonctions membres protégées | |
void | chooseNewDocument (intinitDocFlags) |
Helper method for slotFileNew and slotFileClose. | |
void | setRootDocumentDirect (KoDocument *doc, const Q3PtrList< 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 |
Connecteurs privés | |
void | slotProgress (int value) |
void | slotLoadCompleted () |
void | slotLoadCanceled (const QString &) |
void | slotSaveCompleted () |
void | slotSaveCanceled (const QString &) |
Fonctions membres privées | |
bool | exportConfirmation (const QByteArray &outputFormat) |
void | saveWindowSettings () |
Attributs privés | |
KRecentFilesAction * | m_recent |
KoMainWindowPrivate * | d |
This class is used to represent a main window of a KOffice component. Each main window contains a menubar and some toolbars.
Définition à la ligne 59 du fichier KoMainWindow.h.
KoMainWindow::KoMainWindow | ( | KInstance * | instance | ) |
Constructor.
Initializes a KOffice main window (with its basic GUI etc.).
Définition à la ligne 199 du fichier KoMainWindow.cpp.
Références KoMainWindowPrivate::bMainWindowGUIBuilt, d, KoMainWindowPrivate::m_exportFile, KoMainWindowPrivate::m_importFile, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_orientation, KoMainWindowPrivate::m_paCloseFile, KoMainWindowPrivate::m_paDocInfo, KoMainWindowPrivate::m_paPrint, KoMainWindowPrivate::m_paPrintPreview, KoMainWindowPrivate::m_paSave, KoMainWindowPrivate::m_paSaveAs, m_recent, KoMainWindowPrivate::m_reloadfile, KoMainWindowPrivate::m_removeView, KoMainWindowPrivate::m_sendfile, KoMainWindowPrivate::m_splitter, KoMainWindowPrivate::m_splitViewActionList, KoMainWindowPrivate::m_versionsfile, KoMainWindowPrivate::m_veryHackyActionList, slotActivePartChanged(), slotCloseAllViews(), slotConfigureKeys(), slotConfigureToolbars(), slotDocumentInfo(), slotEmailFile(), slotExportFile(), slotFileClose(), slotFileNew(), slotFileOpen(), slotFileOpenRecent(), slotFilePrint(), slotFilePrintPreview(), slotFileQuit(), slotFileSave(), slotFileSaveAs(), slotImportFile(), slotReloadFile(), slotRemoveView(), slotSetOrientation(), slotSplitView(), et slotVersionsFile().
Référencé par chooseNewDocument(), et slotLoadCompleted().
Voici le graphe d'appel pour cette fonction :
KoMainWindow::~KoMainWindow | ( | ) |
Destructor.
Définition à la ligne 331 du fichier KoMainWindow.cpp.
Références d, KoDocument::isEmbedded(), KoMainWindowPrivate::m_activeView, KoMainWindowPrivate::m_docToOpen, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_rootViews, KoDocument::removeShell(), et KoDocument::viewCount().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::setRootDocument | ( | KoDocument * | doc | ) | [virtual] |
Called when a document is assigned to this mainwindow. This creates a view for this document, makes it the active part, etc.
Définition à la ligne 366 du fichier KoMainWindow.cpp.
Références KoDocument::addShell(), KoView::createShapeSelector(), KoView::createToolBox(), KoDocument::createView(), d, KoMainWindowPrivate::m_dockWidgetMap, KoMainWindowPrivate::m_docToOpen, KoMainWindowPrivate::m_exportFile, KoMainWindowPrivate::m_importFile, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_orientation, KoMainWindowPrivate::m_paCloseFile, KoMainWindowPrivate::m_paDocInfo, KoMainWindowPrivate::m_paPrint, KoMainWindowPrivate::m_paPrintPreview, KoMainWindowPrivate::m_paSave, KoMainWindowPrivate::m_paSaveAs, KoMainWindowPrivate::m_removeView, KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_rootViews, KoMainWindowPrivate::m_sendfile, KoMainWindowPrivate::m_shapeSelector, KoMainWindowPrivate::m_splitter, KoMainWindowPrivate::m_toolBox, KoDocument::removeShell(), KoView::setPartManager(), KoDocument::shells(), updateCaption(), et KoDocument::viewCount().
Référencé par chooseNewDocument(), closeEvent(), KoView::newView(), openDocument(), slotCloseAllViews(), slotFileClose(), slotLoadCompleted(), slotReloadFile(), et KoApplication::start().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::setDocToOpen | ( | KoDocument * | doc | ) |
This is used to handle the document used at start up before it actually added as root document.
Définition à la ligne 1739 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_docToOpen.
Référencé par KoDocument::showStartUpWidget().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::updateCaption | ( | ) | [virtual] |
Update caption from document info - call when document info (title in the about page) changes.
Définition à la ligne 536 du fichier KoMainWindow.cpp.
Références KoDocumentInfo::aboutInfo(), d, KoDocument::documentInfo(), KoMainWindowPrivate::m_paSave, KoMainWindowPrivate::m_readOnly, KoMainWindowPrivate::m_rootDoc, et rootDocument().
Référencé par openDocument(), setReadWrite(), et setRootDocument().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KoDocument * KoMainWindow::rootDocument | ( | ) | const [virtual] |
Retrieves the document that is displayed in the mainwindow.
Définition à la ligne 572 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_rootDoc.
Référencé par chooseNewDocument(), exportConfirmation(), queryClose(), saveDocument(), saveWindowSettings(), slotConfigureToolbars(), slotDocumentInfo(), slotEmailFile(), slotLoadCompleted(), slotNewToolbarConfig(), slotReloadFile(), slotToolbarToggled(), slotVersionsFile(), et updateCaption().
Voici le graphe d'appel pour cette fonction :
KoView * KoMainWindow::rootView | ( | ) | const [virtual] |
Définition à la ligne 577 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_activeView, et KoMainWindowPrivate::m_rootViews.
Référencé par print(), et slotFilePrintPreview().
Voici le graphe d'appel pour cette fonction :
KParts::PartManager * KoMainWindow::partManager | ( | ) | [virtual] |
Définition à la ligne 584 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_manager.
void KoMainWindow::print | ( | bool | quick | ) |
Prints the document
quick | whether the print setup dialog is to be displayed |
Définition à la ligne 1234 du fichier KoMainWindow.cpp.
Références KoDocumentInfo::aboutInfo(), KoDocument::documentInfo(), KoView::koDocument(), KoView::print(), rootView(), et KoView::setupPrinter().
Référencé par slotFilePrint(), et KoApplication::start().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::showToolbar | ( | const char * | tbName, | |
bool | shown | |||
) |
The application should call this to show or hide a toolbar. It also takes care of the corresponding action in the settings menu.
Définition à la ligne 1371 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_toolbarList.
bool KoMainWindow::toolbarIsVisible | ( | const char * | tbName | ) |
tbName
is visible Définition à la ligne 1365 du fichier KoMainWindow.cpp.
QLabel * KoMainWindow::statusBarLabel | ( | ) |
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.
Définition à la ligne 1597 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::statusBarLabel.
void KoMainWindow::setMaxRecentItems | ( | uint | _number | ) |
Sets the maximum number of recent documents entries.
Définition à la ligne 1607 du fichier KoMainWindow.cpp.
Références m_recent.
void KoMainWindow::addRecentURL | ( | const KUrl & | url | ) |
The document opened a URL -> store into recent documents list.
Définition à la ligne 482 du fichier KoMainWindow.cpp.
Références m_recent, et saveRecentFiles().
Référencé par saveDocument().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::openDocument | ( | const KUrl & | url | ) | [virtual] |
Load the desired document and show it.
url | the URL to open |
Définition à la ligne 589 du fichier KoMainWindow.cpp.
Références m_recent, openDocumentInternal(), et saveRecentFiles().
Référencé par slotFileOpen(), slotFileOpenRecent(), KoVersionDialog::slotOpen(), slotReloadFile(), et KoApplication::start().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::openDocument | ( | KoDocument * | newdoc, | |
const KUrl & | url | |||
) |
Load the URL into this document (and make it root doc after loading)
Special method for KoApplication::start, don't use.
Définition à la ligne 602 du fichier KoMainWindow.cpp.
Références KoDocument::checkAutoSaveFile(), KoDocument::initEmpty(), KoDocument::nativeFormatMimeType(), openDocumentInternal(), KoDocument::setFile(), KoDocument::setMimeTypeAfterLoading(), setRootDocument(), KoDocument::setURL(), et updateCaption().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::reloadRecentFileList | ( | ) |
Reloads the recent documents list.
Définition à la ligne 523 du fichier KoMainWindow.cpp.
Références m_recent.
Référencé par saveRecentFiles().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::updateCaption | ( | const QString & | caption, | |
bool | mod | |||
) | [virtual] |
Updates the window caption based on the document info and path.
Définition à la ligne 566 du fichier KoMainWindow.cpp.
void KoMainWindow::updateReloadFileAction | ( | KoDocument * | doc | ) |
Définition à la ligne 448 du fichier KoMainWindow.cpp.
Références d, KoDocument::isEmpty(), et KoMainWindowPrivate::m_reloadfile.
Référencé par openDocumentInternal().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::updateVersionsFileAction | ( | KoDocument * | doc | ) |
Définition à la ligne 453 du fichier KoMainWindow.cpp.
Références d, KoDocument::isEmpty(), KoMainWindowPrivate::m_versionsfile, KoDocument::nativeOasisMimeType(), et KoDocument::outputMimeType().
Référencé par openDocumentInternal().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::setReadWrite | ( | bool | readwrite | ) |
Définition à la ligne 459 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_importFile, KoMainWindowPrivate::m_paSave, KoMainWindowPrivate::m_readOnly, et updateCaption().
Voici le graphe d'appel pour cette fonction :
QDockWidget * KoMainWindow::createDockWidget | ( | KoDockFactory * | factory | ) |
Définition à la ligne 1744 du fichier KoMainWindow.cpp.
Références KoDockFactory::createDockWidget(), d, KoDockFactory::defaultDockWidgetArea(), KoDockFactory::dockId(), et KoMainWindowPrivate::m_dockWidgetMap.
Référencé par KoView::createDockWidget().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::documentSaved | ( | ) | [signal] |
This signal is emitted if the document has been saved successfully.
Référencé par slotFileSave(), et slotFileSaveAs().
void KoMainWindow::saveDialogShown | ( | ) | [signal] |
void KoMainWindow::slotEmailFile | ( | ) | [slot] |
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.
Définition à la ligne 1622 du fichier KoMainWindow.cpp.
Références KoDocument::isModified(), KoDocument::outputMimeType(), rootDocument(), saveDocument(), KoDocument::setModified(), KoDocument::setOutputMimeType(), et KoDocument::setURL().
Référencé par KoMainWindow().
void KoMainWindow::slotFileNew | ( | ) | [virtual, slot] |
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.
Définition à la ligne 1147 du fichier KoMainWindow.cpp.
Références chooseNewDocument(), et KoDocument::InitDocFileNew.
Référencé par KoMainWindow().
void KoMainWindow::slotFileOpen | ( | ) | [virtual, slot] |
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.
Définition à la ligne 1152 du fichier KoMainWindow.cpp.
Références testguiqt::dialog, KoFilterManager::Import, isImporting(), KoFilterManager::mimeFilter(), openDocument(), KoDocument::readExtraNativeMimeTypes(), et KoDocument::readNativeFormatMimeType().
Référencé par KoMainWindow(), et slotImportFile().
void KoMainWindow::slotFileOpenRecent | ( | const KUrl & | ) | [virtual, slot] |
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.
Définition à la ligne 1180 du fichier KoMainWindow.cpp.
Références openDocument().
Référencé par KoMainWindow().
void KoMainWindow::slotFileSave | ( | ) | [virtual, slot] |
Saves the current document with the current name.
Définition à la ligne 1185 du fichier KoMainWindow.cpp.
Références documentSaved(), et saveDocument().
Référencé par KoMainWindow().
void KoMainWindow::slotFileSaveAs | ( | ) | [virtual, slot] |
Saves the current document with a new name.
Définition à la ligne 1191 du fichier KoMainWindow.cpp.
Références documentSaved(), et saveDocument().
Référencé par KoMainWindow(), et slotExportFile().
void KoMainWindow::slotFilePrint | ( | ) | [virtual, slot] |
Prints the actual document.
Définition à la ligne 1269 du fichier KoMainWindow.cpp.
Références print().
Référencé par KoMainWindow().
void KoMainWindow::slotFilePrintPreview | ( | ) | [slot] |
Show a print preview
Définition à la ligne 1274 du fichier KoMainWindow.cpp.
Références KoView::print(), rootView(), et KoView::setupPrinter().
Référencé par KoMainWindow().
void KoMainWindow::slotDocumentInfo | ( | ) | [virtual, slot] |
Show a dialog with author and document information.
Définition à la ligne 1197 du fichier KoMainWindow.cpp.
Références KoDocument::documentInfo(), rootDocument(), KoDocument::setModified(), et KoDocument::setTitleModified().
Référencé par KoMainWindow().
void KoMainWindow::slotFileClose | ( | ) | [virtual, slot] |
Closes the document.
Définition à la ligne 1217 du fichier KoMainWindow.cpp.
Références chooseNewDocument(), d, KoDocument::InitDocFileClose, KoMainWindowPrivate::m_rootDoc, queryClose(), saveWindowSettings(), et setRootDocument().
Référencé par KoMainWindow().
void KoMainWindow::slotFileQuit | ( | ) | [virtual, slot] |
Closes the shell.
Définition à la ligne 1229 du fichier KoMainWindow.cpp.
Référencé par KoMainWindow().
void KoMainWindow::slotConfigureKeys | ( | ) | [virtual, slot] |
Configure key bindings.
Définition à la ligne 1311 du fichier KoMainWindow.cpp.
Référencé par KoMainWindow().
void KoMainWindow::slotConfigureToolbars | ( | ) | [virtual, slot] |
Configure toolbars.
Définition à la ligne 1316 du fichier KoMainWindow.cpp.
Références rootDocument(), et slotNewToolbarConfig().
Référencé par KoMainWindow().
void KoMainWindow::slotNewToolbarConfig | ( | ) | [virtual, slot] |
Post toolbar config. (Plug action lists back in, etc.)
Définition à la ligne 1325 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_activeView, KoMainWindowPrivate::m_rootViews, KoMainWindowPrivate::m_splitViewActionList, KoMainWindowPrivate::m_toolbarList, KoMainWindowPrivate::m_veryHackyActionList, et rootDocument().
Référencé par slotConfigureToolbars().
void KoMainWindow::slotToolbarToggled | ( | bool | toggle | ) | [virtual, slot] |
Shows or hides a toolbar
Définition à la ligne 1346 du fichier KoMainWindow.cpp.
Références rootDocument().
Référencé par slotActivePartChanged().
void KoMainWindow::slotSplitView | ( | ) | [virtual, slot] |
View splitting stuff
Définition à la ligne 1394 du fichier KoMainWindow.cpp.
Références KoDocument::createView(), d, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_orientation, KoMainWindowPrivate::m_removeView, KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_rootViews, KoMainWindowPrivate::m_splitted, et KoMainWindowPrivate::m_splitter.
Référencé par KoMainWindow().
void KoMainWindow::slotRemoveView | ( | ) | [virtual, slot] |
Définition à la ligne 1429 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_activeView, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_orientation, KoMainWindowPrivate::m_removeView, KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_rootViews, et KoMainWindowPrivate::m_splitted.
Référencé par KoMainWindow().
void KoMainWindow::slotSetOrientation | ( | ) | [virtual, slot] |
Définition à la ligne 1457 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_orientation, et KoMainWindowPrivate::m_splitter.
Référencé par KoMainWindow().
void KoMainWindow::slotCloseAllViews | ( | ) | [virtual, slot] |
Close all views
Définition à la ligne 1404 du fichier KoMainWindow.cpp.
Références d, KoDocument::isEmbedded(), KoMainWindowPrivate::m_forQuit, KoMainWindowPrivate::m_rootDoc, queryClose(), KoDocument::removeShell(), setRootDocument(), et KoDocument::shells().
Référencé par KoMainWindow().
void KoMainWindow::slotReloadFile | ( | ) | [slot] |
Reload file
Définition à la ligne 1686 du fichier KoMainWindow.cpp.
Références d, KoDocument::isEmpty(), KoDocument::isModified(), KoMainWindowPrivate::m_rootDoc, openDocument(), rootDocument(), et setRootDocument().
Référencé par KoMainWindow().
void KoMainWindow::slotVersionsFile | ( | ) | [slot] |
This will call a dialogbox to add version to list of files
Définition à la ligne 1677 du fichier KoMainWindow.cpp.
Références rootDocument().
Référencé par KoMainWindow().
void KoMainWindow::slotImportFile | ( | ) | [slot] |
File --> Import
This will call slotFileOpen(). To differentiate this from an ordinary call to slotFileOpen() call isImporting().
Définition à la ligne 1711 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_isImporting, et slotFileOpen().
Référencé par KoMainWindow().
void KoMainWindow::slotExportFile | ( | ) | [slot] |
File --> Export
This will call slotFileSaveAs(). To differentiate this from an ordinary call to slotFileSaveAs() call isExporting().
Définition à la ligne 1720 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_isExporting, et slotFileSaveAs().
Référencé par KoMainWindow().
void KoMainWindow::chooseNewDocument | ( | intinitDocFlags | ) | [protected] |
Helper method for slotFileNew and slotFileClose.
Définition à la ligne 1113 du fichier KoMainWindow.cpp.
Références KoDocument::addShell(), createDoc(), d, KoDocument::InitDocFileNew, KoDocument::isEmpty(), KoMainWindow(), KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_toolBox, rootDocument(), setRootDocument(), KoDocument::showStartUpWidget(), et slotProgress().
Référencé par slotFileClose(), et slotFileNew().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::setRootDocumentDirect | ( | KoDocument * | doc, | |
const Q3PtrList< KoView > & | views | |||
) | [protected] |
Special method for KOShell, to allow switching the root document (and its views) among a set of them.
Définition à la ligne 467 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_exportFile, KoMainWindowPrivate::m_paCloseFile, KoMainWindowPrivate::m_paDocInfo, KoMainWindowPrivate::m_paPrint, KoMainWindowPrivate::m_paPrintPreview, KoMainWindowPrivate::m_paSave, KoMainWindowPrivate::m_paSaveAs, KoMainWindowPrivate::m_rootDoc, KoMainWindowPrivate::m_rootViews, et KoMainWindowPrivate::m_sendfile.
KoDocument * KoMainWindow::createDoc | ( | ) | const [protected, virtual] |
Create a new empty document.
Définition à la ligne 529 du fichier KoMainWindow.cpp.
Références KoDocumentEntry::createDoc(), et KoDocument::readNativeService().
Référencé par chooseNewDocument(), et openDocumentInternal().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::saveDocument | ( | bool | saveas = false , |
|
bool | silent = false | |||
) | [protected, virtual] |
Saves the document, asking for a filename if necessary.
saveas | if set to TRUE the user is always prompted for a filename | |
silent | if set to TRUE rootDocument()->setTitleModified will not be called. |
Définition à la ligne 761 du fichier KoMainWindow.cpp.
Références addRecentURL(), KoDocument::confirmNonNativeSave(), d, testguiqt::dialog, KoDocument::exp0rt(), KoFilterManager::Export, exportConfirmation(), KoDocument::extraNativeMimeTypes(), KoDocument::file(), KoDocument::isEmpty(), isExporting(), KoDocument::isNativeFormat(), KoMainWindowPrivate::m_lastExportFormat, KoMainWindowPrivate::m_lastExportSpecialOutputFlag, KoMainWindowPrivate::m_lastExportURL, KoFilterManager::mimeFilter(), KoDocument::mimeType(), KoDocument::nativeFormatMimeType(), KoDocument::outputMimeType(), KoDocument::resetURL(), rootDocument(), saveDialogShown(), KoDocument::setFile(), KoDocument::setModified(), KoDocument::setOutputMimeType(), KoDocument::setTitleModified(), KoDocument::setURL(), slotProgress(), slotSaveCanceled(), slotSaveCompleted(), KoDocument::specialOutputFlag(), et KoDocument::supportedSpecialFormats().
Référencé par queryClose(), slotEmailFile(), slotFileSave(), et slotFileSaveAs().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
Définition à la ligne 1022 du fichier KoMainWindow.cpp.
Références queryClose(), saveWindowSettings(), et setRootDocument().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Définition à la ligne 1047 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_windowSizeDirty.
bool KoMainWindow::queryClose | ( | ) | [protected, virtual] |
Ask user about saving changes to the document upon exit.
Définition à la ligne 1053 du fichier KoMainWindow.cpp.
Références KoDocumentInfo::aboutInfo(), d, KoDocument::documentInfo(), KoDocument::isEmbedded(), KoDocument::isModified(), KoMainWindowPrivate::m_forQuit, KoMainWindowPrivate::m_rootDoc, KoPageFormat::name(), KoDocument::nativeFormatMimeType(), KoDocument::outputMimeType(), KoDocument::queryCloseExternalChildren(), KoDocument::removeAutoSaveFiles(), rootDocument(), saveDocument(), KoDocument::setDoNotSaveExtDoc(), et KoDocument::setModified().
Référencé par closeEvent(), slotCloseAllViews(), et slotFileClose().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::openDocumentInternal | ( | const KUrl & | url, | |
KoDocument * | newdoc = 0L | |||
) | [protected, virtual] |
Définition à la ligne 626 du fichier KoMainWindow.cpp.
Références KoDocument::addShell(), createDoc(), d, KoDocument::import(), isImporting(), KoMainWindowPrivate::m_firstTime, KoDocument::mimeType(), KoDocument::openURL(), KoDocument::removeShell(), KoDocument::setReadWrite(), slotLoadCanceled(), slotLoadCompleted(), slotProgress(), updateReloadFileAction(), et updateVersionsFileAction().
Référencé par openDocument().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::isExporting | ( | ) | const [protected] |
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().
Définition à la ligne 1734 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_isExporting.
Référencé par exportConfirmation(), et saveDocument().
Voici le graphe d'appel pour cette fonction :
bool KoMainWindow::isImporting | ( | ) | const [protected] |
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().
Définition à la ligne 1729 du fichier KoMainWindow.cpp.
Références d, et KoMainWindowPrivate::m_isImporting.
Référencé par openDocumentInternal(), et slotFileOpen().
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::saveRecentFiles | ( | ) | [protected] |
Save the list of recent files.
Définition à la ligne 509 du fichier KoMainWindow.cpp.
Références m_recent, et reloadRecentFileList().
Référencé par addRecentURL(), et openDocument().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
KRecentFilesAction* KoMainWindow::recentAction | ( | ) | const [inline, protected] |
Définition à la ligne 368 du fichier KoMainWindow.h.
bool KoMainWindow::exportConfirmation | ( | const QByteArray & | outputFormat | ) | [private] |
Asks the user if they really want to save the document. Called only if outputFormat != nativeFormat.
Définition à la ligne 723 du fichier KoMainWindow.cpp.
Références isExporting(), et rootDocument().
Référencé par saveDocument().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::saveWindowSettings | ( | ) | [private] |
Définition à la ligne 1030 du fichier KoMainWindow.cpp.
Références d, KoMainWindowPrivate::m_windowSizeDirty, et rootDocument().
Référencé par closeEvent(), et slotFileClose().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void KoMainWindow::slotActivePartChanged | ( | KParts::Part * | newPart | ) | [protected, virtual, slot] |
Définition à la ligne 1504 du fichier KoMainWindow.cpp.
Références KoMainWindowPrivate::bMainWindowGUIBuilt, d, KoMainWindowPrivate::m_activePart, KoMainWindowPrivate::m_activeView, KoMainWindowPrivate::m_manager, KoMainWindowPrivate::m_rootViews, KoMainWindowPrivate::m_splitted, KoMainWindowPrivate::m_splitViewActionList, KoMainWindowPrivate::m_toolbarList, KoMainWindowPrivate::m_veryHackyActionList, et slotToolbarToggled().
Référencé par KoMainWindow().
void KoMainWindow::slotProgress | ( | int | value | ) | [private, slot] |
Définition à la ligne 1462 du fichier KoMainWindow.cpp.
Références d, KoPageFormat::height(), KoMainWindowPrivate::m_firstTime, et KoMainWindowPrivate::m_progress.
Référencé par chooseNewDocument(), openDocumentInternal(), saveDocument(), slotLoadCanceled(), slotLoadCompleted(), et slotSaveCompleted().
void KoMainWindow::slotLoadCompleted | ( | ) | [private, slot] |
Définition à la ligne 657 du fichier KoMainWindow.cpp.
Références KoDocument::isEmbedded(), KoDocument::isEmpty(), KoMainWindow(), KoDocument::removeShell(), rootDocument(), setRootDocument(), slotLoadCanceled(), et slotProgress().
Référencé par openDocumentInternal(), et slotLoadCanceled().
void KoMainWindow::slotLoadCanceled | ( | const QString & | ) | [private, slot] |
Définition à la ligne 688 du fichier KoMainWindow.cpp.
Références KoDocument::removeShell(), slotLoadCompleted(), et slotProgress().
Référencé par openDocumentInternal(), et slotLoadCompleted().
void KoMainWindow::slotSaveCompleted | ( | ) | [private, slot] |
Définition à la ligne 712 du fichier KoMainWindow.cpp.
Références slotProgress(), et slotSaveCanceled().
Référencé par saveDocument(), et slotSaveCanceled().
void KoMainWindow::slotSaveCanceled | ( | const QString & | ) | [private, slot] |
Définition à la ligne 704 du fichier KoMainWindow.cpp.
Références slotSaveCompleted().
Référencé par saveDocument(), et slotSaveCompleted().
KRecentFilesAction* KoMainWindow::m_recent [private] |
Définition à la ligne 382 du fichier KoMainWindow.h.
Référencé par addRecentURL(), KoMainWindow(), openDocument(), reloadRecentFileList(), saveRecentFiles(), et setMaxRecentItems().
KoMainWindowPrivate* KoMainWindow::d [private] |
Définition à la ligne 395 du fichier KoMainWindow.h.
Référencé par chooseNewDocument(), createDockWidget(), isExporting(), isImporting(), KoMainWindow(), openDocumentInternal(), partManager(), queryClose(), resizeEvent(), rootDocument(), rootView(), saveDocument(), saveWindowSettings(), setDocToOpen(), setReadWrite(), setRootDocument(), setRootDocumentDirect(), showToolbar(), slotActivePartChanged(), slotCloseAllViews(), slotExportFile(), slotFileClose(), slotImportFile(), slotNewToolbarConfig(), slotProgress(), slotReloadFile(), slotRemoveView(), slotSetOrientation(), slotSplitView(), statusBarLabel(), updateCaption(), updateReloadFileAction(), updateVersionsFileAction(), et ~KoMainWindow().