Back to index

scribus-ng  1.3.4.dfsg+svn20071115
mergedoc.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 #ifndef MERGEDOC_H
00008 #define MERGEDOC_H
00009 
00010 #include <qdialog.h>
00011 #include "scribusapi.h"
00012 class QPushButton;
00013 class QLabel;
00014 class QLineEdit;
00015 class QSpinBox;
00016 class QString;
00017 class QLayout;
00018 class QToolTip;
00019 class QComboBox;
00020 class QCheckBox;
00021 class QTooltip;
00022 class QVBoxLayout;
00023 class QHBoxLayout;
00024 class QGridLayout;
00025 
00026 
00027 class SCRIBUS_API MergeDoc : public QDialog
00028 {
00029        Q_OBJECT
00030 
00031 public:
00032        MergeDoc( QWidget* parent, bool importMasterPages, int targetDocPageCount = -1, int currentPage = 1 );
00033        ~MergeDoc();
00034 
00035        const QString getFromDoc();
00036        const int getMasterPageNameItem();
00037        const QString getMasterPageNameText();
00038        const int getImportWhere();
00039        const int getImportWherePage();
00040        const bool getCreatePageChecked();
00041        const QString getPageNumbers();
00042        const int getPageCounter();
00043 
00044 private:
00045        QLabel* fromDocLabel;
00046        QLabel* importPageLabel;
00047        QLabel* fromLabel;
00048        QLineEdit* pageNumberData;
00049        QLineEdit* fromDocData;
00050        QPushButton* importButton;
00051        QPushButton* cancelButton;
00052        QPushButton* changeButton;
00053        QCheckBox* createPageData;
00054        QComboBox* masterPageNameData;
00055        QComboBox* importWhereData;
00056        QSpinBox* importWherePageData;
00057        QVBoxLayout* dialogLayout;
00058        QGridLayout* fromInfoLayout;
00059        QHBoxLayout* importCancelLayout;
00060        int count;
00061        bool masterPages;
00062 
00063 private slots:
00064        void changeFile();
00065        void checkDestPageStatus( int positionComboSelection );
00066        void enableCreateWidgets();
00067 
00068 };
00069 
00070 #endif // MERGEDOC_H