summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoDocument.h')
-rw-r--r--lib/kofficecore/KoDocument.h225
1 files changed, 113 insertions, 112 deletions
diff --git a/lib/kofficecore/KoDocument.h b/lib/kofficecore/KoDocument.h
index 1e8f1f83..0499ab6c 100644
--- a/lib/kofficecore/KoDocument.h
+++ b/lib/kofficecore/KoDocument.h
@@ -25,7 +25,7 @@
class KoTextDocument;
namespace std { }
using namespace std;
-#include <qwmatrix.h>
+#include <tqwmatrix.h>
#include <kparts/part.h>
#include <kurl.h>
@@ -35,9 +35,9 @@ using namespace std;
#include <KoPageLayout.h>
#include <koffice_export.h>
-class QDomElement;
-class QDomDocument;
-class QXmlSimpleReader;
+class TQDomElement;
+class TQDomDocument;
+class TQXmlSimpleReader;
class KoStore;
class KoMainWindow;
@@ -61,8 +61,9 @@ class KoOpenPane;
class KOFFICECORE_EXPORT KoDocument : public KParts::ReadWritePart
{
Q_OBJECT
- Q_PROPERTY( QCString dcopObjectId READ dcopObjectId)
- Q_PROPERTY( bool backupFile READ backupFile WRITE setBackupFile )
+ TQ_OBJECT
+ TQ_PROPERTY( TQCString dcopObjectId READ dcopObjectId)
+ TQ_PROPERTY( bool backupFile READ backupFile WRITE setBackupFile )
public:
@@ -70,24 +71,24 @@ public:
* Constructor.
* The first 4 arguments are the same as the ones passed to KParts::Factory::createPart.
*
- * @param parentWidget the parent widget, in case we create a wrapper widget
+ * @param tqparentWidget the tqparent widget, in case we create a wrapper widget
* (in single view mode).
* Usually the first argument passed by KParts::Factory::createPart.
* @param widgetName name of the widget.
- * @param parent may be another KoDocument, or anything else.
+ * @param tqparent may be another KoDocument, or anything else.
* Usually the third argument of KParts::Factory::createPart.
* @param name is used to identify this document via DCOP so you may want to
* pass a meaningful name here which matches the pattern [A-Za-z_][A-Za-z_0-9]*.
* @param singleViewMode determines whether the document may only have one view. In this case
- * the @p parent must be a QWidget derived class. KoDocument will then create a wrapper widget
- * (KoViewWrapperWidget) which is a child of @p parentWidget.
+ * the @p tqparent must be a TQWidget derived class. KoDocument will then create a wrapper widget
+ * (KoViewWrapperWidget) which is a child of @p tqparentWidget.
* This widget can be retrieved by calling widget().
*
* @todo explain what the purpose of widgetName is.
*/
- KoDocument( QWidget* parentWidget,
+ KoDocument( TQWidget* tqparentWidget,
const char* widgetName,
- QObject* parent,
+ TQObject* tqparent,
const char* name,
bool singleViewMode = false );
@@ -125,13 +126,13 @@ public:
* @see KXMLGUIClient::actionCollection
* @see KoView::action
*/
- virtual KAction *action( const QDomElement &element ) const;
+ virtual KAction *action( const TQDomElement &element ) const;
/**
* Returns the DOM document which describes the GUI of the
* first view.
*/
- virtual QDomDocument domDocument() const;
+ virtual TQDomDocument domDocument() const;
/**
* @internal
@@ -187,7 +188,7 @@ public:
* @see KService
* @see KDesktopFile
*/
- static QCString readNativeFormatMimeType( KInstance *instance = 0 );
+ static TQCString readNativeFormatMimeType( KInstance *instance = 0 );
/**
* Used by KoMainWindow, when no document exists yet.
@@ -199,7 +200,7 @@ public:
* @see KService
* @see KDesktopFile
*/
- static QStringList readExtraNativeMimeTypes( KInstance *instance = 0 );
+ static TQStringList readExtraNativeMimeTypes( KInstance *instance = 0 );
/**
* With the help of @p instance or KApplication::instance() this
@@ -211,7 +212,7 @@ public:
/**
* setup the XML reader, so that we don't have to duplicate the code.
*/
- static void setupXmlReader( QXmlSimpleReader& reader, bool namespaceProcessing = false );
+ static void setupXmlReader( TQXmlSimpleReader& reader, bool namespaceProcessing = false );
/**
* To be preferred when a document exists. It is fast when calling
@@ -220,20 +221,20 @@ public:
* 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).
*/
- virtual QCString nativeFormatMimeType() const;
+ virtual TQCString nativeFormatMimeType() const;
/**
* Returns the OASIS OpenDocument mimetype of the document, if supported
* This comes from the X-KDE-NativeOasisMimeType key in the .desktop file
*/
- QCString nativeOasisMimeType() const;
+ TQCString nativeOasisMimeType() const;
/// Checks whether a given mimetype can be handled natively.
- bool isNativeFormat( const QCString& mimetype ) const;
+ bool isNativeFormat( const TQCString& mimetype ) const;
/// 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
- virtual QStringList extraNativeMimeTypes() const;
+ virtual TQStringList extraNativeMimeTypes() const;
/// Enum values used by specialOutputFlag - note that it's a bitfield for supportedSpecialFormats
enum { /*SaveAsKOffice1dot1 = 1,*/ // old and removed
@@ -251,7 +252,7 @@ public:
/**
* Returns the actual mimetype of the document
*/
- QCString mimeType() const;
+ TQCString mimeType() const;
/**
* @brief Sets the mime type for the document.
@@ -259,7 +260,7 @@ public:
* When choosing "save as" this is also the mime type
* selected by default.
*/
- void setMimeType( const QCString & mimeType );
+ void setMimeType( const TQCString & mimeType );
/**
* @brief Set the format in which the document should be saved.
@@ -270,8 +271,8 @@ public:
* @param mimeType the mime type (format) to use.
* @param specialOutputFlag is for "save as older version" etc.
*/
- void setOutputMimeType( const QCString & mimeType, int specialOutputFlag = 0 );
- QCString outputMimeType() const;
+ void setOutputMimeType( const TQCString & mimeType, int specialOutputFlag = 0 );
+ TQCString outputMimeType() const;
int specialOutputFlag() const;
/**
@@ -298,14 +299,14 @@ public:
* 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.
*/
- void setErrorMessage( const QString& errMsg );
+ void setErrorMessage( const TQString& errMsg );
/**
* Return the last error message. Usually KoDocument takes care of
* showing it; this method is mostly provided for non-interactive use.
* @since 1.4
*/
- QString errorMessage() const;
+ TQString errorMessage() const;
/**
* Show the last error message in a message box.
@@ -327,7 +328,7 @@ public:
/**
* Create a new view for the document.
*/
- KoView *createView( QWidget *parent = 0, const char *name = 0 );
+ KoView *createView( TQWidget *tqparent = 0, const char *name = 0 );
/**
* Adds a view to the document.
@@ -345,7 +346,7 @@ public:
/**
* @return a list of views this document is displayed in
*/
- const QPtrList<KoView> & views() const;
+ const TQPtrList<KoView> & views() const;
/**
* @return number of views this document is displayed in
@@ -355,7 +356,7 @@ public:
/**
* Reimplemented from KParts::Part
*/
- virtual KParts::Part *hitTest( QWidget *widget, const QPoint &globalPos );
+ virtual KParts::Part *hitTest( TQWidget *widget, const TQPoint &globalPos );
/**
* Find the most nested child document which contains the
@@ -372,7 +373,7 @@ public:
*
* @return Pointer to the document under the mouse at that position
*/
- virtual KoDocument *hitTest( const QPoint &pos, const QWMatrix& matrix = QWMatrix() );
+ virtual KoDocument *hitTest( const TQPoint &pos, const TQWMatrix& matrix = TQWMatrix() );
/// Temporary API for accessing the view that calls hitTest.
/// Will be passed to hitTest() in 2.x.
/// Only call this from within hitTest()!
@@ -384,21 +385,21 @@ public:
* @param painter The painter object onto which will be drawn.
* @param rect The rect that should be used in the painter object.
* @param transparent If true then the entire rectangle is erased before painting.
- * @param view The KoView is needed to fiddle about with the active widget, when painting children.
+ * @param view The KoView is needed to fiddle about with the active widget, when painting tqchildren.
* @param zoomX The zoom value to be applied to X coordinates when painting.
* @param zoomY The zoom value to be applied to Y coordinates when painting.
*/
- virtual void paintEverything( QPainter &painter, const QRect &rect, bool transparent = false,
+ virtual void paintEverything( TQPainter &painter, const TQRect &rect, bool transparent = false,
KoView *view = 0L, double zoomX = 1.0, double zoomY = 1.0 );
/**
* @brief Generates a preview picture of the document
* @note The preview is used in the File Dialog and also to create the Thumbnail
*/
- virtual QPixmap generatePreview( const QSize& size );
+ virtual TQPixmap generatePreview( const TQSize& size );
/**
- * Paints all of the documents children into the given painter object.
+ * Paints all of the documents tqchildren into the given painter object.
*
* @param painter The painter object onto which will be drawn.
* @param rect The rect that should be used in the painter object.
@@ -408,7 +409,7 @@ public:
*
* @see #paintChild #paintEverything #paintContent
*/
- virtual void paintChildren( QPainter &painter, const QRect &rect, KoView *view, double zoomX = 1.0, double zoomY = 1.0 );
+ virtual void paintChildren( TQPainter &painter, const TQRect &rect, KoView *view, double zoomX = 1.0, double zoomY = 1.0 );
/**
* Paint a given child. Normally called by paintChildren().
@@ -421,12 +422,12 @@ public:
*
* @see #paintEverything #paintChildren #paintContent
*/
- virtual void paintChild( KoDocumentChild *child, QPainter &painter, KoView *view,
+ virtual void paintChild( KoDocumentChild *child, TQPainter &painter, KoView *view,
double zoomX = 1.0, double zoomY = 1.0 );
/**
* Paints the data itself. Normally called by paintEverything(). It does not
- * paint the children.
+ * paint the tqchildren.
* It's this method that %KOffice Parts have to implement.
*
* @param painter The painter object onto which will be drawn.
@@ -437,7 +438,7 @@ public:
*
* @see #paintEverything
*/
- virtual void paintContent( QPainter &painter, const QRect &rect, bool transparent = false,
+ virtual void paintContent( TQPainter &painter, const TQRect &rect, bool transparent = false,
double zoomX = 1.0, double zoomY = 1.0 ) = 0;
/**
@@ -458,17 +459,17 @@ public:
* Initializes an empty document (display the template dialog!).
* You have to overload this method to initialize all your document variables.
* @param flags see InitDocFlags
- * @param parentWidget the widget this document belongs with
+ * @param tqparentWidget the widget this document belongs with
*/
- virtual bool initDoc(InitDocFlags flags, QWidget* parentWidget=0) = 0;
+ virtual bool initDoc(InitDocFlags flags, TQWidget* tqparentWidget=0) = 0;
/**
* Creates and shows the start up widget.
- * @param parent the KoMainWindow used as parent for the widget.
+ * @param tqparent the KoMainWindow used as tqparent for the widget.
* @param alwaysShow always show the widget even if the user has configured it to not show.
* @since 1.5
*/
- virtual void showStartUpWidget(KoMainWindow* parent, bool alwaysShow = false);
+ virtual void showStartUpWidget(KoMainWindow* tqparent, bool alwaysShow = false);
/**
* Sets the modified flag on the document. This means that it has
@@ -506,7 +507,7 @@ public:
* @param store The store to load from
* @param url An internal url, like tar:/1/2
*/
- virtual bool loadFromStore( KoStore* store, const QString& url );
+ virtual bool loadFromStore( KoStore* store, const TQString& url );
/**
* @brief Loads an OASIS document from a store.
@@ -519,17 +520,17 @@ public:
*
* You should not have to reimplement this - but call it in saveChildren().
*/
- virtual bool saveToStore( KoStore* store, const QString& path );
+ virtual bool saveToStore( KoStore* store, const TQString& path );
/**
* 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
+ * You are supposed to use the TQDomDocument. The TQIODevice 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.
+ * Note that the TQIODevice could be 0L, when called from an import filter.
*/
- virtual bool loadXML( QIODevice *, const QDomDocument & doc ) = 0;
+ virtual bool loadXML( TQIODevice *, const TQDomDocument & doc ) = 0;
/**
* Reimplement this method to load the contents of your %KOffice document,
@@ -537,8 +538,8 @@ public:
* you can find them in the oasisStyles parameter. The store can be used
* to load images and embedded documents.
*/
- virtual bool loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles,
- const QDomDocument & settings, KoStore* store ) = 0;
+ virtual bool loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles,
+ const TQDomDocument & settings, KoStore* store ) = 0;
/**
* Reimplement this method to save the contents of your %KOffice document,
@@ -548,18 +549,18 @@ public:
/**
* Reimplement this to save the contents of the %KOffice document into
- * a QDomDocument. The framework takes care of saving it to the store.
+ * a TQDomDocument. The framework takes care of saving it to the store.
*/
- virtual QDomDocument saveXML();
+ virtual TQDomDocument saveXML();
/**
- * Return a correctly created QDomDocument for this KoDocument,
+ * Return a correctly created TQDomDocument for this KoDocument,
* including processing instruction, complete DOCTYPE tag (with systemId and publicId), and root element.
* @param tagName the name of the tag for the root element
* @param version the DTD version (usually the application's version).
* @deprecated use createOasisXmlWriter instead
*/
- QDomDocument createDomDocument( const QString& tagName, const QString& version ) const;
+ TQDomDocument createDomDocument( const TQString& tagName, const TQString& version ) const;
/**
* Return an XML writer for saving Oasis XML into the device @p dev,
@@ -578,17 +579,17 @@ public:
* will need to call endElement(); endDocument(); before destroying the KoXmlWriter.
* @note OASIS-specific
*/
- static KoXmlWriter* createOasisXmlWriter( QIODevice* dev, const char* rootElementName );
+ static KoXmlWriter* createOasisXmlWriter( TQIODevice* dev, const char* rootElementName );
/**
- * Return a correctly created QDomDocument for an old (1.3-style) %KOffice document,
+ * Return a correctly created TQDomDocument 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 appName the app's instance name, e.g. kword, kspread, kpresenter etc.
* @param tagName the name of the tag for the root element, e.g. DOC for kword/kpresenter.
* @param version the DTD version (usually the application's version).
*/
- static QDomDocument createDomDocument( const QString& appName, const QString& tagName, const QString& version );
+ static TQDomDocument createDomDocument( const TQString& appName, const TQString& tagName, const TQString& version );
/**
* The first thing to do in loadOasis is get hold of the office:body tag, then its child.
@@ -596,14 +597,14 @@ public:
* This method returns a translated name for the type of document,
* e.g. i18n("Word Processing") for office:text.
*/
- static QString tagNameToDocumentType( const QString& localName );
+ static TQString tagNameToDocumentType( const TQString& localName );
/**
* 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.
+ * don't use TQDomDocument for saving, i.e. kword and kpresenter.
*/
- virtual bool saveToStream( QIODevice * dev );
+ virtual bool saveToStream( TQIODevice * dev );
/**
* Loads a document in the native format from a given URL.
@@ -611,14 +612,14 @@ public:
*
* @param file the file to load - usually KReadOnlyPart::m_file or the result of a filter
*/
- virtual bool loadNativeFormat( const QString & file );
+ virtual bool loadNativeFormat( const TQString & file );
/**
* Saves the document in native format, to a given file
* You should never have to reimplement.
* Made public for writing templates.
*/
- virtual bool saveNativeFormat( const QString & file );
+ virtual bool saveNativeFormat( const TQString & file );
/**
* Activate/deactivate/configure the autosave feature.
@@ -658,17 +659,17 @@ public:
static int defaultAutoSave() { return s_defaultAutoSave; }
/**
- * @return the list of all children. Do not modify the
+ * @return the list of all tqchildren. Do not modify the
* returned list.
*/
- const QPtrList<KoDocumentChild>& children() const;
+ const TQPtrList<KoDocumentChild>& tqchildren() const;
/**
* @return the KoDocumentChild associated with the given Document, but only if
* @p 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().
+ * by traversing the list returned by tqchildren().
*/
KoDocumentChild *child( KoDocument *doc );
@@ -678,8 +679,8 @@ public:
*/
KoDocumentInfo *documentInfo() const;
- void setViewBuildDocument( KoView *view, const QDomDocument &doc );
- QDomDocument viewBuildDocument( KoView *view );
+ void setViewBuildDocument( KoView *view, const TQDomDocument &doc );
+ TQDomDocument viewBuildDocument( KoView *view );
/**
* Appends the shell to the list of shells which show this
@@ -699,7 +700,7 @@ public:
/**
* @return the list of shells for the main window
*/
- const QPtrList<KoMainWindow>& shells() const;
+ const TQPtrList<KoMainWindow>& shells() const;
/**
* @return the number of shells for the main window
@@ -709,7 +710,7 @@ public:
/**
* @return the list of all the currently opened documents
*/
- static QPtrList<KoDocument> *documentList() { return s_documentList; }
+ static TQPtrList<KoDocument> *documentList() { return s_documentList; }
/**
* @brief Return a DCOP interface for this document
@@ -722,7 +723,7 @@ public:
/**
* @return the ID of the DCOP interface for this document.
**/
- QCString dcopObjectId() const;
+ TQCString dcopObjectId() const;
/**
* Signal the progress of operations such as loading or saving.
@@ -740,7 +741,7 @@ public:
virtual bool isStoredExtern() const;
/**
- * @return the page layout associated with this document (margins, pageSize, etc).
+ * @return the page tqlayout associated with this document (margins, pageSize, etc).
* Override this if you want to provide different sized pages.
*
* @see KoPageLayout
@@ -770,14 +771,14 @@ public:
int queryCloseDia();
/**
- * @brief Set when we do not want to save external children when saving our 'main' doc.
+ * @brief Set when we do not want to save external tqchildren 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.
+ * This makes it possible to save 'main' doc + all its internal tqchildren first, then
+ * go on to save external tqchildren. Typically used by query close.
* Use:
* @code
* doc->setDoNotSaveExtDoc();
- * doc->save(); // saves doc and its internal children,
+ * doc->save(); // saves doc and its internal tqchildren,
* //also calls saveExternalChildren() which sets setDoNotSaveExtDoc(false)
* doc->saveExternalChildren();
* @endcode
@@ -787,27 +788,27 @@ public:
/**
* Sets the backup path of the document
*/
- void setBackupPath( const QString & _path );
+ void setBackupPath( const TQString & _path );
/**
* @return path to the backup document
*/
- QString backupPath()const;
+ TQString backupPath()const;
/**
* Indicates that this document is currently viewed
* and thus should control the title caption.
- * Also resets current flag for all parents.
+ * Also resets current flag for all tqparents.
*/
void setCurrent( bool on = true );
/**
- * Sets current flag for this document and all its parents
+ * Sets current flag for this document and all its tqparents
*/
void forceCurrent( bool on );
bool isCurrent() const;
- void setTitleModified( const QString caption, bool mod );
+ void setTitleModified( const TQString caption, bool mod );
/**
* Sets the document URL to empty URL
@@ -815,7 +816,7 @@ public:
* After using loadNativeFormat on a template, one wants
* to set the url to KURL()
*/
- void resetURL() { m_url = KURL(); m_file = QString::null; }
+ void resetURL() { m_url = KURL(); m_file = TQString(); }
/**
* Set when you want an external embedded document to be stored internally
@@ -843,7 +844,7 @@ public:
*
* @internal
*/
- QString &file() { return m_file; }
+ TQString &file() { return m_file; }
/**
* _Only_ use these functions to restore m_file (in KoMainWindow) after a
@@ -853,12 +854,12 @@ public:
*
* @internal
*/
- void setFile( const QString &file ) { m_file = file; }
+ void setFile( const TQString &file ) { m_file = file; }
/**
* @internal (public for KoMainWindow)
*/
- void setMimeTypeAfterLoading( const QString& mimeType );
+ void setMimeTypeAfterLoading( const TQString& mimeType );
/**
* @return returns the number of pages in the document.
@@ -870,7 +871,7 @@ public:
* This is used by some text-analyzer plugins.
* @since 1.5
*/
- virtual QValueList<KoTextDocument *> allTextDocuments() const;
+ virtual TQValueList<KoTextDocument *> allTextDocuments() const;
/**
* Returns the unit used to display all measures/distances.
@@ -890,27 +891,27 @@ public:
* unit() for everything else (conversions etc.)
* @since 1.5
*/
- QString unitName() const;
+ TQString unitName() const;
/**
* Set the template type used. This is used by the start up widget to show
* the correct templates.
* @since 1.5
*/
- void setTemplateType(const QString& _templateType);
+ void setTemplateType(const TQString& _templateType);
/**
* Template type used. This is used by the start up widget to show
* the correct templates.
* @since 1.5
*/
- QString templateType() const;
+ TQString templateType() const;
/**
* Shows the init dialog when embeding
- * @param parent the parent widget
+ * @param tqparent the tqparent widget
* @since 1.5
*/
- virtual bool showEmbedInitDialog(QWidget* parent);
+ virtual bool showEmbedInitDialog(TQWidget* tqparent);
public slots:
/**
@@ -949,7 +950,7 @@ signals:
* Emitted e.g. at the beginning of a save operation
* This is emitted by KoDocument and used by KoView to display a statusbar message
*/
- void sigStatusBarMessage( const QString& text );
+ void sigStatusBarMessage( const TQString& text );
/**
* Emitted e.g. at the end of a save operation
@@ -973,21 +974,21 @@ protected slots:
* @param file the file to load (including path)
* @since 1.5
*/
- virtual void openExistingFile( const QString& file );
+ virtual void openExistingFile( const TQString& file );
/**
* This slot loads a template and deletes the start up widget.
* @param file the template to load
* @since 1.5
*/
- virtual void openTemplate( const QString& file );
+ virtual void openTemplate( const TQString& file );
void deleteOpenPaneDelayed();
protected:
- QString autoSaveFile( const QString & path ) const;
+ TQString autoSaveFile( const TQString & path ) const;
- virtual KoView *createViewInstance( QWidget *parent, const char *name ) = 0;
+ virtual KoView *createViewInstance( TQWidget *tqparent, const char *name ) = 0;
/**
* Loads a document from KReadOnlyPart::m_file (KParts takes care of downloading
@@ -1015,9 +1016,9 @@ protected:
* 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 parent the parent of the to be created widget.
+ * @param tqparent the tqparent of the to be created widget.
*/
- virtual QWidget* createCustomDocumentWidget(QWidget *parent);
+ virtual TQWidget* createCustomDocumentWidget(TQWidget *tqparent);
/**
* OLD XML method. For OASIS just call KoDocumentChild::loadOasisDocument
@@ -1028,7 +1029,7 @@ protected:
*
* An example implementation may look like this:
* @code
- * QPtrListIterator<KoDocumentChild> it( children() );
+ * TQPtrListIterator<KoDocumentChild> it( tqchildren() );
* for( ; it.current(); ++it )
* {
* if ( !it.current()->loadDocument( _store ) )
@@ -1042,16 +1043,16 @@ protected:
virtual bool loadChildren( KoStore* );
/**
- * Saves all internal children (only!).
- * @see saveExternalChildren if you have external children.
+ * Saves all internal tqchildren (only!).
+ * @see saveExternalChildren if you have external tqchildren.
* Returns true on success.
*/
virtual bool saveChildren( KoStore* store );
/**
- * Saves all internal children (only!), to the store, using the OASIS format.
+ * Saves all internal tqchildren (only!), to the store, using the OASIS format.
* This is called automatically during saveNativeFormat.
- * @see saveExternalChildren if you have external children.
+ * @see saveExternalChildren if you have external tqchildren.
* Returns true on success.
*/
virtual bool saveChildrenOasis( KoStore* store, KoXmlWriter* manifestWriter );
@@ -1076,7 +1077,7 @@ protected:
virtual bool completeSaving( KoStore* store );
/**
- * Inserts the new child in the list of children and emits the
+ * Inserts the new child in the list of tqchildren and emits the
* childChanged() signal.
*
* At the same time this method marks this document as modified.
@@ -1092,14 +1093,14 @@ protected:
virtual void setModified() { KParts::ReadWritePart::setModified(); }
/** @internal */
- virtual void insertChild(QObject *o) { QObject::insertChild(o); }
+ virtual void insertChild(TQObject *o) { TQObject::insertChild(o); }
KoPageLayout m_pageLayout;
/**
- * Saves all externally stored children.
+ * Saves all externally stored tqchildren.
* Returns true on success.
- * @see #saveChildren for internal children
+ * @see #saveChildren for internal tqchildren
*/
virtual bool saveExternalChildren();
@@ -1121,13 +1122,13 @@ protected:
/**
* Creates the open widget showed at application start up.
- * @param parent the parent widget
+ * @param tqparent the tqparent widget
* @param instance the KInstance to be used for KConfig data
* @param templateType the template-type (group) that should be selected on creation.
* @since 1.5
*/
- KoOpenPane* createOpenPane( QWidget* parent, KInstance* instance,
- const QString& templateType = QString::null);
+ KoOpenPane* createOpenPane( TQWidget* tqparent, KInstance* instance,
+ const TQString& templateType = TQString());
private slots:
void slotChildChanged( KoChild *c );
@@ -1143,15 +1144,15 @@ private slots:
private:
KService::Ptr nativeService();
- bool oldLoadAndParse( KoStore* store, const QString& filename, QDomDocument& doc );
- bool loadNativeFormatFromStore( const QString& file );
+ bool oldLoadAndParse( KoStore* store, const TQString& filename, TQDomDocument& doc );
+ bool loadNativeFormatFromStore( const TQString& file );
bool savePreview( KoStore* store );
bool saveOasisPreview( KoStore* store, KoXmlWriter* manifestWriter );
class Private;
Private *d;
KService::Ptr m_nativeService;
bool m_bEmpty;
- static QPtrList<KoDocument> *s_documentList;
+ static TQPtrList<KoDocument> *s_documentList;
static const int s_defaultAutoSave;
};