Scribus
Open source desktop publishing at your fingertips
tocgenerator.h
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 
34 class SCRIBUS_API TOCGenerator : public QObject
35 {
36  Q_OBJECT
37  public:
38  TOCGenerator(QObject *parent = NULL, ScribusDoc *doc = NULL);
39 
40  void setDoc(ScribusDoc *doc = NULL);
41 
42  public slots:
43  void generateDefault();
44 
45  private:
46  PageItem* findTargetFrame(const QString &targetFrameName);
47  ScribusDoc *m_doc;
48 };
49 
50 #endif
Definition: tocgenerator.h:34
the Document Class
Definition: scribusdoc.h:90
Definition: pageitem.h:92