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

Detailed Description
The KOffice document classThe KOffice document class.This class provides some functionality each KOffice document should have.
Definition at line 61 of file KoDocument.h.
Public Types | |
enum | { SaveAsDirectoryStore = 2, SaveAsFlatXML = 4 } |
enum | InitDocFlags { InitDocAppStarting, InitDocFileNew, InitDocFileClose, InitDocEmbedded, InitDocEmpty } |
Public Slots | |
virtual void | initEmpty () |
Signals | |
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 () |
Public Member Functions | |
KoDocument (QWidget *parentWidget, const char *widgetName, QObject *parent, const char *name, 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) |
virtual QCString | nativeFormatMimeType () const |
QCString | nativeOasisMimeType () const |
bool | isNativeFormat (const QCString &mimetype) const |
virtual QStringList | extraNativeMimeTypes () const |
virtual int | supportedSpecialFormats () const |
QCString | mimeType () const |
void | setMimeType (const QCString &mimeType) |
void | setOutputMimeType (const QCString &mimeType, int specialOutputFlag=0) |
QCString | 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 () |
KoView * | createView (QWidget *parent=0, const char *name=0) |
virtual void | addView (KoView *view) |
virtual void | removeView (KoView *view) |
const QPtrList< KoView > & | views () const |
int | viewCount () const |
virtual KParts::Part * | hitTest (QWidget *widget, const QPoint &globalPos) |
virtual KoDocument * | hitTest (const QPoint &pos, const QWMatrix &matrix=QWMatrix()) |
KoView * | hitTestView () |
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) |
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 bool | initDoc (InitDocFlags flags, QWidget *parentWidget=0)=0 |
virtual void | showStartUpWidget (KoMainWindow *parent, bool alwaysShow=false) |
virtual void | setModified (bool _mod) |
virtual void | setTitleModified () |
virtual bool | isEmpty () const |
virtual void | setEmpty () |
virtual bool | loadFromStore (KoStore *store, const QString &url) |
virtual bool | loadOasisFromStore (KoStore *store) |
virtual bool | saveToStore (KoStore *store, const QString &path) |
virtual bool | loadXML (QIODevice *, const QDomDocument &doc)=0 |
virtual bool | loadOasis (const QDomDocument &doc, KoOasisStyles &oasisStyles, const QDomDocument &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 QPtrList< KoDocumentChild > & | children () const |
KoDocumentChild * | child (KoDocument *doc) |
KoDocumentInfo * | documentInfo () const |
void | setViewBuildDocument (KoView *view, const QDomDocument &doc) |
QDomDocument | viewBuildDocument (KoView *view) |
virtual void | addShell (KoMainWindow *shell) |
virtual void | removeShell (KoMainWindow *shell) |
const QPtrList< KoMainWindow > & | shells () const |
int | shellCount () const |
virtual DCOPObject * | dcopObject () |
QCString | dcopObjectId () const |
void | emitProgress (int value) |
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) |
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 QValueList< 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) |
Static Public Member Functions | |
static QCString | readNativeFormatMimeType (KInstance *instance=0) |
static QStringList | readExtraNativeMimeTypes (KInstance *instance=0) |
static KService::Ptr | readNativeService (KInstance *instance=0) |
static void | setupXmlReader (QXmlSimpleReader &reader, bool namespaceProcessing=false) |
static KoXmlWriter * | createOasisXmlWriter (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 QPtrList< KoDocument > * | documentList () |
Protected Slots | |
virtual void | openExistingFile (const QString &file) |
virtual void | openTemplate (const QString &file) |
void | deleteOpenPaneDelayed () |
Protected Member Functions | |
QString | autoSaveFile (const QString &path) const |
virtual KoView * | createViewInstance (QWidget *parent, const char *name)=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 void | insertChild (QObject *o) |
virtual bool | saveExternalChildren () |
bool | isImporting () const |
bool | isExporting () const |
KoOpenPane * | createOpenPane (QWidget *parent, KInstance *instance, const QString &templateType=QString::null) |
Protected Attributes | |
KoPageLayout | m_pageLayout |
Properties | |
QCString | dcopObjectId |
bool | backupFile |
Member Enumeration Documentation
|
Enum values used by specialOutputFlag - note that it's a bitfield for supportedSpecialFormats.
Definition at line 239 of file KoDocument.h. |
|
This setting indicates who is calling initDoc. Usually the app will want to
Definition at line 455 of file KoDocument.h. |
Constructor & Destructor Documentation
|
Constructor. The first 4 arguments are the same as the ones passed to KParts::Factory::createPart.
Definition at line 224 of file KoDocument.cpp. |
|
Destructor. The destructor does not delete any attached KoView objects and it does not delete the attached widget as returned by widget(). Definition at line 269 of file KoDocument.cpp. |
Member Function Documentation
|
Returns the action described action object.
In fact only the "name" attribute of Please notice that KoDocument indirectly inherits KXMLGUIClient.
Reimplemented from KXMLGUIClient. Definition at line 554 of file KoDocument.cpp. |
|
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 dont need to call it. Definition at line 2283 of file KoDocument.cpp. |
|
Adds a view to the document. This calls KoView::updateReadWrite to tell the new view whether the document is readonly or not. Definition at line 620 of file KoDocument.cpp. |
|
Definition at line 2483 of file KoDocument.cpp. |
|
Definition at line 2391 of file KoDocument.cpp. |
|
Called by koApplication to check for an autosave file in $HOME.
Definition at line 1280 of file KoDocument.cpp. |
|
Definition at line 727 of file KoDocument.cpp. |
|
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. |
|
Definition at line 681 of file KoDocument.cpp. |
|
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. Definition at line 2092 of file KoDocument.cpp. |
|
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. Definition at line 2097 of file KoDocument.cpp. |
|
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).
Definition at line 491 of file KoDocument.cpp. |
|
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.
Definition at line 2618 of file KoDocument.cpp. |
|
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.
Definition at line 2108 of file KoDocument.cpp. |
|
Return a correctly created QDomDocument for this KoDocument, including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element.
Definition at line 2102 of file KoDocument.cpp. |
|
Return an XML writer for saving Oasis XML into the device You can add more namespaces afterwards with addAttribute.
Definition at line 2122 of file KoDocument.cpp. |
|
Creates the open widget showed at application start up.
Definition at line 2570 of file KoDocument.cpp. |
|
Create a new view for the document.
Definition at line 314 of file KoDocument.cpp. |
|
Return a DCOP interface for this document. KOffice parts are strongly recommended to reimplement this method, so that their DCOP interface provides more functionality than the basic KoDocumentIface Definition at line 2308 of file KoDocument.cpp. |
|
|
|
Retrieve the default value for autosave in seconds. Called by the applications to use the correct default in their config Definition at line 658 of file KoDocument.h. |
|
Definition at line 737 of file KoDocument.cpp. |
|
Definition at line 712 of file KoDocument.h. |
|
Returns the DOM document which describes the GUI of the first view.
Reimplemented from KXMLGUIClient. Definition at line 569 of file KoDocument.cpp. |
|
Signal the progress of operations such as loading or saving.
Definition at line 730 of file KoDocument.h. |
|
Return the last error message. Usually KoDocument takes care of showing it; this method is mostly provided for non-interactive use.
Definition at line 2325 of file KoDocument.cpp. |
|
Saves the document as ). Call this instead of KParts::ReadWritePart::saveAs() to implement KoMainWindow's File --> Export feature.
Definition at line 321 of file KoDocument.cpp. |
|
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 Definition at line 2263 of file KoDocument.cpp. |
|
_Only_ use these functions to restore m_file (in KoMainWindow) after a failed save (remember to use setURL() to restore the URL as well).
Definition at line 846 of file KoDocument.h. |
|
Sets current flag for this document and all its parents.
Definition at line 2423 of file KoDocument.cpp. |
|
Generates a preview picture of the document.
Definition at line 1210 of file KoDocument.cpp. |
|
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 function has to be overloaded if the document features child documents.
Definition at line 712 of file KoDocument.cpp. |
|
Reimplemented from KParts::Part.
Reimplemented from KParts::Part. Definition at line 686 of file KoDocument.cpp. |
|
Temporary API for accessing the view that calls hitTest. Will be passed to hitTest() in 2.x. Only call this from within hitTest()! Definition at line 707 of file KoDocument.cpp. |
|
Opens the document given by Call this instead of openURL() to implement KoMainWindow's File --> Import feature.
Definition at line 1310 of file KoDocument.cpp. |
|
Initializes an empty document (display the template dialog!). You have to overload this method to initialize all your document variables.
|
|
Initialize an empty document using default values.
Definition at line 2560 of file KoDocument.cpp. |
|
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.
Definition at line 644 of file KoDocument.cpp. |
|
Checks whether error message boxes should be shown.
Definition at line 528 of file KoDocument.cpp. |
|
Checks whether the document is currently in the process of autosaving.
Definition at line 2354 of file KoDocument.cpp. |
|
Is the document embedded?
Definition at line 309 of file KoDocument.cpp. |
|
Definition at line 489 of file KoDocument.h. |
|
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. Definition at line 513 of file KoDocument.cpp. |
|
Returns whether or not the current openURL() or openFile() call is actually an import operation (like File --> Import). This is for informational purposes only. Definition at line 508 of file KoDocument.cpp. |
|
Returns true during loading (openURL can be asynchronous).
Definition at line 2359 of file KoDocument.cpp. |
|
Returns true if this document or any of its internal child documents are modified.
Reimplemented from KParts::ReadWritePart. Definition at line 853 of file KoDocument.cpp. |
|
Checks whether a given mimetype can be handled natively.
Definition at line 2256 of file KoDocument.cpp. |
|
Tells whether this document is in singleview mode. This mode can only be set in the constructor. Definition at line 304 of file KoDocument.cpp. |
|
Return true if url() is a real filename, false if url() is an internal url in the store, like "tar:/...".
Definition at line 1917 of file KoDocument.cpp. |
|
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; Definition at line 2087 of file KoDocument.cpp. |
|
Loads a document from a store. You should never have to reimplement.
Definition at line 1816 of file KoDocument.cpp. |
|
Loads a document in the native format from a given URL. Reimplement if your native format isn't XML.
Definition at line 1647 of file KoDocument.cpp. |
|
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. |
|
Loads an OASIS document from a store. This is used for both the main document and embedded objects. Definition at line 1857 of file KoDocument.cpp. |
|
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. |
|
Returns the actual mimetype of the document.
Definition at line 465 of file KoDocument.cpp. |
|
Emitted when the document is modified.
|
|
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). Definition at line 2169 of file KoDocument.cpp. |
|
Returns the OASIS OpenDocument mimetype of the document, if supported This comes from the X-KDE-NativeOasisMimeType key in the .desktop file.
Definition at line 2177 of file KoDocument.cpp. |
|
This slot loads an existing file and deletes the start up widget.
Definition at line 2535 of file KoDocument.cpp. |
|
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. Implements KParts::ReadOnlyPart. Definition at line 1393 of file KoDocument.cpp. |
|
This slot loads a template and deletes the start up widget.
Definition at line 2545 of file KoDocument.cpp. |
|
Reimplemented from KParts::ReadWritePart for internal reasons (for the autosave functionality).
Reimplemented from KParts::ReadOnlyPart. Definition at line 1334 of file KoDocument.cpp. |
|
Definition at line 866 of file KoDocument.h. |
|
Definition at line 2488 of file KoDocument.cpp. |
|
Paint a given child. Normally called by paintChildren().
Definition at line 793 of file KoDocument.cpp. |
|
Paints all of the documents children into the given painter object.
Definition at line 781 of file KoDocument.cpp. |
|
Paints the data itself. Normally called by paintEverything(). It does not paint the children. It's this method that KOffice Parts have to implement.
|
|
Paints the whole document into the given painter object.
Definition at line 775 of file KoDocument.cpp. |
|
Used by KoMainWindow, when no document exists yet.
With the help of
Definition at line 2232 of file KoDocument.cpp. |
|
Used by KoApplication, and by KoMainWindow, when no document exists yet.
With the help of
Definition at line 2211 of file KoDocument.cpp. |
|
With the help of
Definition at line 2187 of file KoDocument.cpp. |
|
Performs a cleanup of unneeded backup files.
Definition at line 2364 of file KoDocument.cpp. |
|
Removes the shell from the list. That happens automatically if the shell changes its root document. Usually you dont need to call this method. Definition at line 2292 of file KoDocument.cpp. |
|
Removes a view of the document.
Definition at line 629 of file KoDocument.cpp. |
|
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() Definition at line 818 of file KoDocument.h. |
|
Saves all internal children (only!).
Definition at line 871 of file KoDocument.cpp. |
|
Saves all internal children (only!), to the store, using the OASIS format. This is called automatically during saveNativeFormat.
Definition at line 895 of file KoDocument.cpp. |
|
Saves all externally stored children. Returns true on success.
Definition at line 912 of file KoDocument.cpp. |
|
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.
Implements KParts::ReadWritePart. Definition at line 371 of file KoDocument.cpp. |
|
Saves the document in native format, to a given file You should never have to reimplement. Made public for writing templates. Definition at line 946 of file KoDocument.cpp. |
|
Reimplement this method to save the contents of your KOffice document, using the OASIS format.
|
|
Saves a document to a store. You should not have to reimplement this - but call it in saveChildren(). Definition at line 1134 of file KoDocument.cpp. |
|
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. Definition at line 1120 of file KoDocument.cpp. |
|
Reimplement this to save the contents of the KOffice document into a QDomDocument. The framework takes care of saving it to the store. Definition at line 2154 of file KoDocument.cpp. |
|
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. Definition at line 523 of file KoDocument.cpp. |
|
Activate/deactivate/configure the autosave feature.
Definition at line 611 of file KoDocument.cpp. |
|
Sets the backup path of the document.
Definition at line 2386 of file KoDocument.cpp. |
|
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). Definition at line 518 of file KoDocument.cpp. |
|
Indicates that this document is currently viewed and thus should control the title caption. Also resets current flag for all parents. Definition at line 2396 of file KoDocument.cpp. |
|
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(); Definition at line 1959 of file KoDocument.cpp. |
|
Sets the document to empty. Used after loading a template (which is not empty, but not the user's input).
Definition at line 499 of file KoDocument.h. |
|
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. Definition at line 2320 of file KoDocument.cpp. |
|
_Only_ use these functions to restore m_file (in KoMainWindow) after a failed save (remember to use setURL() to restore the URL as well).
Definition at line 856 of file KoDocument.h. |
|
Sets the mime type for the document. When choosing "save as" this is also the mime type selected by default. Definition at line 470 of file KoDocument.cpp. |
|
Sets the modified flag on the document. This means that it has to be saved or not before deleting it. Reimplemented from KParts::ReadWritePart. Definition at line 1922 of file KoDocument.cpp. |
|
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.
Definition at line 475 of file KoDocument.cpp. |
|
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. Reimplemented from KParts::ReadWritePart. Definition at line 595 of file KoDocument.cpp. |
|
Set when you want an external embedded document to be stored internally.
Definition at line 2444 of file KoDocument.cpp. |
|
Set the template type used. This is used by the start up widget to show the correct templates.
Definition at line 2589 of file KoDocument.cpp. |
|
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.
Definition at line 2050 of file KoDocument.cpp. |
|
Sets the unit used to display all measures/distances.
Definition at line 2498 of file KoDocument.cpp. |
|
setup the XML reader, so that we don't have to duplicate the code.
Definition at line 2240 of file KoDocument.cpp. |
|
Sets the document URL to
Definition at line 836 of file KoDocument.h. |
|
Definition at line 2303 of file KoDocument.cpp. |
|
Definition at line 2298 of file KoDocument.cpp. |
|
Shows the init dialog when embeding.
Definition at line 2622 of file KoDocument.cpp. |
|
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.
Definition at line 2342 of file KoDocument.cpp. |
|
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.
Definition at line 2330 of file KoDocument.cpp. |
|
Creates and shows the start up widget.
Definition at line 2512 of file KoDocument.cpp. |
|
Emitted e.g. at the end of a save operation This is emitted by KoDocument and used by KoView to clear the statusbar message |
|
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. |
|
Emitted e.g. at the beginning of a save operation This is emitted by KoDocument and used by KoView to display a statusbar message |
|
Definition at line 2439 of file KoDocument.cpp. |
|
Return the set of SupportedSpecialFormats that the application wants to offer in the "Save" file dialog.
Definition at line 2275 of file KoDocument.cpp. |
|
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. Definition at line 2475 of file KoDocument.cpp. |
|
Template type used. This is used by the start up widget to show the correct templates.
Definition at line 2594 of file KoDocument.cpp. |
|
Returns the unit used to display all measures/distances.
Definition at line 2493 of file KoDocument.cpp. |
|
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) |
|
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.)
Definition at line 2507 of file KoDocument.cpp. |
|
Definition at line 639 of file KoDocument.cpp. |
|
Definition at line 634 of file KoDocument.cpp. |
The documentation for this class was generated from the following files: