/usr/include/scribus/newfile.h is in scribus 1.4.0.dfsg+r17300-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef NEWDOC_H
#define NEWDOC_H
#include <QDialog>
#include <QListWidget>
class QFormLayout;
class QGridLayout;
class QHBoxLayout;
class QVBoxLayout;
class QFrame;
class QListWidgetItem;
class QGroupBox;
class QSpinBox;
class QLabel;
class QCheckBox;
class QPushButton;
#include "scribusapi.h"
#include "scribusstructs.h"
#include "customfdialog.h"
#include "nftwidget.h"
class PrefsManager;
class MarginWidget;
class PageLayouts;
class ScrSpinBox;
class ScComboBox;
#if QT_VERSION >= 0x040300
class QFileDialog;
#else
class CustomFDialog;
#endif
class SCRIBUS_API PageLayoutsWidget : public QListWidget
{
Q_OBJECT
public:
PageLayoutsWidget(QWidget* parent);
~PageLayoutsWidget() {};
void arrangeIcons();
const QSize minimumSizeHint();
int maxX;
int maxY;
};
class SCRIBUS_API NewDoc : public QDialog
{
Q_OBJECT
public:
//! \brief Indexes of the dialog's tabs.
enum {
NewDocumentTab = 0,
NewFromTemplateTab,
OpenExistingTab,
OpenRecentTab
} ActionSelected;
NewDoc( QWidget* parent, const QStringList& recentDocs, bool startUp = false, QString lang = "");
~NewDoc() {};
void createNewDocPage();
void createNewFromTempPage();
void createOpenDocPage();
void createRecentDocPage();
void setSize(QString gr);
QTabWidget* tabWidget;
QFrame* newDocFrame;
PageLayoutsWidget* layoutsView;
QLabel* layoutLabel1;
ScComboBox* firstPage;
QGroupBox* pageSizeGroupBox;
MarginWidget* marginGroup;
QGroupBox* optionsGroupBox;
QLabel* TextLabel1;
QLabel* TextLabel2;
QLabel* TextLabel3;
QLabel* TextLabel4;
QLabel* TextLabel1_2;
QLabel* TextLabel1_3;
QLabel* pageCountLabel;
QLabel* TextLabel2_2;
QLabel* unitOfMeasureLabel;
QComboBox* pageSizeComboBox;
QComboBox* pageOrientationComboBox;
QComboBox* unitOfMeasureComboBox;
QCheckBox* startUpDialog;
QCheckBox* autoTextFrame;
QCheckBox* startDocSetup;
ScrSpinBox* Distance;
QSpinBox* numberOfCols;
QSpinBox* pageCountSpinBox;
ScrSpinBox* widthSpinBox;
ScrSpinBox* heightSpinBox;
QFrame* openDocFrame;
#if QT_VERSION >= 0x040300
QFileDialog *fileDialog;
#else
CustomFDialog *fileDialog;
#endif
QFrame* newFromTempFrame;
nftwidget *nftGui;
QFrame* recentDocFrame;
QListWidget* recentDocListBox;
QPushButton* OKButton;
QPushButton* CancelB;
bool onStartup(void) const { return m_onStartup;}
int tabSelected(void) const { return m_tabSelected;}
QString selectedFile(void) const { return m_selectedFile; }
int unitIndex(void) const { return m_unitIndex;}
QString unitSuffix(void) const { return m_unitSuffix;}
double unitRatio(void) const { return m_unitRatio; }
int orientation(void) const { return m_orientation;}
int precision(void) const { return m_precision;}
int choosenLayout(void) const { return m_choosenLayout;}
double pageWidth(void) const { return m_pageWidth;}
double pageHeight(void) const { return m_pageHeight;}
double distance(void) const { return m_distance;}
double bleedBottom(void) const { return m_bleedBottom;}
double bleedTop(void) const { return m_bleedTop;}
double bleedLeft(void) const { return m_bleedLeft;}
double bleedRight(void) const { return m_bleedRight;}
public slots:
void setHeight(double v);
void setWidth(double v);
void selectItem(uint nr);
void itemSelected(QListWidgetItem* ic);
void handleAutoFrame();
void setDistance(double v);
void setUnit(int u);
void ExitOK();
void setOrientation(int ori);
void setPageSize(const QString &);
void setDocLayout(int layout);
/*! Opens document on doubleclick
\author Petr Vanek <petr@yarpen.cz>
*/
void recentDocListBox_doubleClicked();
void openFile();
protected:
QVBoxLayout* TabbedNewDocLayout;
QHBoxLayout* Layout1;
QGridLayout* NewDocLayout;
QGridLayout* pageSizeGroupBoxLayout;
QFormLayout* optionsGroupBoxLayout;
QVBoxLayout* openDocLayout;
QVBoxLayout* recentDocLayout;
QVBoxLayout *verticalLayout;
PrefsManager* prefsManager;
QStringList recentDocList;
double m_unitRatio;
int m_orientation;
int m_precision;
int m_choosenLayout;
double m_pageWidth;
double m_pageHeight;
double m_distance;
QString m_unitSuffix;
QString m_selectedFile;
int m_unitIndex;
int m_tabSelected;
bool m_onStartup;
double m_bleedBottom;
double m_bleedTop;
double m_bleedLeft;
double m_bleedRight;
};
#endif // NEWDOC_H
|