home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / tocgenerator.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-19  |  1.7 KB  |  52 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.     begin                : Jun 2005
  9.     copyright            : (C) 2005 by Craig Bradney
  10.     email                : cbradney@zip.com.au
  11.  ***************************************************************************/
  12.  
  13. /***************************************************************************
  14.  *                                                                         *
  15.  *   This program is free software; you can redistribute it and/or modify  *
  16.  *   it under the terms of the GNU General Public License as published by  *
  17.  *   the Free Software Foundation; either version 2 of the License, or     *
  18.  *   (at your option) any later version.                                   *
  19.  *                                                                         *
  20.  ***************************************************************************/
  21. #ifndef TOCGENERATOR_H
  22. #define TOCGENERATOR_H
  23.  
  24. #include <QObject>
  25.  
  26. #include "scribusapi.h"
  27.  
  28. class ScribusDoc;
  29. class PageItem;
  30.  
  31. /**
  32. @author Craig Bradney
  33. */
  34. class SCRIBUS_API TOCGenerator : public QObject
  35. {
  36.     Q_OBJECT
  37.     public:
  38.         TOCGenerator(QObject *parent = NULL, ScribusDoc *doc = NULL);
  39.         ~TOCGenerator();
  40.         
  41.         void setDoc(ScribusDoc *doc = NULL);
  42.         
  43.     public slots:
  44.         void generateDefault();
  45.  
  46.     private:
  47.         PageItem* findTargetFrame(const QString &targetFrameName);
  48.         ScribusDoc *currDoc;
  49. };
  50.  
  51. #endif
  52.