Référence de la classe KoDocument

The KOffice document class. Plus de détails...

#include <KoDocument.h>

Graphe d'héritage de KoDocument:

[légende]
Graphe de collaboration de KoDocument:
[légende]
Liste de tous les membres

Types publics

enum  { SaveAsDirectoryStore = 2, SaveAsFlatXML = 4 }
 Enum values used by specialOutputFlag - note that it's a bitfield for supportedSpecialFormats. Plus de détails...
enum  InitDocFlags {
  InitDocAppStarting, InitDocFileNew, InitDocFileClose, InitDocEmbedded,
  InitDocEmpty
}

Connecteurs publics

virtual void initEmpty ()

Signaux

void unitChanged (KoUnit::Unit)
void childChanged (KoDocumentChild *child)
void sigProgress (int value)
void sigStatusBarMessage (const QString &text)
void sigClearStatusBarMessage ()
void sigBeginOperation ()
void sigEndOperation ()
void modified (bool)
void closeEmbedInitDialog ()

Fonctions membres publiques

 KoDocument (QWidget *parentWidget, QObject *parent, bool singleViewMode=false)
virtual ~KoDocument ()
bool isSingleViewMode () const
bool isEmbedded () const
virtual KAction * action (const QDomElement &element) const
virtual QDomDocument domDocument () const
virtual void setManager (KParts::PartManager *manager)
virtual bool openURL (const KUrl &url)
bool import (const KUrl &url)
bool exp0rt (const KUrl &url)
virtual void setReadWrite (bool readwrite=true)
 Sets whether the document can be edited or is read only.
virtual QByteArray nativeFormatMimeType () const
QByteArray nativeOasisMimeType () const
bool isNativeFormat (const QByteArray &mimetype) const
 Checks whether a given mimetype can be handled natively.
virtual QStringList extraNativeMimeTypes () const
virtual int supportedSpecialFormats () const
QByteArray mimeType () const
void setMimeType (const QByteArray &mimeType)
 Sets the mime type for the document.
void setOutputMimeType (const QByteArray &mimeType, int specialOutputFlag=0)
 Set the format in which the document should be saved.
QByteArray outputMimeType () const
int specialOutputFlag () const
bool confirmNonNativeSave (const bool exporting) const
void setConfirmNonNativeSave (const bool exporting, const bool on)
virtual bool wantExportConfirmation () const
void setErrorMessage (const QString &errMsg)
QString errorMessage () const
void showSavingErrorDialog ()
void showLoadingErrorDialog ()
KoViewcreateView (QWidget *parent=0)
virtual void addView (KoView *view)
virtual void removeView (KoView *view)
const QList< KoView * > & views () const
int viewCount () const
virtual KParts::Part * hitTest (QWidget *widget, const QPoint &globalPos)
virtual KoDocumenthitTest (const QPoint &pos, KoView *view, const QMatrix &matrix=QMatrix())
virtual void paintEverything (QPainter &painter, const QRect &rect, bool transparent=false, KoView *view=0L, double zoomX=1.0, double zoomY=1.0)
virtual QPixmap generatePreview (const QSize &size)
 Generates a preview picture of the document.
virtual void paintChildren (QPainter &painter, const QRect &rect, KoView *view, double zoomX=1.0, double zoomY=1.0)
virtual void paintChild (KoDocumentChild *child, QPainter &painter, KoView *view, double zoomX=1.0, double zoomY=1.0)
virtual void paintContent (QPainter &painter, const QRect &rect, bool transparent=false, double zoomX=1.0, double zoomY=1.0)=0
bool checkAutoSaveFile ()
virtual void showStartUpWidget (KoMainWindow *parent, bool alwaysShow=false)
virtual void setModified (bool _mod)
virtual void setTitleModified ()
virtual bool isEmpty () const
virtual void setEmpty ()
 Sets the document to empty.
virtual bool loadFromStore (KoStore *store, const QString &url)
 Loads a document from a store.
virtual bool loadOasisFromStore (KoStore *store)
 Loads an OASIS document from a store. This is used for both the main document and embedded objects.
virtual bool saveToStore (KoStore *store, const QString &path)
 Saves a document to a store.
virtual bool loadXML (QIODevice *, const KoXmlDocument &doc)=0
virtual bool loadOasis (const KoXmlDocument &doc, KoOasisStyles &oasisStyles, const KoXmlDocument &settings, KoStore *store)=0
virtual bool saveOasis (KoStore *store, KoXmlWriter *manifestWriter)=0
virtual QDomDocument saveXML ()
QDomDocument createDomDocument (const QString &tagName, const QString &version) const
virtual bool saveToStream (QIODevice *dev)
virtual bool loadNativeFormat (const QString &file)
virtual bool saveNativeFormat (const QString &file)
void setAutoSave (int delay)
bool isAutosaving () const
void setCheckAutoSaveFile (bool b)
void setAutoErrorHandlingEnabled (bool b)
bool isAutoErrorHandlingEnabled () const
const Q3PtrList< KoDocumentChild > & children () const
KoDocumentChildchild (KoDocument *doc)
KoDocumentInfodocumentInfo () const
void setViewBuildDocument (KoView *view, const QDomDocument &doc)
QDomDocument viewBuildDocument (KoView *view)
virtual void addShell (KoMainWindow *shell)
virtual void removeShell (KoMainWindow *shell)
const Q3PtrList< KoMainWindow > & shells () const
int shellCount () const
void emitProgress (int value)
 Return a DCOP interface for this document.
bool isInOperation () const
virtual void emitBeginOperation ()
virtual void emitEndOperation ()
virtual bool isStoredExtern () const
virtual KoPageLayout pageLayout (int pageNumber=0) const
void removeAutoSaveFiles ()
void setBackupFile (bool _b)
bool backupFile () const
bool isModified () const
bool isLoading () const
int queryCloseExternalChildren ()
int queryCloseDia ()
void setDoNotSaveExtDoc (bool on=true)
 Set when we do not want to save external children when saving our 'main' doc.
void setBackupPath (const QString &_path)
QString backupPath () const
void setCurrent (bool on=true)
void forceCurrent (bool on)
bool isCurrent () const
void setTitleModified (const QString caption, bool mod)
void resetURL ()
void setStoreInternal (bool i)
bool storeInternal () const
bool hasExternURL () const
void setURL (const KUrl &url)
QString & file ()
void setFile (const QString &file)
void setMimeTypeAfterLoading (const QString &mimeType)
virtual int pageCount () const
virtual QList< KoTextDocument * > allTextDocuments () const
KoUnit::Unit unit () const
void setUnit (KoUnit::Unit u)
QString unitName () const
void setTemplateType (const QString &_templateType)
QString templateType () const
virtual bool showEmbedInitDialog (QWidget *parent)
QList< KoVersionInfo > & versionList ()
bool loadNativeFormatFromStore (QByteArray &data)
bool addVersion (const QString &comment)

Fonctions membres publiques statiques

static QByteArray readNativeFormatMimeType (KInstance *instance=0)
 Used by KoApplication, and by KoMainWindow, when no document exists yet.
static QStringList readExtraNativeMimeTypes (KInstance *instance=0)
static KService::Ptr readNativeService (KInstance *instance=0)
static void setupXmlReader (QXmlSimpleReader &reader, bool namespaceProcessing=false)
static KoXmlWritercreateOasisXmlWriter (QIODevice *dev, const char *rootElementName)
static QDomDocument createDomDocument (const QString &appName, const QString &tagName, const QString &version)
static QString tagNameToDocumentType (const QString &localName)
static int defaultAutoSave ()
static Q3PtrList< KoDocument > * documentList ()

Connecteurs protégés

virtual void openExistingFile (const KUrl &url)
virtual void openTemplate (const KUrl &url)
void deleteOpenPaneDelayed ()

Fonctions membres protégées

QString newObjectName ()
QString autoSaveFile (const QString &path) const
virtual KoViewcreateViewInstance (QWidget *parent)=0
virtual bool openFile ()
virtual bool saveFile ()
virtual QWidget * createCustomDocumentWidget (QWidget *parent)
virtual bool loadChildren (KoStore *)
virtual bool saveChildren (KoStore *store)
virtual bool saveChildrenOasis (KoStore *store, KoXmlWriter *manifestWriter)
virtual bool completeLoading (KoStore *store)
virtual bool completeSaving (KoStore *store)
virtual void insertChild (KoDocumentChild *child)
virtual void setModified ()
virtual bool saveExternalChildren ()
bool isImporting () const
bool isExporting () const
KoOpenPanecreateOpenPane (QWidget *parent, KInstance *instance, const QString &templateType=QString::null)

Attributs protégés

KoPageLayout m_pageLayout

Propriétés

bool backupFile []

Connecteurs privés

void slotChildChanged (KoChild *c)
void slotChildDestroyed ()
void slotAutoSave ()
void slotStarted (KIO::Job *)
void startCustomDocument ()
void deleteOpenPane ()

Fonctions membres privées

virtual void insertChild (QObject *)
KService::Ptr nativeService ()
bool oldLoadAndParse (KoStore *store, const QString &filename, KoXmlDocument &doc)
bool loadNativeFormatFromStore (const QString &file)
bool loadNativeFormatFromStoreInternal (KoStore *store)
bool savePreview (KoStore *store)
bool saveOasisPreview (KoStore *store, KoXmlWriter *manifestWriter)

Attributs privés

Privated
KService::Ptr m_nativeService
bool m_bEmpty

Attributs privés statiques

static Q3PtrList< KoDocument > * s_documentList
static const int s_defaultAutoSave

Classes

class  Private

Description détaillée

The KOffice document class.

The KOffice document class

This class provides some functionality each KOffice document should have.

Définition à la ligne 81 du fichier KoDocument.h.


Documentation des énumérations membres

anonymous enum

Enum values used by specialOutputFlag - note that it's a bitfield for supportedSpecialFormats.

Valeurs énumérées:
SaveAsDirectoryStore 
SaveAsFlatXML 

Définition à la ligne 252 du fichier KoDocument.h.

enum KoDocument::InitDocFlags

This setting indicates who is calling initDoc. Usually the app will want to

Valeurs énumérées:
InitDocAppStarting 
InitDocFileNew 
InitDocFileClose 
InitDocEmbedded 
InitDocEmpty 

Définition à la ligne 466 du fichier KoDocument.h.


Documentation des contructeurs et destructeur

KoDocument::KoDocument ( QWidget *  parentWidget,
QObject *  parent,
bool  singleViewMode = false 
)

Constructor. The first 4 arguments are the same as the ones passed to KParts::Factory::createPart.

Paramètres:
parentWidget the parent widget, in case we create a wrapper widget (in single view mode). Usually the first argument passed by KParts::Factory::createPart.
parent may be another KoDocument, or anything else. Usually the third argument of KParts::Factory::createPart.
singleViewMode determines whether the document may only have one view. In this case the parent must be a QWidget derived class. KoDocument will then create a wrapper widget (KoViewWrapperWidget) which is a child of parentWidget. This widget can be retrieved by calling widget().

Définition à la ligne 243 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_autoSaveTimer, m_bEmpty, KoDocument::Private::m_bSingleViewMode, KoDocument::Private::m_docInfo, m_pageLayout, KoDocument::Private::m_wrapperWidget, newObjectName(), KoPageLayout::ptBottom, KoPageLayout::ptHeight, KoPageLayout::ptLeft, KoPageLayout::ptRight, KoPageLayout::ptTop, KoPageLayout::ptWidth, s_defaultAutoSave, s_documentList, setAutoSave(), slotAutoSave(), et slotStarted().

Voici le graphe d'appel pour cette fonction :

KoDocument::~KoDocument (  )  [virtual]

Destructor.

The destructor does not delete any attached KoView objects and it does not delete the attached widget as returned by widget().

Définition à la ligne 292 du fichier KoDocument.cpp.

Références d, KoDocument::Private::filterManager, KoDocument::Private::m_autoSaveTimer, KoDocument::Private::m_children, KoDocument::Private::m_shells, KoDocument::Private::m_startUpWidget, KoDocument::Private::m_views, s_documentList, KoView::setDocumentDeleted(), et slotChildDestroyed().

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions membres

bool KoDocument::isSingleViewMode (  )  const

Tells whether this document is in singleview mode. This mode can only be set in the constructor.

Définition à la ligne 326 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_bSingleViewMode.

Référencé par KoDocumentChild::finishLoadingDocument(), et insertChild().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isEmbedded (  )  const

Is the document embedded?

Définition à la ligne 331 du fichier KoDocument.cpp.

Référencé par KPlato::Part::paintContent(), KPlato::Part::Part(), KoMainWindow::queryClose(), setAutoSave(), KoMainWindow::slotCloseAllViews(), KPlato::Part::slotCommandExecuted(), KoMainWindow::slotLoadCompleted(), et KoMainWindow::~KoMainWindow().

Voici le graphe d'appel pour cette fonction :

KAction * KoDocument::action ( const QDomElement &  element  )  const [virtual]

Returns the action described action object. In fact only the "name" attribute of element is of interest here. The method searches first in the KActionCollection of the first view and then in the KActionCollection of this document. This allows KOffice applications to define actions in both the view and the document. They should only define view-actions (like zooming and stuff) in the view. Every action which changes the document should be defined in the document.

Please notice that KoDocument indirectly inherits KXMLGUIClient.

Voir également:
KXMLGUIClient

KXMLGUIClient::actionCollection

KoView::action

Définition à la ligne 576 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_bSingleViewMode, et KoDocument::Private::m_views.

QDomDocument KoDocument::domDocument (  )  const [virtual]

Returns the DOM document which describes the GUI of the first view.

Définition à la ligne 591 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_bSingleViewMode, et KoDocument::Private::m_views.

void KoDocument::setManager ( KParts::PartManager *  manager  )  [virtual]

Définition à la ligne 602 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_bSingleViewMode, KoDocument::Private::m_children, et KoDocument::Private::m_views.

bool KoDocument::openURL ( const KUrl &  url  )  [virtual]

Reimplemented from KParts::ReadWritePart for internal reasons (for the autosave functionality)

Définition à la ligne 1377 du fichier KoDocument.cpp.

Références autoSaveFile(), d, file(), KoDocument::Private::lastErrorMessage, KoDocument::Private::m_bLoading, KoDocument::Private::m_shells, KoDocument::Private::m_shouldCheckAutoSaveFile, et resetURL().

Référencé par checkAutoSaveFile(), KoDocumentChild::finishLoadingDocument(), import(), KoMainWindow::openDocumentInternal(), openExistingFile(), KoDocumentAdaptor::openURL(), et KoVersionDialog::slotOpen().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::import ( const KUrl &  url  ) 

Opens the document given by url, without storing the URL in the KoDocument. Call this instead of openURL() to implement KoMainWindow's File --> Import feature.

Note:
This will call openURL(). To differentiate this from an ordinary Open operation (in any reimplementation of openURL() or openFile()) call isImporting().

Définition à la ligne 1353 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_isImporting, openURL(), resetURL(), et setTitleModified().

Référencé par KoMainWindow::openDocumentInternal().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::exp0rt ( const KUrl &  url  ) 

Saves the document as url without changing the state of the KoDocument (URL, modified flag etc.). Call this instead of KParts::ReadWritePart::saveAs() to implement KoMainWindow's File --> Export feature.

Note:
This will call KoDocument::saveAs(). To differentiate this from an ordinary Save operation (in any reimplementation of saveFile()) call isExporting().

Définition à la ligne 343 du fichier KoDocument.cpp.

Références d, isModified(), KoDocument::Private::m_isExporting, KoDocument::Private::mimeType, mimeType(), et setModified().

Référencé par KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::setReadWrite ( bool  readwrite = true  )  [virtual]

Sets whether the document can be edited or is read only.

This recursively applied to all child documents and KoView::updateReadWrite is called for every attached view.

Définition à la ligne 617 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_autoSaveDelay, KoDocument::Private::m_children, KoDocument::Private::m_shells, KoDocument::Private::m_views, setAutoSave(), et KoView::updateReadWrite().

Référencé par KPlato::Factory::createPartObject(), et KoMainWindow::openDocumentInternal().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QByteArray KoDocument::readNativeFormatMimeType ( KInstance *  instance = 0  )  [static]

Used by KoApplication, and by KoMainWindow, when no document exists yet.

With the help of instance or KApplication::instance() this method figures out which .desktop file matches this application. In this file it searches for the "X-KDE-NativeMimeType" entry and returns it.

Voir également:
KService

KDesktopFile

Définition à la ligne 2381 du fichier KoDocument.cpp.

Références readNativeService().

Référencé par KoTemplateChooseDia::choose(), KoOpenPane::showOpenFileDialog(), et KoMainWindow::slotFileOpen().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QStringList KoDocument::readExtraNativeMimeTypes ( KInstance *  instance = 0  )  [static]

Used by KoMainWindow, when no document exists yet.

With the help of instance or KApplication::instance() this method figures out which .desktop file matches this application. In this file it searches for the "X-KDE-ExtraNativeMimeTypes" entry and returns it.

Voir également:
KService

KDesktopFile

Définition à la ligne 2403 du fichier KoDocument.cpp.

Références readNativeService().

Référencé par KoTemplateChooseDia::choose(), KoOpenPane::showOpenFileDialog(), et KoMainWindow::slotFileOpen().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KService::Ptr KoDocument::readNativeService ( KInstance *  instance = 0  )  [static]

With the help of instance or KApplication::instance() this method figures out which .desktop file matches this application, and returns the KService instance for it.

Définition à la ligne 2357 du fichier KoDocument.cpp.

Référencé par KoMainWindow::createDoc(), nativeService(), readExtraNativeMimeTypes(), readNativeFormatMimeType(), KoVersionDialog::slotOpen(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setupXmlReader ( QXmlSimpleReader &  reader,
bool  namespaceProcessing = false 
) [static]

setup the XML reader, so that we don't have to duplicate the code.

Définition à la ligne 2411 du fichier KoDocument.cpp.

Référencé par KoOasisStore::loadAndParse().

Voici le graphe d'appel pour cette fonction :

QByteArray KoDocument::nativeFormatMimeType (  )  const [virtual]

To be preferred when a document exists. It is fast when calling it multiple times since it caches the result that readNativeFormatMimeType() delivers. This comes from the X-KDE-NativeMimeType key in the .desktop file You do NOT have to reimplement this (it is only virtual for kounavail).

Définition à la ligne 2331 du fichier KoDocument.cpp.

Références nativeService().

Référencé par autoSaveFile(), KoFilterManager::exp0rt(), KoFilterManager::import(), isNativeFormat(), KoMainWindow::openDocument(), openFile(), KoMainWindow::queryClose(), KoDocumentChild::save(), KoMainWindow::saveDocument(), saveFile(), saveNativeFormat(), et KoDocumentChild::saveOasis().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QByteArray KoDocument::nativeOasisMimeType (  )  const

Returns the OASIS OpenDocument mimetype of the document, if supported This comes from the X-KDE-NativeOasisMimeType key in the .desktop file

Définition à la ligne 2347 du fichier KoDocument.cpp.

Références nativeService().

Référencé par addVersion(), saveNativeFormat(), KoDocumentChild::saveOasis(), et KoMainWindow::updateVersionsFileAction().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isNativeFormat ( const QByteArray &  mimetype  )  const

Checks whether a given mimetype can be handled natively.

Définition à la ligne 2427 du fichier KoDocument.cpp.

Références extraNativeMimeTypes(), et nativeFormatMimeType().

Référencé par openFile(), KoMainWindow::saveDocument(), saveFile(), et setMimeTypeAfterLoading().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QStringList KoDocument::extraNativeMimeTypes (  )  const [virtual]

Returns a list of the mimetypes considered "native", i.e. which can be saved by KoDocument without a filter, in *addition* to the main one

Définition à la ligne 2434 du fichier KoDocument.cpp.

Références nativeService().

Référencé par KoFilterManager::exp0rt(), KoFilterManager::import(), isNativeFormat(), et KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoDocument::supportedSpecialFormats (  )  const [virtual]

Return the set of SupportedSpecialFormats that the application wants to offer in the "Save" file dialog.

Définition à la ligne 2446 du fichier KoDocument.cpp.

Références SaveAsDirectoryStore.

Référencé par KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

QByteArray KoDocument::mimeType (  )  const

Returns the actual mimetype of the document

Définition à la ligne 487 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::mimeType.

Référencé par addVersion(), exp0rt(), KoDocumentInfoDlg::initAboutTab(), KoMainWindow::openDocumentInternal(), KoMainWindow::saveDocument(), et saveNativeFormat().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setMimeType ( const QByteArray &  mimeType  ) 

Sets the mime type for the document.

When choosing "save as" this is also the mime type selected by default.

Définition à la ligne 492 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::mimeType.

void KoDocument::setOutputMimeType ( const QByteArray &  mimeType,
int  specialOutputFlag = 0 
)

Set the format in which the document should be saved.

This is called on loading, and in "save as", so you shouldn't have to call it.

Paramètres:
mimeType the mime type (format) to use.
specialOutputFlag is for "save as older version" etc.

Définition à la ligne 497 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_specialOutputFlag, et KoDocument::Private::outputMimeType.

Référencé par KoMainWindow::saveDocument(), KoDocumentAdaptor::setOutputMimeType(), et KoMainWindow::slotEmailFile().

Voici le graphe d'appel pour cette fonction :

QByteArray KoDocument::outputMimeType (  )  const

Définition à la ligne 503 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::outputMimeType.

Référencé par KoMainWindow::queryClose(), KoMainWindow::saveDocument(), saveFile(), KoMainWindow::slotEmailFile(), et KoMainWindow::updateVersionsFileAction().

Voici le graphe d'appel pour cette fonction :

int KoDocument::specialOutputFlag (  )  const

Définition à la ligne 508 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_specialOutputFlag.

Référencé par KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::confirmNonNativeSave ( const bool  exporting  )  const

Returns true if this document was the result of opening a foreign file format and if the user hasn't yet saved the document (in any format).

Used by KoMainWindow to warn the user when s/he lazily presses CTRL+S to save in the same foreign format, putting all his/her formatting at risk (normally an export confirmation only comes up with Save As).

Paramètres:
exporting specifies whether this is the setting for a File --> Export or File --> Save/Save As operation.

Définition à la ligne 513 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_confirmNonNativeSave.

Référencé par KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setConfirmNonNativeSave ( const bool  exporting,
const bool  on 
)

Définition à la ligne 520 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_confirmNonNativeSave.

Référencé par saveFile(), et setMimeTypeAfterLoading().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::wantExportConfirmation (  )  const [virtual]

Définition à la ligne 525 du fichier KoDocument.cpp.

void KoDocument::setErrorMessage ( const QString &  errMsg  ) 

Sets the error message to be shown to the user (use i18n()!) when loading or saving fails. If you asked the user about something and he chose "Cancel", set the message to the magic string "USER_CANCELED", to skip the error dialog.

Définition à la ligne 2491 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::lastErrorMessage.

Référencé par KoDocumentChild::finishLoadingDocument(), et KPlato::Part::loadXML().

Voici le graphe d'appel pour cette fonction :

QString KoDocument::errorMessage (  )  const

Return the last error message. Usually KoDocument takes care of showing it; this method is mostly provided for non-interactive use.

Depuis:
1.4

Définition à la ligne 2496 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::lastErrorMessage.

Référencé par KoDocumentChild::finishLoadingDocument().

Voici le graphe d'appel pour cette fonction :

void KoDocument::showSavingErrorDialog (  ) 

Show the last error message in a message box. The dialog box will mention a saving problem. Note that save/saveFile takes care of doing it.

Depuis:
1.4

Définition à la ligne 2501 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::lastErrorMessage.

Référencé par saveFile().

Voici le graphe d'appel pour cette fonction :

void KoDocument::showLoadingErrorDialog (  ) 

Show the last error message in a message box. The dialog box will mention a loading problem. openURL/openFile takes care of doing it, but not loadNativeFormat itself, so this is often called after loadNativeFormat returned false.

Depuis:
1.4

Définition à la ligne 2513 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::lastErrorMessage.

Référencé par openFile(), et openTemplate().

Voici le graphe d'appel pour cette fonction :

KoView * KoDocument::createView ( QWidget *  parent = 0  ) 

Create a new view for the document.

Définition à la ligne 336 du fichier KoDocument.cpp.

Références addView(), et createViewInstance().

Référencé par KoViewChild::KoViewChild(), openFile(), KoMainWindow::setRootDocument(), et KoMainWindow::slotSplitView().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::addView ( KoView view  )  [virtual]

Adds a view to the document.

This calls KoView::updateReadWrite to tell the new view whether the document is readonly or not.

Définition à la ligne 645 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_views, et KoView::updateReadWrite().

Référencé par createView().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::removeView ( KoView view  )  [virtual]

Removes a view of the document.

Définition à la ligne 654 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_views.

Référencé par openFile().

Voici le graphe d'appel pour cette fonction :

const QList< KoView * > & KoDocument::views (  )  const

Renvoie:
a list of views this document is displayed in

Définition à la ligne 659 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_views.

Référencé par KoDocumentAdaptor::view().

int KoDocument::viewCount (  )  const

Renvoie:
number of views this document is displayed in

Définition à la ligne 664 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_views.

Référencé par KoMainWindow::setRootDocument(), KoDocumentAdaptor::viewCount(), et KoMainWindow::~KoMainWindow().

Voici le graphe d'appel pour cette fonction :

KParts::Part * KoDocument::hitTest ( QWidget *  widget,
const QPoint &  globalPos 
) [virtual]

Reimplemented from KParts::Part

Définition à la ligne 711 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_views.

Référencé par KoView::hitTest(), et KoDocumentChild::hitTest().

Voici le graphe d'appel pour cette fonction :

KoDocument * KoDocument::hitTest ( const QPoint &  pos,
KoView view,
const QMatrix &  matrix = QMatrix() 
) [virtual]

Find the most nested child document which contains the requested point. The point is in the coordinate system of this part. If no child document contains this point, then a pointer to this document is returned.

This method can to be reimplemented if the document features child documents.

Paramètres:
pos is in (unzoomed) document coordinates
view the view in which we are testing for a hit. This is used to implement logic like "only hit an embedded object if it's selected in the current view"
matrix transforms points from the documents coordinate system to the coordinate system of the requested point. This is used by transformed child documents, see KoDocumentChild/KoChild.
Renvoie:
Pointer to the document under the mouse at that position

Définition à la ligne 728 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_children.

void KoDocument::paintEverything ( QPainter &  painter,
const QRect &  rect,
bool  transparent = false,
KoView view = 0L,
double  zoomX = 1.0,
double  zoomY = 1.0 
) [virtual]

Paints the whole document into the given painter object.

Paramètres:
painter The painter object onto which will be drawn.
rect The rect that should be used in the painter object.
transparent If true then the entire rectangle is erased before painting.
view The KoView is needed to fiddle about with the active widget, when painting children.
zoomX The zoom value to be applied to X coordinates when painting.
zoomY The zoom value to be applied to Y coordinates when painting.

Définition à la ligne 789 du fichier KoDocument.cpp.

Références paintChildren(), et paintContent().

Référencé par generatePreview(), paintChild(), et KoView::paintEverything().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QPixmap KoDocument::generatePreview ( const QSize &  size  )  [virtual]

Generates a preview picture of the document.

Note:
The preview is used in the File Dialog and also to create the Thumbnail

Définition à la ligne 1256 du fichier KoDocument.cpp.

Références KoGlobal::dpiX(), KoGlobal::dpiY(), Py::int, m_pageLayout, paintEverything(), KoPageLayout::ptHeight, et KoPageLayout::ptWidth.

Référencé par saveOasisPreview(), et savePreview().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::paintChildren ( QPainter &  painter,
const QRect &  rect,
KoView view,
double  zoomX = 1.0,
double  zoomY = 1.0 
) [virtual]

Paints all of the documents children into the given painter object.

Paramètres:
painter The painter object onto which will be drawn.
rect The rect that should be used in the painter object.
view The KoView is needed to fiddle about with the active widget.
zoomX The zoom value to be applied to X coordinates when painting.
zoomY The zoom value to be applied to Y coordinates when painting.
Voir également:
paintChild paintEverything paintContent

Définition à la ligne 795 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_children, et paintChild().

Référencé par paintEverything().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::paintChild ( KoDocumentChild child,
QPainter &  painter,
KoView view,
double  zoomX = 1.0,
double  zoomY = 1.0 
) [virtual]

Paint a given child. Normally called by paintChildren().

Paramètres:
child The child to be painted.
painter The painter object onto which will be drawn.
view The KoView is needed to fiddle about with the active widget.
zoomX The zoom value to be applied to X coordinates when painting.
zoomY The zoom value to be applied to Y coordinates when painting.
Voir également:
paintEverything paintChildren paintContent

Définition à la ligne 807 du fichier KoDocument.cpp.

Références child(), KoChild::contentRect(), KoDocumentChild::document(), Py::int, KoDocumentChild::isDeleted(), KoChild::isTransparent(), KoView::koDocument(), paintEverything(), KoView::partManager(), KoChild::transform(), KoChild::xScaling(), et KoChild::yScaling().

Référencé par paintChildren().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

virtual void KoDocument::paintContent ( QPainter &  painter,
const QRect &  rect,
bool  transparent = false,
double  zoomX = 1.0,
double  zoomY = 1.0 
) [pure virtual]

Paints the data itself. Normally called by paintEverything(). It does not paint the children. It's this method that KOffice Parts have to implement.

Paramètres:
painter The painter object onto which will be drawn.
rect The rect that should be used in the painter object.
transparent If false the implementing method should fill the background.
zoomX The zoom value to be applied to X coordinates when painting.
zoomY The zoom value to be applied to Y coordinates when painting.
Voir également:
paintEverything

Implémenté dans KPlato::Part.

Référencé par paintEverything().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::checkAutoSaveFile (  ) 

Called by koApplication to check for an autosave file in $HOME

Définition à la ligne 1323 du fichier KoDocument.cpp.

Références autoSaveFile(), openURL(), et resetURL().

Référencé par KoMainWindow::openDocument(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::showStartUpWidget ( KoMainWindow parent,
bool  alwaysShow = false 
) [virtual]

Creates and shows the start up widget.

Paramètres:
parent the KoMainWindow used as parent for the widget.
alwaysShow always show the widget even if the user has configured it to not show.
Depuis:
1.5

Définition à la ligne 2683 du fichier KoDocument.cpp.

Références createOpenPane(), d, KoDocument::Private::m_startUpWidget, openTemplate(), KoMainWindow::setDocToOpen(), shells(), et templateType().

Référencé par KoMainWindow::chooseNewDocument(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::setModified ( bool  _mod  )  [virtual]

Sets the modified flag on the document. This means that it has to be saved or not before deleting it.

Définition à la ligne 2079 du fichier KoDocument.cpp.

Références children(), d, isAutosaving(), isModified(), KoDocument::Private::m_autoSaveDelay, m_bEmpty, modified(), KoDocument::Private::modifiedAfterAutosave, setAutoSave(), et setTitleModified().

Référencé par KoMainWindow::queryClose(), KoMainWindow::saveDocument(), KoMainWindow::slotDocumentInfo(), et KoMainWindow::slotEmailFile().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::setTitleModified (  )  [virtual]

Tells the document that its title has been modified, either because the modified status changes (this is done by setModified() ) or because the URL or the document-info's title changed.

Définition à la ligne 2207 du fichier KoDocument.cpp.

Références KoDocumentInfo::aboutInfo(), d, documentInfo(), isEmpty(), isModified(), isStoredExtern(), KoDocument::Private::m_current, et setTitleModified().

Référencé par import(), KoMainWindow::saveDocument(), setCurrent(), setModified(), setTitleModified(), KoMainWindow::slotDocumentInfo(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

virtual bool KoDocument::isEmpty (  )  const [inline, virtual]

Renvoie:
true if the document is empty.

Définition à la ligne 492 du fichier KoDocument.h.

Référencé par KoMainWindow::chooseNewDocument(), KoMainWindow::saveDocument(), setTitleModified(), KoMainWindow::slotLoadCompleted(), KoMainWindow::slotReloadFile(), KoMainWindow::updateReloadFileAction(), et KoMainWindow::updateVersionsFileAction().

Voici le graphe d'appel pour cette fonction :

virtual void KoDocument::setEmpty (  )  [inline, virtual]

Sets the document to empty.

Used after loading a template (which is not empty, but not the user's input).

Voir également:
isEmpty()

Définition à la ligne 502 du fichier KoDocument.h.

Référencé par initEmpty(), openTemplate(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadFromStore ( KoStore store,
const QString &  url 
) [virtual]

Loads a document from a store.

You should never have to reimplement.

Paramètres:
store The store to load from
url An internal url, like tar:/1/2

Définition à la ligne 1901 du fichier KoDocument.cpp.

Références KoStore::close(), completeLoading(), KoStore::device(), KoStore::enterDirectory(), INTERNAL_PREFIX, loadChildren(), loadXML(), KoStore::open(), KoStore::popDirectory(), KoStore::pushDirectory(), testguiform::result, et STORE_PROTOCOL.

Référencé par KoDocumentChild::finishLoadingDocument().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadOasisFromStore ( KoStore store  )  [virtual]

Loads an OASIS document from a store. This is used for both the main document and embedded objects.

Définition à la ligne 1942 du fichier KoDocument.cpp.

Références KoOasisStyles::createStyleMap(), d, KoStore::hasFile(), KoDocument::Private::lastErrorMessage, KoOasisStore::loadAndParse(), et loadOasis().

Référencé par KoDocumentChild::finishLoadingDocument(), et loadNativeFormatFromStoreInternal().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveToStore ( KoStore store,
const QString &  path 
) [virtual]

Saves a document to a store.

You should not have to reimplement this - but call it in saveChildren().

Définition à la ligne 1183 du fichier KoDocument.cpp.

Références KoStoreDevice::close(), completeSaving(), KoStore::enterDirectory(), INTERNAL_PREFIX, KoStore::open(), KoStore::popDirectory(), KoStore::pushDirectory(), saveChildren(), saveToStream(), et STORE_PROTOCOL.

Référencé par KoDocumentChild::saveOasis().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

virtual bool KoDocument::loadXML ( QIODevice *  ,
const KoXmlDocument doc 
) [pure virtual]

Reimplement this method to load the contents of your KOffice document, from the XML document. This is for the pre-Oasis file format (maindoc.xml).

You are supposed to use the QDomDocument. The QIODevice is provided only for the cases where some pre-processing is needed, like kpresenter's kprconverter. Note that the QIODevice could be 0L, when called from an import filter.

Implémenté dans KPlato::Part.

Référencé par loadFromStore(), loadNativeFormat(), et loadNativeFormatFromStoreInternal().

Voici le graphe d'appel pour cette fonction :

virtual bool KoDocument::loadOasis ( const KoXmlDocument doc,
KoOasisStyles oasisStyles,
const KoXmlDocument settings,
KoStore store 
) [pure virtual]

Reimplement this method to load the contents of your KOffice document, from the XML document ("content.xml"). The styles have been parsed already, you can find them in the oasisStyles parameter. The store can be used to load images and embedded documents.

Implémenté dans KPlato::Part.

Référencé par loadOasisFromStore().

Voici le graphe d'appel pour cette fonction :

virtual bool KoDocument::saveOasis ( KoStore store,
KoXmlWriter manifestWriter 
) [pure virtual]

Reimplement this method to save the contents of your KOffice document, using the OASIS format.

Implémenté dans KPlato::Part.

Référencé par addVersion(), saveNativeFormat(), et KoDocumentChild::saveOasis().

Voici le graphe d'appel pour cette fonction :

QDomDocument KoDocument::saveXML (  )  [virtual]

Reimplement this to save the contents of the KOffice document into a QDomDocument. The framework takes care of saving it to the store.

Réimplémentée dans KPlato::Part.

Définition à la ligne 2316 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::lastErrorMessage.

Référencé par saveToStream().

Voici le graphe d'appel pour cette fonction :

QDomDocument KoDocument::createDomDocument ( const QString &  tagName,
const QString &  version 
) const

Return a correctly created QDomDocument for this KoDocument, including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element.

Paramètres:
tagName the name of the tag for the root element
version the DTD version (usually the application's version).
Obsolète:
use createOasisXmlWriter instead

Définition à la ligne 2257 du fichier KoDocument.cpp.

Référencé par KoDocumentInfo::save().

Voici le graphe d'appel pour cette fonction :

KoXmlWriter * KoDocument::createOasisXmlWriter ( QIODevice *  dev,
const char *  rootElementName 
) [static]

Return an XML writer for saving Oasis XML into the device dev, including the XML processing instruction, and the root element with all its namespaces. You can add more namespaces afterwards with addAttribute.

Paramètres:
dev the device into which the XML will be written.
rootElementName the tag name of the root element. This is either office:document, office:document-content, office:document-styles, office:document-meta or office:document-settings
Renvoie:
the KoXmlWriter instance. It becomes owned by the caller, which must delete it at some point.
Once done with writing the contents of the root element, you will need to call endElement(); endDocument(); before destroying the KoXmlWriter.
Note:
OASIS-specific

Définition à la ligne 2277 du fichier KoDocument.cpp.

Références KoXmlWriter::addAttribute(), KoXmlNS::chart, KoXmlNS::config, KoXmlNS::dc, KoXmlNS::dr3d, KoXmlNS::draw, KoXmlNS::fo, KoXmlNS::form, KoXmlNS::koffice, KoXmlNS::math, KoXmlNS::meta, KoXmlNS::number, KoXmlNS::office, KoXmlNS::presentation, KoXmlNS::script, KoXmlWriter::startDocument(), KoXmlWriter::startElement(), KoXmlNS::style, KoXmlNS::svg, KoXmlNS::table, KoXmlNS::text, KoXmlNS::VL, et KoXmlNS::xlink.

Référencé par KoOasisStore::contentWriter(), saveNativeFormat(), et KoDocumentInfo::saveOasis().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QDomDocument KoDocument::createDomDocument ( const QString &  appName,
const QString &  tagName,
const QString &  version 
) [static]

Return a correctly created QDomDocument for an old (1.3-style) KOffice document, including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element. This static method can be used e.g. by filters.

Paramètres:
appName the app's instance name, e.g. kword, kspread, kpresenter etc.
tagName the name of the tag for the root element, e.g. DOC for kword/kpresenter.
version the DTD version (usually the application's version).

Définition à la ligne 2263 du fichier KoDocument.cpp.

QString KoDocument::tagNameToDocumentType ( const QString &  localName  )  [static]

The first thing to do in loadOasis is get hold of the office:body tag, then its child. If the child isn't the expected one, the error message can indicate what it is instead. This method returns a translated name for the type of document, e.g. i18n("Word Processing") for office:text.

Définition à la ligne 2646 du fichier KoDocument.cpp.

Références documentType, et numTN2DT.

bool KoDocument::saveToStream ( QIODevice *  dev  )  [virtual]

Save the document. The default implementation is to call saveXML(). This method exists only for applications that don't use QDomDocument for saving, i.e. kword and kpresenter.

Définition à la ligne 1170 du fichier KoDocument.cpp.

Références Py::int, et saveXML().

Référencé par saveNativeFormat(), et saveToStore().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadNativeFormat ( const QString &  file  )  [virtual]

Loads a document in the native format from a given URL. Reimplement if your native format isn't XML.

Paramètres:
file the file to load - usually KReadOnlyPart::m_file or the result of a filter

Définition à la ligne 1683 du fichier KoDocument.cpp.

Références completeLoading(), d, KoDocument::Private::lastErrorMessage, loadNativeFormatFromStore(), loadXML(), m_bEmpty, KoDocument::Private::m_specialOutputFlag, gensymbolfontmap::pos, et SaveAsDirectoryStore.

Référencé par KoFilterChain::createDocument(), openFile(), et openTemplate().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveNativeFormat ( const QString &  file  )  [virtual]

Saves the document in native format, to a given file You should never have to reimplement. Made public for writing templates.

Définition à la ligne 959 du fichier KoDocument.cpp.

Références KoXmlWriter::addAttribute(), KoXmlWriter::addManifestEntry(), KoStore::Auto, KoStore::bad(), KoStoreDevice::close(), KoStore::close(), KoOasisStore::closeManifestWriter(), completeSaving(), createOasisXmlWriter(), KoStore::createStore(), d, KoStore::Directory, KoStore::disallowNameExpansion(), KoXmlWriter::endDocument(), KoXmlWriter::endElement(), gensymbolfontmap::f, KoDocument::Private::lastErrorMessage, KoDocument::Private::m_docInfo, KoDocument::Private::m_specialOutputFlag, KoDocument::Private::m_versionInfo, KoOasisStore::manifestWriter(), mimeType(), nativeFormatMimeType(), nativeOasisMimeType(), KoStore::open(), KoDocument::Private::outputMimeType, KoDocumentInfo::save(), SaveAsDirectoryStore, SaveAsFlatXML, saveChildren(), saveChildrenOasis(), saveExternalChildren(), KoDocumentInfo::saveOasis(), saveOasis(), saveOasisPreview(), savePreview(), saveToStream(), KoXmlWriter::startElement(), KoStore::Tar, version, et KoStore::Write.

Référencé par KoFilterChain::finalizeIO(), KoFilterChain::inputFileHelper(), saveFile(), et slotAutoSave().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::setAutoSave ( int  delay  ) 

Activate/deactivate/configure the autosave feature.

Paramètres:
delay in seconds, 0 to disable

Définition à la ligne 636 du fichier KoDocument.cpp.

Références d, isEmbedded(), KoDocument::Private::m_autoSaveDelay, et KoDocument::Private::m_autoSaveTimer.

Référencé par KoDocument(), saveFile(), setModified(), et setReadWrite().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isAutosaving (  )  const

Checks whether the document is currently in the process of autosaving

Définition à la ligne 2525 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_autosaving.

Référencé par KoDocumentInfo::saveParameters(), et setModified().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setCheckAutoSaveFile ( bool  b  ) 

Set whether the next openURL call should check for an auto-saved file and offer to open it. This is usually true, but can be turned off (e.g. for the preview module).

Définition à la ligne 540 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shouldCheckAutoSaveFile.

void KoDocument::setAutoErrorHandlingEnabled ( bool  b  ) 

Set whether the next openURL call should show error message boxes in case of errors. This is usually the case, but e.g. not when generating thumbnail previews.

Définition à la ligne 545 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_autoErrorHandlingEnabled.

bool KoDocument::isAutoErrorHandlingEnabled (  )  const

Checks whether error message boxes should be shown.

Depuis:
1.3.1

Définition à la ligne 550 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_autoErrorHandlingEnabled.

Référencé par KoFilterManager::import().

Voici le graphe d'appel pour cette fonction :

static int KoDocument::defaultAutoSave (  )  [inline, static]

Retrieve the default value for autosave in seconds. Called by the applications to use the correct default in their config

Définition à la ligne 661 du fichier KoDocument.h.

const Q3PtrList< KoDocumentChild > & KoDocument::children (  )  const

Renvoie:
the list of all children. Do not modify the returned list.

Définition à la ligne 706 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_children.

Référencé par isModified(), queryCloseExternalChildren(), saveChildren(), saveChildrenOasis(), saveExternalChildren(), et setModified().

Voici le graphe d'appel pour cette fonction :

KoDocumentChild * KoDocument::child ( KoDocument doc  ) 

Renvoie:
the KoDocumentChild associated with the given Document, but only if doc is a direct child of this document.
This is a convenience function. You could get the same result by traversing the list returned by children().

Définition à la ligne 743 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_children.

Référencé par KoView::activeChild(), insertChild(), paintChild(), KoView::partActivateEvent(), KoView::partSelectEvent(), KoView::selectedChild(), et slotChildDestroyed().

Voici le graphe d'appel pour cette fonction :

KoDocumentInfo * KoDocument::documentInfo (  )  const

Renvoie:
the information concerning this document.
Voir également:
KoDocumentInfo

Définition à la ligne 753 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_docInfo.

Référencé par addVersion(), KoDocumentAdaptor::documentInfoAbstract(), KoDocumentAdaptor::documentInfoAuthorName(), KoDocumentAdaptor::documentInfoAuthorPostion(), KoDocumentAdaptor::documentInfoCity(), KoDocumentAdaptor::documentInfoCompanyName(), KoDocumentAdaptor::documentInfoCountry(), KoDocumentAdaptor::documentInfoEmail(), KoDocumentAdaptor::documentInfoFax(), KoDocumentAdaptor::documentInfoInitial(), KoDocumentAdaptor::documentInfoKeywords(), KoDocumentAdaptor::documentInfoPostalCode(), KoDocumentAdaptor::documentInfoStreet(), KoDocumentAdaptor::documentInfoSubject(), KoDocumentAdaptor::documentInfoTelephoneHome(), KoDocumentAdaptor::documentInfoTelephoneWork(), KoDocumentAdaptor::documentInfoTitle(), KoMainWindow::print(), KoMainWindow::queryClose(), queryCloseDia(), KoFieldVariable::recalc(), KoDocumentAdaptor::setDocumentInfoAbstract(), KoDocumentAdaptor::setDocumentInfoAuthorName(), KoDocumentAdaptor::setDocumentInfoAuthorPosition(), KoDocumentAdaptor::setDocumentInfoCity(), KoDocumentAdaptor::setDocumentInfoCompanyName(), KoDocumentAdaptor::setDocumentInfoCountry(), KoDocumentAdaptor::setDocumentInfoEmail(), KoDocumentAdaptor::setDocumentInfoFax(), KoDocumentAdaptor::setDocumentInfoInitial(), KoDocumentAdaptor::setDocumentInfoKeywords(), KoDocumentAdaptor::setDocumentInfoPostalCode(), KoDocumentAdaptor::setDocumentInfoStreet(), KoDocumentAdaptor::setDocumentInfoSubject(), KoDocumentAdaptor::setDocumentInfoTelephoneHome(), KoDocumentAdaptor::setDocumentInfoTelephoneWork(), KoDocumentAdaptor::setDocumentInfoTitle(), setTitleModified(), KoMainWindow::slotDocumentInfo(), et KoMainWindow::updateCaption().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setViewBuildDocument ( KoView view,
const QDomDocument &  doc 
)

Définition à la ligne 758 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_viewBuildDocuments, et KoDocument::Private::m_views.

QDomDocument KoDocument::viewBuildDocument ( KoView view  ) 

Définition à la ligne 770 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_viewBuildDocuments, et KoDocument::Private::m_views.

Référencé par KoViewChild::KoViewChild().

Voici le graphe d'appel pour cette fonction :

void KoDocument::addShell ( KoMainWindow shell  )  [virtual]

Appends the shell to the list of shells which show this document as their root document.

This method is automatically called from KoMainWindow::setRootDocument, so you do not need to call it.

Définition à la ligne 2454 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shells.

Référencé par KoMainWindow::chooseNewDocument(), KoMainWindow::openDocumentInternal(), KoMainWindow::setRootDocument(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

void KoDocument::removeShell ( KoMainWindow shell  )  [virtual]

Removes the shell from the list. That happens automatically if the shell changes its root document. Usually you do not need to call this method.

Définition à la ligne 2463 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shells.

Référencé par KoMainWindow::openDocumentInternal(), KoMainWindow::setRootDocument(), KoMainWindow::slotCloseAllViews(), KoMainWindow::slotLoadCanceled(), KoMainWindow::slotLoadCompleted(), et KoMainWindow::~KoMainWindow().

Voici le graphe d'appel pour cette fonction :

const Q3PtrList< KoMainWindow > & KoDocument::shells (  )  const

Renvoie:
the list of shells for the main window

Définition à la ligne 2469 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shells.

Référencé par deleteOpenPane(), saveFile(), KoMainWindow::setRootDocument(), showStartUpWidget(), slotAutoSave(), KoMainWindow::slotCloseAllViews(), et KoVersionDialog::slotOpen().

Voici le graphe d'appel pour cette fonction :

int KoDocument::shellCount (  )  const

Renvoie:
the number of shells for the main window

Définition à la ligne 2474 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shells.

static Q3PtrList<KoDocument>* KoDocument::documentList (  )  [inline, static]

Renvoie:
the list of all the currently opened documents

Définition à la ligne 715 du fichier KoDocument.h.

Référencé par cancelQuits(), KoApplicationAdaptor::getDocuments(), et KoApplicationAdaptor::getViews().

Voici le graphe d'appel pour cette fonction :

void KoDocument::emitProgress ( int  value  )  [inline]

Return a DCOP interface for this document.

Signal the progress of operations such as loading or saving.

Définition à la ligne 733 du fichier KoDocument.h.

bool KoDocument::isInOperation (  )  const

Définition à la ligne 2047 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_numOperations.

Référencé par emitBeginOperation().

Voici le graphe d'appel pour cette fonction :

void KoDocument::emitBeginOperation (  )  [virtual]

Définition à la ligne 2052 du fichier KoDocument.cpp.

Références d, isInOperation(), KoDocument::Private::m_numOperations, et sigBeginOperation().

Voici le graphe d'appel pour cette fonction :

void KoDocument::emitEndOperation (  )  [virtual]

Définition à la ligne 2061 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_numOperations, et sigEndOperation().

bool KoDocument::isStoredExtern (  )  const [virtual]

Return true if url() is a real filename, false if url() is an internal url in the store, like "tar:/..."

Définition à la ligne 2074 du fichier KoDocument.cpp.

Références hasExternURL(), et storeInternal().

Référencé par KoDocumentChild::isStoredExtern(), KoDocumentChild::saveOasis(), KoDocumentChild::saveOasisAttributes(), setCurrent(), et setTitleModified().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KoPageLayout KoDocument::pageLayout ( int  pageNumber = 0  )  const [virtual]

Renvoie:
the page layout associated with this document (margins, pageSize, etc). Override this if you want to provide different sized pages.
Voir également:
KoPageLayout

Définition à la ligne 2659 du fichier KoDocument.cpp.

Références m_pageLayout.

Référencé par KoGuides::moveSelectedBy(), KoGuides::paintGuides(), et KoGuides::slotChangePosition().

Voici le graphe d'appel pour cette fonction :

void KoDocument::removeAutoSaveFiles (  ) 

Performs a cleanup of unneeded backup files

Définition à la ligne 2535 du fichier KoDocument.cpp.

Références autoSaveFile().

Référencé par KoMainWindow::queryClose(), queryCloseDia(), et saveFile().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::setBackupFile ( bool  _b  ) 

Définition à la ligne 2546 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_backupFile.

bool KoDocument::backupFile (  )  const

Référencé par saveFile().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isModified (  )  const

Returns true if this document or any of its internal child documents are modified.

Définition à la ligne 867 du fichier KoDocument.cpp.

Références children().

Référencé par exp0rt(), KoDocumentAdaptor::isModified(), KoMainWindow::queryClose(), saveFile(), setModified(), setTitleModified(), slotAutoSave(), KoMainWindow::slotEmailFile(), et KoMainWindow::slotReloadFile().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isLoading (  )  const

Returns true during loading (openURL can be asynchronous)

Définition à la ligne 2530 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_bLoading.

Référencé par KoDocumentAdaptor::isLoading().

int KoDocument::queryCloseExternalChildren (  ) 

Définition à la ligne 2156 du fichier KoDocument.cpp.

Références children(), et setDoNotSaveExtDoc().

Référencé par KoMainWindow::queryClose().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

int KoDocument::queryCloseDia (  ) 

Définition à la ligne 2121 du fichier KoDocument.cpp.

Références KoDocumentInfo::aboutInfo(), documentInfo(), KoPageFormat::name(), removeAutoSaveFiles(), setDoNotSaveExtDoc(), et setModified().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setDoNotSaveExtDoc ( bool  on = true  ) 

Set when we do not want to save external children when saving our 'main' doc.

This makes it possible to save 'main' doc + all its internal children first, then go on to save external children. Typically used by query close. Use:

      doc->setDoNotSaveExtDoc();
      doc->save();    // saves doc and its internal children,
                            //also calls saveExternalChildren() which sets setDoNotSaveExtDoc(false)
      doc->saveExternalChildren();

Définition à la ligne 2116 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_doNotSaveExtDoc.

Référencé par KoMainWindow::queryClose(), queryCloseDia(), queryCloseExternalChildren(), et saveExternalChildren().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setBackupPath ( const QString &  _path  ) 

Sets the backup path of the document

Définition à la ligne 2557 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_backupPath.

QString KoDocument::backupPath (  )  const

Renvoie:
path to the backup document

Définition à la ligne 2562 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_backupPath.

void KoDocument::setCurrent ( bool  on = true  ) 

Indicates that this document is currently viewed and thus should control the title caption. Also resets current flag for all parents.

Définition à la ligne 2567 du fichier KoDocument.cpp.

Références d, forceCurrent(), isStoredExtern(), KoDocument::Private::m_current, setCurrent(), et setTitleModified().

Référencé par setCurrent().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::forceCurrent ( bool  on  ) 

Sets current flag for this document and all its parents

Définition à la ligne 2594 du fichier KoDocument.cpp.

Références d, forceCurrent(), et KoDocument::Private::m_current.

Référencé par forceCurrent(), et setCurrent().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isCurrent (  )  const

Définition à la ligne 2605 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_current.

void KoDocument::setTitleModified ( const QString  caption,
bool  mod 
)

Définition à la ligne 2188 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_shells, et setTitleModified().

Voici le graphe d'appel pour cette fonction :

void KoDocument::resetURL (  )  [inline]

Sets the document URL to empty URL KParts doesn't allow this, but KOffice apps have e.g. templates After using loadNativeFormat on a template, one wants to set the url to KUrl()

Définition à la ligne 821 du fichier KoDocument.h.

Référencé par checkAutoSaveFile(), import(), openFile(), openTemplate(), openURL(), KoMainWindow::saveDocument(), saveFile(), et KoApplication::start().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setStoreInternal ( bool  i  ) 

Set when you want an external embedded document to be stored internally

Définition à la ligne 2615 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_storeInternal.

Référencé par KoDocumentChild::finishLoadingDocument(), et KoDocumentChild::KoDocumentChild().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::storeInternal (  )  const

Renvoie:
true when external embedded documents are stored internally

Définition à la ligne 2610 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_storeInternal.

Référencé par isStoredExtern().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::hasExternURL (  )  const

Définition à la ligne 2621 du fichier KoDocument.cpp.

Références INTERNAL_PROTOCOL, et STORE_PROTOCOL.

Référencé par isStoredExtern(), et KoDocumentChild::KoDocumentChild().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setURL ( const KUrl &  url  )  [inline]

Sets the document URL to url KParts doesn't really allow this, but it is needed for undo of setStoreInternal()

Définition à la ligne 839 du fichier KoDocument.h.

Référencé par KoMainWindow::openDocument(), KoMainWindow::saveDocument(), KoDocumentChild::saveOasisAttributes(), et KoMainWindow::slotEmailFile().

Voici le graphe d'appel pour cette fonction :

QString& KoDocument::file (  )  [inline]

_Only_ use these functions to restore m_file (in KoMainWindow) after a failed save (remember to use setURL() to restore the URL as well).

Avertissement:
Do _not_ use these functions for any other purpose.

Définition à la ligne 849 du fichier KoDocument.h.

Référencé par KoDocumentInfoDlg::initAboutTab(), openURL(), et KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setFile ( const QString &  file  )  [inline]

_Only_ use these functions to restore m_file (in KoMainWindow) after a failed save (remember to use setURL() to restore the URL as well).

Avertissement:
Do _not_ use these functions for any other purpose.

Définition à la ligne 859 du fichier KoDocument.h.

Référencé par KoMainWindow::openDocument(), et KoMainWindow::saveDocument().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setMimeTypeAfterLoading ( const QString &  mimeType  ) 

Définition à la ligne 1641 du fichier KoDocument.cpp.

Références d, isNativeFormat(), KoDocument::Private::mimeType, KoDocument::Private::outputMimeType, et setConfirmNonNativeSave().

Référencé par KoMainWindow::openDocument(), et openFile().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

virtual int KoDocument::pageCount (  )  const [inline, virtual]

Renvoie:
returns the number of pages in the document.

Définition à la ligne 869 du fichier KoDocument.h.

QList< KoTextDocument * > KoDocument::allTextDocuments (  )  const [virtual]

Renvoie:
all kotext-based text objects in the document This is used by some text-analyzer plugins.
Depuis:
1.5

Définition à la ligne 2654 du fichier KoDocument.cpp.

KoUnit::Unit KoDocument::unit (  )  const

Returns the unit used to display all measures/distances.

Depuis:
1.5

Définition à la ligne 2664 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_unit.

Référencé par KoGuides::slotChangePosition(), et unitName().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setUnit ( KoUnit::Unit  u  ) 

Sets the unit used to display all measures/distances.

Depuis:
1.5

Définition à la ligne 2669 du fichier KoDocument.cpp.

Références d, KoDocument::Private::m_unit, et unitChanged().

QString KoDocument::unitName (  )  const

Returns the name of the unit used to display all measures/distances. Use this method for displaying it in the user interface, but use unit() for everything else (conversions etc.)

Depuis:
1.5

Définition à la ligne 2678 du fichier KoDocument.cpp.

Références unit(), et KoUnit::unitName().

Voici le graphe d'appel pour cette fonction :

void KoDocument::setTemplateType ( const QString &  _templateType  ) 

Set the template type used. This is used by the start up widget to show the correct templates.

Depuis:
1.5

Définition à la ligne 2759 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_templateType.

Référencé par KPlato::Part::Part().

Voici le graphe d'appel pour cette fonction :

QString KoDocument::templateType (  )  const

Template type used. This is used by the start up widget to show the correct templates.

Depuis:
1.5

Définition à la ligne 2764 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_templateType.

Référencé par showEmbedInitDialog(), et showStartUpWidget().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::showEmbedInitDialog ( QWidget *  parent  )  [virtual]

Shows the init dialog when embeding

Paramètres:
parent the parent widget
Depuis:
1.5

Définition à la ligne 2792 du fichier KoDocument.cpp.

Références closeEmbedInitDialog(), createOpenPane(), et templateType().

Voici le graphe d'appel pour cette fonction :

QList< KoVersionInfo > & KoDocument::versionList (  ) 

Définition à la ligne 2810 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_versionInfo.

Référencé par KoVersionDialog::slotModify(), KoVersionDialog::slotOpen(), KoVersionDialog::slotRemove(), et KoVersionDialog::updateVersionList().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadNativeFormatFromStore ( QByteArray &  data  ) 

Définition à la ligne 1787 du fichier KoDocument.cpp.

Références KoStore::Auto, KoStore::bad(), KoStore::createStore(), d, KoStore::Directory, loadNativeFormatFromStoreInternal(), KoDocument::Private::m_specialOutputFlag, KoStore::Read, et SaveAsDirectoryStore.

Référencé par loadNativeFormat().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::addVersion ( const QString &  comment  ) 

Adds a new version and then saves the whole document.

Paramètres:
comment the comment for the version
Renvoie:
true on success, otherwise false

Définition à la ligne 1975 du fichier KoDocument.cpp.

Références KoDocumentInfo::authorInfo(), KoStore::Auto, KoStore::bad(), KoOasisStore::closeManifestWriter(), KoStore::createStore(), d, KoStore::disallowNameExpansion(), documentInfo(), KoDocument::Private::lastErrorMessage, KoDocument::Private::m_specialOutputFlag, KoDocument::Private::m_versionInfo, KoOasisStore::manifestWriter(), mimeType(), nativeOasisMimeType(), KoDocument::Private::outputMimeType, saveChildrenOasis(), saveExternalChildren(), saveOasis(), version, et KoStore::Write.

Référencé par KoVersionDialog::slotAdd().

Voici le graphe d'appel pour cette fonction :

void KoDocument::initEmpty (  )  [virtual, slot]

Initialize an empty document using default values

Depuis:
1.5

Définition à la ligne 2730 du fichier KoDocument.cpp.

Références setEmpty(), et setModified().

Référencé par KoMainWindow::openDocument(), et openTemplate().

void KoDocument::unitChanged ( KoUnit::Unit   )  [signal]

This signal is emitted when the unit is changed by setUnit(). It is common to connect views to it, in order to change the displayed units (e.g. in the rulers)

Référencé par setUnit().

void KoDocument::childChanged ( KoDocumentChild child  )  [signal]

This signal is emitted when a direct or indirect child document changes and needs to be updated in all views.

If one of your child documents emits the childChanged signal, then you may usually just want to redraw this child. In this case you can ignore the parameter passed by the signal.

Référencé par slotChildChanged().

void KoDocument::sigProgress ( int  value  )  [signal]

Progress info while loading or saving. The value is in percents (i.e. a number between 0 and 100) Your KoDocument-derived class should emit the signal now and then during load/save. KoMainWindow will take care of displaying a progress bar automatically.

Référencé par KPlato::Part::loadXML(), et slotAutoSave().

void KoDocument::sigStatusBarMessage ( const QString &  text  )  [signal]

Emitted e.g. at the beginning of a save operation This is emitted by KoDocument and used by KoView to display a statusbar message

Référencé par saveFile(), et slotAutoSave().

void KoDocument::sigClearStatusBarMessage (  )  [signal]

Emitted e.g. at the end of a save operation This is emitted by KoDocument and used by KoView to clear the statusbar message

Référencé par saveFile(), et slotAutoSave().

void KoDocument::sigBeginOperation (  )  [signal]

Référencé par emitBeginOperation().

void KoDocument::sigEndOperation (  )  [signal]

Référencé par emitEndOperation().

void KoDocument::modified ( bool   )  [signal]

Emitted when the document is modified

Référencé par setModified().

void KoDocument::closeEmbedInitDialog (  )  [signal]

Référencé par deleteOpenPane(), et showEmbedInitDialog().

void KoDocument::openExistingFile ( const KUrl &  url  )  [protected, virtual, slot]

This slot loads an existing file and deletes the start up widget.

Paramètres:
url the file to load
Depuis:
1.5

Définition à la ligne 2706 du fichier KoDocument.cpp.

Références deleteOpenPane(), openURL(), et setModified().

Référencé par createOpenPane().

void KoDocument::openTemplate ( const KUrl &  url  )  [protected, virtual, slot]

This slot loads a template and deletes the start up widget.

Paramètres:
url the template to load
Depuis:
1.5

Définition à la ligne 2715 du fichier KoDocument.cpp.

Références deleteOpenPane(), initEmpty(), loadNativeFormat(), resetURL(), setEmpty(), setModified(), et showLoadingErrorDialog().

Référencé par createOpenPane(), et showStartUpWidget().

void KoDocument::deleteOpenPaneDelayed (  )  [protected, slot]

Définition à la ligne 2782 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_startUpWidget.

Référencé par deleteOpenPane().

QString KoDocument::newObjectName (  )  [protected]

Generate a name for the document.

Définition à la ligne 104 du fichier KoDocument.cpp.

Références KoPageFormat::name().

Référencé par KoDocument().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

QString KoDocument::autoSaveFile ( const QString &  path  )  const [protected]

Définition à la ligne 1299 du fichier KoDocument.cpp.

Références nativeFormatMimeType().

Référencé par checkAutoSaveFile(), openURL(), removeAutoSaveFiles(), et slotAutoSave().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

virtual KoView* KoDocument::createViewInstance ( QWidget *  parent  )  [protected, pure virtual]

Implémenté dans KPlato::Part.

Référencé par createView().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::openFile (  )  [protected, virtual]

Loads a document from KReadOnlyPart::m_file (KParts takes care of downloading remote documents). Applies a filter if necessary, and calls loadNativeFormat in any case You should not have to reimplement, except for very special cases.

This method is called from the KReadOnlyPart::openURL method.

Définition à la ligne 1436 du fichier KoDocument.cpp.

Références KoFilter::BadConversionGraph, KoFilter::BadMimeType, createView(), KoFilter::CreationError, d, KoFilter::EmbeddedDocError, KoFilter::FileNotFound, KoDocument::Private::filterManager, KoFilterManager::import(), KoFilter::InternalError, isNativeFormat(), loadNativeFormat(), KoDocument::Private::m_autoErrorHandlingEnabled, KoDocument::Private::m_bLoading, KoDocument::Private::m_bSingleViewMode, KoDocument::Private::m_specialOutputFlag, KoDocument::Private::m_views, KoDocument::Private::m_wrapperWidget, nativeFormatMimeType(), KoFilter::NotImplemented, KoFilter::OK, KoFilter::OutOfMemory, KoFilter::ParsingError, KoFilter::PasswordProtected, removeView(), resetURL(), SaveAsDirectoryStore, KoViewWrapperWidget::setKoView(), setMimeTypeAfterLoading(), showLoadingErrorDialog(), KoFilter::StorageCreationError, KoFilter::StupidError, KoFilter::UnexpectedEOF, KoFilter::UnexpectedOpcode, KoFilter::UsageError, KoFilter::UserCancelled, et KoFilter::WrongFormat.

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveFile (  )  [protected, virtual]

Saves a document to KReadOnlyPart::m_file (KParts takes care of uploading remote documents) Applies a filter if necessary, and calls saveNativeFormat in any case You should not have to reimplement, except for very special cases.

Définition à la ligne 393 du fichier KoDocument.cpp.

Références backupFile(), KoFilter::BadConversionGraph, d, KoFilterManager::exp0rt(), KoDocument::Private::filterManager, isExporting(), isModified(), isNativeFormat(), KoDocument::Private::m_autoSaveDelay, KoDocument::Private::m_backupPath, KoDocument::Private::mimeType, nativeFormatMimeType(), KoFilter::OK, KoDocument::Private::outputMimeType, outputMimeType(), removeAutoSaveFiles(), resetURL(), saveNativeFormat(), setAutoSave(), setConfirmNonNativeSave(), setModified(), shells(), showSavingErrorDialog(), sigClearStatusBarMessage(), sigStatusBarMessage(), et KoFilter::UserCancelled.

Voici le graphe d'appel pour cette fonction :

QWidget * KoDocument::createCustomDocumentWidget ( QWidget *  parent  )  [protected, virtual]

Override this method in your derived class to show a widget in the startup 'dialog'. This widget should allow the user to set settings for a custom document (i.e. one not based on a template). The returned widget should provide its own button (preferrably 'Create') and implement the logic to implement the document instance correctly. After initializing the widget should emit a signal called 'documentSelected()' which will remove the startupWidget and show the document.

Paramètres:
parent the parent of the to be created widget.

Définition à la ligne 2788 du fichier KoDocument.cpp.

Référencé par createOpenPane().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadChildren ( KoStore  )  [protected, virtual]

OLD XML method. For OASIS just call KoDocumentChild::loadOasisDocument after KoDocumentChild::loadOasis.

You need to overload this function if your document may contain embedded documents. This function is called to load embedded documents.

An example implementation may look like this:

  QPtrListIterator<KoDocumentChild> it( children() );
  for( ; it.current(); ++it )
  {
    if ( !it.current()->loadDocument( _store ) )
    {
      return false;
    }
  }
  return true;

Définition à la ligne 2242 du fichier KoDocument.cpp.

Référencé par loadFromStore(), et loadNativeFormatFromStoreInternal().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveChildren ( KoStore store  )  [protected, virtual]

Saves all internal children (only!).

Voir également:
saveExternalChildren if you have external children. Returns true on success.

Définition à la ligne 885 du fichier KoDocument.cpp.

Références children(), et isExporting().

Référencé par saveNativeFormat(), et saveToStore().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveChildrenOasis ( KoStore store,
KoXmlWriter manifestWriter 
) [protected, virtual]

Saves all internal children (only!), to the store, using the OASIS format. This is called automatically during saveNativeFormat.

Voir également:
saveExternalChildren if you have external children. Returns true on success.

Définition à la ligne 909 du fichier KoDocument.cpp.

Références children(), et isExporting().

Référencé par addVersion(), et saveNativeFormat().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::completeLoading ( KoStore store  )  [protected, virtual]

Overload this function if you have to load additional files from a store. This function is called after loadXML() and after loadChildren() have been called.

Définition à la ligne 2247 du fichier KoDocument.cpp.

Référencé par loadFromStore(), loadNativeFormat(), et loadNativeFormatFromStoreInternal().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::completeSaving ( KoStore store  )  [protected, virtual]

If you want to write additional files to a store, then you must do it here. In the implementation, you should prepend the document url (using url().url()) before the filename, so that everything is kept relative to this document. For instance it will produce urls such as tar:/1/pictures/picture0.png, if the doc url is tar:/1 But do this ONLY if the document is not stored extern (see isStoredExtern() ). If it is, then the pictures should be saved to tar:/pictures.

Définition à la ligne 2252 du fichier KoDocument.cpp.

Référencé par saveNativeFormat(), et saveToStore().

Voici le graphe d'appel pour cette fonction :

void KoDocument::insertChild ( KoDocumentChild child  )  [protected, virtual]

Inserts the new child in the list of children and emits the childChanged() signal.

At the same time this method marks this document as modified.

To remove a child, just delete it. KoDocument will detect this and remove the child from its lists.

Voir également:
isModified

Définition à la ligne 669 du fichier KoDocument.cpp.

Références child(), d, KoDocumentChild::document(), isSingleViewMode(), KoDocument::Private::m_children, setModified(), slotChildChanged(), et slotChildDestroyed().

Voici le graphe d'appel pour cette fonction :

virtual void KoDocument::setModified (  )  [inline, protected, virtual]

Définition à la ligne 1112 du fichier KoDocument.h.

Référencé par exp0rt(), initEmpty(), insertChild(), KPlato::Part::loadXML(), openExistingFile(), openTemplate(), queryCloseDia(), saveFile(), slotAutoSave(), slotChildDestroyed(), KPlato::Part::slotCommandExecuted(), et KPlato::Part::slotDocumentRestored().

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveExternalChildren (  )  [protected, virtual]

Saves all externally stored children. Returns true on success.

Voir également:
saveChildren for internal children

Définition à la ligne 926 du fichier KoDocument.cpp.

Références children(), d, KoDocumentChild::document(), KoDocumentChild::isDeleted(), KoDocument::Private::m_doNotSaveExtDoc, et setDoNotSaveExtDoc().

Référencé par addVersion(), et saveNativeFormat().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::isImporting (  )  const [protected]

Returns whether or not the current openURL() or openFile() call is actually an import operation (like File --> Import). This is for informational purposes only.

Définition à la ligne 530 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_isImporting.

bool KoDocument::isExporting (  )  const [protected]

Returns whether or not the current saveFile() call is actually an export operation (like File --> Export). If this function returns true during saveFile() and you are changing some sort of state, you _must_ restore it before the end of saveFile(); otherwise, File --> Export will not work properly.

Définition à la ligne 535 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_isExporting.

Référencé par saveChildren(), saveChildrenOasis(), et saveFile().

Voici le graphe d'appel pour cette fonction :

KoOpenPane * KoDocument::createOpenPane ( QWidget *  parent,
KInstance *  instance,
const QString &  templateType = QString::null 
) [protected]

Creates the open widget showed at application start up.

Paramètres:
parent the parent widget
instance the KInstance to be used for KConfig data
templateType the template-type (group) that should be selected on creation.
Depuis:
1.5

Définition à la ligne 2740 du fichier KoDocument.cpp.

Références createCustomDocumentWidget(), openExistingFile(), openTemplate(), KoOpenPane::setCustomDocumentWidget(), et startCustomDocument().

Référencé par showEmbedInitDialog(), et showStartUpWidget().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoDocument::slotChildChanged ( KoChild c  )  [private, slot]

Définition à la ligne 692 du fichier KoDocument.cpp.

Références childChanged().

Référencé par insertChild().

void KoDocument::slotChildDestroyed (  )  [private, slot]

Définition à la ligne 698 du fichier KoDocument.cpp.

Références child(), d, KoDocument::Private::m_children, et setModified().

Référencé par insertChild(), et ~KoDocument().

void KoDocument::slotAutoSave (  )  [private, slot]

Définition à la ligne 555 du fichier KoDocument.cpp.

Références autoSaveFile(), d, isModified(), KoDocument::Private::m_autoSaveTimer, KoDocument::Private::m_autosaving, KoDocument::Private::m_bLoading, KoDocument::Private::modifiedAfterAutosave, saveNativeFormat(), setModified(), shells(), sigClearStatusBarMessage(), sigProgress(), et sigStatusBarMessage().

Référencé par KoDocument().

void KoDocument::slotStarted ( KIO::Job *   )  [private, slot]

Définition à la ligne 2626 du fichier KoDocument.cpp.

Références d, et KoDocument::Private::m_shells.

Référencé par KoDocument().

void KoDocument::startCustomDocument (  )  [private, slot]

Définition à la ligne 2736 du fichier KoDocument.cpp.

Références deleteOpenPane().

Référencé par createOpenPane().

void KoDocument::deleteOpenPane (  )  [private, slot]

Removes the open widget showed at application start up.

Depuis:
1.5

Définition à la ligne 2769 du fichier KoDocument.cpp.

Références closeEmbedInitDialog(), d, deleteOpenPaneDelayed(), KoDocument::Private::m_startUpWidget, et shells().

Référencé par openExistingFile(), openTemplate(), et startCustomDocument().

virtual void KoDocument::insertChild ( QObject *   )  [inline, private, virtual]

Définition à la ligne 1162 du fichier KoDocument.h.

KService::Ptr KoDocument::nativeService (  )  [private]

Définition à la ligne 2323 du fichier KoDocument.cpp.

Références m_nativeService, et readNativeService().

Référencé par extraNativeMimeTypes(), nativeFormatMimeType(), et nativeOasisMimeType().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::oldLoadAndParse ( KoStore store,
const QString &  filename,
KoXmlDocument doc 
) [private]

Définition à la ligne 1653 du fichier KoDocument.cpp.

Références KoStore::close(), d, KoStore::device(), KoDocument::Private::lastErrorMessage, et KoStore::open().

Référencé par loadNativeFormatFromStoreInternal().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadNativeFormatFromStore ( const QString &  file  )  [private]

Définition à la ligne 1771 du fichier KoDocument.cpp.

Références KoStore::Auto, KoStore::bad(), KoStore::createStore(), d, KoStore::Directory, KoDocument::Private::lastErrorMessage, loadNativeFormatFromStoreInternal(), KoDocument::Private::m_specialOutputFlag, KoStore::Read, et SaveAsDirectoryStore.

Voici le graphe d'appel pour cette fonction :

bool KoDocument::loadNativeFormatFromStoreInternal ( KoStore store  )  [private]

Définition à la ligne 1799 du fichier KoDocument.cpp.

Références KoStore::close(), completeLoading(), d, KoStore::device(), KoStore::disallowNameExpansion(), KoStore::extractFile(), forEachElement, KoStore::hasFile(), KoDocument::Private::lastErrorMessage, KoDocumentInfo::load(), KoOasisStore::loadAndParse(), loadChildren(), KoDocumentInfo::loadOasis(), loadOasisFromStore(), loadXML(), m_bEmpty, KoDocument::Private::m_docInfo, KoDocument::Private::m_versionInfo, KoDom::namedItemNS(), oldLoadAndParse(), version, et KoXmlNS::VL.

Référencé par loadNativeFormatFromStore().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::savePreview ( KoStore store  )  [private]

Définition à la ligne 1242 du fichier KoDocument.cpp.

Références generatePreview().

Référencé par saveNativeFormat().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoDocument::saveOasisPreview ( KoStore store,
KoXmlWriter manifestWriter 
) [private]

Définition à la ligne 1225 du fichier KoDocument.cpp.

Références KoXmlWriter::addManifestEntry(), et generatePreview().

Référencé par saveNativeFormat().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KoPageLayout KoDocument::m_pageLayout [protected]

Définition à la ligne 1114 du fichier KoDocument.h.

Référencé par generatePreview(), KoDocument(), et pageLayout().

Private* KoDocument::d [private]

Définition à la ligne 1171 du fichier KoDocument.h.

Référencé par action(), addShell(), addVersion(), addView(), backupPath(), child(), children(), confirmNonNativeSave(), deleteOpenPane(), deleteOpenPaneDelayed(), documentInfo(), domDocument(), emitBeginOperation(), emitEndOperation(), errorMessage(), exp0rt(), forceCurrent(), hitTest(), import(), insertChild(), isAutoErrorHandlingEnabled(), isAutosaving(), isCurrent(), isExporting(), isImporting(), isInOperation(), isLoading(), isSingleViewMode(), KoDocument(), loadNativeFormat(), loadNativeFormatFromStore(), loadNativeFormatFromStoreInternal(), loadOasisFromStore(), mimeType(), oldLoadAndParse(), openFile(), openURL(), outputMimeType(), paintChildren(), removeShell(), removeView(), saveExternalChildren(), saveFile(), saveNativeFormat(), saveXML(), setAutoErrorHandlingEnabled(), setAutoSave(), setBackupFile(), setBackupPath(), setCheckAutoSaveFile(), setConfirmNonNativeSave(), setCurrent(), setDoNotSaveExtDoc(), setErrorMessage(), setManager(), setMimeType(), setMimeTypeAfterLoading(), setModified(), setOutputMimeType(), setReadWrite(), setStoreInternal(), setTemplateType(), setTitleModified(), setUnit(), setViewBuildDocument(), shellCount(), shells(), showLoadingErrorDialog(), showSavingErrorDialog(), showStartUpWidget(), slotAutoSave(), slotChildDestroyed(), slotStarted(), specialOutputFlag(), storeInternal(), templateType(), unit(), versionList(), viewBuildDocument(), viewCount(), views(), et ~KoDocument().

KService::Ptr KoDocument::m_nativeService [private]

Définition à la ligne 1173 du fichier KoDocument.h.

Référencé par nativeService().

bool KoDocument::m_bEmpty [private]

Définition à la ligne 1174 du fichier KoDocument.h.

Référencé par KoDocument(), loadNativeFormat(), loadNativeFormatFromStoreInternal(), et setModified().

Q3PtrList< KoDocument > * KoDocument::s_documentList [static, private]

Définition à la ligne 1175 du fichier KoDocument.h.

Référencé par KoDocument(), et ~KoDocument().

const int KoDocument::s_defaultAutoSave [static, private]

Définition à la ligne 1176 du fichier KoDocument.h.

Référencé par KoDocument().


Documentation des propriétés

bool KoDocument::backupFile [read, write]

Définition à la ligne 85 du fichier KoDocument.h.


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:45:02 2006 pour KPlato par  doxygen 1.5.1-p1