Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tocgenerator.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008     begin                : Jun 2005
00009     copyright            : (C) 2005 by Craig Bradney
00010     email                : cbradney@zip.com.au
00011  ***************************************************************************/
00012 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
00019  *                                                                         *
00020  ***************************************************************************/
00021 #ifndef TOCGENERATOR_H
00022 #define TOCGENERATOR_H
00023 
00024 #include <qobject.h>
00025 
00026 #include "scribusapi.h"
00027 class ScribusDoc;
00028 class PageItem;
00029 
00033 class SCRIBUS_API TOCGenerator : public QObject
00034 {
00035        Q_OBJECT
00036        public:
00037               TOCGenerator(QObject *parent = NULL, const char *name = NULL, ScribusDoc *doc = NULL);
00038               ~TOCGenerator();
00039               
00040               void setDoc(ScribusDoc *doc = NULL);
00041               
00042        public slots:
00043               void generateDefault();
00044 
00045        private:
00046               PageItem* findTargetFrame(const QString &targetFrameName);
00047               ScribusDoc *currDoc;
00048 };
00049 
00050 #endif