CASpreadsheetHandler::CASpreadsheetHandler (CADocumentController* documentController) : CAAbstractDocumentHandler (documentController) , d (new Private()) { d->findText = new Calligra::Sheets::Find(this); connect (d->findText, SIGNAL(updateCanvas()), SLOT(updateCanvas())); connect (d->findText, SIGNAL(matchFound(KoFindMatch)), SLOT(findMatchFound(KoFindMatch))); connect (d->findText, SIGNAL(noMatchFound()), SLOT(findNoMatchFound())); }
CAPresentationHandler::CAPresentationHandler (CADocumentController* documentController) : CAAbstractDocumentHandler (documentController) , d (new Private()) { QList<QTextDocument*> texts; d->findText = new KoFindText(this); connect(&d->slideshowTimer, SIGNAL(timeout()), SLOT(advanceSlideshow())); connect (d->findText, SIGNAL(updateCanvas()), SLOT(updateCanvas())); connect (d->findText, SIGNAL(matchFound(KoFindMatch)), SLOT(findMatchFound(KoFindMatch))); connect (d->findText, SIGNAL(noMatchFound()), SLOT(findNoMatchFound())); }