Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tocindexprefs.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                : 2005
00009        copyright            : (C) 2005 by Craig Bradney
00010        email                : cbradney@zip.com.au
00011 ***************************************************************************/
00012 
00013 /***************************************************************************
00014 *                                                                         *
00015 *   ScMW 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 TOCINDEXPREFS_H
00022 #define TOCINDEXPREFS_H
00023 
00024 #include <qstringlist.h>
00025 
00026 #include "tocindexprefsbase.h"
00027 #include "page.h"
00028 #include "pagestructs.h"
00029 #include "scribusdoc.h"
00030 
00031 class TOCIndexPrefs : public TOCIndexPrefsBase
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     TOCIndexPrefs( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00037     ~TOCIndexPrefs();
00038 
00039     virtual void enableGUIWidgets();
00040     virtual ToCSetupVector * getNewToCs();
00041 
00042 public slots:
00043     virtual void setup( ToCSetupVector * tocsetups, ScribusDoc * doc );
00044     virtual void generatePageItemList();
00045     virtual void setupItemAttrs( QStringList newNames );
00046     virtual void selectToC( int numberSelected );
00047     virtual void addToC();
00048     virtual void updateToCListBox();
00049     virtual void updateParagraphStyleComboBox();
00050     virtual void deleteToC();
00051     virtual void itemAttributeSelected( const QString & itemAttributeName );
00052     virtual void itemFrameSelected( const QString & frameName );
00053     virtual void itemPageNumberPlacedSelected( const QString & pageLocation );
00054     virtual void itemParagraphStyleSelected( const QString & itemStyle );
00055     virtual void setToCName( const QString & newName );
00056     virtual void nonPrintingFramesSelected( bool showNonPrinting );
00057 
00058 protected:
00059     uint numSelected;
00060     QString strPNNotShown;
00061     QString strPNEnd;
00062     QString strPNBeginning;
00063     QString trStrPNNotShown;
00064     QString trStrPNEnd;
00065     QString trStrPNBeginning;
00066     ToCSetupVector localToCSetupVector;
00067     QString trStrNone;
00068     ScribusDoc *currDoc;
00069     QString selectedTOCAttrName;
00070     QStringList paragraphStyleList;
00071     QString strNone;
00072 
00073 protected slots:
00074     virtual void languageChange();
00075 
00076 private:
00077     void init();
00078     void destroy();
00079 
00080 };
00081 
00082 #endif // TOCINDEXPREFS_H