rev 4092 - in kde-extras/kipi-plugins/trunk/debian: . patches

Tom Albers tomalbers-guest at costa.debian.org
Mon Jul 10 16:38:59 UTC 2006


Author: tomalbers-guest
Date: 2006-07-10 16:38:57 +0000 (Mon, 10 Jul 2006)
New Revision: 4092

Added:
   kde-extras/kipi-plugins/trunk/debian/patches/10_removeimagegallery.patch
Modified:
   kde-extras/kipi-plugins/trunk/debian/changelog
   kde-extras/kipi-plugins/trunk/debian/control
Log:
Ready for upload


Modified: kde-extras/kipi-plugins/trunk/debian/changelog
===================================================================
--- kde-extras/kipi-plugins/trunk/debian/changelog	2006-07-10 07:19:44 UTC (rev 4091)
+++ kde-extras/kipi-plugins/trunk/debian/changelog	2006-07-10 16:38:57 UTC (rev 4092)
@@ -1,17 +1,18 @@
 kipi-plugins (0.1.2-1) unstable; urgency=low
 
-  * NOT RELEASED YET
-
   [ Tom Albers ] 
   * New upstream release (adds missing translations and a bugfix for
     sendimages plugin)
   * Updated the copyright file with the current maintainer.
   * Removed imagesgallery from copyright file, as that is replaced by 
     the htmlexport plugin.
+  * Added patch 10_removeimagegallery to remove the plugin from source.
   * Added myself as uploader.
-  * Removed sharutils as patch 13 required it in the past, but is removed.
+  * Removed sharutils build-dep as patch 13 required it in the past, 
+    but is removed.
+  * Added konqueror as recommend because flickr-plugin needs it.
 
- -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat,  8 Jul 2006 20:37:00 +0200
+ -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat, 10 Jul 2006 18:25:00 +0200
 
 kipi-plugins (0.1.1-3) unstable; urgency=low
 

Modified: kde-extras/kipi-plugins/trunk/debian/control
===================================================================
--- kde-extras/kipi-plugins/trunk/debian/control	2006-07-10 07:19:44 UTC (rev 4091)
+++ kde-extras/kipi-plugins/trunk/debian/control	2006-07-10 16:38:57 UTC (rev 4092)
@@ -10,7 +10,7 @@
 Replaces: digikamplugins
 Architecture: any
 Depends: ${shlibs:Depends}
-Recommends: k3b, imagemagick (>=5.4.8), dcraw (>= 5.88), kmail, kdeprint, sane-utils, kooka
+Recommends: k3b, imagemagick (>=5.4.8), dcraw (>= 5.88), kmail, kdeprint, sane-utils, kooka, konqueror
 Suggests: gimp, gallery
 Enhances: digikam, kimdaba, showimg, gwenview
 Description: image manipulation/handling plugins for KIPI aware programs

Added: kde-extras/kipi-plugins/trunk/debian/patches/10_removeimagegallery.patch
===================================================================
--- kde-extras/kipi-plugins/trunk/debian/patches/10_removeimagegallery.patch	2006-07-10 07:19:44 UTC (rev 4091)
+++ kde-extras/kipi-plugins/trunk/debian/patches/10_removeimagegallery.patch	2006-07-10 16:38:57 UTC (rev 4092)
@@ -0,0 +1,5469 @@
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/actions.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/actions.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/actions.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/actions.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,62 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    ACTIONS.H
+-//
+-//    Copyright (C) 2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-
+-#ifndef ACTIONS_H
+-#define ACTIONS_H
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-
+-enum Action
+-{
+-    Initialize = 0,
+-    Progress,
+-    Error,
+-    ResizeImages,
+-    BuildHTMLiface,
+-    BuildAlbumHTMLPage,
+-    BuildImageHTMLPage
+-};
+-    
+-
+-class EventData
+-{
+-public:
+-    EventData() 
+-       {
+-       starting = false;
+-       success  = false;
+-       }
+-    
+-    QString fileName;
+-    QString albumName;
+-    QString message;
+-    int     total;
+-    bool    starting;
+-    bool    success;
+-    Action  action;
+-};
+-
+-}  // NameSpace KIPIImagesGalleryPlugin
+-
+-#endif  // ACTIONS_H 
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/exifrestorer.cpp kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/exifrestorer.cpp
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/exifrestorer.cpp	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/exifrestorer.cpp	1970-01-01 01:00:00.000000000 +0100
+@@ -1,300 +0,0 @@
+-/* ============================================================
+- * File  : exifrestorer.cpp
+- * Author: Renchi Raju <renchi at pooh.tam.uiuc.edu>
+- * Date  : 2003-02-23
+- * Description : 
+- * 
+- * Copyright 2004 by Renchi Raju
+- *
+- * This program is free software; you can redistribute it
+- * and/or modify it under the terms of the GNU General
+- * Public License as published by the Free Software Foundation;
+- * either version 2, or (at your option)
+- * any later version.
+- * 
+- * This program is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- * 
+- * ============================================================ */
+-
+-// C Ansi includes.
+-
+-extern "C" 
+-{
+-#include <string.h>
+-}
+- 
+-// C++ includes.
+- 
+-#include <fstream>
+-  
+-// Qt includes.
+-
+-#include <qstring.h>
+-#include <qfile.h>
+-
+-// KDE includes.
+-
+-#include <kdebug.h>
+-
+-// Local includes.
+-
+-#include "exifrestorer.h"
+-
+-using namespace std;
+-
+-ExifRestorer::ExifRestorer()
+-{
+-    jpegSections_.setAutoDelete(true);
+-    imageData_ = 0;
+-    exifData_ = 0;
+-    hasExif_ = false;
+-}
+-
+-ExifRestorer::~ExifRestorer()
+-{
+-    clear();
+-}
+-
+-void ExifRestorer::clear()
+-{
+-    jpegSections_.clear();
+-    if (exifData_)
+-        delete exifData_;
+-    exifData_ = 0;
+-    if (imageData_)
+-        delete imageData_;
+-    imageData_ = 0;
+-    hasExif_ = false;
+-}
+-
+-
+-int ExifRestorer::readFile(const QString& filename, ReadMode mode)
+-{
+-    clear();
+-
+-    std::ifstream filestream;
+-
+-    filestream.open(QFile::encodeName(filename), ios::binary | ios::in);
+-    if (!filestream.good()) {
+-        kdWarning() << "Failed to Open file" << endl;
+-        return -1;
+-    }
+-
+-    unsigned char header[2];
+-    filestream.read((char*)header, 2);
+-    if (filestream.gcount() != 2) {
+-        kdWarning() << "Failed to read header" << endl;
+-        return -1;
+-    }
+-
+-    unsigned char marker;
+-
+-    if ((header[0] == 0xFF) && (header[1] == M_SOI)) {
+-
+-        // Smells like a jpeg file
+-
+-        bool found_SOSorEOI = false;
+-
+-        while (!filestream.eof()) {
+-
+-            // Padding bytes between sections
+-            for (int i=0; i<7; i++){
+-                filestream.read((char*)&marker, 1);
+-                if (marker != 0xFF) break;
+-                if (i >= 6){
+-                    // 0xff is legal padding, but if we get
+-                    // that many times, something's wrong.
+-                    kdWarning() << "Too many padding bytes" << endl;
+-                    return -1;
+-                }
+-            }
+-
+-            JpegSection *section = new JpegSection;
+-
+-            // read data size
+-            unsigned char lh, ll;
+-            filestream.read((char*)&lh, 1);
+-            filestream.read((char*)&ll, 1);
+-            section->size = (lh << 8) | ll;
+-            if (section->size < 2) {
+-                kdWarning() << "Invalid Marker found" << endl;
+-                return -1;
+-            }
+-
+-            section->data = new unsigned char[section->size];
+-            section->data[0] =  lh;
+-            section->data[1] =  ll;
+-            filestream.read((char*)&(section->data[2]), section->size-2);
+-            if ((section->size-2) != (unsigned int)filestream.gcount()) {
+-                kdWarning() << "Premature File End" << endl;
+-                return -1;
+-            }
+-
+-            section->type = marker;
+-            jpegSections_.append(section);
+-
+-            //cout << (dec) << section->size << " ";
+-            //cout << (hex) << int(section->type) << endl;
+-
+-            switch (marker) {
+-
+-            case M_SOS: {
+-
+-                int currPos, endPos;
+-                found_SOSorEOI=true;
+-
+-                if (mode == EntireImage) {
+-
+-                    currPos = filestream.tellg();
+-                    filestream.seekg(0,ios::end);
+-                    endPos = filestream.tellg();
+-                    filestream.seekg(currPos);
+-
+-                    imageData_ = new JpegSection;
+-                    imageData_->size = endPos - currPos;
+-                    imageData_->data =
+-                        new unsigned char[imageData_->size];
+-
+-                    filestream.read((char*)imageData_->data,
+-                                    imageData_->size);
+-                    imageData_->type = marker;
+-                }
+-
+-                break;
+-            }
+-
+-            case M_EOI: {
+-
+-                found_SOSorEOI=true;
+-                break;
+-            }
+-
+-            case M_COM: {
+-
+-                break;
+-            }
+-
+-            case M_JFIF: {
+-
+-                break;
+-            }
+-
+-            case M_EXIF: {
+-                if (section->data[2] == 'E' &&
+-                    section->data[3] == 'x'  &&
+-                    section->data[4] == 'i' &&
+-                    section->data[5] == 'f') {
+-                    hasExif_ = true;
+-                    exifData_ = new JpegSection;
+-                    exifData_->size = section->size;
+-                    exifData_->type = section->type;
+-                    exifData_->data =
+-                        new unsigned char[section->size];
+-                    memcpy(exifData_->data, section->data,
+-                           section->size);
+-                }
+-                break;
+-            }
+-
+-            default: {
+-                break;
+-            }
+-
+-            }
+-
+-            if (found_SOSorEOI) {
+-                if (mode == ExifOnly)
+-                    jpegSections_.clear();
+-                return 0;
+-            }
+-
+-        }
+-
+-        kdWarning() << "End of file without SOS or EOI" << endl;
+-        return -1;
+-
+-    }
+-
+-    kdWarning() << "Not a jpeg file" << endl;
+-    return -1;
+-
+-}
+-
+-int ExifRestorer::writeFile(const QString& filename)
+-{
+-    std::ofstream outStream (QFile::encodeName(filename), ios::binary | ios::out);
+-
+-    if (!outStream) {
+-        kdWarning() << "Error in opening output file" << endl;
+-        return -1;
+-    }
+-
+-    outStream.put(0xff);
+-    outStream.put(0xd8);
+-
+-    for (unsigned int i=0; i<jpegSections_.count(); i++) {
+-        outStream.put(0xff);
+-        outStream.put(jpegSections_.at(i)->type);
+-        if (!outStream.write((char*)jpegSections_.at(i)->data,
+-                             jpegSections_.at(i)->size))
+-            return -1;
+-    }
+-
+-    if (!outStream.write((char*)imageData_->data, imageData_->size)) {
+-        kdWarning() << "Error in writing to file" << endl;
+-        return -1;
+-    }
+-
+-    outStream.close();
+-
+-    return 0;
+-}
+-
+-void ExifRestorer::insertExifData(JpegSection *exifSection)
+-{
+-    QPtrList<JpegSection> newSections;
+-    newSections.setAutoDelete(false);
+-
+-    // Check if the first section of jpegSections is a JFIF
+-    // If so, add this to newSections
+-    if (jpegSections_.at(0)->type == M_JFIF) {
+-        newSections.append(jpegSections_.at(0));
+-    }
+-
+-
+-    // Now add the new exif section
+-    JpegSection* newExifSection = new JpegSection;
+-    newExifSection->type = exifSection->type;
+-    newExifSection->size = exifSection->size;
+-    newExifSection->data = new unsigned char[exifSection->size];
+-    memcpy(newExifSection->data, exifSection->data,
+-           exifSection->size);
+-
+-    newSections.append(newExifSection);
+-
+-    // Check if image already has exif section. if so replace it
+-    for (JpegSection* section = jpegSections_.first(); section;
+-         section = jpegSections_.next()) {
+-        if (section->type == M_EXIF) {
+-            jpegSections_.remove(section);
+-        }
+-    }
+-
+-
+-    // Add the rest of the sections;
+-    for (unsigned int i=1; i<jpegSections_.count(); i++) {
+-        newSections.append(jpegSections_.at(i));
+-    }
+-
+-    jpegSections_.setAutoDelete(false);
+-    jpegSections_.clear();
+-
+-    for (unsigned int i=0; i<newSections.count(); i++) {
+-        jpegSections_.append(newSections.at(i));
+-    }
+-
+-    jpegSections_.setAutoDelete(true);
+-}
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/exifrestorer.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/exifrestorer.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/exifrestorer.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/exifrestorer.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,93 +0,0 @@
+-/* ============================================================
+- * File  : exifrestorer.h
+- * Author: Renchi Raju <renchi at pooh.tam.uiuc.edu>
+- * Date  : 2003-02-23
+- * Description : 
+- * 
+- * Copyright 2004 by Renchi Raju
+- *
+- * This program is free software; you can redistribute it
+- * and/or modify it under the terms of the GNU General
+- * Public License as published by the Free Software Foundation;
+- * either version 2, or (at your option)
+- * any later version.
+- * 
+- * This program is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- * 
+- * ============================================================ */
+-
+-#ifndef EXIFRESTORER_H
+-#define EXIFRESTORER_H
+-
+-// Qt includes.
+-
+-#include <qptrlist.h>
+-#include <qstring.h>
+-
+-// Local includes.
+-
+-#include "jpegsection.h"
+-
+-//-- Jpeg Image Maker Types -----------------------------------------
+-
+-#define M_SOF0  0xC0       // Start Of Frame N
+-#define M_SOF1  0xC1       // N indicates which compression process
+-#define M_SOF2  0xC2       // Only SOF0-SOF2 are now in common use
+-#define M_SOF3  0xC3
+-#define M_SOF5  0xC5       // NB: codes C4 and CC are NOT SOF markers
+-#define M_SOF6  0xC6
+-#define M_SOF7  0xC7
+-#define M_SOF9  0xC9
+-#define M_SOF10 0xCA
+-#define M_SOF11 0xCB
+-#define M_SOF13 0xCD
+-#define M_SOF14 0xCE
+-#define M_SOF15 0xCF
+-#define M_SOI   0xD8       // Start Of Image (beginning of datastream)
+-#define M_EOI   0xD9       // End Of Image (end of datastream)
+-#define M_SOS   0xDA       // Start Of Scan (begins compressed data)
+-#define M_JFIF  0xE0       // Jfif marker
+-#define M_EXIF  0xE1       // Exif marker
+-#define M_COM   0xFE       // COMment
+-
+-//------------------------------------------------------------------
+-
+-
+-class ExifRestorer {
+-
+-public:
+-
+-    enum ReadMode {
+-        ExifOnly=0,
+-        EntireImage
+-    };
+-
+-    ExifRestorer();
+-    ~ExifRestorer();
+-
+-    void clear();
+-    int  readFile(const QString& filename, ReadMode mode);
+-    int  writeFile(const QString& filename);
+-    void insertExifData(JpegSection *exifData);
+-
+-    bool hasExif () {
+-        return hasExif_;
+-    }
+-
+-    JpegSection* exifData() {
+-        return exifData_;
+-    }
+-
+-private:
+-
+-    QPtrList<JpegSection> jpegSections_;
+-    JpegSection *exifData_;
+-    JpegSection *imageData_;
+-    bool        hasExif_;
+-
+-};
+-
+-#endif  // EXIFRESTORER_H
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imagesgallery.cpp kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imagesgallery.cpp
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imagesgallery.cpp	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imagesgallery.cpp	1970-01-01 01:00:00.000000000 +0100
+@@ -1,1848 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    IMAGESGALLERY.CPP
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//    Copyright (C) 2003-2004 by Gregory Kokanosky <gregory dot kokanosky at free.fr>
+-//    for images navigation mode.
+-//
+-//    Adapted and improved for DigikamPlugins from the konqueror plugin
+-//    'kdeaddons/konq-plugins/kimgalleryplugin/' by Gilles Caulier.
+-//
+-//    Copyright 2001, 2003 by Lukas Tinkl <lukas at kde.org> and
+-//    Andreas Schlapbach <schlpbch at iam.unibe.ch> for orginal source
+-//    of 'kimgalleryplugin' from KDE CVS
+-//
+-//    Copyright 2003-2004 by Gilles Caulier <caulier dot gilles at free.fr> for
+-//    DigikamPlugins port.
+-//
+-//    Copyright 2005 by Tom Albers <tomalbers at kde.nl> fixing problems with making
+-//    exports for tags
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-extern "C"
+-{
+-#include <unistd.h>
+-}
+-
+-// Include files for Qt
+-
+-#include <qtextstream.h>
+-#include <qfile.h>
+-#include <qfont.h>
+-#include <qimage.h>
+-#include <qtextcodec.h>
+-
+-// Include files for KDE
+-
+-#include <kio/job.h>
+-#include <kio/jobclasses.h>
+-#include <kio/global.h>
+-#include <kmessagebox.h>
+-#include <kinstance.h>
+-#include <kconfig.h>
+-#include <kaction.h>
+-#include <kglobal.h>
+-#include <klocale.h>
+-#include <kcharsets.h>
+-#include <kapplication.h>
+-#include <kprocess.h>
+-#include <kimageio.h>
+-#include <kdebug.h>
+-#include <kgenericfactory.h>
+-#include <kstandarddirs.h>
+-#include <kglobalsettings.h>
+-#include <kaboutdata.h>
+-
+-// KIPI includes
+-
+-#include <libkipi/imagecollection.h>
+-
+-// Local includes
+-
+-#include "actions.h"
+-#include "imgallerydialog.h"
+-#include "exifrestorer.h"
+-#include "imagesgallery.h"
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-
+-ImagesGallery::ImagesGallery( KIPI::Interface* interface, QObject *parent )
+-             : QObject(parent)
+-{
+-    KImageIO::registerFormats();
+-    
+-    const KAboutData *data = KApplication::kApplication()->aboutData();
+-    m_hostName = QString::QString( data->appName() );
+-       
+-    m_hostURL = data->homepage();
+-    
+-    if (m_hostURL.isEmpty())
+-       {
+-       m_hostName = "Kipi";
+-       m_hostURL = "http://extragear.kde.org/apps/kipi";
+-       }
+-
+-    m_interface = interface;
+-    m_parent = parent;
+-    m_commentMap = 0L;
+-    m_albumsMap = 0L;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-ImagesGallery::~ImagesGallery()
+-{
+-    if (m_commentMap) delete m_commentMap;
+-    if (m_albumsMap) delete m_albumsMap;
+-    delete m_configDlg;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::writeSettings(void)
+-{
+-    m_config = new KConfig("kipirc");
+-    m_config->setGroup("ImagesGallery Settings");
+-
+-    // HTML Look dialogbox setup tab
+-
+-    m_config->writeEntry("MainPageTitle", m_configDlg->getMainTitle());
+-    m_config->writeEntry("ImagesPerRow", m_configDlg->getImagesPerRow());
+-    m_config->writeEntry("PrintImageName", m_configDlg->printImageName());
+-    m_config->writeEntry("PrintImageSize", m_configDlg->printImageSize());
+-    m_config->writeEntry("PrintFileSize", m_configDlg->printImageProperty());
+-    m_config->writeEntry("PrintPageCreationDate", m_configDlg->printPageCreationDate());
+-    m_config->writeEntry("CreatePageForPhotos", m_configDlg->getCreatePageForPhotos());
+-    m_config->writeEntry("OpenInWebBrowser", m_configDlg->OpenGalleryInWebBrowser());
+-    m_config->writePathEntry("WebBrowserName", m_configDlg->getWebBrowserName());
+-    m_config->writeEntry("FontName", m_configDlg->getFontName());
+-    m_config->writeEntry("FontColor", m_configDlg->getForegroundColor());
+-    m_config->writeEntry("FontSize", m_configDlg->getFontSize());
+-    m_config->writeEntry("BackgroundColor", m_configDlg->getBackgroundColor());
+-    m_config->writeEntry("BordersImagesSize", m_configDlg->getBordersImagesSize());
+-    m_config->writeEntry("BordersImagesColor", m_configDlg->getBordersImagesColor());
+-
+-    // ALBUM dialogbox setup tab
+-
+-    m_config->writePathEntry("GalleryPath", m_configDlg->getImageName());
+-    m_config->writeEntry("NotUseOriginalImageSize", m_configDlg->useNotOriginalImageSize());
+-    m_config->writeEntry("ImagesResize", m_configDlg->getImagesResize());
+-    m_config->writeEntry("TargetImagesCompressionSet", m_configDlg->useSpecificTargetimageCompression());
+-    m_config->writeEntry("TargetImagesCompression", m_configDlg->getTargetImagesCompression());
+-    m_config->writeEntry("TargetImagesFormat", m_configDlg->getTargetImagesFormat());
+-    m_config->writeEntry("TargetImagesColorDepthSet", m_configDlg->colorDepthSetTargetImages());
+-    m_config->writeEntry("TargetImagesColorDepthValue", m_configDlg->getColorDepthTargetImages());
+-    m_config->writeEntry("UseCommentFile", m_configDlg->useCommentFile());
+-    m_config->writeEntry("UseCommentsAlbum", m_configDlg->useCommentsAlbum());
+-    m_config->writeEntry("UseCollectionAlbum", m_configDlg->useCollectionAlbum());
+-    m_config->writeEntry("UseDateAlbum", m_configDlg->useDateAlbum());
+-    m_config->writeEntry("PrintImageNb", m_configDlg->useNbImagesAlbum());
+-
+-    // THUMNAILS dialogbox setup tab
+-
+-    m_config->writeEntry("ThumbnailsSize", m_configDlg->getThumbnailsSize());
+-    m_config->writeEntry("ThumbnailsCompressionSet", m_configDlg->useSpecificThumbsCompression());
+-    m_config->writeEntry("ThumbnailsCompression", m_configDlg->getThumbsCompression());
+-    m_config->writeEntry("ThumbnailsFormat", m_configDlg->getImageFormat());
+-    m_config->writeEntry("ThumbnailsColorDepthSet", m_configDlg->colorDepthSetThumbnails());
+-    m_config->writeEntry("ThumbnailsColorDepthValue", m_configDlg->getColorDepthThumbnails());
+-
+-    m_config->sync();
+-    delete m_config;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::readSettings(void)
+-{
+-  QColor* ColorFont;
+-  QColor* ColorBackground;
+-  QColor* ColorBordersImages;
+-
+-  m_config = new KConfig("kipirc");
+-  m_config->setGroup("ImagesGallery Settings");
+-
+-  // HTML Look dialogbox setup tab
+-
+-  m_configDlg->setMainTitle( m_config->readEntry("MainPageTitle", i18n("KIPI Album Image Gallery")) );
+-  m_configDlg->setImagesPerRow( m_config->readEntry("ImagesPerRow", "4").toInt() );
+-
+-  m_configDlg->setPrintImageName( m_config->readBoolEntry("PrintImageName", true) );
+-  m_configDlg->setPrintImageSize( m_config->readBoolEntry("PrintImageSize", true) );
+-  m_configDlg->setPrintImageProperty( m_config->readBoolEntry("PrintFileSize", true) );
+-  m_configDlg->setPrintPageCreationDate( m_config->readBoolEntry("PrintPageCreationDate", true) );
+-  m_configDlg->setCreatePageForPhotos( m_config->readBoolEntry("CreatePageForPhotos", true) );
+-  m_configDlg->setOpenGalleryInWebBrowser( m_config->readBoolEntry("OpenInWebBrowser", true) );
+-  m_configDlg->setWebBrowserName( m_config->readPathEntry("WebBrowserName", "Konqueror") );
+-
+-  m_configDlg->setFontName( m_config->readEntry("FontName", "Helvetica") );
+-  m_configDlg->setFontSize( m_config->readEntry("FontSize", "14").toInt() );
+-  ColorFont = new QColor( 208, 255, 208 );
+-  m_configDlg->setForegroundColor( m_config->readColorEntry("FontColor", ColorFont));
+-  ColorBackground = new QColor( 51, 51, 51 );
+-  m_configDlg->setBackgroundColor( m_config->readColorEntry("BackgroundColor", ColorBackground));
+-  m_configDlg->setBordersImagesSize( m_config->readEntry("BordersImagesSize", "1").toInt() );
+-  ColorBordersImages = new QColor( 208, 255, 208 );
+-  m_configDlg->setBordersImagesColor( m_config->readColorEntry("BordersImagesColor", ColorBordersImages));
+-
+-  delete ColorFont;
+-  delete ColorBackground;
+-  delete ColorBordersImages;
+-
+-  // ALBUM dialogbox setup tab
+-
+-  m_configDlg->setImageName( m_config->readPathEntry("GalleryPath", KGlobalSettings::documentPath()) );
+-  m_configDlg->setNotUseOriginalImageSize( m_config->readBoolEntry("NotUseOriginalImageSize", true) );
+-  m_configDlg->setImagesResizeFormat( m_config->readEntry("ImagesResize", "640").toInt() );
+-  m_configDlg->setUseSpecificTargetimageCompression( m_config->readBoolEntry("TargetImagesCompressionSet",
+-                                                                             false) );
+-  m_configDlg->setTargetImagesCompression( m_config->readEntry("TargetImagesCompression", "75").toInt() );
+-  m_configDlg->setTargetImagesFormat( m_config->readEntry("TargetImagesFormat", "JPEG") );
+-  m_configDlg->setColorDepthSetTargetImages( m_config->readBoolEntry("TargetImagesColorDepthSet", false) );
+-  m_configDlg->setColorDepthTargetImages( m_config->readEntry("TargetImagesColorDepthValue", "32") );
+-  m_configDlg->setUseCommentFile( m_config->readBoolEntry("UseCommentFile", true) );
+-  m_configDlg->setUseCommentsAlbum( m_config->readBoolEntry("UseCommentsAlbum", true) );
+-  m_configDlg->setUseCollectionAlbum( m_config->readBoolEntry("UseCollectionAlbum", "true") );
+-  m_configDlg->setUseDateAlbum( m_config->readBoolEntry("UseDateAlbum", true) );
+-  m_configDlg->setUseNbImagesAlbum( m_config->readBoolEntry("PrintImageNb", true) );
+-
+-  // THUMNAILS dialogbox setup tab
+-
+-  m_configDlg->setThumbnailsSize( m_config->readEntry("ThumbnailsSize", "140").toInt() );
+-  m_configDlg->setUseSpecificThumbsCompression( m_config->readBoolEntry("ThumbnailsCompressionSet", false) );
+-  m_configDlg->setThumbsCompression( m_config->readEntry("ThumbnailsCompression", "75").toInt() );
+-  m_configDlg->setImageFormat( m_config->readEntry("ThumbnailsFormat", "JPEG") );
+-  m_configDlg->setColorDepthSetThumbnails( m_config->readBoolEntry("ThumbnailsColorDepthSet", false) );
+-  m_configDlg->setColorDepthThumbnails( m_config->readEntry("ThumbnailsColorDepthValue", "32") );
+-
+-  delete m_config;
+-    
+-  // Get the image files filters from the hosts app.
+-     
+-  m_imagesFileFilter = m_interface->fileExtensions();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::showDialog()
+-{
+-    m_configDlg = new KIGPDialog( m_interface, kapp->activeWindow() );
+-    readSettings();
+-
+-    if ( m_configDlg->exec() == QDialog::Accepted )
+-        {
+-        writeSettings();
+-        return true;
+-        }
+-       
+-    return false;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::removeTargetGalleryFolder(void)
+-{
+-    QDir TargetDir;
+-    QString MainTPath = m_configDlg->getImageName() + "/KIPIHTMLExport";
+-
+-    if (TargetDir.exists (MainTPath) == true)
+-       {
+-       if (KMessageBox::warningYesNo(kapp->activeWindow(),
+-           i18n("The target folder\n'%1'\nalready exists; do you want overwrite it? (all data "
+-                "in this folder will be lost.)").arg(MainTPath)) == KMessageBox::Yes)
+-          {
+-          if ( DeleteDir(MainTPath) == false )
+-             {
+-             KMessageBox::error(kapp->activeWindow(), i18n("Cannot remove folder '%1'.").arg(MainTPath));
+-             return false;
+-             }
+-          } 
+-          else
+-              return false;
+-       }
+-       
+-    return true;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::prepare(void)
+-{
+-    QValueList<KIPI::ImageCollection> albumsList;  
+-    KIPIImagesGalleryPlugin::EventData *d;
+-    
+-    // This variable are used for the recursive sub directories parsing
+-    // during the HTML pages creation. (TODO: Checked this mode)
+-    
+-    m_recurseSubDirectories = false;
+-    m_LevelRecursion = 1;
+-
+-    m_cancelled = false;
+-    m_resizeImagesWithError.clear();
+-    m_StreamMainPageAlbumPreview = "";
+-    
+-    // Get config from setup dialog.
+-    
+-    m_imagesPerRow = m_configDlg->getImagesPerRow();
+-    albumsList = m_configDlg->getSelectedAlbums();
+-    m_imageName = m_configDlg->getImageName();
+-    m_useCommentFile = m_configDlg->useCommentFile();
+-    m_imageFormat = m_configDlg->getImageFormat();
+-    m_targetImagesFormat = m_configDlg->getTargetImagesFormat();
+-    m_mainTitle = m_configDlg->getMainTitle();
+-    m_backgroundColor = m_configDlg->getBackgroundColor();
+-    m_foregroundColor = m_configDlg->getForegroundColor(); 
+-    m_bordersImagesColor = m_configDlg->getBordersImagesColor();
+-    m_fontName = m_configDlg->getFontName();    
+-    m_fontSize = m_configDlg->getFontSize();
+-    m_bordersImagesSize = m_configDlg->getBordersImagesSize();
+-    m_useCommentsAlbum = m_configDlg->useCommentsAlbum();
+-    m_useCollectionAlbum = m_configDlg->useCollectionAlbum();
+-    m_useDateAlbum = m_configDlg->useDateAlbum();
+-    m_useNbImagesAlbum = m_configDlg->useNbImagesAlbum();
+-    m_createPageForPhotos = m_configDlg->getCreatePageForPhotos();   
+-    m_printImageName = m_configDlg->printImageName();
+-    m_printImageProperty = m_configDlg->printImageProperty();
+-    m_printImageSize = m_configDlg->printImageSize();
+-    m_printPageCreationDate = m_configDlg->printPageCreationDate();
+-    m_useNotOriginalImageSize = m_configDlg->useNotOriginalImageSize();
+-    m_imagesResize = m_configDlg->getImagesResize();
+-    m_colorDepthSetTargetImages = m_configDlg->colorDepthSetTargetImages();
+-    m_colorDepthTargetImages = m_configDlg->getColorDepthTargetImages();    
+-    m_useSpecificTargetimageCompression = m_configDlg->useSpecificTargetimageCompression();
+-    m_targetImagesCompression = m_configDlg->getTargetImagesCompression();            
+-    m_thumbnailsSize = m_configDlg->getThumbnailsSize();
+-    m_colorDepthSetThumbnails = m_configDlg->colorDepthSetThumbnails();
+-    m_colorDepthThumbnails = m_configDlg->getColorDepthThumbnails();
+-    m_useSpecificThumbsCompression = m_configDlg->useSpecificThumbsCompression();
+-    m_thumbsCompression = m_configDlg->getThumbsCompression();
+-    m_albumListSize = albumsList.count();
+-                        
+-    // Estimate the number of actions for the KIPI progress dialog. 
+-    
+-    int nbActions = m_albumListSize;
+-    
+-    for( QValueList<KIPI::ImageCollection>::Iterator it = albumsList.begin() ;
+-         !m_cancelled && (it != albumsList.end()) ; ++it ) 
+-       nbActions = nbActions + (*it).images().count();
+-    
+-    d = new KIPIImagesGalleryPlugin::EventData;
+-    d->action = KIPIImagesGalleryPlugin::Initialize;
+-    d->starting = true;
+-    d->success = false;
+-    d->total = nbActions; 
+-    QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-    usleep(1000);
+-    
+-    
+-    // Create the main target folder.
+-        
+-    m_mainTPath = m_imageName + "/KIPIHTMLExport";
+-
+-    if (m_targetDir.mkdir( m_mainTPath ) == false)
+-       {
+-       d = new KIPIImagesGalleryPlugin::EventData;
+-       d->action = KIPIImagesGalleryPlugin::Error;
+-       d->starting = false;
+-       d->success = false;
+-       d->message = i18n("Could not create folder '%1'").arg(m_mainTPath);
+-       QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-       usleep(1000);
+-       
+-       return(false);
+-       }
+-
+-    // Create data maps to use in the thread.
+-
+-    m_albumsMap = new AlbumsMap;
+-        
+-    m_totalAlbums = 0;
+-    for( QValueList<KIPI::ImageCollection>::Iterator albumIt = albumsList.begin() ;
+-         !m_cancelled && (albumIt != albumsList.end()) ; ++albumIt )
+-        {
+-          
+-        // a folder name "Tag: foo" is asking for trouble. Konqueror report that
+-        // there is no such protocol. Delete the :
+-        QString tempName = (*albumIt).name().replace("Tag: ", "Tag ");
+-
+-        AlbumData data(tempName,             (*albumIt).category(),
+-                       (*albumIt).comment(), (*albumIt).date(), 
+-                       (*albumIt).path(),    (*albumIt).images());
+-        
+-        m_albumsMap->insert( m_totalAlbums, data );
+-        m_totalAlbums++;
+-        }
+-    
+-    // Load images comments if necessary.
+-                          
+-    if ( m_useCommentFile )
+-       loadComments();
+-           
+-    return(true);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::stop()
+-{
+-    m_cancelled = true;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::run()
+-{
+-    KIPIImagesGalleryPlugin::EventData *d;
+-    QString Path;
+-    KURL SubUrl, MainUrl;
+-       
+-    // Build all Albums HTML export.
+-
+-    if ( m_albumListSize > 1 )
+-       {
+-       KGlobal::dirs()->addResourceType("kipi_data", KGlobal::dirs()->kde_default("data") + "kipi");
+-       QString dir = KGlobal::dirs()->findResourceDir("kipi_data", "gohome.png");
+-       dir = dir + "gohome.png";
+-
+-       KURL srcURL(dir);
+-       KURL destURL(m_imageName + "/KIPIHTMLExport/gohome.png");
+-       KIO::file_copy(srcURL, destURL, -1, true, false, false);           
+-       }
+-
+-       QMapIterator<int, AlbumData> albumIt;
+-       for( albumIt = m_albumsMap->begin() ; !m_cancelled && (albumIt != m_albumsMap->end()) ; ++albumIt )
+-          {
+-          m_currentAlbum = albumIt.key();
+-          AlbumData data = (*albumIt);
+-          KURL::List images = data.itemsUrl();
+-
+-          for( KURL::List::Iterator urlIt = images.begin(); urlIt != images.end(); ++urlIt ) 
+-             {
+-             kdDebug( 51000 ) << "URL:" << (*urlIt).prettyURL() << endl;
+-             }
+-
+-          m_AlbumTitle      = data.albumName();
+-          m_AlbumComments   = data.albumComments();
+-          m_AlbumCollection = data.albumCategory();
+-          m_AlbumDate       = data.albumDate().toString();
+-          Path              = data.albumUrl().path();
+-
+-          SubUrl = m_imageName + "/KIPIHTMLExport/" + m_AlbumTitle + "/" + "index.html";
+-
+-          if ( !SubUrl.isEmpty() && SubUrl.isValid())
+-             {
+-             // Create the target sub folder for the current album.
+-
+-             QString SubTPath= m_imageName + "/KIPIHTMLExport/" + m_AlbumTitle;
+- 
+-             if (m_targetDir.mkdir( SubTPath ) == false)
+-                 {
+-                 d = new KIPIImagesGalleryPlugin::EventData;
+-                 d->action = KIPIImagesGalleryPlugin::Error;
+-                 d->starting = false;
+-                 d->success = false;
+-                 d->message = i18n("Could not create folder '%1'").arg(SubTPath);
+-                 QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                 usleep(1000);
+-
+-                 return;
+-                 }
+-
+-             d = new KIPIImagesGalleryPlugin::EventData;
+-             d->action = KIPIImagesGalleryPlugin::BuildAlbumHTMLPage;
+-             d->starting = true;
+-             d->success = false;
+-             d->albumName = m_AlbumTitle;
+-             QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-             usleep(1000);
+-                         
+-             if ( !createHtml( SubUrl, Path, 
+-                               m_LevelRecursion > 0 ? m_LevelRecursion + 1 : 0,
+-                               m_imageFormat,
+-                               m_targetImagesFormat) )
+-                {
+-                d = new KIPIImagesGalleryPlugin::EventData;
+-                d->action = KIPIImagesGalleryPlugin::BuildAlbumHTMLPage;
+-                d->starting = false;
+-                d->success = false;
+-                d->albumName = m_AlbumTitle;
+-                QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d)); 
+-                usleep(1000);
+-                
+-                if ( !DeleteDir(m_mainTPath) )
+-                   {
+-                   d = new KIPIImagesGalleryPlugin::EventData;
+-                   d->action = KIPIImagesGalleryPlugin::Error;
+-                   d->starting = false;
+-                   d->success = false;
+-                   d->message = i18n("Cannot remove folder '%1'.").arg(m_mainTPath);
+-                   QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                   usleep(1000);
+-                   
+-                   return;
+-                   }
+-
+-                return;
+-                }
+-             else 
+-                {
+-                d = new KIPIImagesGalleryPlugin::EventData;
+-                d->action = KIPIImagesGalleryPlugin::BuildAlbumHTMLPage;
+-                d->starting = false;
+-                d->success = true;
+-                d->albumName = m_AlbumTitle;
+-                QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                usleep(1000);
+-                
+-                }
+-             }
+-         }
+-
+-    // Create the main HTML page if many Albums selected.
+-
+-    d = new KIPIImagesGalleryPlugin::EventData;
+-    d->action = KIPIImagesGalleryPlugin::BuildHTMLiface;
+-    d->starting = true;
+-    d->success = false;
+-    QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-    usleep(1000);
+-    
+-
+-    if ( m_albumListSize > 1 )
+-       {
+-       MainUrl.setPath( m_imageName + "/KIPIHTMLExport/" + "index.html" );
+-       QFile MainPageFile( MainUrl.path() );
+-
+-       if ( MainPageFile.open(IO_WriteOnly) )
+-          {
+-          QTextStream stream(&MainPageFile);
+-          stream.setEncoding(QTextStream::UnicodeUTF8);
+-          createHead(stream);
+-          createBodyMainPage(stream, MainUrl);
+-          MainPageFile.close();
+-          m_url4browser = MainUrl.url();
+-          }
+-       else
+-          {
+-          d = new KIPIImagesGalleryPlugin::EventData;
+-          d->action = KIPIImagesGalleryPlugin::Error;
+-          d->starting = false;
+-          d->success = false;
+-          d->message = i18n("Couldn't open file '%1'").arg(MainUrl.path());
+-          QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-          usleep(1000);
+-          
+-          return;
+-          }
+-       }
+-    else
+-       {
+-       m_url4browser = SubUrl.url();
+-       }
+-
+-    d = new KIPIImagesGalleryPlugin::EventData;
+-    d->action = KIPIImagesGalleryPlugin::BuildHTMLiface;
+-    d->success = true;
+-    d->starting = false;
+-    QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-    usleep(1000);
+-    
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::createDirectory(QDir thumb_dir, QString imgGalleryDir, QString dirName)
+-{
+-    if (!thumb_dir.exists())
+-        {
+-        thumb_dir.setPath( imgGalleryDir );
+-
+-        if (!(thumb_dir.mkdir(dirName, false)))
+-            {
+-            KIPIImagesGalleryPlugin::EventData* d = new KIPIImagesGalleryPlugin::EventData;
+-            d->action = KIPIImagesGalleryPlugin::Error;
+-            d->starting = false;
+-            d->success = false;
+-            d->message = i18n("Could not create folder '%1' in '%2'")
+-                         .arg(dirName).arg(imgGalleryDir);
+-            QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-            usleep(1000);
+-            
+-            return false;
+-            }
+-        else
+-            {
+-            thumb_dir.setPath( imgGalleryDir + "/" + dirName + "/" );
+-            return true;
+-            }
+-        }
+-    else
+-        return true;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::createHead(QTextStream& stream)
+-{
+-    QString chsetName = QTextCodec::codecForLocale()->mimeName();
+-
+-    stream << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">"
+-           << endl;
+-    stream << "<html>" << endl;
+-    stream << "<head>" << endl;
+-    stream << "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">" << endl;
+-
+-    stream << "<meta name=\"Generator\" content=\"Albums Images gallery generated by "
+-           << m_hostName << " [" << m_hostURL << "]\">"  << endl;
+-    stream << "<meta name=\"date\" content=\"" + KGlobal::locale()->formatDate(QDate::currentDate()) + "\">"
+-           << endl;
+-    stream << "<title>" << m_mainTitle << "</title>" << endl;
+-    
+-    createCSSSection(stream);
+-    
+-    stream << "</head>" << endl;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::createCSSSection(QTextStream& stream)
+-{
+-    QString backgroundColor = m_backgroundColor.name();
+-    QString foregroundColor = m_foregroundColor.name();
+-    QString bordersImagesColor = m_bordersImagesColor.name();
+-
+-    // Since the link colors are not set by the config, they can become invisible
+-    // because of the choice of the background color set by user. Find
+-    // contrasting color so that it becomes distinguishable
+-
+-    int h,s,v;
+-    m_backgroundColor.getHsv(&h, &s, &v);
+-
+-    h = (h+180) % 360;
+-    v = (v+128) % 256;
+-    QColor linkRegColor;
+-    linkRegColor.setHsv(h, s, v);
+-
+-    h = (h+60)  % 360;
+-    s = QMAX(s-60, 0);
+-    QColor linkVisColor;
+-    linkVisColor.setHsv(h, s, v);        
+-    
+-    // Adding a touch of style
+-
+-    stream << "<style type='text/css'>\n";
+-    stream << "BODY {color: " << foregroundColor << "; background: " << backgroundColor << ";" << endl;
+-    stream << "          font-family: " << m_fontName << ", sans-serif;" << endl;
+-    stream << "          font-size: " << m_fontSize << "pt; margin: 4%; }" << endl;
+-    stream << "H1       {color: " << foregroundColor << ";}" << endl;
+-    stream << "TABLE    {text-align: center; margin-left: auto; margin-right: auto;}" << endl;
+-    stream << "TD       { color: " << foregroundColor << "; padding: 1em}" << endl;
+-    stream << "IMG.photo      { border: " << m_bordersImagesSize << "px solid "
+-           << bordersImagesColor << "; }" << endl;
+-    stream << "a:link    { color: " << linkRegColor.name() << "; }" << endl;
+-    stream << "a:visited { color: " << linkVisColor.name() << "; }" << endl;
+-    stream << "</style>" << endl;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-QString ImagesGallery::extension(const QString& imageFormat)
+-{
+-    if (imageFormat == "PNG")
+-        return ".png";
+-
+-    if (imageFormat == "JPEG")
+-        return ".jpg";
+-
+-    Q_ASSERT(false);
+-    return "";
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::createBody(QTextStream& stream, const QStringList& subDirList,
+-                               const KURL& url, const QString& imageFormat,
+-                               const QString& TargetimagesFormat)
+-{
+-    KIPIImagesGalleryPlugin::EventData *d;
+-    AlbumData data = (*m_albumsMap)[m_currentAlbum];
+-    int numOfImages = data.countItems();
+-    
+-    kdDebug( 51000 ) << "Num of images in " << data.albumName().ascii() << " : " 
+-                     << numOfImages << endl;
+-    
+-    const QString imgGalleryDir = url.directory();
+-    const QString today(KGlobal::locale()->formatDate(QDate::currentDate()));
+-
+-    stream << "<body>"<<endl;
+-
+-    // Display gohome icon
+-
+-    if (QFile::exists(imgGalleryDir + QString::fromLatin1("/../gohome.png")))
+-       {
+-       stream << "<p><a href=\"../index.html\"><img src=\"../gohome.png\" border=\"0\"  title=\""
+-              << i18n("Album list") << "\" alt=\"" << i18n("Album list") << "\"></a></p>"
+-              << endl;
+-       }
+-
+-    stream << "<h1>" << i18n("Image Gallery for Album %1").arg("&quot;"+m_AlbumTitle+"&quot;")
+-           << "</h1>" << endl;
+-
+-    if (m_useCommentsAlbum == true ||
+-        m_useCollectionAlbum == true ||
+-        m_useDateAlbum == true ||
+-        m_useNbImagesAlbum == true)
+-       {
+-       stream << "<table width=\"100%\" border=1 cellpadding=0 cellspacing=0 "
+-                 "style=\"page-break-before: always\">\n" << endl;
+-       stream << "<col width=\"20%\"><col width=\"80%\">"<<endl;
+-       stream << "<tr valign=top><td align=left>\n" << endl;
+-
+-       if (m_useCommentsAlbum && !m_AlbumComments.isEmpty())
+-           stream << i18n("<i>Comment:</i>") << "<br>\n" << endl;
+-
+-       if (m_useCollectionAlbum && !m_AlbumCollection.isEmpty())
+-           stream << i18n("<i>Collection:</i>") << "<br>\n" << endl;
+-
+-       if (m_useDateAlbum == true)
+-           stream << i18n("<i>Date:</i>") << "<br>\n" << endl;
+-
+-       if (m_useNbImagesAlbum == true)
+-           stream << i18n("<i>Images:</i>") << "\n" << endl;
+-
+-       stream << "</td><td align=left>\n" << endl;
+-
+-       if (m_useCommentsAlbum && !m_AlbumComments.isEmpty())
+-           {
+-           stream << EscapeSgmlText(QTextCodec::codecForLocale(), m_AlbumComments, true, true)
+-                  << "<br>\n" << endl;
+-           }
+-
+-       if (m_useCollectionAlbum && !m_AlbumCollection.isEmpty())
+-           stream << m_AlbumCollection << "<br>\n" << endl;
+-
+-       if (m_useDateAlbum == true)
+-           stream << m_AlbumDate << "<br>\n" << endl;
+-
+-       if (m_useNbImagesAlbum == true)
+-           stream << numOfImages << "\n" << endl;
+-
+-       stream << "</td></tr></table>\n" << endl;
+-       
+-       if (m_recurseSubDirectories && subDirList.count() > 2)  
+-          {                                                   
+-          // subDirList.count() is always >= 2 because of the "." and ".." directories
+-
+-          QString Temp = i18n("<i>Subdirectories:</i>");
+-          stream << Temp << "<br>" << endl;
+-
+-          for (QStringList::ConstIterator it = subDirList.begin() ; 
+-               !m_cancelled && (it != subDirList.end()); it++)
+-              {
+-              if (*it == "." || *it == "..")
+-                  continue;                        // Disregard the "." and ".." directories
+-
+-              stream << "<a href=\"" << *it << "/" << url.fileName() << "\">" << *it << "</a><br>" << endl;
+-              }
+-          }
+-       }
+-    else
+-       stream << "<hr>\n" << endl;
+-
+-    stream << "<table>" << endl;
+-
+-    // Table with images
+-
+-    int imgIndex = 0;
+-    QFileInfo imginfo;
+-    QPixmap imgProp;
+-
+-    KURL::List images = data.itemsUrl();
+-    
+-    for( KURL::List::Iterator urlIt = images.begin() ; !m_cancelled && (urlIt != images.end()) ; )
+-        {
+-        stream << "<tr>" << endl;
+-
+-        for (int col = 0 ;
+-             !m_cancelled && (urlIt!=images.end()) && (col < m_imagesPerRow) ;
+-             ++col, ++urlIt, ++imgIndex)
+-            {
+-            const QString imgName = (*urlIt).fileName();
+-
+-            const QString targetImgName = imgName + extension(TargetimagesFormat);
+-
+-            QDir targetImagesDir( imgGalleryDir + QString::fromLatin1("/images/"));
+-
+-            kdDebug( 51000 ) << "Creating thumbnail for " << imgName.ascii() << endl;
+-
+-            stream << "<td align='center'>\n";
+-            
+-            d = new KIPIImagesGalleryPlugin::EventData;
+-            d->action = KIPIImagesGalleryPlugin::ResizeImages;
+-            d->starting = true;
+-            d->success = false;
+-            d->fileName = imgName;
+-            QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-            usleep(1000);
+-           
+-            int valRet = createThumb(*urlIt, imgName, imgGalleryDir, imageFormat, TargetimagesFormat);
+-            
+-            if ( valRet != -1 )
+-                {
+-                // user requested the creation of html pages for each photo
+-
+-                if ( m_createPageForPhotos )
+-                   stream << "<a href=\"pages/" << targetImgName << ".html\">";
+-                else
+-                   stream << "<a href=\"images/" << targetImgName << "\">";
+-
+-                const QString imgNameFormat = imgName;
+-
+-                const QString imgPath("thumbs/" + imgNameFormat + extension(imageFormat));
+-                stream << "<img class=\"photo\" src=\"" << imgPath << "\" width=\"" << m_imgWidth << "\" ";
+-                stream << "height=\"" << m_imgHeight << "\" alt=\"" << imgPath;
+-
+-                QString sep = "\" title=\"";
+-
+-                if ( m_printImageName )
+-                    {
+-                    stream << sep << imgName;
+-                    sep = ", ";
+-                    }
+-
+-                if ( m_printImageProperty )
+-                    {
+-                    imgProp.load( targetImagesDir.absFilePath(targetImgName, true) );
+-                    stream << sep << imgProp.width() << "&nbsp;x&nbsp;" << imgProp.height();
+-                    sep = ", ";
+-                    }
+-
+-                if ( m_printImageSize)
+-                    {
+-                    imginfo.setFile( targetImagesDir, targetImgName );
+-                    stream << sep << (imginfo.size() / 1024) << "&nbsp;" <<  i18n("KB");
+-                    sep = ", ";
+-                    }
+-
+-                if ( m_useCommentFile )
+-                   {
+-                   QString imgComment = (*m_commentMap)[(*urlIt).prettyURL()];
+-
+-                   if ( !imgComment.isEmpty() )
+-                      {
+-                      stream << sep
+-                             << EscapeSgmlText(QTextCodec::codecForLocale(), imgComment, true, true);
+-                      }
+-                   }
+-
+-                stream << "\">" << endl;
+-
+-                // For each first image of current Album we add a preview in main HTML page.
+-
+-                if ( imgIndex == 0)
+-                   {
+-                   QString Temp, Temp2;
+-                   Temp2 = "<a href=\"" + m_AlbumTitle + "/" + "index.html" + "\">";
+-                   m_StreamMainPageAlbumPreview.append ( Temp2 );
+-                   Temp2 = "<img class=\"photo\" src=\"" + m_AlbumTitle + "/" + imgPath + "\" width=\""
+-                           + Temp.setNum(m_imgWidth) + "\" ";
+-                   m_StreamMainPageAlbumPreview.append ( Temp2 );
+-                   Temp2 = "height=\"" + Temp.setNum(m_imgHeight) + "\" alt=\"" + imgPath + "\" ";
+-                   m_StreamMainPageAlbumPreview.append ( Temp2 );
+-                   Temp2 = "title=\"" + m_AlbumTitle + " [ " + i18n("1 image", "%n images", numOfImages)
+-                           + " ]\"></a>\n";
+-                   m_StreamMainPageAlbumPreview.append ( Temp2 );
+-                   Temp2 = "<a href=\"" + m_AlbumTitle + "/" + "index.html" + "\">" + m_AlbumTitle + "</a>"
+-                           + " [ " + i18n("1 image", "%n images", numOfImages) + " ]" + "<br>\n";
+-                   m_StreamMainPageAlbumPreview.append ( Temp2 );
+-                   }
+-                }
+-            
+-            if ( valRet == -1 || valRet == 0 )
+-                {
+-                kdDebug( 51000 ) << "Creating thumbnail for " << imgName.ascii() 
+-                                 << " failed !" << endl;
+-                
+-                d = new KIPIImagesGalleryPlugin::EventData;
+-                d->action = KIPIImagesGalleryPlugin::ResizeImages;
+-                d->starting = false;
+-                d->success = false;
+-                d->fileName = imgName;
+-                QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                usleep(1000);
+-                
+-                }
+-            else
+-                {
+-                d = new KIPIImagesGalleryPlugin::EventData;
+-                d->action = KIPIImagesGalleryPlugin::ResizeImages;
+-                d->starting = false;
+-                d->success = true;
+-                d->fileName = imgName;
+-                QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                usleep(1000);
+-                
+-                }
+-                
+-            stream << "</a>" << endl;
+-
+-            if ( m_printImageName )
+-                {
+-                stream << "<div>" << imgName << "</div>" << endl;
+-                }
+-
+-            if ( m_printImageProperty )
+-                {
+-                imgProp.load( targetImagesDir.absFilePath(targetImgName, true) );
+-                stream << "<div>" << imgProp.width() << " x " << imgProp.height() << "</div>" << endl;
+-                }
+-
+-            if ( m_printImageSize )
+-                {
+-                imginfo.setFile( targetImagesDir, targetImgName );
+-                stream << "<div>(" << (imginfo.size() / 1024) << " " <<  i18n("KB") << ") "
+-                       << "</div>" << endl;
+-                }
+-                
+-            stream << "</td>" << endl;
+-            }
+-
+-        stream << "</tr>" << endl;
+-        }
+-
+-    // Close the HTML and page creation info if necessary.
+-
+-    stream << "</table>\n<hr>\n" << endl;
+-
+-    // create HTML pages if requested.
+-
+-    if( m_createPageForPhotos )
+-      {
+-      KGlobal::dirs()->addResourceType("kipi_data", KGlobal::dirs()->kde_default("data") + "kipi");
+-      QString dir = KGlobal::dirs()->findResourceDir("kipi_data", "up.png");
+-      dir = dir + "up.png";
+-
+-      KURL srcURL(dir);
+-      KURL destURL(imgGalleryDir + QString::fromLatin1("/up.png"));
+-      KIO::file_copy(srcURL, destURL, -1, true, false, false);
+-
+-      int imgIndex = 0;
+-      KURL::List images = data.itemsUrl();
+-      
+-      for( KURL::List::Iterator urlIt = images.begin();
+-           !m_cancelled && (urlIt != images.end()) ; ++urlIt, ++imgIndex )
+-        {
+-        const QString imgName = (*urlIt).fileName();
+-
+-        const QString targetImgName = imgName + extension(TargetimagesFormat);
+-
+-        QString previousImgName = "";
+-
+-        if ( imgIndex != 0 )
+-           {
+-           KURL::List::Iterator it = urlIt;
+-           --it;
+-           previousImgName = (*it).fileName();
+-           previousImgName = previousImgName + extension(TargetimagesFormat);
+-           }
+-
+-        QString nextImgName = "" ;
+-
+-        if ( imgIndex != numOfImages -1)
+-           {
+-           KURL::List::Iterator it = urlIt;
+-           ++it;
+-           nextImgName = (*it).fileName();
+-           nextImgName = nextImgName + extension(TargetimagesFormat);
+-           }
+-
+-        QString imgComment = "";
+-
+-        if ( m_useCommentFile )
+-           imgComment = (*m_commentMap)[(*urlIt).prettyURL()];
+-           
+-        d = new KIPIImagesGalleryPlugin::EventData;
+-        d->action = KIPIImagesGalleryPlugin::BuildImageHTMLPage;
+-        d->starting = true;
+-        d->success = false;
+-        d->fileName = imgName;
+-        QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-        usleep(1000);
+-        
+-
+-        if ( createPage(imgGalleryDir,  targetImgName , previousImgName , nextImgName , imgComment) == false )
+-           {
+-           d = new KIPIImagesGalleryPlugin::EventData;
+-           d->action = KIPIImagesGalleryPlugin::BuildImageHTMLPage;
+-           d->starting = false;
+-           d->success = false;
+-           d->fileName = imgName;
+-           QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-           usleep(1000);
+-           
+-           }
+-        }
+-      }
+-
+-    if ( m_printPageCreationDate )
+-        {
+-        QString Temp;
+-        KGlobal::dirs()->addResourceType("kipi_data", KGlobal::dirs()->kde_default("data") + "kipi");
+-        QString dir = KGlobal::dirs()->findResourceDir("kipi_data", "valid-html401.png");
+-        dir = dir + "valid-html401.png";
+-
+-        KURL srcURL(dir);
+-        KURL destURL(imgGalleryDir + QString::fromLatin1("/thumbs/valid-html401.png"));
+-        KIO::file_copy(srcURL, destURL, -1, true, false, false);
+-        
+-        stream << "<p>"  << endl;
+-        Temp = i18n("Valid HTML 4.01");
+-        stream << "<img src=\"thumbs/valid-html401.png\" alt=\"" << Temp
+-               << "\" height=\"31\" width=\"88\"  title=\"" << Temp <<  "\" />" << endl;
+-        Temp = i18n("Image gallery created with "
+-                    "<a href=\"%1\">%2</a> on %3").arg(m_hostURL).arg(m_hostName).arg(today);
+-        stream << Temp << endl;
+-        stream << "</p>" << endl;
+-        }
+-
+-    stream << "</body>\n</html>\n" << endl;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::createBodyMainPage(QTextStream& stream, KURL& url)
+-{
+-    QString Temp;
+-    const QString today(KGlobal::locale()->formatDate(QDate::currentDate()));
+-
+-    Temp = m_mainTitle;
+-    stream << "<body>\n<h1>" << Temp << "</h1><p>\n" << endl;
+-
+-    Temp = i18n("<i>Album list:</i>");
+-    stream << Temp << "<br>" << endl;
+-    stream << "<hr>" << endl;
+-
+-    stream << "<p> " << m_StreamMainPageAlbumPreview << "</p>" << endl;
+-
+-    stream << "<hr>" << endl;
+-
+-    if ( m_printPageCreationDate )
+-        {
+-        QString Temp;
+-        KGlobal::dirs()->addResourceType("kipi_data", KGlobal::dirs()->kde_default("data") + "kipi");
+-        QString dir = KGlobal::dirs()->findResourceDir("kipi_data", "valid-html401.png");
+-        dir = dir + "valid-html401.png";
+-
+-        KURL srcURL(dir);
+-        KURL destURL(url.directory() + QString::fromLatin1("/valid-html401.png"));
+-        KIO::file_copy(srcURL, destURL, -1, true, false, false);
+-
+-        stream << "<p>"  << endl;
+-        Temp = i18n("Valid HTML 4.01");
+-        stream << "<img src=\"valid-html401.png\" alt=\"" << Temp
+-               << "\" height=\"31\" width=\"88\" title=\"" << Temp <<  "\" />" << endl;
+-
+-        Temp = i18n("Image gallery created with "
+-                    "<a href=\"%1\">%2</a> on %3").arg(m_hostURL).arg(m_hostName).arg(today);
+-               
+-        stream << Temp << endl;
+-        stream << "</p>" << endl;
+-        }
+-
+-    stream << "</body>\n</html>\n" << endl;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::createHtml(const KURL& url, const QString& sourceDirName, int recursionLevel, 
+-                               const QString& imageFormat, const QString& TargetimagesFormat)
+-{
+-    if (m_cancelled) return false;
+-    
+-    KIPIImagesGalleryPlugin::EventData *d;
+-    QStringList subDirList;
+-    
+-    if (m_recurseSubDirectories && (recursionLevel >= 0))  
+-        {                                                  
+-        QDir toplevel_dir = QDir( sourceDirName );
+-        toplevel_dir.setFilter( QDir::Dirs | QDir::Readable | QDir::Writable );
+-        subDirList = toplevel_dir.entryList();
+-
+-        for (QStringList::ConstIterator it = subDirList.begin() ; 
+-             !m_cancelled && (it != subDirList.end()) ; it++)
+-            {
+-            const QString currentDir = *it;
+-
+-            if (currentDir == "." || currentDir == "..")   // Disregard the "." and ".." directories
+-                continue;
+-
+-            QDir subDir = QDir( url.directory() + "/" + currentDir );
+-
+-            if (!subDir.exists())
+-                {
+-                subDir.setPath( url.directory() );
+-
+-                if (!(subDir.mkdir(currentDir, false)))
+-                    {
+-                    d = new KIPIImagesGalleryPlugin::EventData;
+-                    d->action = KIPIImagesGalleryPlugin::Error;
+-                    d->starting = false;
+-                    d->success = false;
+-                    d->message = i18n("Could not create folder '%1' in '%2'.")
+-                                        .arg(currentDir).arg(url.directory());
+-                    QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-                    usleep(1000);
+-                    
+-                    continue;
+-                    }
+-                else
+-                    subDir.setPath( url.directory() + "/" + currentDir );
+-                }
+-
+-            if (!createHtml( KURL( subDir.path() + "/" + url.fileName() ),
+-                             sourceDirName + "/" + currentDir,
+-                             recursionLevel > 1 ? recursionLevel - 1 : 0,
+-                             imageFormat,
+-                             TargetimagesFormat
+-                             ))
+-               return false;
+-            }
+-       }
+-
+-    const QString imgGalleryDir = url.directory();
+-    kdDebug( 51000 ) << "imgGalleryDir: " << imgGalleryDir << endl;
+-
+-    // Create the "thumbs" subdirectory
+-
+-    QDir thumb_dir( imgGalleryDir + QString::fromLatin1("/thumbs/"));
+-
+-    if (createDirectory(thumb_dir, imgGalleryDir, "thumbs") == false)
+-        return false;
+-
+-    // Create the "images" subdirectory
+-
+-    QDir images_dir( imgGalleryDir + QString::fromLatin1("/images/"));
+-
+-    if (createDirectory(images_dir, imgGalleryDir, "images") == false)
+-        return false;
+-
+-    QDir pages_dir( imgGalleryDir + QString::fromLatin1("/pages/"));
+-
+-    if (m_createPageForPhotos )
+-       {
+-       kdDebug( 51000 ) << "Create photos :" << m_createPageForPhotos << endl;
+-
+-       if (createDirectory(pages_dir, imgGalleryDir, "pages") == false)
+-         return false;
+-       }
+-
+-    // Create HTML page.
+-
+-    QFile file( url.path() );
+-    kdDebug( 51000 ) << "url.path(): " << url.path() << ", thumb_dir: "<< thumb_dir.path()
+-                     << ", pagesDir: "<< pages_dir.path()<<endl;
+-
+-    if ( file.open(IO_WriteOnly) )
+-        {
+-        QTextStream stream(&file);
+-        stream.setEncoding(QTextStream::UnicodeUTF8);
+-        createHead(stream);
+-        createBody(stream, subDirList, url, imageFormat, TargetimagesFormat);
+-        file.close();
+-        return true;
+-        }
+-    else
+-        {
+-        d = new KIPIImagesGalleryPlugin::EventData;
+-        d->action = KIPIImagesGalleryPlugin::Error;
+-        d->starting = false;
+-        d->success = false;
+-        d->message = i18n("Could not open file '%1'").arg(url.path(+1));
+-        QApplication::sendEvent(m_parent, new QCustomEvent(QEvent::User, d));
+-        usleep(1000);
+-        
+-        return false;
+-        }
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::loadComments(void)
+-{
+-    // We considering no default images comments for the current album.
+-
+-    m_useCommentFile = false;
+-    m_commentMap = new CommentMap;
+-
+-    QValueList<KIPI::ImageCollection> albums = m_interface->allAlbums();       
+-
+-    for( QValueList<KIPI::ImageCollection>::Iterator albumIt = albums.begin() ;
+-         !m_cancelled && (albumIt != albums.end()) ; ++albumIt )
+-        {
+-        KURL::List images = (*albumIt).images();
+-
+-        for( KURL::List::Iterator urlIt = images.begin(); urlIt != images.end(); ++urlIt )
+-            {
+-            KIPI::ImageInfo info = m_interface->info( *urlIt );                
+-            QString comment=info.description();
+-            
+-            if (!comment.isEmpty())
+-               {
+-               m_useCommentFile = true;
+-               m_commentMap->insert((*urlIt).prettyURL(), comment);
+-               }
+-            }
+-        }
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool ImagesGallery::createPage(const QString& imgGalleryDir, const QString& imgName,
+-                               const QString& previousImgName, const QString& nextImgName,
+-                               const QString& comment)
+-{
+-    const QDir pagesDir(imgGalleryDir + QString::fromLatin1("/pages/"));
+-    const QDir targetImagesDir(imgGalleryDir + QString::fromLatin1("/images/"));
+-    const QDir thumbsDir(imgGalleryDir + QString::fromLatin1("/thumbs/"));
+-
+-    // Html pages filenames
+-
+-    const QString pageFilename = pagesDir.path() + QString::fromLatin1("/") + imgName
+-                                 + QString::fromLatin1(".html");
+-    const QString nextPageFilename =  nextImgName + QString::fromLatin1(".html");
+-    const QString previousPageFilename =  previousImgName + QString::fromLatin1(".html");
+-
+-    // Thumbs filenames
+-
+-    const QString previousThumb = QString::fromLatin1("../thumbs/")
+-                                  + previousImgName.left( previousImgName.findRev('.', -1) )
+-                                  + extension(m_imageFormat);
+-
+-    const QString nextThumb = QString::fromLatin1("../thumbs/")
+-                              + nextImgName.left( nextImgName.findRev('.', -1) )
+-                              + extension(m_imageFormat);
+-
+-    QFile file( pageFilename );
+-
+-    if ( pagesDir.exists() && file.open(IO_WriteOnly) )
+-       {
+-       QTextStream stream(&file);
+-       stream.setEncoding(QTextStream::UnicodeUTF8);
+-
+-       QString chsetName = QTextCodec::codecForLocale()->mimeName();
+-       stream << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 "
+-                 "Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">" << endl;
+-       stream << "<html>" << endl;
+-       stream << "<head>" << endl;
+-       stream << "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">" << endl;
+-
+-       stream << "<meta name=\"Generator\" content=\"Albums Images gallery generated by "
+-              << m_hostName << " [" << m_hostURL << "]\">"  << endl;
+-       stream << "<meta name=\"date\" content=\""
+-                 + KGlobal::locale()->formatDate(QDate::currentDate()) + "\">" << endl;
+-       stream << "<title>" << m_mainTitle << " : "<< imgName <<"</title>" << endl;
+-       
+-       createCSSSection(stream);
+-       
+-       stream << "</head>" << endl;
+-       stream<<"<body>"<< endl;;
+-
+-       stream << "<div align=\"center\">" << endl;
+-
+-       QPixmap imgProp;
+-
+-       int prevW = 0;
+-       int prevH = 0;
+-       int nextW = 0;
+-       int nextH = 0;
+-
+-       if (imgProp.load( targetImagesDir.absFilePath(previousImgName, true) ))
+-          {
+-          prevW = imgProp.width();
+-          prevH = imgProp.height();
+-          }
+-
+-       if (imgProp.load( targetImagesDir.absFilePath(nextImgName, true) ))
+-          {
+-          nextW = imgProp.width();
+-          nextH = imgProp.height();
+-          }
+-
+-       kdDebug( 51000 ) << previousImgName << ":"<<prevW<<"/"<<prevH << "       "
+-                        <<  nextImgName << ":"<<nextW<<"/"<<nextH<< endl;
+-
+-       // Navigation thumbs need to be 64x64 at most
+-
+-       if ( prevW < prevH )
+-          {
+-          prevH = (NAV_THUMB_MAX_SIZE  * prevH) / prevW;
+-          prevW = NAV_THUMB_MAX_SIZE;
+-          }
+-       else if ( prevW == prevH )
+-          {
+-          prevH = NAV_THUMB_MAX_SIZE;
+-          prevW = NAV_THUMB_MAX_SIZE;
+-          }
+-       else
+-          {
+-          prevW = (NAV_THUMB_MAX_SIZE  * prevW) / prevH;
+-          prevH = NAV_THUMB_MAX_SIZE;
+-          }
+-
+-       if ( nextW < nextH )
+-          {
+-          nextH = (NAV_THUMB_MAX_SIZE  * nextH) / nextW;
+-          nextW = NAV_THUMB_MAX_SIZE;
+-          }
+-       else if ( nextW == nextH )
+-          {
+-          nextH = NAV_THUMB_MAX_SIZE ;
+-          nextW = NAV_THUMB_MAX_SIZE;
+-          }
+-       else
+-          {
+-          nextW = (NAV_THUMB_MAX_SIZE  * nextW) / nextH;
+-          nextH = NAV_THUMB_MAX_SIZE;
+-          }
+-
+-       kdDebug( 51000 ) << previousImgName << ":"<<prevW<<"/"<<prevH << "       "
+-                        <<  nextImgName << ":"<<nextW<<"/"<<nextH<< endl;
+-
+-       if ( !previousImgName.isEmpty() )
+-          {
+-          stream << "<a href=\"" << previousPageFilename << "\"><img class=\"photo\" src=\""
+-                 << previousThumb << "\" alt=\"" << i18n("Previous") <<  "\" title=\""
+-                 << i18n("Previous") << "\" height=\""<< prevH << "\" width=\"" << prevW
+-                 << "\"></a>&nbsp; | &nbsp;" << endl;
+-          }
+-
+-       stream << "<a href=\"../index.html\"><img src=\"../up.png\" border=\"0\" title=\""
+-              << i18n("Album index") << "\" alt=\"" << i18n("Album index") << "\"></a>" << endl;
+-
+-       if (QFile::exists(imgGalleryDir + QString::fromLatin1("/../gohome.png")))
+-          {
+-          stream << "&nbsp; | &nbsp;<a href=\"../../index.html\"><img src=\"../../gohome.png\" "
+-                    "border=\"0\" title=\"" << i18n("Albums list") << "\" alt=\""
+-                 << i18n("Albums list") << "\"></a>" <<endl;
+-          }
+-
+-       if ( !nextImgName.isEmpty() )
+-          {
+-          stream << "&nbsp; | &nbsp;<a href=\"" << nextPageFilename << "\"><img class=\"photo\" src=\""
+-                 << nextThumb << "\" alt=\"" << i18n("Next") <<"\" title=\"" << i18n("Next")
+-                 << "\" height=\"" << nextH << "\" width=\"" << nextW << "\"></a>" << endl;
+-          }
+-
+-       stream << "<br><hr><br>" << endl;
+-
+-       // Add comment if it exists
+-
+-       if ( !comment.isEmpty() )
+-          {
+-          stream << "<div align=\"center\">"
+-                 << EscapeSgmlText(QTextCodec::codecForLocale(), comment, true, true)
+-                 << "</div>" << endl;
+-          }
+-
+-       stream <<"<br>" << endl;
+-
+-       stream << "<img class=\"photo\" src=\"../images/" << imgName << "\" alt=\"" << imgName;
+-
+-       // Add info about image if requested
+-
+-       QString sep = "\" title=\"";
+-
+-       QFileInfo imginfo;
+-
+-       if ( m_printImageName )
+-          {
+-          stream << sep << imgName;
+-          sep = ", ";
+-          }
+-
+-       if ( m_printImageProperty )
+-          {
+-          imgProp.load( targetImagesDir.absFilePath(imgName, true) );
+-          
+-          kdDebug( 51000 ) << targetImagesDir.path() << "/" << imgName << endl;
+-          
+-          stream << sep << imgProp.width() << "&nbsp;x&nbsp;" << imgProp.height();
+-          sep = ", ";
+-          }
+-
+-       if ( m_printImageSize )
+-          {
+-          imginfo.setFile( targetImagesDir, imgName );
+-          stream << sep << (imginfo.size() / 1024) << "&nbsp;" <<  i18n("KB");
+-          }
+-
+-       stream << "\"><br><br></div>" << endl;
+-
+-       // Footer
+-
+-       if ( m_printPageCreationDate )
+-          {
+-          stream << "<hr>" << endl;
+-          QString valid = i18n("Valid HTML 4.01");
+-          const QString today(KGlobal::locale()->formatDate(QDate::currentDate()));
+-          stream << "<div><img src=\"../thumbs/valid-html401.png\" alt=\"" << valid
+-                 << "\" height=\"31\" width=\"88\"  title=\"" << valid <<  "\" />" << endl;
+-
+-          valid =  i18n("Image gallery created with "
+-                        "<a href=\"%1\">%2</a> on %3").arg(m_hostURL).arg(m_hostName).arg(today);
+-          stream << valid << "</div>" << endl;
+-          }
+-
+-       stream << "</body></html>" << endl;
+-       file.close();
+-
+-       return true;
+-       }
+-
+-    return false;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int ImagesGallery::createThumb( const KURL& url, const QString& imgName,
+-                                const QString& imgGalleryDir, const QString& imageFormat,
+-                                const QString& TargetimagesFormat)
+-{
+-    const QString pixPath = url.path();
+-
+-    // Create the target images with resizing factor.
+-
+-    const QString TargetImageNameFormat = imgName + extension(TargetimagesFormat);
+-    
+-    const QString TargetImagesbDir = imgGalleryDir + QString::fromLatin1("/images/");
+-    int extentTargetImages;
+-
+-    if ( m_useNotOriginalImageSize == true)
+-        extentTargetImages = m_imagesResize;
+-    else
+-        extentTargetImages = -1;    // Use original image size.
+-
+-    m_targetImgWidth = 640;         // Default resize values.
+-    m_targetImgHeight = 480;
+-
+-    int valRet = ResizeImage(pixPath, TargetImagesbDir, TargetimagesFormat, TargetImageNameFormat,
+-                             &m_targetImgWidth, &m_targetImgHeight, extentTargetImages,
+-                             m_colorDepthSetTargetImages,
+-                             m_colorDepthTargetImages,
+-                             m_useSpecificTargetimageCompression,
+-                             m_targetImagesCompression);
+-
+-    // Only try to write Exif if both src and destination are JPEG files.
+-    
+-    if (valRet == 1 && 
+-        QString(QImageIO::imageFormat(pixPath)).upper() == "JPEG" &&
+-        TargetimagesFormat.upper() == "JPEG")
+-       {
+-       ExifRestorer exifHolder;
+-       exifHolder.readFile(pixPath, ExifRestorer::ExifOnly);
+-       
+-       QString targetFile = TargetImagesbDir + TargetImageNameFormat;
+-       
+-       if (exifHolder.hasExif()) 
+-          {
+-          ExifRestorer restorer;
+-          restorer.readFile(targetFile, ExifRestorer::EntireImage);
+-          restorer.insertExifData(exifHolder.exifData());
+-          restorer.writeFile(targetFile);
+-          }
+-       else 
+-          kdWarning( 51000 ) << ("createThumb::No Exif Data Found") << endl;
+-       }              
+-                     
+-    // Create the thumbnails.
+-
+-    const QString ImageNameFormat = imgName + extension(imageFormat);
+-    const QString thumbDir = imgGalleryDir + QString::fromLatin1("/thumbs/");
+-    int extent = m_thumbnailsSize;
+-
+-    m_imgWidth = 120; // Setting the size of the images is
+-    m_imgHeight = 90; // required to generate faster 'loading' pages
+-
+-    return (ResizeImage(pixPath, thumbDir, imageFormat, ImageNameFormat,
+-                        &m_imgWidth, &m_imgHeight, extent,
+-                        m_colorDepthSetThumbnails,
+-                        m_colorDepthThumbnails,
+-                        m_useSpecificThumbsCompression,
+-                        m_thumbsCompression));
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-// Return -1 if failed, 0 if used Broken image, 1 if done !
+-
+-int ImagesGallery::ResizeImage( const QString Path, const QString Directory, const QString ImageFormat,
+-                                const QString ImageNameFormat, int *Width, int *Height, int SizeFactor,
+-                                bool ColorDepthChange, int ColorDepthValue, bool CompressionSet,
+-                                int ImageCompression)
+-{
+-    QImage img;
+-    bool ValRet;
+-    bool usingBrokenImage = false;
+-
+-    ValRet = img.load(Path);
+-
+-    if ( ValRet == false )        // Cannot load the src image.
+-       {
+-       KGlobal::dirs()->addResourceType("kipi_imagebroken", KGlobal::dirs()->kde_default("data") + "kipi/data");
+-       QString dir = KGlobal::dirs()->findResourceDir("kipi_imagebroken", "image_broken.png");
+-       dir = dir + "image_broken.png";
+-       kdDebug ( 51000 ) << "Loading " << Path.ascii() << " failed ! Using " << dir.ascii() 
+-                         << " instead..." << endl;
+-       ValRet = img.load(dir);    // Try broken image icon...
+-       usingBrokenImage = true;
+-       }
+-
+-    if ( ValRet == true )
+-       {
+-       int w = img.width();
+-       int h = img.height();
+-
+-       if (SizeFactor != -1)      // Use original image size ?
+-          {
+-          // scale to pixie size
+-          // kdDebug( 51000 ) << "w: " << w << " h: " << h << endl;
+-          // Resizing if to big
+-
+-          if( w > SizeFactor || h > SizeFactor )
+-              {
+-              if( w > h )
+-                  {
+-                  h = (int)( (double)( h * SizeFactor ) / w );
+-  
+-                  if ( h == 0 ) h = 1;
+-
+-                  w = SizeFactor;
+-                  Q_ASSERT( h <= SizeFactor );
+-                  }
+-              else
+-                  {
+-                  w = (int)( (double)( w * SizeFactor ) / h );
+-
+-                  if ( w == 0 ) w = 1;
+-
+-                  h = SizeFactor;
+-                  Q_ASSERT( w <= SizeFactor );
+-                  }
+- 
+-              const QImage scaleImg(img.smoothScale( w, h ));
+-
+-              if ( scaleImg.width() != w || scaleImg.height() != h )
+-                  {
+-                  kdDebug( 51000 ) << "Resizing failed. Aborting." << endl;
+-                  return -1;
+-                  }
+-
+-              img = scaleImg;
+-              }
+-              
+-           if ( ColorDepthChange == true )
+-               {
+-               const QImage depthImg(img.convertDepth( ColorDepthValue ));
+-               img = depthImg;
+-               }
+-           }
+-
+-       kdDebug( 51000 ) << "Saving resized image to: " << Directory + ImageFormat  << endl;
+-
+-       if ( CompressionSet == true )
+-          {
+-          if ( !img.save(Directory + ImageNameFormat, ImageFormat.latin1(), ImageCompression) )
+-             {
+-             kdDebug( 51000 ) << "Saving failed with specific compression value. Aborting." << endl;
+-             return -1;
+-             }
+-          }
+-       else
+-          {
+-          if ( !img.save(Directory + ImageNameFormat, ImageFormat.latin1(), -1) )
+-             {
+-             kdDebug( 51000 ) << "Saving failed with no compression value. Aborting." << endl;
+-             return -1;
+-             }
+-          }
+-
+-       *Width = w;
+-       *Height = h;
+-   
+-       if ( usingBrokenImage == true )
+-          return 0;
+-       else 
+-          return 1;
+-       }
+-
+-    return -1;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void ImagesGallery::invokeWebBrowser(void)
+-{
+-    if (m_cancelled) return;
+-
+-    if (m_configDlg->OpenGalleryInWebBrowser() == false)
+-       return;
+-    
+-    if (m_configDlg->getWebBrowserName() == "Konqueror")
+-       kapp->invokeBrowser(m_url4browser.url());       // Open Konqueror browser to show the main HTML page.
+-
+-    if (m_configDlg->getWebBrowserName() == "Mozilla")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "mozilla";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'mozilla' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Netscape")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "netscape";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'netscape' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Opera")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "opera";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'opera' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Firefox")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "mozilla-firefox";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'firefox' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Galeon")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "galeon";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'galeon' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Amaya")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "amaya";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'amaya' web browser.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Quanta")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "quanta";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'quanta' web editor.\nPlease check your installation."));
+-       }
+-
+-    if (m_configDlg->getWebBrowserName() == "Screem")
+-       {
+-       m_webBrowserProc = new KProcess;
+-       *m_webBrowserProc << "screem";
+-       *m_webBrowserProc << m_url4browser.url();
+-
+-       if (m_webBrowserProc->start() == false)
+-          KMessageBox::error(kapp->activeWindow(), i18n("Cannot start 'screem' web editor.\nPlease check your installation."));
+-       }
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-// This code can be multithreaded (in opposite to KIO::netaccess::delete().
+-
+-bool ImagesGallery::DeleteDir(QString dirname)
+-{
+-    if ( !dirname.isEmpty() )
+-        {
+-        QDir dir;
+-
+-        if (dir.exists ( dirname ) == true)
+-           {
+-           if (deldir(dirname) == false)
+-               return false;
+-
+-           if (dir.rmdir( dirname ) == false )
+-               return false;
+-           }
+-        else
+-           return false;
+-        }
+-    else
+-        return false;
+-
+-    return true;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-// This code can be multithreaded (in opposite to KIO::netaccess::delete().
+-
+-bool ImagesGallery::deldir(QString dirname)
+-{
+-    QDir *dir = new QDir(dirname);
+-    dir->setFilter ( QDir::Dirs | QDir::Files | QDir::NoSymLinks );
+-
+-    const QFileInfoList* fileinfolist = dir->entryInfoList();
+-    QFileInfoListIterator it(*fileinfolist);
+-    QFileInfo* fi;
+-
+-    while( (fi = it.current() ) )
+-         {
+-         if(fi->fileName() == "." || fi->fileName() == ".." )
+-              {
+-              ++it;
+-              continue;
+-              }
+-
+-         if( fi->isDir() )
+-              {
+-              if (deldir( fi->absFilePath() ) == false)
+-                  return false;
+-              if (dir->rmdir( fi->absFilePath() ) == false)
+-                  return false;
+-              }
+-         else
+-              if( fi->isFile() )
+-                   if (dir->remove(fi->absFilePath() ) == false)
+-                       return false;
+-         
+-         ++it;
+-         }
+-
+-    return true;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-// Source code from Koffice 1.3
+-
+-QString ImagesGallery::EscapeSgmlText(const QTextCodec* codec,
+-                      const QString& strIn,
+-                      const bool quot /* = false */ ,
+-                      const bool apos /* = false */ )
+-{
+-    QString strReturn;
+-    QChar ch;
+-
+-    for (uint i = 0 ; i < strIn.length() ; ++i)
+-    {
+-        ch=strIn[i];
+-        switch (ch.unicode())
+-        {
+-        case 38: // &
+-            {
+-                strReturn+="&amp;";
+-                break;
+-            }
+-        case 60: // <
+-            {
+-                strReturn+="&lt;";
+-                break;
+-            }
+-        case 62: // >
+-            {
+-                strReturn+="&gt;";
+-                break;
+-            }
+-        case 34: // "
+-            {
+-                if (quot)
+-                    strReturn+="&quot;";
+-                else
+-                    strReturn+=ch;
+-                break;
+-            }
+-        case 39: // '
+-            {
+-                // NOTE: HTML does not define &apos; by default (only XML/XHTML does)
+-                if (apos)
+-                    strReturn+="&apos;";
+-                else
+-                    strReturn+=ch;
+-                break;
+-            }
+-        default:
+-            {
+-                // verify that the character ch can be expressed in the
+-                // encoding in which we will write the HTML file.
+-                if (codec)
+-                {
+-                    if (!codec->canEncode(ch))
+-                    {
+-                        strReturn+=QString("&#%1;").arg(ch.unicode());
+-                        break;
+-                    }
+-                }
+-                strReturn+=ch;
+-                break;
+-            }
+-        }
+-    }
+-
+-    return strReturn;
+-}
+-
+-}  // NameSpace KIPIImagesGalleryPlugin
+-
+-#include "imagesgallery.moc"
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imagesgallery.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imagesgallery.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imagesgallery.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imagesgallery.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,243 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    IMAGESGALLERY.H
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//    Copyright (C) 2003-2004 by Gregory Kokanosky <gregory dot kokanosky at free.fr>
+-//    for images navigation mode.
+-//
+-//    Adapted and improved for DigikamPlugins from the konqueror plugin
+-//    'kdeaddons/konq-plugins/kimgalleryplugin/' by Gilles Caulier.
+-//
+-//    Copyright 2001, 2003 by Lukas Tinkl <lukas at kde.org> and
+-//    Andreas Schlapbach <schlpbch at iam.unibe.ch> for orginal source
+-//    of 'kimgalleryplugin' from KDE CVS
+-//
+-//    Copyright 2003-2004 by Gilles Caulier <caulier dot gilles at free.fr> for
+-//    DigikamPlugins port.
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-#ifndef IMAGESGALLERY_H
+-#define IMAGESGALLERY_H
+-
+-// Include files for Qt
+-
+-#include <qobject.h>
+-#include <qstring.h>
+-#include <qstringlist.h>
+-#include <qdir.h>
+-#include <qcolor.h>
+-#include <qdatetime.h>
+-
+-// Includes files for KDE.
+-
+-#include <kurl.h>
+-
+-// KIPI includes
+-
+-#include <libkipi/interface.h>
+-
+-class KConfig;
+-class KProcess;
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-
+-class KIGPDialog;
+-
+-class AlbumData
+-    {
+-    public:
+-        
+-        AlbumData(){}
+-        AlbumData( const QString& albumName,     const QString& albumCategory,
+-                   const QString& albumComments, const QDate& albumDate,
+-                   const KURL&    albumUrl,      const KURL::List& itemsUrl )
+-                 : m_albumName(albumName), m_albumCategory(albumCategory),
+-                   m_albumComments(albumComments), m_albumDate(albumDate),
+-                   m_albumUrl(albumUrl), m_itemsUrl(itemsUrl)
+-        {}
+-
+-        QString    albumName()     const { return m_albumName;        }
+-        QString    albumCategory() const { return m_albumCategory;    }
+-        QString    albumComments() const { return m_albumComments;    }
+-        QDate      albumDate()     const { return m_albumDate;        }
+-        KURL       albumUrl()      const { return m_albumUrl;         }        
+-        KURL::List itemsUrl()      const { return m_itemsUrl;         }   
+-        int        countItems()          { return m_itemsUrl.count(); }   
+-        
+-    private:
+-        
+-        QString    m_albumName;
+-        QString    m_albumCategory;
+-        QString    m_albumComments;
+-        QDate      m_albumDate;
+-        KURL       m_albumUrl;
+-        KURL::List m_itemsUrl;
+-    };
+-
+-
+-const int NAV_THUMB_MAX_SIZE = 64;
+-
+-// First field is the URL, represented with KURL::prettyURL. We can't use KURL
+-// directly because operator<(KURL,KURL) is not defined in KDE 3.1
+-
+-typedef QMap<QString, QString>   CommentMap;  // List of Albums items comments.
+-typedef QMap<int, AlbumData> AlbumsMap;   // Albums data list.
+-
+-
+-class ImagesGallery : public QObject
+-{
+-Q_OBJECT
+-
+-public:
+-
+-  ImagesGallery( KIPI::Interface* interface, QObject *parent=0 );
+-  ~ImagesGallery();
+-  
+-  bool prepare(void);
+-  void run(void);
+-  void stop(void);
+-  
+-  bool showDialog(void);
+-  void invokeWebBrowser(void);
+-  bool removeTargetGalleryFolder(void);
+-  
+-private:
+-
+-  KURL                m_url4browser;
+-
+-  KConfig            *m_config;
+-  KProcess           *m_webBrowserProc;
+-  KIPI::Interface    *m_interface;
+-
+-  bool                m_cancelled;
+-  bool                m_recurseSubDirectories;
+-  bool                m_copyFiles;
+-  bool                m_useCommentFile;
+-  bool                m_useCommentsAlbum;
+-  bool                m_useCollectionAlbum;
+-  bool                m_useDateAlbum;
+-  bool                m_useNbImagesAlbum;
+-  bool                m_createPageForPhotos;
+-  bool                m_printImageName;
+-  bool                m_printImageProperty;
+-  bool                m_printImageSize;
+-  bool                m_printPageCreationDate;
+-  bool                m_useNotOriginalImageSize;
+-  bool                m_useSpecificThumbsCompression;
+-  bool                m_useSpecificTargetimageCompression;
+-
+-  QString             m_hostName;
+-  QString             m_hostURL;
+-  QString             m_AlbumTitle;
+-  QString             m_AlbumComments;
+-  QString             m_AlbumCollection;
+-  QString             m_AlbumDate;
+-  QString             m_StreamMainPageAlbumPreview;
+-  QString             m_imagesFileFilter;
+-  QString             m_imageName;                       
+-  QString             m_mainTPath;
+-  QString             m_imageFormat;
+-  QString             m_targetImagesFormat;
+-  QString             m_mainTitle;
+-  QString             m_fontName;
+-  QString             m_fontSize;
+-  QString             m_bordersImagesSize;
+-  
+-  QColor              m_backgroundColor;
+-  QColor              m_foregroundColor;
+-  QColor              m_bordersImagesColor;
+-  
+-  QStringList         m_resizeImagesWithError;
+-
+-  int                 m_imgWidth;
+-  int                 m_imgHeight;
+-  int                 m_imagesPerRow;
+-  int                 m_LevelRecursion;
+-  int                 m_targetImgWidth;
+-  int                 m_targetImgHeight;
+-  int                 m_imagesResize;
+-  int                 m_colorDepthSetTargetImages;
+-  int                 m_colorDepthTargetImages;
+-  int                 m_targetImagesCompression;
+-  int                 m_thumbnailsSize;
+-  int                 m_colorDepthSetThumbnails;
+-  int                 m_colorDepthThumbnails;
+-  int                 m_thumbsCompression;
+-  int                 m_albumListSize;
+-  int                 m_currentAlbum;
+-  int                 m_totalAlbums;
+-  
+-  KURL::List          m_albumUrlList; // Urls of Albums list from setup dialog.
+-  KURL                m_albumUrl;     // Current album Url use in the thread.
+-  
+-  CommentMap         *m_commentMap;
+-  AlbumsMap          *m_albumsMap;
+-  
+-  QObject            *m_parent;
+-
+-  QDir                m_targetDir;    // Target directory from setup dialog.
+-  
+-  KIPIImagesGalleryPlugin::KIGPDialog  *m_configDlg;
+-  
+-
+-private:
+-    
+-  bool createDirectory(QDir thumb_dir, QString imgGalleryDir, QString dirName);
+-
+-  void createHead(QTextStream& stream);
+-  void createCSSSection(QTextStream& stream);
+-
+-  void createBody(QTextStream& stream, const QStringList& subDirList,
+-                  const KURL& url, const QString& imageFormat,
+-                  const QString& TargetimagesFormat);
+-
+-  bool createPage( const QString& imgGalleryDir, const QString& imgName,
+-                   const QString& previousImgName , const QString& nextImgName,
+-                   const QString& comment);
+-
+-  int  createThumb( const KURL& url, const QString& imgName,
+-                    const QString& imgGalleryDir, const QString& imageFormat,
+-                    const QString& TargetimagesFormat);
+-                    
+-  int  ResizeImage( const QString Path, const QString Directory, const QString ImageFormat,
+-                    const QString ImageNameFormat, int *Width, int *Height, int SizeFactor,
+-                    bool ColorDepthChange, int ColorDepthValue, bool CompressionSet,
+-                    int ImageCompression);                    
+-
+-  bool createHtml( const KURL& url, const QString& sourceDirName, int recursionLevel, 
+-                   const QString& imageFormat, const QString& TargetimagesFormat);
+-
+-  void createBodyMainPage(QTextStream& stream, KURL& url);
+-  void loadComments(void);
+-  static QString extension(const QString& imageFormat);
+-  
+-  bool DeleteDir(QString dirname);
+-  bool deldir(QString dirname);
+-
+-  void writeSettings(void);
+-  void readSettings(void);
+-
+-  QString EscapeSgmlText(const QTextCodec* codec, const QString& strIn,
+-                         const bool quot = false, const bool apos = false );
+-};
+-
+-}  // NameSpace KIPIImagesGalleryPlugin
+-
+-#endif // IMAGESGALLERY_H
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imgallerydialog.cpp kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imgallerydialog.cpp
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imgallerydialog.cpp	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imgallerydialog.cpp	1970-01-01 01:00:00.000000000 +0100
+@@ -1,1201 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    IMGGALLERYDIALOG.CPP
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//    Copyright (C) 2003-2004 by Gregory Kokanosky <gregory dot kokanosky at free.fr>
+-//    for images navigation mode.
+-//
+-//    Adapted and improved for DigikamPlugins from the konqueror plugin
+-//    'kdeaddons/konq-plugins/kimgalleryplugin/' by Gilles Caulier.
+-//
+-//    Copyright 2001, 2003 by Lukas Tinkl <lukas at kde.org> and
+-//    Andreas Schlapbach <schlpbch at iam.unibe.ch> for orginal source
+-//    of 'kimgalleryplugin' from KDE CVS
+-//
+-//    Copyright 2003-2004 by Gilles Caulier <caulier dot gilles at free.fr> for
+-//    DigikamPlugins port.
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-
+-// Include files for Qt
+-
+-#include <qlabel.h>
+-#include <qvbox.h>
+-#include <qgroupbox.h>
+-#include <qlayout.h>
+-#include <qcombobox.h>
+-#include <qwhatsthis.h>
+-#include <qcheckbox.h>
+-#include <qlineedit.h>
+-#include <qspinbox.h>
+-#include <qlistview.h>
+-#include <qheader.h>
+-#include <qprogressdialog.h>
+-#include <qdir.h>
+-#include <qpushbutton.h>
+-
+-// Include files for KDE
+-
+-#include <klocale.h>
+-#include <kconfig.h>
+-#include <kurlrequester.h>
+-#include <kurl.h>
+-#include <kfontdialog.h>
+-#include <kiconloader.h>
+-#include <kdebug.h>
+-#include <klineedit.h>
+-#include <knuminput.h>
+-#include <kcolorbutton.h>
+-#include <kglobalsettings.h>
+-#include <kmessagebox.h>
+-#include <kbuttonbox.h>
+-#include <kapplication.h>
+-#include <ksqueezedtextlabel.h>
+-#include <kio/previewjob.h>
+-#include <klistview.h>
+-#include <kaboutdata.h>
+-#include <khelpmenu.h>
+-#include <kpopupmenu.h>
+-
+-// KIPI include files
+-
+-#include <libkipi/version.h>
+-#include <libkipi/imagecollectionselector.h>
+-
+-// Local include files
+-
+-#include "imgallerydialog.h"
+-#include "imgallerydialog.moc"
+-
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-
+-KIGPDialog::KIGPDialog(KIPI::Interface* interface, QWidget *parent)
+-          : KDialogBase( IconList, i18n("Configure"), Help|Ok|Cancel, Ok,
+-                         parent, "HTMLExportDialog", true, true ), m_interface( interface )
+-{
+-    setCaption(i18n("Create Image Galleries"));
+-    setupSelection();
+-    setupLookPage();
+-    setupAlbumPage();
+-    setupThumbnailPage();
+-    page_setupSelection->setFocus();
+-    resize( 650, 450 );
+-
+-    // About data and help button.
+-
+-    KAboutData* about = new KAboutData("kipiplugins",
+-                                       I18N_NOOP("Image Gallery"),
+-                                       kipi_version,
+-                                       I18N_NOOP("A Kipi plugin for HTML album export.\n"
+-                                                 "Based on KimgalleryPlugin implementation."),
+-                                       KAboutData::License_GPL,
+-                                       "(c) 2003-2004, Gilles Caulier",
+-                                       0,
+-                                       "http://extragear.kde.org/apps/kipi");
+-
+-    about->addAuthor("Gilles Caulier", I18N_NOOP("Author and maintainer"),
+-                     "caulier dot gilles at free.fr");
+-
+-    about->addAuthor("Gregory Kokanosky", I18N_NOOP("Image navigation mode patches"),
+-                     "gregory dot kokanosky at free.fr>");
+-
+-    about->addAuthor("Achim Bohnet", I18N_NOOP("HTML implementation patches"),
+-                     "ach at mpe.mpg.de");
+-
+-    about->addAuthor("Lukáš Tinkl", I18N_NOOP("Original HTML generator implementation"),
+-                     "lukas at kde.org");
+-
+-    about->addAuthor("Andreas Schlapbach", I18N_NOOP("Original HTML generator implementation"),
+-                     "schlpbch at iam.unibe.ch");
+-
+-    m_helpButton = actionButton( Help );
+-    KHelpMenu* helpMenu = new KHelpMenu(this, about, false);
+-    helpMenu->menu()->removeItemAt(0);
+-    helpMenu->menu()->insertItem(i18n("Image Gallery Handbook"), this, SLOT(slotHelp()), 0, -1, 0);
+-    m_helpButton->setPopup( helpMenu->menu() );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-KIGPDialog::~KIGPDialog()
+-{
+-}
+-
+-void KIGPDialog::slotHelp()
+-{
+-    KApplication::kApplication()->invokeHelp("imagesgallery",
+-                                             "kipi-plugins");
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setupSelection(void)
+-{
+-    page_setupSelection = addPage(i18n("Selection"), i18n("Album Selection"),
+-                                  BarIcon("folder_image", KIcon::SizeMedium));
+-
+-    QVBoxLayout *layout = new QVBoxLayout(page_setupSelection, 0, spacingHint() );
+-    m_imageCollectionSelector = new KIPI::ImageCollectionSelector(page_setupSelection, m_interface);
+-    layout->addWidget(m_imageCollectionSelector);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setupLookPage(void)
+-{
+-    page_setupLook = addPage( i18n("Look"), i18n("Page Look"),
+-                              BarIcon("html", KIcon::SizeMedium ) );
+-
+-    QVBoxLayout *vlay = new QVBoxLayout( page_setupLook, 0, spacingHint() );
+-
+-    //---------------------------------------------
+-
+-    QLabel *label, *labelTitle;
+-    labelTitle = new QLabel( i18n("Main &page title:"), page_setupLook);
+-    vlay->addWidget(labelTitle);
+-
+-    m_title = new QLineEdit(i18n("Album Image Galleries"), page_setupLook);
+-    vlay->addWidget( m_title );
+-    labelTitle->setBuddy(m_title);
+-    QWhatsThis::add( m_title, i18n("<p>Enter here the title of the main HTML page "
+-                                   "(multiple Album selection only).") );
+-
+-    //---------------------------------------------
+-
+-    m_imagesPerRow = new KIntNumInput(4, page_setupLook);
+-    m_imagesPerRow->setRange(1, 8, 1, true );
+-    m_imagesPerRow->setLabel( i18n("I&mages per row:") );
+-    QWhatsThis::add( m_imagesPerRow, i18n("<p>Enter here the number of images per row in the album page. "
+-                                          "A good value is '4'.") );
+-    vlay->addWidget( m_imagesPerRow );
+-
+-    QGridLayout *grid = new QGridLayout( 2, 2 );
+-    vlay->addLayout( grid );
+-
+-    //---------------------------------------------
+-
+-    m_imageName = new QCheckBox( i18n("Show image file &name"), page_setupLook);
+-    QWhatsThis::add( m_imageName, i18n("<p>If you enable this option, "
+-                                       "the image filenames will be added to the Album page.") );
+-    m_imageName->setChecked( true );
+-    grid->addWidget( m_imageName, 0, 0 );
+-
+-    //---------------------------------------------
+-
+-    m_imageSize = new QCheckBox( i18n("Show image file &size"), page_setupLook);
+-    QWhatsThis::add( m_imageSize, i18n("<p>If you enable this option, "
+-                                       "the image file sizes will be added to the Album page.") );
+-    m_imageSize->setChecked( true );
+-    grid->addWidget( m_imageSize, 0, 1 );
+-
+-    //---------------------------------------------
+-
+-    m_imageProperty = new QCheckBox( i18n("Show image &dimensions"), page_setupLook);
+-    QWhatsThis::add( m_imageProperty, i18n("<p>If you enable this option, "
+-                                           "the image dimensions will be added to the Album page.") );
+-    m_imageProperty->setChecked( true );
+-    grid->addWidget( m_imageProperty, 1, 0 );
+-
+-    //---------------------------------------------
+-
+-    m_PageCreationDate = new QCheckBox( i18n("Show page creation date"), page_setupLook);
+-    QWhatsThis::add( m_PageCreationDate, i18n("<p>If you enable this option, "
+-                                              "the creation date will be added to the Album page.") );
+-    m_PageCreationDate->setChecked( true );
+-    grid->addWidget( m_PageCreationDate, 1, 1 );
+-
+-    //---------------------------------------------
+-
+-    m_createPageForPhotos = new QCheckBox(  i18n("Create pages for each image"), page_setupLook);
+-    QWhatsThis::add( m_createPageForPhotos, i18n("<p>If you enable this option, "
+-                                                 "a HTML page will be added for each photo.") );
+-    m_createPageForPhotos->setChecked( true );
+-    grid->addWidget( m_createPageForPhotos, 2, 0 );
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay10  = new QHBoxLayout( );
+-    vlay->addLayout( hlay10 );
+-
+-    m_openInWebBrowser = new QCheckBox( i18n("Open image gallery in:"), page_setupLook);
+-    QWhatsThis::add( m_openInWebBrowser, i18n("<p>Select here the application to preview or "
+-                                              "edit the HTML pages.") );
+-    m_openInWebBrowser->setChecked( true );
+-
+-    m_webBrowserName = new QComboBox( false, page_setupLook );
+-    m_webBrowserName->insertItem( "Amaya" );
+-    m_webBrowserName->insertItem( "Firefox" );
+-    m_webBrowserName->insertItem( "Galeon" );
+-    m_webBrowserName->insertItem( "Konqueror" );
+-    m_webBrowserName->insertItem( "Mozilla" );
+-    m_webBrowserName->insertItem( "Netscape" );
+-    m_webBrowserName->insertItem( "Opera" );
+-    m_webBrowserName->insertItem( "Quanta" );
+-    m_webBrowserName->insertItem( "Screem" );
+-    m_webBrowserName->setCurrentText( "Konqueror" );
+-
+-    hlay10->addWidget( m_openInWebBrowser );
+-    hlay10->addStretch( 1 );
+-    hlay10->addWidget( m_webBrowserName );
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay11  = new QHBoxLayout( );
+-    vlay->addLayout( hlay11 );
+-
+-    m_fontName = new QComboBox( false, page_setupLook );
+-    QWhatsThis::add( m_fontName, i18n("<p>Select here the font name to use for the pages.") );
+-    QStringList standardFonts;
+-    KFontChooser::getFontList(standardFonts, 0);
+-    m_fontName->insertStringList( standardFonts );
+-    m_fontName->setCurrentText( KGlobalSettings::generalFont().family());
+-
+-    label = new QLabel( i18n("Fon&t name:"), page_setupLook );
+-    label->setBuddy( m_fontName );
+-    hlay11->addWidget( label );
+-    hlay11->addStretch( 1 );
+-    hlay11->addWidget( m_fontName );
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay12  = new QHBoxLayout( );
+-    vlay->addLayout( hlay12 );
+-
+-    m_fontSize = new QSpinBox( 6, 15, 1, page_setupLook );
+-    m_fontSize->setValue( 14 );
+-    QWhatsThis::add( m_fontSize, i18n("<p>Select here the font size to use for the pages.") );
+-
+-    label = new QLabel( i18n("Font si&ze:"), page_setupLook );
+-    label->setBuddy( m_fontSize );
+-    hlay12->addWidget( label );
+-    hlay12->addStretch( 1 );
+-    hlay12->addWidget( m_fontSize );
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay1  = new QHBoxLayout( spacingHint() );
+-    vlay->addLayout( hlay1 );
+-
+-    m_foregroundColor = new KColorButton(page_setupLook);
+-    m_foregroundColor->setColor(QColor("#d0ffd0"));
+-    QWhatsThis::add( m_foregroundColor, i18n("<p>Select here the foreground color to use for the pages.") );
+-
+-    label = new QLabel( i18n("&Foreground color:"), page_setupLook);
+-    label->setBuddy( m_foregroundColor );
+-    hlay1->addWidget( label );
+-    hlay1->addStretch( 1 );
+-    hlay1->addWidget(m_foregroundColor);
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay2 = new QHBoxLayout( spacingHint() );
+-    vlay->addLayout( hlay2 );
+-
+-    m_backgroundColor = new KColorButton(page_setupLook);
+-    m_backgroundColor->setColor(QColor("#333333"));
+-    QWhatsThis::add( m_backgroundColor, i18n("<p>Select here the background color to use for the pages.") );
+-
+-    label = new QLabel( i18n("&Background color:"), page_setupLook);
+-    hlay2->addWidget( label );
+-    label->setBuddy( m_backgroundColor );
+-    hlay2->addStretch( 1 );
+-    hlay2->addWidget(m_backgroundColor);
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay13  = new QHBoxLayout( );
+-    vlay->addLayout( hlay13 );
+-
+-    m_bordersImagesSize = new QSpinBox( 1, 20, 1, page_setupLook );
+-    m_bordersImagesSize->setValue( 1 );
+-    QWhatsThis::add( m_bordersImagesSize, i18n("<p>Select here the image borders' size in pixels.") );
+-
+-    label = new QLabel( i18n("Images borders s&ize:"), page_setupLook );
+-    label->setBuddy( m_bordersImagesSize );
+-    hlay13->addWidget( label );
+-    hlay13->addStretch( 1 );
+-    hlay13->addWidget( m_bordersImagesSize );
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay3 = new QHBoxLayout( spacingHint() );
+-    vlay->addLayout( hlay3 );
+-
+-    m_bordersImagesColor = new KColorButton(page_setupLook);
+-    m_bordersImagesColor->setColor(QColor("#d0ffd0"));
+-    QWhatsThis::add( m_bordersImagesColor, i18n("<p>Select here the color to use "
+-                                                "for the image borders.") );
+-
+-    label = new QLabel( i18n("Image bo&rder color:"), page_setupLook);
+-    hlay3->addWidget( label );
+-    label->setBuddy( m_bordersImagesColor );
+-    hlay3->addStretch( 1 );
+-    hlay3->addWidget(m_bordersImagesColor);
+-
+-    //---------------------------------------------
+-
+-    vlay->addStretch(1);
+-
+-    connect(m_openInWebBrowser, SIGNAL(toggled(bool)),
+-            m_webBrowserName, SLOT(setEnabled(bool)));
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setupAlbumPage(void)
+-{
+-    QString whatsThis;
+-    page_setupAlbum = addPage(i18n("Album"), i18n("Photo Album"),
+-                              BarIcon("image.png", KIcon::SizeMedium));
+-
+-    QVBoxLayout *dvlay = new QVBoxLayout( page_setupAlbum, 0, spacingHint() );
+-    QLabel *label;
+-
+-    //---------------------------------------------
+-
+-    label = new QLabel(i18n("&Save gallery to:"), page_setupAlbum);
+-    dvlay->addWidget( label );
+-
+-    m_imageNameReq = new KURLRequester( KGlobalSettings::documentPath(), page_setupAlbum);
+-    m_imageNameReq->setMode(KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly);
+-    label->setBuddy( m_imageNameReq );
+-    dvlay->addWidget( m_imageNameReq );
+-    QWhatsThis::add( m_imageNameReq, i18n("<p>The folder name where the galleries will be saved.") );
+-
+-    //---------------------------------------------
+-
+-    m_useNotOriginalImageSize = new QCheckBox(i18n("Resize target images"), page_setupAlbum);
+-    m_useNotOriginalImageSize->setChecked(true);
+-    dvlay->addWidget(m_useNotOriginalImageSize);
+-    QWhatsThis::add( m_useNotOriginalImageSize, i18n("<p>If you enable this option, "
+-                                                     "all target images can be resized.") );
+-
+-    m_imagesresize = new KIntNumInput(640, page_setupAlbum);
+-    m_imagesresize->setRange(200, 2000, 1, true );
+-    m_imagesresize->setLabel( i18n("Target images size:") );
+-    dvlay->addWidget( m_imagesresize );
+-    QWhatsThis::add( m_imagesresize, i18n("<p>The new size of the target images in pixels") );
+-
+-    //---------------------------------------------
+-
+-    m_useSpecificTargetimageCompression = new QCheckBox(i18n("Use a specific target image compression"),
+-                                                        page_setupAlbum);
+-    m_useSpecificTargetimageCompression->setChecked(true);
+-    dvlay->addWidget(m_useSpecificTargetimageCompression);
+-    QWhatsThis::add( m_useSpecificTargetimageCompression, i18n("<p>If you enable this option, "
+-                     "all target images can be compressed with a specific compression value.") );
+-
+-    m_Targetimagescompression = new KIntNumInput(75, page_setupAlbum);
+-    m_Targetimagescompression->setRange(1, 100, 1, true );
+-    m_Targetimagescompression->setLabel( i18n("Target images compression:") );
+-    dvlay->addWidget( m_Targetimagescompression );
+-    whatsThis = i18n("<p>The compression value of the target images :<p>");
+-    whatsThis = whatsThis + i18n("<b>1</b>: very high compression<p>"
+-                                 "<b>25</b>: high compression<p>"
+-                                 "<b>50</b>: medium compression<p>"
+-                                 "<b>75</b>: low compression (default value)<p>"
+-                                 "<b>100</b>: no compression");
+-
+-    QWhatsThis::add( m_Targetimagescompression, whatsThis);
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay12  = new QHBoxLayout( );
+-    dvlay->addLayout( hlay12 );
+-
+-    m_targetimagesFormat = new QComboBox(false, page_setupAlbum);
+-    m_targetimagesFormat->insertItem("JPEG");
+-    m_targetimagesFormat->insertItem("PNG");
+-    m_targetimagesFormat->setCurrentText ("JPEG");
+-    whatsThis = i18n("<p>Select here the image file format for the target images.<p>");
+-    whatsThis = whatsThis + i18n("<b>JPEG</b>: The Joint Photographic Experts Group's file "
+-                "format is a good Web file format but uses lossy data compression.<p>"
+-                "<b>PNG</b>: the Portable Network Graphics format is an extensible file format "
+-                "for the lossless, portable, well-compressed storage of raster images. PNG provides "
+-                "a patent-free replacement for GIF and can also replace many common uses of TIFF. "
+-                "PNG is designed to work well in online viewing applications, such as the World Wide Web, "
+-                "so it is fully streamable with a progressive display option. Also, PNG can store gamma "
+-                "and chromaticity data for improved color matching on heterogeneous platforms.");
+-    QWhatsThis::add( m_targetimagesFormat, whatsThis );
+-
+-    label = new QLabel( i18n("Target images file format:"), page_setupAlbum);
+-    hlay12->addWidget( label );
+-    label->setBuddy( m_targetimagesFormat );
+-    hlay12->addStretch( 1 );
+-    hlay12->addWidget(m_targetimagesFormat);
+-
+-    //---------------------------------------------
+-
+-    QHBoxLayout *hlay13 = new QHBoxLayout( spacingHint() );
+-    dvlay->addLayout( hlay13 );
+-    m_colorDepthSetTargetImages = new QCheckBox(i18n("&Set different color depth:"), page_setupAlbum);
+-    m_colorDepthSetTargetImages->setChecked(false);
+-    QWhatsThis::add( m_colorDepthSetTargetImages, i18n("<p>Select here the color depth used for "
+-                                                       "the target image rendering.") );
+-    hlay13->addWidget( m_colorDepthSetTargetImages );
+-
+-    m_colorDepthTargetImages = new QComboBox(false, page_setupAlbum);
+-    m_colorDepthTargetImages->insertItem("1");
+-    m_colorDepthTargetImages->insertItem("8");
+-    m_colorDepthTargetImages->insertItem("32");
+-    m_colorDepthTargetImages->setCurrentText("32");
+-    m_colorDepthTargetImages->setEnabled(false);
+-    hlay13->addWidget( m_colorDepthTargetImages );
+-
+-    //---------------------------------------------
+-
+-    m_useCommentFile = new QCheckBox(i18n("Use images album &comments"), page_setupAlbum);
+-    m_useCommentFile->setChecked(true);
+-    dvlay->addWidget(m_useCommentFile);
+-
+-    QWhatsThis::add( m_useCommentFile, i18n("<p>If you enable this option, "
+-                                            "the images Album comments will be used for generating "
+-                                            "subtitles for the images.") );
+-
+-    //---------------------------------------------
+-
+-    m_useCommentsAlbum = new QCheckBox(i18n("Show album commen&ts"), page_setupAlbum);
+-    m_useCommentsAlbum->setChecked(true);
+-    dvlay->addWidget(m_useCommentsAlbum);
+-    QWhatsThis::add( m_useCommentsAlbum, i18n("<p>If you enable this option, "
+-                                              "the Album comments will be shown in the gallery.") );
+-
+-    //---------------------------------------------
+-
+-    m_useCollectionAlbum = new QCheckBox(i18n("Show album &collection"), page_setupAlbum);
+-    m_useCollectionAlbum->setChecked(false);
+-    dvlay->addWidget(m_useCollectionAlbum);
+-    QWhatsThis::add( m_useCollectionAlbum, i18n("<p>If you enable this option, "
+-                                                "the Album collection will be shown in the gallery.") );
+-
+-    //---------------------------------------------
+-
+-    m_useDateAlbum = new QCheckBox(i18n("Show album creation &date"), page_setupAlbum);
+-    m_useDateAlbum->setChecked(false);
+-    dvlay->addWidget(m_useDateAlbum);
+-    QWhatsThis::add( m_useDateAlbum, i18n("<p>If you enable this option, "
+-                                          "the Album creation date will be shown in the gallery.") );
+-
+-    //---------------------------------------------
+-
+-    m_useNbImagesAlbum = new QCheckBox(i18n("Show &number of images in album"), page_setupAlbum);
+-    m_useNbImagesAlbum->setChecked(true);
+-    dvlay->addWidget(m_useNbImagesAlbum);
+-    QWhatsThis::add( m_useNbImagesAlbum, i18n("<p>If you enable this option, "
+-                                              "the number of images in Album will be shown in the gallery.") );
+-    dvlay->addStretch(1);
+-
+-    //---------------------------------------------
+-
+-    connect( m_imageNameReq, SIGNAL(textChanged(const QString&)),
+-             this, SLOT(GalleryUrlChanged(const QString&)));
+-
+-    connect(m_useNotOriginalImageSize, SIGNAL(toggled(bool)),
+-            m_imagesresize, SLOT(setEnabled(bool)));
+-
+-    connect(m_useSpecificTargetimageCompression, SIGNAL(toggled(bool)),
+-            m_Targetimagescompression, SLOT(setEnabled(bool)));
+-
+-    connect(m_colorDepthSetTargetImages, SIGNAL( toggled(bool) ),
+-            m_colorDepthTargetImages, SLOT( setEnabled(bool) ) );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setupThumbnailPage(void)
+-{
+-    QString whatsThis;
+-    page_setupThumbnail = addPage(i18n("Thumbnails"), i18n("Image Thumbnails"),
+-                                  BarIcon("thumbnail", KIcon::SizeMedium));
+-
+-    QLabel *label;
+-    QVBoxLayout *vlay = new QVBoxLayout( page_setupThumbnail, 0, spacingHint() );
+-    QHBoxLayout *hlay3 = new QHBoxLayout( spacingHint() );
+-
+-    //---------------------------------------------
+-
+-    m_thumbnailsSize = new KIntNumInput(140, page_setupThumbnail);
+-    m_thumbnailsSize->setRange(10, 1000, 1, true );
+-    m_thumbnailsSize->setLabel( i18n("Thumbnails size:") );
+-    vlay->addWidget( m_thumbnailsSize );
+-    QWhatsThis::add( m_thumbnailsSize, i18n("<p>The new size of the thumbnails in pixels") );
+-
+-    //---------------------------------------------
+-
+-    m_useSpecificThumbsCompression = new QCheckBox(i18n("Use a specific thumbnail compression"),
+-                                                   page_setupThumbnail);
+-    m_useSpecificThumbsCompression->setChecked(true);
+-    vlay->addWidget(m_useSpecificThumbsCompression);
+-    QWhatsThis::add( m_useSpecificThumbsCompression, i18n("<p>If you enable this option, "
+-                     "all thumbnails can be compressed with a specific compression value.") );
+-
+-    m_thumbscompression = new KIntNumInput(75, page_setupThumbnail);
+-    m_thumbscompression->setRange(1, 100, 1, true );
+-    m_thumbscompression->setLabel( i18n("Thumbnails compression:") );
+-    vlay->addWidget( m_thumbscompression );
+-    whatsThis = i18n("<p>The compression value of thumbnails :<p>");
+-    whatsThis = whatsThis + i18n("<b>1</b>: very high compression<p>"
+-                                 "<b>25</b>: high compression<p>"
+-                                 "<b>50</b>: medium compression<p>"
+-                                 "<b>75</b>: low compression (default value)<p>"
+-                                 "<b>100</b>: no compression");
+-
+-    QWhatsThis::add( m_thumbscompression, whatsThis);
+-
+-    //---------------------------------------------
+-
+-    vlay->addLayout( hlay3 );
+-    m_imageFormat = new QComboBox(false, page_setupThumbnail);
+-    m_imageFormat->insertItem("JPEG");
+-    m_imageFormat->insertItem("PNG");
+-    m_imageFormat->setCurrentText ("JPEG");
+-    whatsThis = i18n("<p>Select here the image file format for thumbnails.<p>");
+-    whatsThis = whatsThis + i18n("<b>JPEG</b>: The Joint Photographic Experts Group's file format "
+-                "is a good Web file format but uses lossy data compression.<p>"
+-                "<b>PNG</b>: the Portable Network Graphics format is an extensible file format for "
+-                "the lossless, portable, well-compressed storage of raster images. PNG provides a "
+-                "patent-free replacement for GIF and can also replace many common uses of TIFF. "
+-                "PNG is designed to work well in online viewing applications, such as the World Wide Web, "
+-                "so it is fully streamable with a progressive display option. Also, PNG can store gamma "
+-                "and chromaticity data for improved color matching on heterogeneous platforms.");
+-    QWhatsThis::add( m_imageFormat, whatsThis );
+-
+-    label = new QLabel( i18n("Thumbnails file format:"), page_setupThumbnail);
+-    hlay3->addWidget( label );
+-    label->setBuddy( m_imageFormat );
+-    hlay3->addStretch( 1 );
+-    hlay3->addWidget(m_imageFormat);
+-
+-    //---------------------------------------------
+-
+-    QGridLayout *grid = new QGridLayout( 2, 2 );
+-    vlay->addLayout( grid );
+-    QHBoxLayout *hlay4 = new QHBoxLayout( spacingHint() );
+-    vlay->addLayout( hlay4 );
+-    m_colorDepthSetThumbnails = new QCheckBox(i18n("&Set different color depth:"), page_setupThumbnail);
+-    m_colorDepthSetThumbnails->setChecked(false);
+-    QWhatsThis::add( m_colorDepthSetThumbnails, i18n("<p>Select here the color depth used for "
+-                                                     "the thumbnail image rendering.") );
+-    hlay4->addWidget( m_colorDepthSetThumbnails );
+-
+-    m_colorDepthThumbnails = new QComboBox(false, page_setupThumbnail);
+-    m_colorDepthThumbnails->insertItem("1");
+-    m_colorDepthThumbnails->insertItem("8");
+-    m_colorDepthThumbnails->insertItem("32");
+-    m_colorDepthThumbnails->setCurrentText("32");
+-    m_colorDepthThumbnails->setEnabled(false);
+-    hlay4->addWidget( m_colorDepthThumbnails );
+-
+-    vlay->addStretch(1);
+-
+-    //---------------------------------------------
+-
+-    connect(m_useSpecificThumbsCompression, SIGNAL(toggled(bool)),
+-            m_thumbscompression, SLOT(setEnabled(bool)));
+-
+-    connect(m_colorDepthSetThumbnails, SIGNAL( toggled(bool) ),
+-            m_colorDepthThumbnails, SLOT( setEnabled(bool) ) );
+-
+-    //---------------------------------------------
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::GalleryUrlChanged(const QString &url )
+-{
+-    enableButtonOK( !url.isEmpty());
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::slotOk()
+-{
+-    m_selectedAlbums = m_imageCollectionSelector->selectedImageCollections();
+-
+-    if (m_selectedAlbums.size() == 0)
+-       {
+-       KMessageBox::sorry(this, i18n("You must select at least one album."));
+-       return;
+-       }
+-
+-    QDir dirGallery(getImageName());
+-
+-    if (dirGallery.exists() == false)
+-       {
+-       KMessageBox::sorry(this, i18n("Image gallery folder does not exist; please check it..."));
+-       return;
+-       }
+-
+-    accept();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::printImageName()  const
+-{
+-    return m_imageName->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setPrintImageName(bool Value)
+-{
+-    m_imageName->setChecked(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::printImageSize() const
+-{
+-    return m_imageSize->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setPrintImageSize(bool Value)
+-{
+-    m_imageSize->setChecked(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::printImageProperty() const
+-{
+-    return m_imageProperty->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setPrintImageProperty(bool Value)
+-{
+-    m_imageProperty->setChecked(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::OpenGalleryInWebBrowser() const
+-{
+-    return m_openInWebBrowser->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setOpenGalleryInWebBrowser(bool Value)
+-{
+-    m_openInWebBrowser->setChecked(Value);
+-}
+-
+-
+-////////////////////////////////////////////////////////////////////////////////////////////
+-
+-
+-bool KIGPDialog::getCreatePageForPhotos() const
+-{
+-    return m_createPageForPhotos->isChecked();
+-}
+-
+-
+-void KIGPDialog::setCreatePageForPhotos(bool Value)
+-{
+-    m_createPageForPhotos->setChecked(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useCommentFile() const
+-{
+-    return m_useCommentFile->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseCommentFile(bool Value)
+-{
+-    m_useCommentFile->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useCommentsAlbum() const
+-{
+-    return m_useCommentsAlbum->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseCommentsAlbum(bool Value)
+-{
+-    m_useCommentsAlbum->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useCollectionAlbum() const
+-{
+-    return m_useCollectionAlbum->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseCollectionAlbum(bool Value)
+-{
+-    m_useCollectionAlbum->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useDateAlbum() const
+-{
+-    return m_useDateAlbum->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseDateAlbum(bool Value)
+-{
+-    m_useDateAlbum->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useNbImagesAlbum() const
+-{
+-    return m_useNbImagesAlbum->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseNbImagesAlbum(bool Value)
+-{
+-    m_useNbImagesAlbum->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getImagesPerRow() const
+-{
+-    return m_imagesPerRow->value();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setImagesPerRow(int Value)
+-{
+-    m_imagesPerRow->setValue(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getThumbnailsSize() const
+-{
+-    return m_thumbnailsSize->value();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setThumbnailsSize(int Value)
+-{
+-    m_thumbnailsSize->setValue( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::colorDepthSetThumbnails() const
+-{
+-    return m_colorDepthSetThumbnails->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setColorDepthSetThumbnails(bool Value)
+-{
+-    m_colorDepthSetThumbnails->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setColorDepthThumbnails(QString Value)
+-{
+-    m_colorDepthThumbnails->setCurrentText( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getColorDepthThumbnails() const
+-{
+-    return m_colorDepthThumbnails->currentText().toInt();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setColorDepthTargetImages(QString Value)
+-{
+-    m_colorDepthTargetImages->setCurrentText( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getColorDepthTargetImages() const
+-{
+-    return m_colorDepthTargetImages->currentText().toInt();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::colorDepthSetTargetImages() const
+-{
+-    return m_colorDepthSetTargetImages->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setColorDepthSetTargetImages(bool Value)
+-{
+-    m_colorDepthSetTargetImages->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getImageName() const
+-{
+-    return m_imageNameReq->url();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setImageName(QString Value)
+-{
+-    m_imageNameReq->setURL( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getFontName() const
+-{
+-    return m_fontName->currentText();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setFontName(QString Value)
+-{
+-    m_fontName->setCurrentText (Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getFontSize() const
+-{
+-    return m_fontSize->text();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setFontSize(int Value)
+-{
+-    m_fontSize->setValue( Value );
+-}
+-
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getBordersImagesSize() const
+-{
+-    return m_bordersImagesSize->text();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setBordersImagesSize(int Value)
+-{
+-    m_bordersImagesSize->setValue( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QColor KIGPDialog::getBackgroundColor() const
+-{
+-    return m_backgroundColor->color();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setBackgroundColor(QColor Value)
+-{
+-    m_backgroundColor->setColor( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QColor KIGPDialog::getForegroundColor() const
+-{
+-    return m_foregroundColor->color();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setForegroundColor(QColor Value)
+-{
+-    m_foregroundColor->setColor( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QColor KIGPDialog::getBordersImagesColor() const
+-{
+-    return m_bordersImagesColor->color();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setBordersImagesColor(QColor Value)
+-{
+-    m_bordersImagesColor->setColor( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getImageFormat() const
+-{
+-    return m_imageFormat->currentText();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setImageFormat(QString Value)
+-{
+-    return m_imageFormat->setCurrentText( Value );
+-}
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getImagesResize() const
+-{
+-    return m_imagesresize->value();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setImagesResizeFormat(int Value)
+-{
+-    m_imagesresize->setValue( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getTargetImagesFormat() const
+-{
+-    return m_targetimagesFormat->currentText();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setTargetImagesFormat(QString Value)
+-{
+-    return m_targetimagesFormat->setCurrentText( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getMainTitle() const
+-{
+-    return m_title->text();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setMainTitle(QString Value)
+-{
+-    return m_title->setText( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useNotOriginalImageSize() const
+-{
+-    return m_useNotOriginalImageSize->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setNotUseOriginalImageSize(bool Value)
+-{
+-    m_useNotOriginalImageSize->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useSpecificTargetimageCompression() const
+-{
+-    return m_useSpecificTargetimageCompression->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseSpecificTargetimageCompression(bool Value)
+-{
+-    m_useSpecificTargetimageCompression->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getTargetImagesCompression() const
+-{
+-    return m_Targetimagescompression->value();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setTargetImagesCompression(int Value)
+-{
+-    m_Targetimagescompression->setValue( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool KIGPDialog::useSpecificThumbsCompression() const
+-{
+-    return m_useSpecificThumbsCompression->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setUseSpecificThumbsCompression(bool Value)
+-{
+-    m_useSpecificThumbsCompression->setChecked( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-int KIGPDialog::getThumbsCompression() const
+-{
+-    return m_thumbscompression->value();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setThumbsCompression(int Value)
+-{
+-    m_thumbscompression->setValue( Value );
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-bool  KIGPDialog::printPageCreationDate() const
+-{
+-    return m_PageCreationDate->isChecked();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void  KIGPDialog::setPrintPageCreationDate(bool Value)
+-{
+-    m_PageCreationDate->setChecked(Value);
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-const QString KIGPDialog::getWebBrowserName() const
+-{
+-    return m_webBrowserName->currentText();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void KIGPDialog::setWebBrowserName(QString Value)
+-{
+-    return m_webBrowserName->setCurrentText( Value );
+-}
+-
+-}  // NameSpace KIPIImagesGalleryPlugin
+-
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imgallerydialog.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imgallerydialog.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/imgallerydialog.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/imgallerydialog.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,258 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    IMGGALLERYDIALOG.H
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//    Copyright (C) 2003-2004 by Gregory Kokanosky <gregory dot kokanosky at free.fr>
+-//    for images navigation mode.
+-//
+-//    Adapted and improved for DigikamPlugins from the konqueror plugin
+-//    'kdeaddons/konq-plugins/kimgalleryplugin/' by Gilles Caulier.
+-//
+-//    Copyright 2001, 2003 by Lukas Tinkl <lukas at kde.org> and
+-//    Andreas Schlapbach <schlpbch at iam.unibe.ch> for orginal source
+-//    of 'kimgalleryplugin' from KDE CVS
+-//
+-//    Copyright 2003-2004 by Gilles Caulier <caulier dot gilles at free.fr> for
+-//    DigikamPlugins port.
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-#ifndef IMGALLERYDIALOG_H
+-#define IMGALLERYDIALOG_H
+-
+-// Include files for Qt
+-
+-#include <qguardedptr.h>
+-
+-// Include files for KDE
+-
+-#include <kdialogbase.h>
+-
+-// Include files for KIPI
+-
+-#include <libkipi/interface.h>
+-
+-class QProgressDialog;
+-class QCheckBox;
+-class QString;
+-class QLineEdit;
+-class QSpinBox;
+-class QPushButton;
+-
+-class KFileItem;
+-class KSqueezedTextLabel;
+-class KURL;
+-class KIntNumInput;
+-class KColorButton;
+-class KURLRequester;
+-class KListView;
+-
+-namespace KIPI
+-{
+-  class ImageCollectionSelector;
+-}
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-
+-class KIGPDialog : public KDialogBase
+-{
+- Q_OBJECT
+-
+- public:
+- 
+-  KIGPDialog( KIPI::Interface* interface, QWidget *parent=0);
+-  ~KIGPDialog();
+-
+-  const QString getImageName() const;
+-  void  setImageName(QString Value);
+-
+-  bool  printImageName() const;
+-  void  setPrintImageName(bool Value);
+-
+-  bool  printImageSize() const;
+-  void  setPrintImageSize(bool Value);
+-
+-  bool  printImageProperty() const;
+-  void  setPrintImageProperty(bool Value);
+-
+-  bool  OpenGalleryInWebBrowser() const;
+-  void  setOpenGalleryInWebBrowser(bool Value);
+-
+-  const QString getWebBrowserName() const;
+-  void  setWebBrowserName(QString Value);
+-
+-  bool  getCreatePageForPhotos() const;
+-  void  setCreatePageForPhotos(bool Value);
+-
+-  bool  useCommentFile() const;
+-  void  setUseCommentFile(bool Value);
+-
+-  bool  useCommentsAlbum() const;
+-  void  setUseCommentsAlbum(bool Value);
+-
+-  bool  useCollectionAlbum() const;
+-  void  setUseCollectionAlbum(bool Value);
+-
+-  bool  useDateAlbum() const;
+-  void  setUseDateAlbum(bool Value);
+-
+-  bool  useNbImagesAlbum() const;
+-  void  setUseNbImagesAlbum(bool Value);
+-
+-  int   getImagesPerRow() const;
+-  void  setImagesPerRow(int Value);
+-
+-  int   getThumbnailsSize() const;
+-  void  setThumbnailsSize(int Value);
+-
+-  bool  colorDepthSetThumbnails() const;
+-  void  setColorDepthSetThumbnails(bool Value);
+-
+-  int   getColorDepthThumbnails() const;
+-  void  setColorDepthThumbnails(QString Value);
+-
+-  bool  colorDepthSetTargetImages() const;
+-  void  setColorDepthSetTargetImages(bool Value);
+-
+-  int   getColorDepthTargetImages() const;
+-  void  setColorDepthTargetImages(QString Value);
+-
+-  const QString getFontName() const;
+-  void  setFontName(QString Value);
+-
+-  const QString getFontSize() const;
+-  void  setFontSize(int Value);
+-
+-  const QString getBordersImagesSize() const;
+-  void  setBordersImagesSize(int Value);
+-
+-  const QColor getBackgroundColor() const;
+-  void  setBackgroundColor(QColor Value);
+-
+-  const QColor getForegroundColor() const;
+-  void  setForegroundColor(QColor Value);
+-
+-  const QColor getBordersImagesColor() const;
+-  void  setBordersImagesColor(QColor Value);
+-
+-  const QString getImageFormat() const;
+-  void  setImageFormat(QString Value);
+-
+-  const QString getMainTitle() const;
+-  void  setMainTitle(QString Value);
+-
+-  int   getImagesResize() const;
+-  void  setImagesResizeFormat(int Value);
+-
+-  const QString getTargetImagesFormat() const;
+-  void  setTargetImagesFormat(QString Value);
+-
+-  bool  useNotOriginalImageSize() const;
+-  void  setNotUseOriginalImageSize(bool Value);
+-
+-  bool  useSpecificTargetimageCompression() const;
+-  void  setUseSpecificTargetimageCompression(bool Value);
+-
+-  int   getTargetImagesCompression() const;
+-  void  setTargetImagesCompression(int Value);
+-
+-  bool  useSpecificThumbsCompression() const;
+-  void  setUseSpecificThumbsCompression(bool Value);
+-
+-  int   getThumbsCompression() const;
+-  void  setThumbsCompression(int Value);
+-
+-  bool  printPageCreationDate() const;
+-  void  setPrintPageCreationDate(bool Value);
+-
+-  QValueList<KIPI::ImageCollection> getSelectedAlbums() const { return m_selectedAlbums; }
+-
+- protected slots:
+- 
+-  void GalleryUrlChanged(const QString & );
+-  void slotOk();
+-  void slotHelp();
+-
+- private:
+- 
+-  QPushButton        *m_helpButton;
+- 
+-  KColorButton       *m_foregroundColor;
+-  KColorButton       *m_backgroundColor;
+-  KColorButton       *m_bordersImagesColor;
+-
+-  QLineEdit          *m_title;
+-
+-  KIntNumInput       *m_imagesPerRow;
+-  KIntNumInput       *m_thumbnailsSize;
+-  KIntNumInput       *m_imagesresize;
+-  KIntNumInput       *m_Targetimagescompression;
+-  KIntNumInput       *m_thumbscompression;
+-
+-  QSpinBox           *m_fontSize;
+-  QSpinBox           *m_bordersImagesSize;
+-
+-  QCheckBox          *m_imageName;
+-  QCheckBox          *m_imageSize;
+-  QCheckBox          *m_imageProperty;
+-  QCheckBox          *m_useCommentFile;
+-  QCheckBox          *m_useCommentsAlbum;
+-  QCheckBox          *m_useCollectionAlbum;
+-  QCheckBox          *m_useDateAlbum;
+-  QCheckBox          *m_useNbImagesAlbum;
+-  QCheckBox          *m_colorDepthSetThumbnails;
+-  QCheckBox          *m_colorDepthSetTargetImages;
+-  QCheckBox          *m_useNotOriginalImageSize;
+-  QCheckBox          *m_PageCreationDate;
+-  QCheckBox          *m_openInWebBrowser;
+-  QCheckBox          *m_createPageForPhotos;
+-  QCheckBox          *m_useSpecificTargetimageCompression;
+-  QCheckBox          *m_useSpecificThumbsCompression;
+-
+-  QComboBox          *m_fontName;
+-  QComboBox          *m_imageFormat;
+-  QComboBox          *m_colorDepthThumbnails;
+-  QComboBox          *m_colorDepthTargetImages;
+-  QComboBox          *m_targetimagesFormat;
+-  QComboBox          *m_webBrowserName;
+-
+-  KURLRequester      *m_imageNameReq;
+-
+-  QFrame             *page_setupSelection;
+-  QFrame             *page_setupLook;
+-  QFrame             *page_setupAlbum;
+-  QFrame             *page_setupThumbnail;
+-
+-  KIPI::Interface    *m_interface;
+-  
+-  QValueList<KIPI::ImageCollection>  m_selectedAlbums;
+-  KIPI::ImageCollectionSelector     *m_imageCollectionSelector;
+-  
+- private:
+- 
+-  void setupSelection(void);
+-  void setupLookPage(void);
+-  void setupAlbumPage(void);
+-  void setupThumbnailPage(void);
+-};
+-
+-}  // NameSpace KIPIImagesGalleryPlugin
+-
+-#endif /* IMGALLERYDIALOG_H */
+-
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/jpegsection.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/jpegsection.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/jpegsection.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/jpegsection.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,50 +0,0 @@
+-/* ============================================================
+- * File  : jpegsection.h
+- * Author: Renchi Raju <renchi at pooh.tam.uiuc.edu>
+- * Date  : 2003-02-23
+- * Description : 
+- * 
+- * Copyright 2004 by Renchi Raju
+- *
+- * This program is free software; you can redistribute it
+- * and/or modify it under the terms of the GNU General
+- * Public License as published by the Free Software Foundation;
+- * either version 2, or (at your option)
+- * any later version.
+- * 
+- * This program is distributed in the hope that it will be useful,
+- * but WITHOUT ANY WARRANTY; without even the implied warranty of
+- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+- * GNU General Public License for more details.
+- * 
+- * ============================================================ */
+- 
+-#ifndef JPEGSECTION_H
+-#define JPEGSECTION_H
+-
+-class JpegSection {
+-
+-    friend class ExifRestorer;
+-
+-public:
+-
+-    JpegSection() {
+-        data = 0;
+-        size = 0;
+-    }
+-
+-    ~JpegSection() {
+-        if (data)
+-            delete [] data;
+-    }
+-
+-private:
+-
+-    unsigned char* data;
+-    unsigned int   size;
+-    unsigned char  type;
+-
+-};
+-
+-
+-#endif  // JPEGSECTION_H
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/kipiplugin_imagesgallery.desktop kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/kipiplugin_imagesgallery.desktop
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/kipiplugin_imagesgallery.desktop	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/kipiplugin_imagesgallery.desktop	1970-01-01 01:00:00.000000000 +0100
+@@ -1,52 +0,0 @@
+-[Desktop Entry]
+-Encoding=UTF-8
+-Name=ImagesGallery
+-Name[br]=Garidell ar skeudennoù
+-Name[cs]=Galerie obrázků
+-Name[da]=Billedgalleri
+-Name[de]=Bildergalerie
+-Name[el]=ΣυλλογήΕικόνων
+-Name[es]=Galería de imágenes
+-Name[et]=Pildigalerii
+-Name[gl]=Galeria de Imaxes
+-Name[it]=GalleriaDelleImmagini
+-Name[nl]=Afbeeldingengalerij
+-Name[pa]=ਚਿੱਤਰ ਗੈਲਰੀ
+-Name[pl]=Galeria zdjęć
+-Name[pt]=Galeria de Imagens
+-Name[pt_BR]=Galeria de Imagens
+-Name[sr]=Галерија слика
+-Name[sr at Latn]=Galerija slika
+-Name[sv]=Bildgalleri
+-Name[tg]=НамоишгариТасвирҳо
+-Name[tr]=ResimGalerisi
+-Name[xx]=xxImagesGalleryxx
+-Name[zh_CN]=图库
+-Comment=KIPI HTML Gallery Export Plugin
+-Comment[cs]=KIPI modul pro export galerie obrázků
+-Comment[da]=KIPI-plugin: Eksport af HTML-galleri
+-Comment[de]=Ein KIPI-Modul zum Exportieren einer Galerie
+-Comment[el]=Πρόσθετο του KIPI για εξαγωγή HTML συλλογής
+-Comment[es]=Extensión de KIPI para exportar galerías en HTML
+-Comment[et]=KIPI HTML-galerii ekspordiplugin
+-Comment[fr]=Module externe KIPI pour créer une galerie web
+-Comment[gl]=Plugin de KIPI para Exportar a unha Galeria HTML
+-Comment[it]=Plugin di esportazione HTML di gallerie di KIPI
+-Comment[ja]=Kipi HTMLギャラリーエクスポートプラグイン
+-Comment[nl]=KIPI-plugin voor het exporteren naar HTML-afbeeldingsgalerijen
+-Comment[pa]=KIPI HTML ਗੈਲਰੀ ਨਿਰਯਾਤ ਪਲੱਗਇਨ
+-Comment[pl]=Wtyczka KIPI - Eksport do galerii HTML
+-Comment[pt]='Plugin' do KIPI de Exportação para Galeria em HTML
+-Comment[pt_BR]='Plugin' do KIPI de Exportação para Galeria em HTML
+-Comment[sr]=KIPI прикључак за извоз у HTML галерију
+-Comment[sr at Latn]=KIPI priključak za izvoz u HTML galeriju
+-Comment[sv]=KIPI-insticksprogram: Export av HTML-galleri
+-Comment[tg]=Модули воридкунандаи намоишгари KIPI HTML
+-Comment[tr]=KIPI HTML Galeri Aktarma Eklentisi
+-Comment[xx]=xxKIPI HTML Gallery Export Pluginxx
+-Comment[zh_CN]=KIPI HTML 图库导出插件
+-Icon=
+-ServiceTypes=KIPI/Plugin
+-Type=Service
+-X-KDE-Library=kipiplugin_imagesgallery
+-author=Gilles Caulier, caulier dot gilles at free.fr
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/Makefile.am kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/Makefile.am
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/Makefile.am	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/Makefile.am	1970-01-01 01:00:00.000000000 +0100
+@@ -1,23 +0,0 @@
+-INCLUDES    = $(LIBKIPI_CFLAGS) $(all_includes)
+-METASOURCES = AUTO
+-
+-# Install this plugin in the KDE modules directory
+-kde_module_LTLIBRARIES = kipiplugin_imagesgallery.la
+-kipiplugin_imagesgallery_la_DEPENDENCIES = $(LIBKIPI_LIBS_DEP)
+-# Srcs for the plugin
+-kipiplugin_imagesgallery_la_SOURCES = plugin_imagesgallery.cpp imgallerydialog.cpp \
+-                                      imagesgallery.cpp exifrestorer.cpp 
+-
+-# Libs needed by the plugin
+-kipiplugin_imagesgallery_la_LIBADD = $(LIBKIPI_LIBS) $(LIB_KIO) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
+-
+-# LD flags for the plugin
+-kipiplugin_imagesgallery_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+-
+-# Install the desktop file needed to detect the plugin
+-kde_services_DATA = kipiplugin_imagesgallery.desktop
+-
+-# i18n translation messages
+-messages: rc.cpp
+-	$(XGETTEXT) *.cpp *.h -o $(podir)/kipiplugin_imagesgallery.pot
+-
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/Makefile.in kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/Makefile.in
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/Makefile.in	2006-07-10 18:27:15.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+@@ -1,874 +0,0 @@
+-# Makefile.in generated by automake 1.9.6 from Makefile.am.
+-# KDE tags expanded automatically by am_edit - $Revision: 483858 $ 
+-# @configure_input@
+-
+-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005  Free Software Foundation, Inc.
+-# This Makefile.in is free software; the Free Software Foundation
+-# gives unlimited permission to copy and/or distribute it,
+-# with or without modifications, as long as this notice is preserved.
+-
+-# This program is distributed in the hope that it will be useful,
+-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+-# PARTICULAR PURPOSE.
+-
+- at SET_MAKE@
+-
+-
+-srcdir = @srcdir@
+-top_srcdir = @top_srcdir@
+-VPATH = @srcdir@
+-pkgdatadir = $(datadir)/@PACKAGE@
+-pkglibdir = $(libdir)/@PACKAGE@
+-pkgincludedir = $(includedir)/@PACKAGE@
+-top_builddir = ../..
+-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+-INSTALL = @INSTALL@
+-install_sh_DATA = $(install_sh) -c -m 644
+-install_sh_PROGRAM = $(install_sh) -c
+-install_sh_SCRIPT = $(install_sh) -c
+-INSTALL_HEADER = $(INSTALL_DATA)
+-transform = $(program_transform_name)
+-NORMAL_INSTALL = :
+-PRE_INSTALL = :
+-POST_INSTALL = :
+-NORMAL_UNINSTALL = :
+-PRE_UNINSTALL = :
+-POST_UNINSTALL = :
+-build_triplet = @build@
+-host_triplet = @host@
+-target_triplet = @target@
+-subdir = kipi-plugins/imagesgallery
+-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO
+-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+-	$(top_srcdir)/configure.in
+-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+-	$(ACLOCAL_M4)
+-mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
+-CONFIG_HEADER = $(top_builddir)/config.h
+-CONFIG_CLEAN_FILES =
+-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+-am__vpath_adj = case $$p in \
+-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+-    *) f=$$p;; \
+-  esac;
+-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+-am__installdirs = "$(DESTDIR)$(kde_moduledir)" \
+-	"$(DESTDIR)$(kde_servicesdir)"
+-kde_moduleLTLIBRARIES_INSTALL = $(INSTALL)
+-LTLIBRARIES = $(kde_module_LTLIBRARIES)
+-am__DEPENDENCIES_1 =
+-am_kipiplugin_imagesgallery_la_OBJECTS = plugin_imagesgallery.lo \
+-	imgallerydialog.lo imagesgallery.lo exifrestorer.lo
+-#>- kipiplugin_imagesgallery_la_OBJECTS =  \
+-#>- 	$(am_kipiplugin_imagesgallery_la_OBJECTS)
+-#>+ 5
+-kipiplugin_imagesgallery_la_final_OBJECTS = kipiplugin_imagesgallery_la.all_cpp.lo 
+-kipiplugin_imagesgallery_la_nofinal_OBJECTS = plugin_imagesgallery.lo \
+-	imgallerydialog.lo imagesgallery.lo exifrestorer.lo
+- at KDE_USE_FINAL_FALSE@kipiplugin_imagesgallery_la_OBJECTS = $(kipiplugin_imagesgallery_la_nofinal_OBJECTS)
+- at KDE_USE_FINAL_TRUE@kipiplugin_imagesgallery_la_OBJECTS = $(kipiplugin_imagesgallery_la_final_OBJECTS)
+-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+-depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
+-am__depfiles_maybe = depfiles
+-#>- CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+-#>- 	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+-#>+ 2
+-CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
+-#>- LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
+-#>- 	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+-#>- 	$(AM_CXXFLAGS) $(CXXFLAGS)
+-#>+ 3
+-LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
+-	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+-	$(AM_CXXFLAGS) $(CXXFLAGS) $(KDE_CXXFLAGS)
+-CXXLD = $(CXX)
+-#>- CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+-#>- 	$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-#>+ 2
+-CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+-	$(CXXFLAGS) $(KDE_CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(kipiplugin_imagesgallery_la_SOURCES)
+-DIST_SOURCES = $(kipiplugin_imagesgallery_la_SOURCES)
+-kde_servicesDATA_INSTALL = $(INSTALL_DATA)
+-DATA = $(kde_services_DATA)
+-ETAGS = etags
+-CTAGS = ctags
+-#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+-#>+ 1
+-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
+-ACLOCAL = @ACLOCAL@
+-AMDEP_FALSE = @AMDEP_FALSE@
+-AMDEP_TRUE = @AMDEP_TRUE@
+-AMTAR = @AMTAR@
+-AR = @AR@
+-ARTSCCONFIG = @ARTSCCONFIG@
+-AUTOCONF = @AUTOCONF@
+-AUTODIRS = @AUTODIRS@
+-AUTOHEADER = @AUTOHEADER@
+-AUTOMAKE = @AUTOMAKE@
+-AWK = @AWK@
+-CC = @CC@
+-CCDEPMODE = @CCDEPMODE@
+-CFLAGS = @CFLAGS@
+-CONF_FILES = @CONF_FILES@
+-CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
+-CXX = @CXX@
+-CXXCPP = @CXXCPP@
+-CXXDEPMODE = @CXXDEPMODE@
+-CXXFLAGS = @CXXFLAGS@
+-CYGPATH_W = @CYGPATH_W@
+-DCOPIDL = @DCOPIDL@
+-DCOPIDL2CPP = @DCOPIDL2CPP@
+-DCOPIDLNG = @DCOPIDLNG@
+-DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
+-DEFS = @DEFS@
+-DEPDIR = @DEPDIR@
+-DOXYGEN = @DOXYGEN@
+-DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
+-DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
+-ECHO = @ECHO@
+-ECHO_C = @ECHO_C@
+-ECHO_N = @ECHO_N@
+-ECHO_T = @ECHO_T@
+-EGREP = @EGREP@
+-ENABLE_PERMISSIVE_FLAG = @ENABLE_PERMISSIVE_FLAG@
+-EXEEXT = @EXEEXT@
+-F77 = @F77@
+-FFLAGS = @FFLAGS@
+-FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
+-GL_LIBS = @GL_LIBS@
+-GMSGFMT = @GMSGFMT@
+-GPHOTO_CFLAGS = @GPHOTO_CFLAGS@
+-GPHOTO_CONFIG = @GPHOTO_CONFIG@
+-GPHOTO_PORT_CONFIG = @GPHOTO_PORT_CONFIG@
+-HAVE_GCC_VISIBILITY = @HAVE_GCC_VISIBILITY@
+-IMLIB2_CFLAGS = @IMLIB2_CFLAGS@
+-INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-INSTALL_SCRIPT = @INSTALL_SCRIPT@
+-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+-KCFG_DEPENDENCIES = @KCFG_DEPENDENCIES@
+-KCONFIG_COMPILER = @KCONFIG_COMPILER@
+-KDECONFIG = @KDECONFIG@
+-KDE_CHECK_PLUGIN = @KDE_CHECK_PLUGIN@
+-KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
+-KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
+-KDE_HAVE_DOT = @KDE_HAVE_DOT@
+-KDE_INCLUDES = @KDE_INCLUDES@
+-KDE_LDFLAGS = @KDE_LDFLAGS@
+-KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
+-KDE_MT_LIBS = @KDE_MT_LIBS@
+-KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
+-KDE_PLUGIN = @KDE_PLUGIN@
+-KDE_RPATH = @KDE_RPATH@
+-KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
+-KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
+-KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
+-KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
+-KDE_USE_FPIE = @KDE_USE_FPIE@
+-KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
+-KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
+-KDE_USE_PIE = @KDE_USE_PIE@
+-KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
+-LDFLAGS = @LDFLAGS@
+-LDFLAGS_AS_NEEDED = @LDFLAGS_AS_NEEDED@
+-LDFLAGS_NEW_DTAGS = @LDFLAGS_NEW_DTAGS@
+-LIBCOMPAT = @LIBCOMPAT@
+-LIBCRYPT = @LIBCRYPT@
+-LIBDL = @LIBDL@
+-LIBJPEG = @LIBJPEG@
+-LIBKEXIF_CFLAGS = @LIBKEXIF_CFLAGS@
+-LIBKEXIF_LIBS = @LIBKEXIF_LIBS@
+-LIBKEXIF_LIBS_DEP = @LIBKEXIF_LIBS_DEP@
+-LIBKIPI_CFLAGS = @LIBKIPI_CFLAGS@
+-LIBKIPI_LIBS = @LIBKIPI_LIBS@
+-LIBKIPI_LIBS_DEP = @LIBKIPI_LIBS_DEP@
+-LIBMAGICK_CFLAGS = @LIBMAGICK_CFLAGS@
+-LIBMAGICK_LIBS = @LIBMAGICK_LIBS@
+-LIBOBJS = @LIBOBJS@
+-LIBPNG = @LIBPNG@
+-LIBPTHREAD = @LIBPTHREAD@
+-LIBRESOLV = @LIBRESOLV@
+-LIBS = @LIBS@
+-LIBSM = @LIBSM@
+-LIBSOCKET = @LIBSOCKET@
+-LIBTOOL = @LIBTOOL@
+-LIBUCB = @LIBUCB@
+-LIBUTIL = @LIBUTIL@
+-LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
+-LIBXSLT_LIBS = @LIBXSLT_LIBS@
+-LIBZ = @LIBZ@
+-LIB_GPHOTO = @LIB_GPHOTO@
+-LIB_IMLIB2 = @LIB_IMLIB2@
+-LIB_KAB = @LIB_KAB@
+-LIB_KABC = @LIB_KABC@
+-LIB_KDECORE = @LIB_KDECORE@
+-LIB_KDED = @LIB_KDED@
+-LIB_KDEPIM = @LIB_KDEPIM@
+-LIB_KDEPRINT = @LIB_KDEPRINT@
+-LIB_KDEUI = @LIB_KDEUI@
+-LIB_KDNSSD = @LIB_KDNSSD@
+-LIB_KFILE = @LIB_KFILE@
+-LIB_KFM = @LIB_KFM@
+-LIB_KHTML = @LIB_KHTML@
+-LIB_KIMPROXY = @LIB_KIMPROXY@
+-LIB_KIO = @LIB_KIO@
+-LIB_KJS = @LIB_KJS@
+-LIB_KNEWSTUFF = @LIB_KNEWSTUFF@
+-LIB_KPARTS = @LIB_KPARTS@
+-LIB_KSPELL = @LIB_KSPELL@
+-LIB_KSYCOCA = @LIB_KSYCOCA@
+-LIB_KUNITTEST = @LIB_KUNITTEST@
+-LIB_KUTILS = @LIB_KUTILS@
+-LIB_POLL = @LIB_POLL@
+-LIB_QPE = @LIB_QPE@
+-LIB_QT = @LIB_QT@
+-LIB_SMB = @LIB_SMB@
+-LIB_TIFF = @LIB_TIFF@
+-LIB_X11 = @LIB_X11@
+-LIB_XEXT = @LIB_XEXT@
+-LIB_XRENDER = @LIB_XRENDER@
+-LN_S = @LN_S@
+-LTLIBOBJS = @LTLIBOBJS@
+-MAGICK_CONFIG = @MAGICK_CONFIG@
+-MAINT = @MAINT@
+-MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
+-MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
+-MAKEINFO = @MAKEINFO@
+-MAKEKDEWIDGETS = @MAKEKDEWIDGETS@
+-MCOPIDL = @MCOPIDL@
+-MEINPROC = @MEINPROC@
+-MOC = @MOC@
+-MSGFMT = @MSGFMT@
+-NOOPT_CFLAGS = @NOOPT_CFLAGS@
+-NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
+-OBJEXT = @OBJEXT@
+-PACKAGE = @PACKAGE@
+-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+-PACKAGE_NAME = @PACKAGE_NAME@
+-PACKAGE_STRING = @PACKAGE_STRING@
+-PACKAGE_TARNAME = @PACKAGE_TARNAME@
+-PACKAGE_VERSION = @PACKAGE_VERSION@
+-PATH_SEPARATOR = @PATH_SEPARATOR@
+-PERL = @PERL@
+-PKGCONFIGFOUND = @PKGCONFIGFOUND@
+-PKG_CONFIG = @PKG_CONFIG@
+-QTDOCDIR = @QTDOCDIR@
+-QTE_NORTTI = @QTE_NORTTI@
+-QT_INCLUDES = @QT_INCLUDES@
+-QT_LDFLAGS = @QT_LDFLAGS@
+-RANLIB = @RANLIB@
+-SET_MAKE = @SET_MAKE@
+-SHELL = @SHELL@
+-STRIP = @STRIP@
+-TOPSUBDIRS = @TOPSUBDIRS@
+-UIC = @UIC@
+-UIC_TR = @UIC_TR@
+-USER_INCLUDES = @USER_INCLUDES@
+-USER_LDFLAGS = @USER_LDFLAGS@
+-USE_EXCEPTIONS = @USE_EXCEPTIONS@
+-USE_RTTI = @USE_RTTI@
+-USE_THREADS = @USE_THREADS@
+-VERSION = @VERSION@
+-WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
+-XGETTEXT = @XGETTEXT@
+-XMLLINT = @XMLLINT@
+-XSLT_CONFIG = @XSLT_CONFIG@
+-X_EXTRA_LIBS = @X_EXTRA_LIBS@
+-X_INCLUDES = @X_INCLUDES@
+-X_LDFLAGS = @X_LDFLAGS@
+-X_PRE_LIBS = @X_PRE_LIBS@
+-X_RPATH = @X_RPATH@
+-ac_ct_AR = @ac_ct_AR@
+-ac_ct_CC = @ac_ct_CC@
+-ac_ct_CXX = @ac_ct_CXX@
+-ac_ct_F77 = @ac_ct_F77@
+-ac_ct_RANLIB = @ac_ct_RANLIB@
+-ac_ct_STRIP = @ac_ct_STRIP@
+-all_includes = @all_includes@
+-all_libraries = @all_libraries@
+-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+-am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+-am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+-am__include = @am__include@
+-am__leading_dot = @am__leading_dot@
+-am__quote = @am__quote@
+-am__tar = @am__tar@
+-am__untar = @am__untar@
+-bindir = @bindir@
+-build = @build@
+-build_alias = @build_alias@
+-build_cpu = @build_cpu@
+-build_os = @build_os@
+-build_vendor = @build_vendor@
+-compile_ACQUIREIMAGES_FALSE = @compile_ACQUIREIMAGES_FALSE@
+-compile_ACQUIREIMAGES_TRUE = @compile_ACQUIREIMAGES_TRUE@
+-compile_HTMLEXPORT_FALSE = @compile_HTMLEXPORT_FALSE@
+-compile_HTMLEXPORT_TRUE = @compile_HTMLEXPORT_TRUE@
+-compile_JPEGLOSSLESS_FALSE = @compile_JPEGLOSSLESS_FALSE@
+-compile_JPEGLOSSLESS_TRUE = @compile_JPEGLOSSLESS_TRUE@
+-compile_KAMERAKLIENT_FALSE = @compile_KAMERAKLIENT_FALSE@
+-compile_KAMERAKLIENT_TRUE = @compile_KAMERAKLIENT_TRUE@
+-compile_LIBKEXIF_FALSE = @compile_LIBKEXIF_FALSE@
+-compile_LIBKEXIF_TRUE = @compile_LIBKEXIF_TRUE@
+-compile_RAWCONVERTER_FALSE = @compile_RAWCONVERTER_FALSE@
+-compile_RAWCONVERTER_TRUE = @compile_RAWCONVERTER_TRUE@
+-compile_SLIDESHOW_FALSE = @compile_SLIDESHOW_FALSE@
+-compile_SLIDESHOW_TRUE = @compile_SLIDESHOW_TRUE@
+-compile_TIMEADJUST_FALSE = @compile_TIMEADJUST_FALSE@
+-compile_TIMEADJUST_TRUE = @compile_TIMEADJUST_TRUE@
+-datadir = @datadir@
+-doc_SUBDIR_included_FALSE = @doc_SUBDIR_included_FALSE@
+-doc_SUBDIR_included_TRUE = @doc_SUBDIR_included_TRUE@
+-exec_prefix = @exec_prefix@
+-host = @host@
+-host_alias = @host_alias@
+-host_cpu = @host_cpu@
+-host_os = @host_os@
+-host_vendor = @host_vendor@
+-include_ARTS_FALSE = @include_ARTS_FALSE@
+-include_ARTS_TRUE = @include_ARTS_TRUE@
+-include_x11_FALSE = @include_x11_FALSE@
+-include_x11_TRUE = @include_x11_TRUE@
+-includedir = @includedir@
+-infodir = @infodir@
+-install_sh = @install_sh@
+-kde_appsdir = @kde_appsdir@
+-kde_bindir = @kde_bindir@
+-kde_confdir = @kde_confdir@
+-kde_datadir = @kde_datadir@
+-kde_htmldir = @kde_htmldir@
+-kde_icondir = @kde_icondir@
+-kde_includes = @kde_includes@
+-kde_kcfgdir = @kde_kcfgdir@
+-kde_libraries = @kde_libraries@
+-kde_libs_htmldir = @kde_libs_htmldir@
+-kde_libs_prefix = @kde_libs_prefix@
+-kde_locale = @kde_locale@
+-kde_mimedir = @kde_mimedir@
+-kde_moduledir = @kde_moduledir@
+-kde_qtver = @kde_qtver@
+-kde_servicesdir = @kde_servicesdir@
+-kde_servicetypesdir = @kde_servicetypesdir@
+-kde_sounddir = @kde_sounddir@
+-kde_styledir = @kde_styledir@
+-kde_templatesdir = @kde_templatesdir@
+-kde_wallpaperdir = @kde_wallpaperdir@
+-kde_widgetdir = @kde_widgetdir@
+-kdeinitdir = @kdeinitdir@
+-kipi_plugins_SUBDIR_included_FALSE = @kipi_plugins_SUBDIR_included_FALSE@
+-kipi_plugins_SUBDIR_included_TRUE = @kipi_plugins_SUBDIR_included_TRUE@
+-libdir = @libdir@
+-libexecdir = @libexecdir@
+-libkexif_SUBDIR_included_FALSE = @libkexif_SUBDIR_included_FALSE@
+-libkexif_SUBDIR_included_TRUE = @libkexif_SUBDIR_included_TRUE@
+-libkipi_SUBDIR_included_FALSE = @libkipi_SUBDIR_included_FALSE@
+-libkipi_SUBDIR_included_TRUE = @libkipi_SUBDIR_included_TRUE@
+-localstatedir = @localstatedir@
+-mandir = @mandir@
+-mkdir_p = @mkdir_p@
+-oldincludedir = @oldincludedir@
+-po_SUBDIR_included_FALSE = @po_SUBDIR_included_FALSE@
+-po_SUBDIR_included_TRUE = @po_SUBDIR_included_TRUE@
+-prefix = @prefix@
+-program_transform_name = @program_transform_name@
+-qt_includes = @qt_includes@
+-qt_libraries = @qt_libraries@
+-sbindir = @sbindir@
+-sharedstatedir = @sharedstatedir@
+-sysconfdir = @sysconfdir@
+-target = @target@
+-target_alias = @target_alias@
+-target_cpu = @target_cpu@
+-target_os = @target_os@
+-target_vendor = @target_vendor@
+-unsermake_enable_pch_FALSE = @unsermake_enable_pch_FALSE@
+-unsermake_enable_pch_TRUE = @unsermake_enable_pch_TRUE@
+-x_includes = @x_includes@
+-x_libraries = @x_libraries@
+-xdg_appsdir = @xdg_appsdir@
+-xdg_directorydir = @xdg_directorydir@
+-xdg_menudir = @xdg_menudir@
+-INCLUDES = $(LIBKIPI_CFLAGS) $(all_includes)
+-#>- METASOURCES = AUTO
+-
+-# Install this plugin in the KDE modules directory
+-kde_module_LTLIBRARIES = kipiplugin_imagesgallery.la
+-kipiplugin_imagesgallery_la_DEPENDENCIES = $(LIBKIPI_LIBS_DEP)
+-# Srcs for the plugin
+-kipiplugin_imagesgallery_la_SOURCES = plugin_imagesgallery.cpp imgallerydialog.cpp \
+-                                      imagesgallery.cpp exifrestorer.cpp 
+-
+-
+-# Libs needed by the plugin
+-kipiplugin_imagesgallery_la_LIBADD = $(LIBKIPI_LIBS) $(LIB_KIO) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
+-
+-# LD flags for the plugin
+-kipiplugin_imagesgallery_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+-
+-# Install the desktop file needed to detect the plugin
+-kde_services_DATA = kipiplugin_imagesgallery.desktop
+-#>- all: all-am
+-#>+ 1
+-all: docs-am  all-am
+-
+-.SUFFIXES:
+-.SUFFIXES: .cpp .lo .o .obj
+-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
+-#>- 	@for dep in $?; do \
+-#>- 	  case '$(am__configure_deps)' in \
+-#>- 	    *$$dep*) \
+-#>- 	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+-#>- 		&& exit 0; \
+-#>- 	      exit 1;; \
+-#>- 	  esac; \
+-#>- 	done; \
+-#>- 	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile'; \
+-#>- 	cd $(top_srcdir) && \
+-#>- 	  $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile
+-#>+ 12
+-	@for dep in $?; do \
+-	  case '$(am__configure_deps)' in \
+-	    *$$dep*) \
+-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+-		&& exit 0; \
+-	      exit 1;; \
+-	  esac; \
+-	done; \
+-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile'; \
+-	cd $(top_srcdir) && \
+-	  $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile
+-	cd $(top_srcdir) && perl admin/am_edit kipi-plugins/imagesgallery/Makefile.in
+-.PRECIOUS: Makefile
+-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+-	@case '$?' in \
+-	  *config.status*) \
+-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+-	  *) \
+-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+-	esac;
+-
+-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-
+-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+-install-kde_moduleLTLIBRARIES: $(kde_module_LTLIBRARIES)
+-	@$(NORMAL_INSTALL)
+-	test -z "$(kde_moduledir)" || $(mkdir_p) "$(DESTDIR)$(kde_moduledir)"
+-	@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
+-	  if test -f $$p; then \
+-	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(kde_moduledir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(kde_moduleLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(kde_moduledir)/$$f"; \
+-	  else :; fi; \
+-	done
+-
+-uninstall-kde_moduleLTLIBRARIES:
+-	@$(NORMAL_UNINSTALL)
+-	@set -x; list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
+-	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(kde_moduledir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(kde_moduledir)/$$p"; \
+-	done
+-
+-clean-kde_moduleLTLIBRARIES:
+-	-test -z "$(kde_module_LTLIBRARIES)" || rm -f $(kde_module_LTLIBRARIES)
+-	@list='$(kde_module_LTLIBRARIES)'; for p in $$list; do \
+-	  dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+-	  test "$$dir" != "$$p" || dir=.; \
+-	  echo "rm -f \"$${dir}/so_locations\""; \
+-	  rm -f "$${dir}/so_locations"; \
+-	done
+-#>- kipiplugin_imagesgallery.la: $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_DEPENDENCIES) 
+-#>+ 2
+- at KDE_USE_CLOSURE_TRUE@kipiplugin_imagesgallery.la: kipiplugin_imagesgallery.la.closure $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_DEPENDENCIES) 
+- at KDE_USE_CLOSURE_FALSE@kipiplugin_imagesgallery.la: $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_DEPENDENCIES) 
+-	$(CXXLINK) -rpath $(kde_moduledir) $(kipiplugin_imagesgallery_la_LDFLAGS) $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_LIBADD) $(LIBS)
+-
+-mostlyclean-compile:
+-	-rm -f *.$(OBJEXT)
+-
+-distclean-compile:
+-	-rm -f *.tab.c
+-
+- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/exifrestorer.Plo at am__quote@
+- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/imagesgallery.Plo at am__quote@
+- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/imgallerydialog.Plo at am__quote@
+- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/plugin_imagesgallery.Plo at am__quote@
+-
+-.cpp.o:
+- at am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+- at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+- at am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ $<
+-
+-.cpp.obj:
+- at am__fastdepCXX_TRUE@	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
+- at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+- at am__fastdepCXX_FALSE@	$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+-
+-.cpp.lo:
+- at am__fastdepCXX_TRUE@	if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
+- at am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+- at am__fastdepCXX_FALSE@	$(LTCXXCOMPILE) -c -o $@ $<
+-
+-mostlyclean-libtool:
+-	-rm -f *.lo
+-
+-clean-libtool:
+-	-rm -rf .libs _libs
+-
+-distclean-libtool:
+-	-rm -f libtool
+-uninstall-info-am:
+-install-kde_servicesDATA: $(kde_services_DATA)
+-	@$(NORMAL_INSTALL)
+-	test -z "$(kde_servicesdir)" || $(mkdir_p) "$(DESTDIR)$(kde_servicesdir)"
+-	@list='$(kde_services_DATA)'; for p in $$list; do \
+-	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+-	  f=$(am__strip_dir) \
+-	  echo " $(kde_servicesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(kde_servicesdir)/$$f'"; \
+-	  $(kde_servicesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(kde_servicesdir)/$$f"; \
+-	done
+-
+-uninstall-kde_servicesDATA:
+-	@$(NORMAL_UNINSTALL)
+-	@list='$(kde_services_DATA)'; for p in $$list; do \
+-	  f=$(am__strip_dir) \
+-	  echo " rm -f '$(DESTDIR)$(kde_servicesdir)/$$f'"; \
+-	  rm -f "$(DESTDIR)$(kde_servicesdir)/$$f"; \
+-	done
+-
+-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+-	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+-	unique=`for i in $$list; do \
+-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+-	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
+-	mkid -fID $$unique
+-tags: TAGS
+-
+-TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+-		$(TAGS_FILES) $(LISP)
+-	tags=; \
+-	here=`pwd`; \
+-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+-	unique=`for i in $$list; do \
+-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+-	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
+-	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+-	  test -n "$$unique" || unique=$$empty_fix; \
+-	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+-	    $$tags $$unique; \
+-	fi
+-ctags: CTAGS
+-CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
+-		$(TAGS_FILES) $(LISP)
+-	tags=; \
+-	here=`pwd`; \
+-	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+-	unique=`for i in $$list; do \
+-	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+-	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
+-	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+-	     $$tags $$unique
+-
+-GTAGS:
+-	here=`$(am__cd) $(top_builddir) && pwd` \
+-	  && cd $(top_srcdir) \
+-	  && gtags -i $(GTAGS_ARGS) $$here
+-
+-distclean-tags:
+-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+-distdir: $(DISTFILES)
+-	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+-	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+-	list='$(DISTFILES)'; for file in $$list; do \
+-	  case $$file in \
+-	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+-	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+-	  esac; \
+-	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+-	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+-	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+-	    dir="/$$dir"; \
+-	    $(mkdir_p) "$(distdir)$$dir"; \
+-	  else \
+-	    dir=''; \
+-	  fi; \
+-	  if test -d $$d/$$file; then \
+-	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+-	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+-	    fi; \
+-	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+-	  else \
+-	    test -f $(distdir)/$$file \
+-	    || cp -p $$d/$$file $(distdir)/$$file \
+-	    || exit 1; \
+-	  fi; \
+-	done
+-check-am: all-am
+-check: check-am
+-all-am: Makefile $(LTLIBRARIES) $(DATA)
+-installdirs:
+-	for dir in "$(DESTDIR)$(kde_moduledir)" "$(DESTDIR)$(kde_servicesdir)"; do \
+-	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
+-	done
+-install: install-am
+-install-exec: install-exec-am
+-install-data: install-data-am
+-uninstall: uninstall-am
+-
+-install-am: all-am
+-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+-
+-installcheck: installcheck-am
+-install-strip:
+-	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+-	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+-	  `test -z '$(STRIP)' || \
+-	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+-mostlyclean-generic:
+-
+-clean-generic:
+-
+-distclean-generic:
+-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+-
+-maintainer-clean-generic:
+-	@echo "This command is intended for maintainers to use"
+-	@echo "it deletes files that may require special tools to rebuild."
+-#>- clean: clean-am
+-#>+ 1
+-clean: kde-rpo-clean  clean-am
+-
+-#>- clean-am: clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
+-#>- 	mostlyclean-am
+-#>+ 2
+-clean-am: clean-metasources clean-closures clean-bcheck clean-final  clean-generic clean-kde_moduleLTLIBRARIES clean-libtool \
+-	mostlyclean-am
+-
+-distclean: distclean-am
+-	-rm -rf ./$(DEPDIR)
+-	-rm -f Makefile
+-distclean-am: clean-am distclean-compile distclean-generic \
+-	distclean-libtool distclean-tags
+-
+-dvi: dvi-am
+-
+-dvi-am:
+-
+-html: html-am
+-
+-info: info-am
+-
+-info-am:
+-
+-#>- install-data-am: install-kde_moduleLTLIBRARIES \
+-#>- 	install-kde_servicesDATA
+-#>+ 2
+-install-data-am:   \
+-	install-kde_servicesDATA
+-
+-#>- install-exec-am:
+-#>+ 1
+-install-exec-am:  install-kde_moduleLTLIBRARIES
+-
+-install-info: install-info-am
+-
+-install-man:
+-
+-installcheck-am:
+-
+-maintainer-clean: maintainer-clean-am
+-	-rm -rf ./$(DEPDIR)
+-	-rm -f Makefile
+-maintainer-clean-am: distclean-am maintainer-clean-generic
+-
+-mostlyclean: mostlyclean-am
+-
+-mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+-	mostlyclean-libtool
+-
+-pdf: pdf-am
+-
+-pdf-am:
+-
+-ps: ps-am
+-
+-ps-am:
+-
+-uninstall-am: uninstall-info-am uninstall-kde_moduleLTLIBRARIES \
+-	uninstall-kde_servicesDATA
+-
+-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+-	clean-kde_moduleLTLIBRARIES clean-libtool ctags distclean \
+-	distclean-compile distclean-generic distclean-libtool \
+-	distclean-tags distdir dvi dvi-am html html-am info info-am \
+-	install install-am install-data install-data-am install-exec \
+-	install-exec-am install-info install-info-am \
+-	install-kde_moduleLTLIBRARIES install-kde_servicesDATA \
+-	install-man install-strip installcheck installcheck-am \
+-	installdirs maintainer-clean maintainer-clean-generic \
+-	mostlyclean mostlyclean-compile mostlyclean-generic \
+-	mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
+-	uninstall-am uninstall-info-am uninstall-kde_moduleLTLIBRARIES \
+-	uninstall-kde_servicesDATA
+-
+-
+-# i18n translation messages
+-messages: rc.cpp
+-	$(XGETTEXT) *.cpp *.h -o $(podir)/kipiplugin_imagesgallery.pot
+-# Tell versions [3.59,3.63) of GNU make to not export all variables.
+-# Otherwise a system limit (for SysV at least) may be exceeded.
+-.NOEXPORT:
+-
+-#>+ 8
+-kipiplugin_imagesgallery.la.closure: $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_DEPENDENCIES)
+-	@echo "int main() {return 0;}" > kipiplugin_imagesgallery_la_closure.cpp
+-	@$(LTCXXCOMPILE) -c kipiplugin_imagesgallery_la_closure.cpp
+-	$(CXXLINK) kipiplugin_imagesgallery_la_closure.lo $(kipiplugin_imagesgallery_la_LDFLAGS) $(kipiplugin_imagesgallery_la_OBJECTS) $(kipiplugin_imagesgallery_la_LIBADD) $(LIBS)
+-	@rm -f kipiplugin_imagesgallery_la_closure.* kipiplugin_imagesgallery.la.closure
+-	@echo "timestamp" > kipiplugin_imagesgallery.la.closure
+-
+-
+-#>+ 3
+-imagesgallery.moc: $(srcdir)/imagesgallery.h
+-	$(MOC) $(srcdir)/imagesgallery.h -o imagesgallery.moc
+-
+-#>+ 2
+-mocs: imagesgallery.moc
+-
+-#>+ 3
+-plugin_imagesgallery.moc: $(srcdir)/plugin_imagesgallery.h
+-	$(MOC) $(srcdir)/plugin_imagesgallery.h -o plugin_imagesgallery.moc
+-
+-#>+ 2
+-mocs: plugin_imagesgallery.moc
+-
+-#>+ 3
+-imgallerydialog.moc: $(srcdir)/imgallerydialog.h
+-	$(MOC) $(srcdir)/imgallerydialog.h -o imgallerydialog.moc
+-
+-#>+ 2
+-mocs: imgallerydialog.moc
+-
+-#>+ 3
+-clean-metasources:
+-	-rm -f  imagesgallery.moc plugin_imagesgallery.moc imgallerydialog.moc
+-
+-#>+ 2
+-KDE_DIST=imgallerydialog.h kipiplugin_imagesgallery.desktop jpegsection.h Makefile.in exifrestorer.h plugin_imagesgallery.h actions.h Makefile.am imagesgallery.h 
+-
+-#>+ 3
+-clean-closures:
+-	-rm -f  kipiplugin_imagesgallery.la.closure
+-
+-#>+ 2
+-docs-am:
+-
+-#>+ 15
+-force-reedit:
+-		@for dep in $?; do \
+-	  case '$(am__configure_deps)' in \
+-	    *$$dep*) \
+-	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+-		&& exit 0; \
+-	      exit 1;; \
+-	  esac; \
+-	done; \
+-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile'; \
+-	cd $(top_srcdir) && \
+-	  $(AUTOMAKE) --foreign  kipi-plugins/imagesgallery/Makefile
+-	cd $(top_srcdir) && perl admin/am_edit kipi-plugins/imagesgallery/Makefile.in
+-
+-
+-#>+ 21
+-clean-bcheck: 
+-	rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
+-
+-bcheck: bcheck-am
+-
+-bcheck-am:
+-	@for i in ; do \
+-	    if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
+-	        echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
+-	        echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
+-	        echo "$$i"; \
+-	        if ! $(CXXCOMPILE)  --dump-class-hierarchy -c $$i.bchecktest.cc; then \
+-	            rm -f $$i.bchecktest.cc; exit 1; \
+-	        fi ; \
+-	        echo "" >> $$i.bchecktest.cc.class; \
+-	        perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
+-	        rm -f a.out; \
+-	    fi ; \
+-	done
+-
+-
+-#>+ 11
+-kipiplugin_imagesgallery_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/plugin_imagesgallery.cpp $(srcdir)/imgallerydialog.cpp $(srcdir)/imagesgallery.cpp $(srcdir)/exifrestorer.cpp  imagesgallery.moc imgallerydialog.moc plugin_imagesgallery.moc
+-	@echo 'creating kipiplugin_imagesgallery_la.all_cpp.cpp ...'; \
+-	rm -f kipiplugin_imagesgallery_la.all_cpp.files kipiplugin_imagesgallery_la.all_cpp.final; \
+-	echo "#define KDE_USE_FINAL 1" >> kipiplugin_imagesgallery_la.all_cpp.final; \
+-	for file in plugin_imagesgallery.cpp imgallerydialog.cpp imagesgallery.cpp exifrestorer.cpp ; do \
+-	  echo "#include \"$$file\"" >> kipiplugin_imagesgallery_la.all_cpp.files; \
+-	  test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kipiplugin_imagesgallery_la.all_cpp.final; \
+-	done; \
+-	cat kipiplugin_imagesgallery_la.all_cpp.final kipiplugin_imagesgallery_la.all_cpp.files > kipiplugin_imagesgallery_la.all_cpp.cpp; \
+-	rm -f kipiplugin_imagesgallery_la.all_cpp.final kipiplugin_imagesgallery_la.all_cpp.files
+-
+-#>+ 3
+-clean-final:
+-	-rm -f kipiplugin_imagesgallery_la.all_cpp.cpp
+-
+-#>+ 3
+-final:
+-	$(MAKE) kipiplugin_imagesgallery_la_OBJECTS="$(kipiplugin_imagesgallery_la_final_OBJECTS)" all-am
+-
+-#>+ 3
+-final-install:
+-	$(MAKE) kipiplugin_imagesgallery_la_OBJECTS="$(kipiplugin_imagesgallery_la_final_OBJECTS)" install-am
+-
+-#>+ 3
+-no-final:
+-	$(MAKE) kipiplugin_imagesgallery_la_OBJECTS="$(kipiplugin_imagesgallery_la_nofinal_OBJECTS)" all-am
+-
+-#>+ 3
+-no-final-install:
+-	$(MAKE) kipiplugin_imagesgallery_la_OBJECTS="$(kipiplugin_imagesgallery_la_nofinal_OBJECTS)" install-am
+-
+-#>+ 3
+-kde-rpo-clean:
+-	-rm -f *.rpo
+-
+-#>+ 9
+-nmcheck: 
+-plugin_imagesgallery.lo: plugin_imagesgallery.moc 
+-imagesgallery.o: imagesgallery.moc 
+-imagesgallery.lo: imagesgallery.moc 
+-imgallerydialog.lo: imgallerydialog.moc 
+-nmcheck-am: nmcheck
+-imgallerydialog.o: imgallerydialog.moc 
+-plugin_imagesgallery.o: plugin_imagesgallery.moc 
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/plugin_imagesgallery.cpp kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/plugin_imagesgallery.cpp
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/plugin_imagesgallery.cpp	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/plugin_imagesgallery.cpp	1970-01-01 01:00:00.000000000 +0100
+@@ -1,325 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    PLUGIN_IMAGESGALLERY.CPP
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-// Include files for KDE
+-
+-#include <klocale.h>
+-#include <kaction.h>
+-#include <kgenericfactory.h>
+-#include <klibloader.h>
+-#include <kconfig.h>
+-#include <kdebug.h>
+-#include <kapplication.h>
+-#include <kdeversion.h>
+-
+-// LibKIPI include.
+-
+-#include <libkipi/batchprogressdialog.h>
+-
+-// Local include files
+-
+-#include "actions.h"
+-#include "imagesgallery.h"
+-#include "plugin_imagesgallery.h"
+-
+-typedef KGenericFactory<Plugin_Imagesgallery> Factory;
+-
+-K_EXPORT_COMPONENT_FACTORY( kipiplugin_imagesgallery,
+-                            Factory("kipiplugin_imagesgallery"))
+-
+-// -----------------------------------------------------------
+-Plugin_Imagesgallery::Plugin_Imagesgallery(QObject *parent, const char*, const QStringList&)
+-                    : KIPI::Plugin( Factory::instance(), parent, "ImagesGallery")
+-{
+-    kdDebug( 51001 ) << "Plugin_Imagesgallery plugin loaded" << endl;
+-}
+-
+-void Plugin_Imagesgallery::setup( QWidget* widget )
+-{
+-    KIPI::Plugin::setup( widget );
+-    m_actionImagesGallery = new KAction (i18n("HTML Export..."),        // Menu message.
+-                                         "www",                         // Menu icon.
+-                                         0,
+-                                         this,
+-                                         SLOT(slotActivate()),
+-                                         actionCollection(),
+-                                        "images_gallery");
+-
+-    addAction( m_actionImagesGallery );
+-    m_gallery = 0;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-Plugin_Imagesgallery::~Plugin_Imagesgallery()
+-{
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void Plugin_Imagesgallery::slotActivate()
+-{
+-    m_progressDlg = 0;
+-    
+-    KIPI::Interface* interface = dynamic_cast< KIPI::Interface* >( parent() );
+-   
+-    if ( !interface ) 
+-       {
+-       kdError( 51000 ) << "Kipi interface is null!" << endl;
+-       return;
+-       }
+-    
+-    m_gallery = new KIPIImagesGalleryPlugin::ImagesGallery( 
+-                    interface, this);
+-    
+-    if ( m_gallery->showDialog() )
+-       {
+-       if ( m_gallery->removeTargetGalleryFolder() == true )
+-          {
+-          if ( m_gallery->prepare() == true )
+-             m_gallery->run();
+-          }
+-       }
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void Plugin_Imagesgallery::slotCancel()
+-{
+-    m_gallery->stop();
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-void Plugin_Imagesgallery::customEvent(QCustomEvent *event)
+-{
+-    if (!event) return;
+-    
+-    if (!m_progressDlg)
+-        {
+-        m_progressDlg = new KIPI::BatchProgressDialog(kapp->activeWindow(), i18n("Album HTML Export"));
+-        
+-        connect(m_progressDlg, SIGNAL(cancelClicked()),
+-                this, SLOT(slotCancel()));
+-
+-        m_current = 0;
+-        m_progressDlg->show();
+-        }
+-
+-    KIPIImagesGalleryPlugin::EventData *d = (KIPIImagesGalleryPlugin::EventData*) event->data();
+-    
+-    if (!d) return;
+-    
+-    if (d->starting) 
+-        {
+-        QString text;
+-        
+-        switch (d->action) 
+-           {
+-           case(KIPIImagesGalleryPlugin::Initialize): 
+-              {
+-              text = i18n("Initialising...");
+-              m_total = d->total;
+-              break;
+-              }
+-           
+-           case(KIPIImagesGalleryPlugin::BuildHTMLiface): 
+-              {
+-              text = i18n("Making main HTML interface...");
+-              break;
+-              }
+-              
+-           case(KIPIImagesGalleryPlugin::BuildAlbumHTMLPage): 
+-              {
+-              text = i18n("Making HTML pages for Album '%1'...").arg(d->albumName);
+-              break;
+-              }
+-                  
+-           case(KIPIImagesGalleryPlugin::BuildImageHTMLPage): 
+-              {
+-              text = i18n("Making HTML page for image '%1'...").arg(d->fileName);
+-              break;
+-              }
+-           
+-           case(KIPIImagesGalleryPlugin::ResizeImages): 
+-              {
+-              text = i18n("Creating thumbnail for '%1'").arg(d->fileName);
+-              break;
+-              }
+-               
+-           case(KIPIImagesGalleryPlugin::Progress): 
+-              {
+-              text = d->message;
+-              break;
+-              }
+-              
+-           default: 
+-              {
+-              kdWarning( 51000 ) << "Plugin_CDArchiving: Unknown 'Starting' event: " << d->action << endl;
+-              }
+-           }
+-
+-        m_progressDlg->addedAction(text, KIPI::StartingMessage);
+-        }
+-    else 
+-        {
+-        QString text;
+-
+-        if (d->success) 
+-            {
+-            switch (d->action) 
+-               {
+-               case(KIPIImagesGalleryPlugin::BuildHTMLiface): 
+-                  {
+-                  text = i18n("Main HTML interface creation completed.");
+-                  break;
+-                  }
+-                  
+-               case(KIPIImagesGalleryPlugin::BuildAlbumHTMLPage): 
+-                  {
+-                  text = i18n("HTML pages creation for Album '%1' completed.").arg(d->albumName);
+-                  break;
+-                  }
+-
+-              case(KIPIImagesGalleryPlugin::ResizeImages): 
+-                  {
+-                  text = i18n("Creating thumbnail for '%1' completed.").arg(d->fileName);
+-                  break;
+-                  }
+-                                 
+-               default: 
+-                  {
+-                  kdWarning( 51000 ) << "Plugin_Imagesgallery: Unknown 'Success' event: " << d->action << endl;
+-                  }
+-               }
+-
+-            m_progressDlg->addedAction(text, KIPI::SuccessMessage);
+-            ++m_current;   
+-            }
+-        else
+-            {
+-            switch (d->action) 
+-               {
+-               case(KIPIImagesGalleryPlugin::ResizeImages): 
+-                  {
+-                  ++m_current;   
+-                  text = i18n("Failed to create thumbnail for '%1'").arg(d->fileName);
+-                  m_progressDlg->addedAction(text, KIPI::WarningMessage);
+-                  m_progressDlg->setProgress(m_current, m_total);
+-                  break;
+-                  }
+-               
+-               case(KIPIImagesGalleryPlugin::BuildHTMLiface): 
+-                  {
+-                  text = i18n("Failed to create HTML interface: %1")
+-                              .arg(d->message);
+-                  m_progressDlg->addedAction(text, KIPI::ErrorMessage);
+-                  m_progressDlg->setProgress(m_current, m_total);
+-                  slotCancel();
+-                  return;
+-                  break;
+-                  }
+-
+-               case(KIPIImagesGalleryPlugin::BuildAlbumHTMLPage): 
+-                  {
+-                  text = i18n("Failed to create HTML page for Album '%1'")
+-                              .arg(d->albumName);
+-                  m_progressDlg->addedAction(text, KIPI::ErrorMessage);
+-                  m_progressDlg->setProgress(m_current, m_total);
+-                  slotCancel();
+-                  return;
+-                  break;
+-                  }
+-
+-               case(KIPIImagesGalleryPlugin::BuildImageHTMLPage): 
+-                  {
+-                  text = i18n("Failed to create HTML page for image '%1'")
+-                              .arg(d->fileName);
+-                  m_progressDlg->addedAction(text, KIPI::ErrorMessage);
+-                  m_progressDlg->setProgress(m_current, m_total);
+-                  slotCancel();
+-                  return;
+-                  break;
+-                  }
+-                                   
+-               case(KIPIImagesGalleryPlugin::Error): 
+-                  {
+-                  text = d->message;
+-                  m_progressDlg->addedAction(text, KIPI::ErrorMessage);
+-                  m_progressDlg->setProgress(m_current, m_total);
+-                  slotCancel();
+-                  return;
+-                  break;
+-                  }                  
+-                           
+-               default: 
+-                  {
+-                  kdWarning( 51000 ) << "Plugin_CDArchiving: Unknown 'Failed' event: " << d->action << endl;
+-                  }
+-               }
+-            }
+-
+-        m_progressDlg->setProgress(m_current, m_total);
+-
+-        if( d->action == KIPIImagesGalleryPlugin::BuildHTMLiface )
+-           {
+-           m_current = 0;
+-
+-#if KDE_VERSION >= 0x30200
+-           m_progressDlg->setButtonCancel( KStdGuiItem::close() );
+-#else
+-           m_progressDlg->setButtonCancelText( i18n("&Close") );
+-#endif
+-                   
+-           disconnect(m_progressDlg, SIGNAL(cancelClicked()),
+-                      this, SLOT(slotCancel()));
+-                
+-           // Invoke browser program.
+-           
+-           m_progressDlg->addedAction(i18n("Starting browser program..."),
+-                                      KIPI::StartingMessage);
+-               
+-           m_gallery->invokeWebBrowser();
+-           }
+-        }
+-    
+-    kapp->processEvents();
+-    delete d;
+-}
+-
+-
+-/////////////////////////////////////////////////////////////////////////////////////////////////////
+-
+-KIPI::Category Plugin_Imagesgallery::category( KAction* action ) const
+-{
+-    if ( action == m_actionImagesGallery )
+-       return KIPI::EXPORTPLUGIN;
+-    
+-    kdWarning( 51000 ) << "Unrecognized action for plugin category identification" << endl;
+-    return KIPI::EXPORTPLUGIN; // no warning from compiler, please
+-}
+-
+-#include "plugin_imagesgallery.moc"
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/plugin_imagesgallery.h kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/plugin_imagesgallery.h
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/plugin_imagesgallery.h	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/plugin_imagesgallery.h	1970-01-01 01:00:00.000000000 +0100
+@@ -1,72 +0,0 @@
+-//////////////////////////////////////////////////////////////////////////////
+-//
+-//    PLUGIN_IMAGESGALLERY.H
+-//
+-//    Copyright (C) 2003-2004 Gilles Caulier <caulier dot gilles at free.fr>
+-//
+-//    This program is free software; you can redistribute it and/or modify
+-//    it under the terms of the GNU General Public License as published by
+-//    the Free Software Foundation; either version 2 of the License, or
+-//    (at your option) any later version.
+-//
+-//    This program is distributed in the hope that it will be useful,
+-//    but WITHOUT ANY WARRANTY; without even the implied warranty of
+-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+-//    GNU General Public License for more details.
+-//
+-//    You should have received a copy of the GNU General Public License
+-//    along with this program; if not, write to the Free Software
+-//    Foundation, Inc., 51 Franklin Steet, Fifth Floor, Cambridge, MA 02110-1301, USA.
+-//
+-//////////////////////////////////////////////////////////////////////////////
+-
+-#ifndef PLUGIN_IMAGESGALLERY_H
+-#define PLUGIN_IMAGESGALLERY_H
+-
+-// LibKIPI includes.
+-
+-#include <libkipi/plugin.h>
+-
+-class KAction;
+-
+-namespace KIPI
+-{
+-class BatchProgressDialog;
+-}
+-
+-namespace KIPIImagesGalleryPlugin
+-{
+-class KIGPDialog;
+-class ResizeImage;
+-}
+-
+-
+-class Plugin_Imagesgallery : public KIPI::Plugin
+-{
+-   Q_OBJECT
+-
+-public:
+-   Plugin_Imagesgallery(QObject *parent, const char* name, const QStringList &args);
+-   virtual ~Plugin_Imagesgallery();
+-   
+-   KIPI::Category category( KAction* action ) const;
+-   virtual void setup( QWidget* widget );
+-
+-public slots:
+-   void slotActivate();
+-   void slotCancel();
+-
+-private:
+-   int                                           m_current;
+-   int                                           m_total;
+-
+-   KIPIImagesGalleryPlugin::ImagesGallery       *m_gallery;
+-   
+-   KIPI::BatchProgressDialog                    *m_progressDlg;
+-   KAction                                      *m_actionImagesGallery;
+-   
+-   void customEvent(QCustomEvent *event);
+-};
+-
+-
+-#endif // PLUGIN_IMAGESGALLERY_H
+diff -Nur kipi-plugins-0.1.2/kipi-plugins/imagesgallery/TODO kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/TODO
+--- kipi-plugins-0.1.2/kipi-plugins/imagesgallery/TODO	2006-07-09 01:51:11.000000000 +0200
++++ kipi-plugins-0.1.2.new/kipi-plugins/imagesgallery/TODO	1970-01-01 01:00:00.000000000 +0100
+@@ -1,12 +0,0 @@
+-Revamp the plugin using external generator tools including CSS support and sub-album export. Any possible tools to use :
+-
+-- BINS   : http://bins.sautret.org/
+-
+-- LLGAL  : http://bgoglin.free.fr/llgal/
+-
+-- XMLGAL : http://web.mit.edu/pgbovine/www/software.htm#XMLGal
+-
+-- JIGL   : http://xome.net/projects/jigl/
+-
+-- PHOTON : http://muder.csie.org/photon/
+-




More information about the pkg-kde-commits mailing list