summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoDocument.cpp')
-rw-r--r--lib/kofficecore/KoDocument.cpp124
1 files changed, 62 insertions, 62 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index eab229e3..ba3c9d54 100644
--- a/lib/kofficecore/KoDocument.cpp
+++ b/lib/kofficecore/KoDocument.cpp
@@ -59,7 +59,7 @@
#include <tqpainter.h>
#include <tqtimer.h>
#include <tqxml.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <config.h>
#include <assert.h>
@@ -120,7 +120,7 @@ public:
}
TQPtrList<KoView> m_views;
- TQPtrList<KoDocumentChild> m_children;
+ TQPtrList<KoDocumentChild> m_tqchildren;
TQPtrList<KoMainWindow> m_shells;
TQValueList<TQDomDocument> m_viewBuildDocuments;
@@ -271,7 +271,7 @@ KoDocument::~KoDocument()
{
d->m_autoSaveTimer.stop();
- TQPtrListIterator<KoDocumentChild> childIt( d->m_children );
+ TQPtrListIterator<KoDocumentChild> childIt( d->m_tqchildren );
for (; childIt.current(); ++childIt )
disconnect( childIt.current(), TQT_SIGNAL( destroyed() ),
this, TQT_SLOT( slotChildDestroyed() ) );
@@ -285,8 +285,8 @@ KoDocument::~KoDocument()
delete d->m_startUpWidget;
d->m_startUpWidget = 0;
- d->m_children.setAutoDelete( true );
- d->m_children.clear();
+ d->m_tqchildren.setAutoDelete( true );
+ d->m_tqchildren.clear();
d->m_shells.setAutoDelete( true );
d->m_shells.clear();
@@ -401,7 +401,7 @@ bool KoDocument::saveFile()
backup = url();
else
backup = d->m_backupPath +"/"+url().fileName();
- backup.setPath( backup.path() + TQString::fromLatin1("~") );
+ backup.setPath( backup.path() + TQString::tqfromLatin1("~") );
KFileItem item( entry, url() );
Q_ASSERT( item.name() == url().fileName() );
KIO::NetAccess::file_copy( url(), backup, item.permissions(), true /*overwrite*/, false /*resume*/, shells().current() );
@@ -418,7 +418,7 @@ bool KoDocument::saveFile()
if ( !d->filterManager )
d->filterManager = new KoFilterManager( this );
- KoFilter::ConversionStatus status = d->filterManager->exp0rt( m_file, outputMimeType );
+ KoFilter::ConversiontqStatus status = d->filterManager->exp0rt( m_file, outputMimeType );
ret = status == KoFilter::OK;
suppressErrorDialog = (status == KoFilter::UserCancelled || status == KoFilter::BadConversionGraph );
} else {
@@ -591,7 +591,7 @@ void KoDocument::setManager( KParts::PartManager *manager )
if ( manager )
{
- TQPtrListIterator<KoDocumentChild> it( d->m_children );
+ TQPtrListIterator<KoDocumentChild> it( d->m_tqchildren );
for (; it.current(); ++it )
if ( it.current()->document() )
manager->addPart( it.current()->document(), false );
@@ -606,7 +606,7 @@ void KoDocument::setReadWrite( bool readwrite )
for (; vIt.current(); ++vIt )
vIt.current()->updateReadWrite( readwrite );
- TQPtrListIterator<KoDocumentChild> dIt( d->m_children );
+ TQPtrListIterator<KoDocumentChild> dIt( d->m_tqchildren );
for (; dIt.current(); ++dIt )
if ( dIt.current()->document() )
dIt.current()->document()->setReadWrite( readwrite );
@@ -651,7 +651,7 @@ void KoDocument::insertChild( KoDocumentChild *child )
{
setModified( true );
- d->m_children.append( child );
+ d->m_tqchildren.append( child );
connect( child, TQT_SIGNAL( changed( KoChild * ) ),
this, TQT_SLOT( slotChildChanged( KoChild * ) ) );
@@ -681,12 +681,12 @@ void KoDocument::slotChildDestroyed()
setModified( true );
const KoDocumentChild *child = static_cast<const KoDocumentChild *>( sender() );
- d->m_children.removeRef( child );
+ d->m_tqchildren.removeRef( child );
}
-const TQPtrList<KoDocumentChild>& KoDocument::children() const
+const TQPtrList<KoDocumentChild>& KoDocument::tqchildren() const
{
- return d->m_children;
+ return d->m_tqchildren;
}
KParts::Part *KoDocument::hitTest( TQWidget *widget, const TQPoint &globalPos )
@@ -718,7 +718,7 @@ KoView* KoDocument::hitTestView()
KoDocument* KoDocument::hitTest( const TQPoint &pos, const TQWMatrix &matrix )
{
// Call KoDocumentChild::hitTest for any child document
- TQPtrListIterator<KoDocumentChild> it( d->m_children );
+ TQPtrListIterator<KoDocumentChild> it( d->m_tqchildren );
for (; it.current(); ++it )
{
KoDocument *doc = it.current()->hitTest( pos, matrix );
@@ -732,7 +732,7 @@ KoDocument* KoDocument::hitTest( const TQPoint &pos, const TQWMatrix &matrix )
KoDocumentChild *KoDocument::child( KoDocument *doc )
{
- TQPtrListIterator<KoDocumentChild> it( d->m_children );
+ TQPtrListIterator<KoDocumentChild> it( d->m_tqchildren );
for (; it.current(); ++it )
if ( it.current()->document() == doc )
return it.current();
@@ -786,7 +786,7 @@ void KoDocument::paintEverything( TQPainter &painter, const TQRect &rect, bool t
void KoDocument::paintChildren( TQPainter &painter, const TQRect &/*rect*/, KoView *view, double zoomX, double zoomY )
{
- TQPtrListIterator<KoDocumentChild> it( d->m_children );
+ TQPtrListIterator<KoDocumentChild> it( d->m_tqchildren );
for (; it.current(); ++it )
{
// #### todo: paint only if child is visible inside rect
@@ -863,8 +863,8 @@ bool KoDocument::isModified() const
//kdDebug(30003)<<k_funcinfo<<" Modified doc='"<<url().url()<<"' extern="<<isStoredExtern()<<endl;
return true;
}
- // Then go through internally stored children (considered to be part of this doc)
- TQPtrListIterator<KoDocumentChild> it = children();
+ // Then go through internally stored tqchildren (considered to be part of this doc)
+ TQPtrListIterator<KoDocumentChild> it = tqchildren();
for (; it.current(); ++it )
{
KoDocument *doc = it.current()->document();
@@ -876,9 +876,9 @@ bool KoDocument::isModified() const
bool KoDocument::saveChildren( KoStore* _store )
{
- //kdDebug(30003)<<k_funcinfo<<" checking children of doc='"<<url().url()<<"'"<<endl;
+ //kdDebug(30003)<<k_funcinfo<<" checking tqchildren of doc='"<<url().url()<<"'"<<endl;
int i = 0;
- TQPtrListIterator<KoDocumentChild> it( children() );
+ TQPtrListIterator<KoDocumentChild> it( tqchildren() );
for( ; it.current(); ++it ) {
KoDocument* childDoc = it.current()->document();
if (childDoc && !it.current()->isDeleted())
@@ -900,8 +900,8 @@ bool KoDocument::saveChildren( KoStore* _store )
bool KoDocument::saveChildrenOasis( KoStore* store, KoXmlWriter* manifestWriter )
{
- //kdDebug(30003)<<k_funcinfo<<" checking children of doc='"<<url().url()<<"'"<<endl;
- TQPtrListIterator<KoDocumentChild> it( children() );
+ //kdDebug(30003)<<k_funcinfo<<" checking tqchildren of doc='"<<url().url()<<"'"<<endl;
+ TQPtrListIterator<KoDocumentChild> it( tqchildren() );
for( ; it.current(); ++it ) {
KoDocument* childDoc = it.current()->document();
if ( childDoc && !it.current()->isDeleted() )
@@ -924,9 +924,9 @@ bool KoDocument::saveExternalChildren()
return true;
}
- //kdDebug(30003)<<k_funcinfo<<" checking children of doc='"<<url().url()<<"'"<<endl;
+ //kdDebug(30003)<<k_funcinfo<<" checking tqchildren of doc='"<<url().url()<<"'"<<endl;
KoDocumentChild *ch;
- TQPtrListIterator<KoDocumentChild> it = children();
+ TQPtrListIterator<KoDocumentChild> it = tqchildren();
for (; (ch = it.current()); ++it )
{
if ( !ch->isDeleted() )
@@ -935,7 +935,7 @@ bool KoDocument::saveExternalChildren()
if ( doc && doc->isStoredExtern() && doc->isModified() )
{
kdDebug(30003)<<" save external doc='"<<url().url()<<"'"<<endl;
- doc->setDoNotSaveExtDoc(); // Only save doc + it's internal children
+ doc->setDoNotSaveExtDoc(); // Only save doc + it's internal tqchildren
if ( !doc->save() )
return false; // error
}
@@ -1031,7 +1031,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
}
else
{
- d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).arg( "meta.xml" );
+ d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).tqarg( "meta.xml" );
delete store;
return false;
}
@@ -1039,7 +1039,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
if ( store->open( "Thumbnails/thumbnail.png" ) )
{
if ( !saveOasisPreview( store, manifestWriter ) || !store->close() ) {
- d->lastErrorMessage = i18n( "Error while trying to write '%1'. Partition full?" ).arg( "Thumbnails/thumbnail.png" );
+ d->lastErrorMessage = i18n( "Error while trying to write '%1'. Partition full?" ).tqarg( "Thumbnails/thumbnail.png" );
delete store;
return false;
}
@@ -1047,7 +1047,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
}
else
{
- d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).arg( "Thumbnails/thumbnail.png" );
+ d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).tqarg( "Thumbnails/thumbnail.png" );
delete store;
return false;
}
@@ -1055,7 +1055,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
// Write out manifest file
if ( !oasisStore.closeManifestWriter() )
{
- d->lastErrorMessage = i18n( "Error while trying to write '%1'. Partition full?" ).arg( "META-INF/manifest.xml" );
+ d->lastErrorMessage = i18n( "Error while trying to write '%1'. Partition full?" ).tqarg( "META-INF/manifest.xml" );
delete store;
return false;
}
@@ -1064,7 +1064,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
}
else
{
- // Save internal children first since they might get a new url
+ // Save internal tqchildren first since they might get a new url
if ( !saveChildren( store ) && !oasis )
{
if ( d->lastErrorMessage.isEmpty() )
@@ -1086,7 +1086,7 @@ bool KoDocument::saveNativeFormat( const TQString & file )
}
else
{
- d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).arg( "maindoc.xml" );
+ d->lastErrorMessage = i18n( "Not able to write '%1'. Partition full?" ).tqarg( "maindoc.xml" );
delete store;
return false;
}
@@ -1146,7 +1146,7 @@ bool KoDocument::saveToStore( KoStore* _store, const TQString & _path )
else // ugly hack to pass a relative URI
m_url = KURL( INTERNAL_PREFIX + _path );
- // To make the children happy cd to the correct directory
+ // To make the tqchildren happy cd to the correct directory
_store->pushDirectory();
_store->enterDirectory( _path );
@@ -1222,7 +1222,7 @@ TQPixmap KoDocument::generatePreview( const TQSize& size )
docHeight = m_pageLayout.ptHeight / 72 * KoGlobal::dpiY();
} else {
- // If we don't have a page layout, just draw the top left hand corner
+ // If we don't have a page tqlayout, just draw the top left hand corner
docWidth = 500.0;
docHeight = 500.0;
}
@@ -1274,7 +1274,7 @@ TQString KoDocument::autoSaveFile( const TQString & path ) const
// Never saved? Use a temp file in $HOME then
// Yes, two open unnamed docs will overwrite each other's autosave file,
// but hmm, we can only do something if that's in the same process anyway...
- TQString ret = TQDir::homeDirPath() + "/." + TQString::fromLatin1(instance()->instanceName()) + ".autosave" + extension;
+ TQString ret = TQDir::homeDirPath() + "/." + TQString::tqfromLatin1(instance()->instanceName()) + ".autosave" + extension;
return ret;
}
else
@@ -1297,7 +1297,7 @@ bool KoDocument::checkAutoSaveFile()
TQString dateStr = date.toString(Qt::LocalDate);
int res = KMessageBox::warningYesNoCancel(
0, i18n( "An autosaved file for an unnamed document exists in %1.\nThis file is dated %2\nDo you want to open it?" )
- .arg(asf, dateStr) );
+ .tqarg(asf, dateStr) );
switch(res) {
case KMessageBox::Yes : {
KURL url;
@@ -1349,7 +1349,7 @@ bool KoDocument::openURL( const KURL & _url )
// Reimplemented, to add a check for autosave files and to improve error reporting
if ( !_url.isValid() )
{
- d->lastErrorMessage = i18n( "Malformed URL\n%1" ).arg( _url.url() ); // ## used anywhere ?
+ d->lastErrorMessage = i18n( "Malformed URL\n%1" ).tqarg( _url.url() ); // ## used anywhere ?
return false;
}
if ( !closeURL() )
@@ -1408,7 +1408,7 @@ bool KoDocument::openFile()
TQApplication::restoreOverrideCursor();
if ( d->m_autoErrorHandlingEnabled )
// Maybe offer to create a new document with that name ?
- KMessageBox::error(0L, i18n("The file %1 does not exist.").arg(m_file) );
+ KMessageBox::error(0L, i18n("The file %1 does not exist.").tqarg(m_file) );
d->m_bLoading = false;
return false;
}
@@ -1456,7 +1456,7 @@ bool KoDocument::openFile()
if ( !isNativeFormat( typeName.latin1() ) ) {
if ( !d->filterManager )
d->filterManager = new KoFilterManager( this );
- KoFilter::ConversionStatus status;
+ KoFilter::ConversiontqStatus status;
importedFile = d->filterManager->import( m_file, status );
if ( status != KoFilter::OK )
{
@@ -1516,7 +1516,7 @@ bool KoDocument::openFile()
{
TQString errorMsg( i18n( "Could not open\n%2.\nReason: %1" ) );
TQString docUrl = url().prettyURL( 0, KURL::StripFileProtocol );
- KMessageBox::error( 0L, errorMsg.arg(msg).arg(docUrl) );
+ KMessageBox::error( 0L, errorMsg.tqarg(msg).tqarg(docUrl) );
}
d->m_bLoading = false;
@@ -1623,7 +1623,7 @@ bool KoDocument::oldLoadAndParse(KoStore* store, const TQString& filename, TQDom
if (!store->open(filename))
{
kdWarning(30003) << "Entry " << filename << " not found!" << endl;
- d->lastErrorMessage = i18n( "Could not find %1" ).arg( filename );
+ d->lastErrorMessage = i18n( "Could not find %1" ).tqarg( filename );
return false;
}
// Error variables for TQDomDocument::setContent
@@ -1636,8 +1636,8 @@ bool KoDocument::oldLoadAndParse(KoStore* store, const TQString& filename, TQDom
<< " In line: " << errorLine << ", column: " << errorColumn << endl
<< " Error message: " << errorMsg << endl;
d->lastErrorMessage = i18n( "Parsing error in %1 at line %2, column %3\nError message: %4" )
- .arg( filename ).arg( errorLine ).arg( errorColumn )
- .arg( i18n ( "TQXml", errorMsg.utf8() ) );
+ .tqarg( filename ).tqarg( errorLine ).tqarg( errorColumn )
+ .tqarg( i18n ( "TQXml", errorMsg.utf8() ) );
store->close();
return false;
}
@@ -1650,12 +1650,12 @@ bool KoDocument::loadNativeFormat( const TQString & file )
TQFileInfo fileInfo( file );
if ( !fileInfo.exists() ) // check duplicated from openURL, but this is useful for templates
{
- d->lastErrorMessage = i18n("The file %1 does not exist.").arg(file);
+ d->lastErrorMessage = i18n("The file %1 does not exist.").tqarg(file);
return false;
}
if ( !fileInfo.isFile() )
{
- d->lastErrorMessage = i18n( "%1 is not a file." ).arg(file);
+ d->lastErrorMessage = i18n( "%1 is not a file." ).tqarg(file);
return false;
}
@@ -1733,7 +1733,7 @@ bool KoDocument::loadNativeFormat( const TQString & file )
<< " Line: " << errorLine << " Column: " << errorColumn << endl
<< " Message: " << errorMsg << endl;
d->lastErrorMessage = i18n( "parsing error in the main document at line %1, column %2\nError message: %3" )
- .arg( errorLine ).arg( errorColumn ).arg( i18n ( errorMsg.utf8() ) );
+ .tqarg( errorLine ).tqarg( errorColumn ).tqarg( i18n ( errorMsg.utf8() ) );
res=false;
}
@@ -1756,7 +1756,7 @@ bool KoDocument::loadNativeFormatFromStore( const TQString& file )
if ( store->bad() )
{
- d->lastErrorMessage = i18n( "Not a valid KOffice file: %1" ).arg( file );
+ d->lastErrorMessage = i18n( "Not a valid KOffice file: %1" ).tqarg( file );
delete store;
TQApplication::restoreOverrideCursor();
return false;
@@ -1795,7 +1795,7 @@ bool KoDocument::loadNativeFormatFromStore( const TQString& file )
if ( !loadChildren( store ) )
{
- kdError(30003) << "ERROR: Could not load children" << endl;
+ kdError(30003) << "ERROR: Could not load tqchildren" << endl;
// Don't abort, proceed nonetheless
}
@@ -1865,7 +1865,7 @@ bool KoDocument::loadFromStore( KoStore* _store, const TQString& url )
if ( !loadChildren( _store ) )
{
- kdError(30003) << "ERROR: Could not load children" << endl;
+ kdError(30003) << "ERROR: Could not load tqchildren" << endl;
#if 0
return false;
#endif
@@ -1967,7 +1967,7 @@ void KoDocument::setModified( bool mod )
m_bEmpty = FALSE;
} else {
// When saving this document, all non-external child documents get saved too.
- TQPtrListIterator<KoDocumentChild> it = children();
+ TQPtrListIterator<KoDocumentChild> it = tqchildren();
for (; it.current(); ++it )
{
KoDocument *doc = it.current()->document();
@@ -2002,7 +2002,7 @@ int KoDocument::queryCloseDia()
name = i18n( "Untitled" );
int res = KMessageBox::warningYesNoCancel( 0L,
- i18n( "<p>The document <b>'%1'</b> has been modified.</p><p>Do you want to save it?</p>" ).arg(name));
+ i18n( "<p>The document <b>'%1'</b> has been modified.</p><p>Do you want to save it?</p>" ).tqarg(name));
switch(res)
{
@@ -2023,9 +2023,9 @@ int KoDocument::queryCloseDia()
int KoDocument::queryCloseExternalChildren()
{
- //kdDebug(30003)<<k_funcinfo<<" checking for children in: "<<url().url()<<endl;
+ //kdDebug(30003)<<k_funcinfo<<" checking for tqchildren in: "<<url().url()<<endl;
setDoNotSaveExtDoc(false);
- TQPtrListIterator<KoDocumentChild> it( children() );
+ TQPtrListIterator<KoDocumentChild> it( tqchildren() );
for (; it.current(); ++it )
{
if ( !it.current()->isDeleted() )
@@ -2082,7 +2082,7 @@ void KoDocument::setTitleModified()
// Get caption from document info (title(), in about page)
if ( documentInfo() )
{
- KoDocumentInfoPage * page = documentInfo()->page( TQString::fromLatin1("about") );
+ KoDocumentInfoPage * page = documentInfo()->page( TQString::tqfromLatin1("about") );
if (page)
caption = static_cast<KoDocumentInfoAbout *>(page)->title();
}
@@ -2133,12 +2133,12 @@ TQDomDocument KoDocument::createDomDocument( const TQString& tagName, const TQSt
TQDomDocument KoDocument::createDomDocument( const TQString& appName, const TQString& tagName, const TQString& version )
{
TQDomImplementation impl;
- TQString url = TQString("http://www.koffice.org/DTD/%1-%1.dtd").arg(appName).arg(version);
+ TQString url = TQString("http://www.koffice.org/DTD/%1-%1.dtd").tqarg(appName).tqarg(version);
TQDomDocumentType dtype = impl.createDocumentType( tagName,
- TQString("-//KDE//DTD %1 %1//EN").arg(appName).arg(version),
+ TQString("-//KDE//DTD %1 %1//EN").tqarg(appName).tqarg(version),
url );
// The namespace URN doesn't need to include the version number.
- TQString namespaceURN = TQString("http://www.koffice.org/DTD/%1").arg(appName);
+ TQString namespaceURN = TQString("http://www.koffice.org/DTD/%1").tqarg(appName);
TQDomDocument doc = impl.createDocument( namespaceURN, tagName, dtype );
doc.insertBefore( doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ), doc.documentElement() );
return doc;
@@ -2233,7 +2233,7 @@ KService::Ptr KoDocument::readNativeService( KInstance *instance )
// Try by path first, so that we find the global one (which has the native mimetype)
// even if the user created a kword.desktop in ~/.kde/share/applnk or any subdir of it.
// If he created it under ~/.kde/share/applnk/Office/ then no problem anyway.
- service = KService::serviceByDesktopPath( TQString::fromLatin1("Office/%1.desktop").arg(instname) );
+ service = KService::serviceByDesktopPath( TQString::tqfromLatin1("Office/%1.desktop").tqarg(instname) );
}
if ( !service )
service = KService::serviceByDesktopName( instname );
@@ -2364,11 +2364,11 @@ void KoDocument::showSavingErrorDialog()
{
if ( d->lastErrorMessage.isEmpty() )
{
- KMessageBox::error( 0L, i18n( "Could not save\n%1" ).arg( m_file ) );
+ KMessageBox::error( 0L, i18n( "Could not save\n%1" ).tqarg( m_file ) );
}
else if ( d->lastErrorMessage != "USER_CANCELED" )
{
- KMessageBox::error( 0L, i18n( "Could not save %1\nReason: %2" ).arg( m_file, d->lastErrorMessage ) );
+ KMessageBox::error( 0L, i18n( "Could not save %1\nReason: %2" ).tqarg( m_file, d->lastErrorMessage ) );
}
}
@@ -2376,11 +2376,11 @@ void KoDocument::showLoadingErrorDialog()
{
if ( d->lastErrorMessage.isEmpty() )
{
- KMessageBox::error( 0L, i18n( "Could not open\n%1" ).arg( url().prettyURL( 0, KURL::StripFileProtocol ) ) );
+ KMessageBox::error( 0L, i18n( "Could not open\n%1" ).tqarg( url().prettyURL( 0, KURL::StripFileProtocol ) ) );
}
else if ( d->lastErrorMessage != "USER_CANCELED" )
{
- KMessageBox::error( 0L, i18n( "Could not open %1\nReason: %2" ).arg( url().prettyURL( 0, KURL::StripFileProtocol ), d->lastErrorMessage ) );
+ KMessageBox::error( 0L, i18n( "Could not open %1\nReason: %2" ).tqarg( url().prettyURL( 0, KURL::StripFileProtocol ), d->lastErrorMessage ) );
}
}
@@ -2656,7 +2656,7 @@ bool KoDocument::showEmbedInitDialog(TQWidget* parent)
{
KDialogBase dlg(parent, "EmbedInitDialog", true, i18n("Embedding Object"), 0, KDialogBase::NoDefault);
KoOpenPane* pane = createOpenPane(&dlg, instance(), templateType());
- pane->layout()->setMargin(0);
+ pane->tqlayout()->setMargin(0);
dlg.setMainWidget(pane);
dlg.setInitialSize(dlg.configDialogSize("EmbedInitDialog"));
connect(this, TQT_SIGNAL(closeEmbedInitDialog()), &dlg, TQT_SLOT(slotOk()));