Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 167 → Rev 168

/trunk/Scribus/scribus/pageback.h
26,7 → 26,8
* \author Franz Schmid
*/
 
class PageBack : public QWidget {
class PageBack : public QWidget
{
public:
PageBack(QWidget *pa);
~PageBack() {};
/trunk/Scribus/scribus/fpointarray.h
43,10 → 43,8
void translate( double dx, double dy );
FPoint WidthHeight();
void map(QWMatrix m);
FPointArray &operator=( const FPointArray &a )
{ return (FPointArray&)assign( a ); }
FPointArray copy() const
{ FPointArray tmp; return *((FPointArray*)&tmp.duplicate(*this)); }
FPointArray &operator=( const FPointArray &a ) { return (FPointArray&)assign( a ); }
FPointArray copy() const { FPointArray tmp; return *((FPointArray*)&tmp.duplicate(*this)); }
void setMarker();
void addPoint(double x, double y);
void addPoint(FPoint p);
/trunk/Scribus/scribus/druck.h
30,9 → 30,9
public:
AdvOptions(QWidget* parent, bool Hm, bool Vm, bool Ic);
~AdvOptions() {};
QCheckBox* MirrorH;
QCheckBox* MirrorV;
QCheckBox* UseICC;
QCheckBox* MirrorH;
QCheckBox* MirrorV;
QCheckBox* UseICC;
QPushButton* PushButton1;
QPushButton* PushButton2;
 
48,28 → 48,28
public:
Druck( QWidget* parent, QString PDatei, QString PDev, QString PCom );
~Druck() {};
QString printerName();
QString outputFileName();
QString printerName();
QString outputFileName();
QCheckBox* OtherCom;
QLabel* OthText;
QLineEdit* Command;
bool outputToFile();
int fromPage();
int toPage();
int numCopies();
int pageOrder();
bool outputSeparations();
QString separationName();
QString PrinterOpts;
bool color();
bool outputToFile();
int fromPage();
int toPage();
int numCopies();
int pageOrder();
bool outputSeparations();
QString separationName();
QString PrinterOpts;
bool color();
bool MirrorH;
bool MirrorV;
bool ICCinUse;
 
public slots:
void setMinMax(int min, int max);
void setFromTo(int min, int max);
void setMinMax(int min, int max);
void setFromTo(int min, int max);
protected:
QVBoxLayout* DruckLayout;
QGridLayout* DruckerLayout;
85,14 → 85,14
QHBoxLayout* LayoutCC;
 
private slots:
void SetAdvOptions();
void SetOptions();
void SelPrinter(const QString& prn);
void SelRange(bool e);
void SelMode(bool e);
void SelFile();
void SelComm();
void SetAdvOptions();
void SetOptions();
void SelPrinter(const QString& prn);
void SelRange(bool e);
void SelMode(bool e);
void SelFile();
void SelComm();
private:
QGroupBox* Drucker;
QComboBox* PrintDest;
122,8 → 122,8
QComboBox* SepArt;
QPushButton* OKButton_2;
QPushButton* OKButton;
QPushButton* OptButton;
QPushButton* AdvOptButton;
QPushButton* OptButton;
QPushButton* AdvOptButton;
QString Geraet;
bool ToFile;
bool ToSeparation;
/trunk/Scribus/scribus/werktoolb.h
29,28 → 29,28
*@author Franz Schmid
*/
 
class WerkToolB : public QToolBar {
class WerkToolB : public QToolBar
{
Q_OBJECT
 
Q_OBJECT
 
public:
WerkToolB(QMainWindow* parent);
~WerkToolB() {};
QToolButton* Select;
QToolButton* Rotiere;
QToolButton* Rotiere;
QToolButton* Textedit;
QToolButton* Textedit2;
QToolButton* Zoom;
QToolButton* Texte;
QToolButton* BildB;
QToolButton* Linien;
Autoforms* Rechteck;
QToolButton* Zoom;
QToolButton* Texte;
QToolButton* BildB;
QToolButton* Linien;
Autoforms* Rechteck;
QToolButton* Polygon;
QToolButton* PolyLin;
QPopupMenu* PolyM;
QPopupMenu* LinM;
QToolButton* KetteEin;
QToolButton* KetteAus;
QToolButton* KetteEin;
QToolButton* KetteAus;
bool Sichtbar;
int SubMode;
int ValCount;
71,16 → 71,16
void NewMode(int);
};
 
class WerkToolBP : public QToolBar {
class WerkToolBP : public QToolBar
{
Q_OBJECT
 
Q_OBJECT
 
public:
WerkToolBP(QMainWindow* parent);
~WerkToolBP() {};
QToolButton* PDFTool;
QToolButton* PDFTool;
QPopupMenu* PDFM;
QToolButton* PDFaTool;
QToolButton* PDFaTool;
QPopupMenu* PDFA;
bool Sichtbar;
int PDFwerkz;
/trunk/Scribus/scribus/mpalette.h
29,6 → 29,7
#include "cpalette.h"
#include "spalette.h"
#include "fontcombo.h"
#include "styleselect.h"
 
class Autoforms;
extern bool CMSavail;
38,28 → 39,29
Q_OBJECT
 
public:
NameWidget(QWidget* parent);
~NameWidget() {};
NameWidget(QWidget* parent);
~NameWidget() {};
 
signals:
void Leaved();
void Leaved();
 
protected:
virtual void focusOutEvent(QFocusEvent *);
};
 
class Mpalette : public QDialog {
Q_OBJECT
class Mpalette : public QDialog
{
Q_OBJECT
 
public:
Mpalette(QWidget* parent, preV *Prefs);
~Mpalette() {};
void closeEvent(QCloseEvent *ce);
void ToggleFlow();
void updateCList();
void updateCmsList();
void ShowCMS();
void fillLangCombo(QMap<QString,QString> Sprachen);
 
void ToggleFlow();
void updateCList();
void updateCmsList();
void ShowCMS();
void fillLangCombo(QMap<QString,QString> Sprachen);
QButtonGroup* buttonGroup5;
QToolButton* SShape;
QToolButton* SText;
78,7 → 80,7
QWidget* page_5;
Cpalette *Cpal;
QGroupBox* NameGroup;
NameWidget* NameEdit;
NameWidget* NameEdit;
QGroupBox* GeoGroup;
QLabel* Text1;
QLabel* Text2;
129,7 → 131,7
QLabel* Text14b;
QLabel* Text15;
QLabel* Text16;
QSpinBox* DCol;
QSpinBox* DCol;
MSpinBox* DGap;
MSpinBox* DTop;
MSpinBox* DBottom;
138,16 → 140,10
QLabel* Text17;
MSpinBox* DRight;
QCheckBox* NormText2;
FontCombo* Fonts;
FontCombo* Fonts;
MSpinBox* Size;
QToolButton* Revert;
QToolButton* Underline;
QButtonGroup* ButtonGroup1;
QToolButton* Subs;
QToolButton* Supers;
QToolButton* Kapital;
QToolButton* Strike;
QToolButton* Outlined;
StyleSelect* SeStyle;
QButtonGroup* GroupAlign;
QToolButton* TextL;
QToolButton* TextR;
189,17 → 185,17
QComboBox* LEndStyle;
QLabel* Text8;
LineCombo* LStyle;
QListBox* StyledLine;
QListBox* StyledLine;
QLabel* ScaleTxt;
QSpinBox* ChScale;
QLabel* StrokeIcon;
QComboBox* TxStroke;
QToolButton *PM1;
QPopupMenu *TxStrokeSh;
QToolButton *PM1;
QPopupMenu *TxStrokeSh;
QLabel* FillIcon;
QComboBox* TxFill;
QToolButton *PM2;
QPopupMenu *TxFillSh;
QToolButton *PM2;
QPopupMenu *TxFillSh;
QLabel* SprachT;
QComboBox* LangCombo;
QGroupBox* GroupBoxCM;
209,86 → 205,87
ScribusDoc *doc;
double Umrech;
bool LMode;
double RoVal;
double RoVal;
 
public slots:
void SetDoc(ScribusDoc *d);
void UnsetDoc();
void NewSel(int nr);
void SetCurItem(PageItem *i);
void UnitChange();
void SetDoc(ScribusDoc *d);
void UnsetDoc();
void NewSel(int nr);
void SetCurItem(PageItem *i);
void UnitChange();
void setXY(double x, double y);
void setBH(double x, double y);
void setR(double r);
void setRR(double r);
void setCols(int r, double g);
void setLsp(double r);
void setSize(int s);
void setExtra(double e);
void ChangeScaling();
void setLvalue(double scx, double scy, double x, double y);
void setSvalue(double s);
void setLIvalue(PenStyle p, PenCapStyle pc, PenJoinStyle pj);
void setStil(int s);
void setAli(int e);
void setTScale(int e);
void NewTScale();
void SetLineFormats(ScribusDoc *dd);
void SetSTline(QListBoxItem *c);
void NewTFont(int);
void newTxtFill();
void newTxtStroke();
void setActShade(int id);
void setActFarben(QString p, QString b, int shp, int shb);
void ManageTabs();
void setR(double r);
void setRR(double r);
void setCols(int r, double g);
void setLsp(double r);
void setSize(int s);
void setExtra(double e);
void ChangeScaling();
void setLvalue(double scx, double scy, double x, double y);
void setSvalue(double s);
void setLIvalue(PenStyle p, PenCapStyle pc, PenJoinStyle pj);
void setStil(int s);
void setAli(int e);
void setTScale(int e);
void NewTScale();
void SetLineFormats(ScribusDoc *dd);
void SetSTline(QListBoxItem *c);
void NewTFont(int);
void newTxtFill();
void newTxtStroke();
void setActShade(int id);
void setActFarben(QString p, QString b, int shp, int shb);
void ManageTabs();
private slots:
void SelTab(int t);
void NewX();
void NewY();
void NewW();
void NewH();
void NewR();
void NewRR();
void NewLsp();
void NewCols();
void NewGap();
void NewSize();
void NewExtra();
void DoFlipH();
void DoFlipV();
void ToggleKette();
void HChange();
void VChange();
void NewLocalXY();
void NewLocalSC();
void NewLS();
void NewLSty();
void NewLJoin();
void NewLEnd();
void NewAli();
void setTypeStyle();
void NewLMode();
void DoLower();
void DoRaise();
void DoFront();
void DoBack();
void NewRotMode(int m);
void DoFlow();
void DoFlow2();
void MakeIrre(int f, int c, double *vals);
void EditSh();
void NewTDist();
void DoRevert();
void handleLock();
void handlePrint();
void handlePathLine();
void handlePathDist();
void handlePathOffs();
void ChProf(const QString& prn);
void ChIntent();
void NewName();
void NewLanguage();
 
void SelTab(int t);
void NewX();
void NewY();
void NewW();
void NewH();
void NewR();
void NewRR();
void NewLsp();
void NewCols();
void NewGap();
void NewSize();
void NewExtra();
void DoFlipH();
void DoFlipV();
void ToggleKette();
void HChange();
void VChange();
void NewLocalXY();
void NewLocalSC();
void NewLS();
void NewLSty();
void NewLJoin();
void NewLEnd();
void NewAli();
void setTypeStyle(int s);
void NewLMode();
void DoLower();
void DoRaise();
void DoFront();
void DoBack();
void NewRotMode(int m);
void DoFlow();
void DoFlow2();
void MakeIrre(int f, int c, double *vals);
void EditSh();
void NewTDist();
void DoRevert();
void handleLock();
void handlePrint();
void handlePathLine();
void handlePathDist();
void handlePathOffs();
void ChProf(const QString& prn);
void ChIntent();
void NewName();
void NewLanguage();
signals:
void Schliessen();
332,7 → 329,6
QHBoxLayout* ShapeGroupLayout;
QGridLayout* DistanceLayout;
QGridLayout* DistanceLayout2;
QHBoxLayout* ButtonGroup1Layout;
QGridLayout* GroupAlignLayout;
QGridLayout* GroupBox3Layout;
QVBoxLayout* GroupBox3aLayout;
/trunk/Scribus/scribus/edit1format.h
20,7 → 20,8
Q_OBJECT
 
public:
EditStyle( QWidget* parent, struct StVorL *vor, QValueList<StVorL> v, bool neu, preV *Prefs, double au, int dEin);
EditStyle( QWidget* parent, struct StVorL *vor, QValueList<StVorL> v, bool neu, preV *Prefs,
double au, int dEin);
~EditStyle() {};
 
QLabel* TextLabel1;
58,14 → 59,14
QValueList<StVorL> allV;
QString OldName;
bool IsNew;
double AutoVal;
int DocsEin;
double AutoVal;
int DocsEin;
 
private slots:
void Verlassen();
void FontChange();
void ManageTabs();
void ManageDrops();
void Verlassen();
void FontChange();
void ManageTabs();
void ManageDrops();
 
protected:
QHBoxLayout* Layout17;
/trunk/Scribus/scribus/dcolor.h
24,6 → 24,7
DelColor(QWidget* parent, CListe farben, QString Fnam, bool HDoc );
~DelColor() {};
QString EFarbe;
 
private:
QLabel* TextLabel1;
QPushButton* PushButton2;
40,7 → 41,6
 
private slots:
virtual void ReplaceColor(int);
 
};
 
#endif // DELCOLOR_H
/trunk/Scribus/scribus/helpbrowser.h
29,10 → 29,11
QToolButton* BackB;
QToolButton* ForwB;
QTextBrowser* Anzeige;
QPopupMenu* hist;
struct histd { QString Url;
QString Title;
};
QPopupMenu* hist;
struct histd {
QString Url;
QString Title;
};
QMap<int, histd> mHistory;
 
public slots:
/trunk/Scribus/scribus/colorchart.h
42,6 → 42,7
int Xp;
int Yp;
QPixmap pmx;
 
signals:
void ColorVal(int h, int s, bool ende);
};
/trunk/Scribus/scribus/linecombo.h
25,7 → 25,8
*@author Franz Schmid
*/
 
class LineCombo : public QComboBox {
class LineCombo : public QComboBox
{
public:
LineCombo(QWidget* pa);
~LineCombo() {};
/trunk/Scribus/scribus/picstatus.h
41,7 → 41,7
QHBoxLayout* Layout2;
 
signals:
void GotoSeite(int);
void GotoSeite(int);
};
 
#endif // PICSTATUS_H
/trunk/Scribus/scribus/vruler.h
26,8 → 26,10
*@author Franz Schmid
*/
 
class Vruler : public QWidget {
Q_OBJECT
class Vruler : public QWidget
{
Q_OBJECT
 
public:
Vruler(QScrollView *pa, ScribusDoc *doc);
~Vruler() {};
41,10 → 43,11
bool Mpressed;
private: // Private attributes
/** Zeichensatz des Lineals */
ScribusDoc *doku;
ScribusDoc *doku;
 
public slots: // Public slots
/** Zeichnet den Pfeil */
void Draw(int wo);
void Draw(int wo);
};
 
#endif
/trunk/Scribus/scribus/annota.h
31,7 → 31,7
public:
Annota(QWidget* parent, PageItem *it, int Seite, int b, int h, CListe Farben, ScribusView* vie);
~Annota() {};
QWidgetStack* Fram;
QWidgetStack* Fram;
QLabel* TextLabel1;
QComboBox* ComboBox1;
QGroupBox* GroupBox1;
38,8 → 38,8
QLabel* TextLabel3;
QLabel* TextLabel4;
QLabel* TextLabel5;
QLineEdit* Destfile;
QPushButton* ChFile;
QLineEdit* Destfile;
QPushButton* ChFile;
Navigator* Pg;
QSpinBox* SpinBox1;
QSpinBox* SpinBox2;
53,15 → 53,15
int Hoehe;
int OriBreite;
int OriHoehe;
int MaxSeite;
int MaxSeite;
 
public slots:
void SetCo(double x, double y);
void SetPg(int v);
void SetCross();
void SetVals();
void SetZiel(int i);
void GetFile();
void SetCo(double x, double y);
void SetPg(int v);
void SetCross();
void SetVals();
void SetZiel(int i);
void GetFile();
 
protected:
QVBoxLayout* AnnotLayout;
/trunk/Scribus/scribus/docinfo.h
18,7 → 18,6
 
class DocInfos : public QDialog
{
 
public:
DocInfos( QWidget* parent, QString Autor, QString Titel, QString Des, QString keyW );
~DocInfos() {};
33,6 → 32,7
QMultiLineEdit* MultiLineEdit2;
QPushButton* Cancel;
QPushButton* OK;
 
protected:
QVBoxLayout* DocInfosLayout;
QGridLayout* Layout1;
/trunk/Scribus/scribus/editformats.h
27,16 → 27,16
int sFnumber;
QValueList<StVorL> TempVorl;
preV *fon;
ScribusDoc *Docu;
ScribusDoc *Docu;
void UpdateFList();
 
public slots:
void selFormat(QListBoxItem *c);
void editFormat();
void neuesFormat();
void dupFormat();
void deleteFormat();
void loadStyles();
void selFormat(QListBoxItem *c);
void editFormat();
void neuesFormat();
void dupFormat();
void deleteFormat();
void loadStyles();
 
protected:
QHBoxLayout* StilFormateLayout;
/trunk/Scribus/scribus/seiten.h
37,10 → 37,10
class SeItem : public QTableItem
{
public:
SeItem(QTable* parent, QString text, QPixmap Pix, bool ss);
SeItem(QTable* parent, QString text, QPixmap Pix, bool ss);
~SeItem() {};
virtual void paint(QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected);
bool Side;
virtual void paint(QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected);
bool Side;
};
 
class SeList : public QListBox
51,9 → 51,9
SeList(QWidget* parent);
~SeList() {};
QPoint Mpos;
QListBoxItem *CurItem;
QListBoxItem *CurItem;
bool Mpressed;
bool Thumb;
bool Thumb;
 
private slots:
void ToggleTh();
74,33 → 74,33
public:
SeView(QWidget* parent);
~SeView() {};
void ClearPix();
int GetPage(int r, int c);
void ClearPix();
int GetPage(int r, int c);
QPoint Mpos;
bool Mpressed;
bool Doppel;
bool Links;
bool Namen;
int MaxC;
QPixmap pix;
bool Doppel;
bool Links;
bool Namen;
int MaxC;
QPixmap pix;
 
public slots:
void ToggleNam();
 
signals:
void UseTemp(QString, int);
void NewPage(int, QString);
void MovePage(int, int);
void Click(int, int, int);
void UseTemp(QString, int);
void NewPage(int, QString);
void MovePage(int, int);
void Click(int, int, int);
 
protected:
virtual void contentsDropEvent(QDropEvent * e);
virtual void contentsDragEnterEvent(QDragEnterEvent *e);
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e);
virtual void contentsDragMoveEvent(QDragMoveEvent *e);
virtual void contentsMouseReleaseEvent(QMouseEvent *m);
virtual void contentsMousePressEvent(QMouseEvent* e);
virtual void contentsMouseMoveEvent(QMouseEvent* e);
virtual void contentsDropEvent(QDropEvent * e);
virtual void contentsDragEnterEvent(QDragEnterEvent *e);
virtual void contentsDragLeaveEvent(QDragLeaveEvent *e);
virtual void contentsDragMoveEvent(QDragMoveEvent *e);
virtual void contentsMouseReleaseEvent(QMouseEvent *m);
virtual void contentsMousePressEvent(QMouseEvent* e);
virtual void contentsMouseMoveEvent(QMouseEvent* e);
};
 
class TrashBin : public QLabel
108,17 → 108,17
Q_OBJECT
 
public:
TrashBin( QWidget * parent );
~TrashBin() {};
QPixmap Normal;
QPixmap Offen;
void dragEnterEvent( QDragEnterEvent *e );
void dragLeaveEvent( QDragLeaveEvent * );
void dropEvent( QDropEvent * e );
TrashBin( QWidget * parent );
~TrashBin() {};
QPixmap Normal;
QPixmap Offen;
void dragEnterEvent( QDragEnterEvent *e );
void dragLeaveEvent( QDragLeaveEvent * );
void dropEvent( QDropEvent * e );
 
signals:
void DelPage(int);
void DelMaster(QString);
void DelPage(int);
void DelMaster(QString);
};
 
class SeitenPal : public QDialog
132,34 → 132,34
 
QSplitter* Splitter1;
TrashBin* Trash;
QLabel* TextLabel1;
QLabel* TextLabel2;
QLabel* TextLabel1;
QLabel* TextLabel2;
SeList* TemplList;
SeView* PageView;
QCheckBox* DS;
QCheckBox* LP;
ScribusView *Vie;
QPixmap pix;
QCheckBox* DS;
QCheckBox* LP;
ScribusView *Vie;
QPixmap pix;
 
public slots:
void SetView(ScribusView *view);
void DelMPage(QString tmp);
void MPage(int r, int c);
void GotoPage(int r, int c, int b);
void DisablePal();
void EnablePal();
void HandleDS();
void HandleLP();
void RebuildTemp();
void RebuildPage();
void Rebuild();
void selTemplate();
QPixmap CreateIcon(int nr, QPixmap ret);
void SetView(ScribusView *view);
void DelMPage(QString tmp);
void MPage(int r, int c);
void GotoPage(int r, int c, int b);
void DisablePal();
void EnablePal();
void HandleDS();
void HandleLP();
void RebuildTemp();
void RebuildPage();
void Rebuild();
void selTemplate();
QPixmap CreateIcon(int nr, QPixmap ret);
 
signals:
void EditTemp(QString);
void GotoSeite(int);
void Schliessen();
void EditTemp(QString);
void GotoSeite(int);
void Schliessen();
 
protected:
QVBoxLayout* SeitenPalLayout;
/trunk/Scribus/scribus/linkbutton.h
24,7 → 24,8
*@author Franz Schmid
*/
 
class LinkButton : public QToolButton {
class LinkButton : public QToolButton
{
public:
LinkButton(QWidget *pa);
~LinkButton() {};
/trunk/Scribus/scribus/pageitem.h
35,26 → 35,28
class PageItem : public QObject {
 
public:
PageItem(Page* pa, int art, double x, double y, double w, double h, double w2, QString fill, QString outline, ScribusDoc *doc);
PageItem(Page* pa, int art, double x, double y, double w, double h, double w2, QString fill,
QString outline, ScribusDoc *doc);
~PageItem() {};
struct ZZ { QString Zeich;
QString Farb;
QString Farb2;
int shade;
int shade2;
QString ZFo;
double xco;
double yco;
bool Sele;
int Siz;
int Style;
double wide;
double kern;
int scale;
};
struct ZZ {
QString Zeich;
QString Farb;
QString Farb2;
int shade;
int shade2;
QString ZFo;
double xco;
double yco;
bool Sele;
int Siz;
int Style;
double wide;
double kern;
int scale;
};
/** Zeichnet das Item */
void paintObj(QRect e=QRect(), QPixmap *ppX = 0);
void DrawObj(ScPainter *p, QRect e);
void paintObj(QRect e=QRect(), QPixmap *ppX = 0);
void DrawObj(ScPainter *p, QRect e);
double SetZeichAttr(struct Pti *hl, int *chs, QString *chx);
void SetFarbe(QColor *tmp, QString farbe, int shad);
void DrawZeichenS(ScPainter *p, struct ZZ *hl);
64,23 → 66,23
bool Locked;
bool Reverse;
/** X-Position auf der Seite */
double Xpos;
double Xpos;
/** Y-Position auf der Seite */
double Ypos;
double Ypos;
/** Breite des Elements */
double Width;
double Width;
/** Hoehe des Elements */
double Height;
double Height;
/** Eckrundung von Rechtecken */
double RadRect;
double RadRect;
/** Art des Items */
int PType;
int PType;
/** Winkel um den das Item gedreht wird */
double Rot;
double Rot;
/** Enthaelt das uebergeordnete Objekt */
QWidget *Parent;
QWidget *Parent;
/** Enthaelt das Dokument */
ScribusDoc *Doc;
ScribusDoc *Doc;
QString GrColor;
QString GrColor2;
int GrShade;
87,13 → 89,13
int GrShade2;
int GrType;
/** Fuellfarbe */
QString Pcolor;
/** Abstufung fuer Füllfarbe */
int Shade;
QString Pcolor;
/** Abstufung fuer Fllfarbe */
int Shade;
/** Zeichenfarbe fuer Elemente */
QString Pcolor2;
QString Pcolor2;
/** Abstufung fuer Zeichenfarbe */
int Shade2;
int Shade2;
QString TxtStroke;
QString TxtFill;
int ShTxtStroke;
103,89 → 105,89
int Cols;
double ColGap;
/** Strichstaerke */
double Pwidth;
double Pwidth;
/** Linienart */
PenStyle PLineArt;
PenCapStyle PLineEnd;
PenJoinStyle PLineJoin;
PenStyle PLineArt;
PenCapStyle PLineEnd;
PenJoinStyle PLineJoin;
QString NamedLStyle;
/** Element selektiert Ja/Nein */
bool Select;
bool Select;
/** Definiert die Clipping-Region des Elements; */
QPointArray Clip;
QPointArray Clip;
FPointArray PoLine;
QValueList<uint> Segments;
bool PoShow;
double BaseOffs;
bool ClipEdited;
int FrameType;
bool ClipEdited;
int FrameType;
/** Interne Item-Nummer */
uint ItemNr;
uint ItemNr;
/** Hat Element Rahmen? */
bool Frame;
bool Frame;
/** Seite zu der das Element gehoert */
Page *OwnPage;
Page *OwnPage;
/** Darzustellendes Bild */
QImage pixm;
QImage pixm;
/** Dateiname des Bildes */
QString Pfile;
QString Pfile2;
QString Pfile3;
QString IProfile;
bool UseEmbedded;
QString EmProfile;
int IRender;
QString Pfile;
QString Pfile2;
QString Pfile3;
QString IProfile;
bool UseEmbedded;
QString EmProfile;
int IRender;
/** Darstellungsart Bild/Titel */
bool PicArt;
bool PicArt;
/** Bild verfuegbar */
bool PicAvail;
bool PicAvail;
/** Lokales Scaling x*/
double LocalScX;
double LocalScX;
double LocalViewX;
/** Lokales Scaling y*/
double LocalScY;
double LocalScY;
double LocalViewY;
/** Lokales X */
double LocalX;
double LocalX;
/** Lokales Y */
double LocalY;
double LocalY;
int OrigW;
int OrigH;
double dpiX;
double dpiY;
/** Anzahl horizontaler Spiegelungen */
int flippedH;
int flippedH;
/** Anzahl vertikaler Spiegelungen */
int flippedV;
int flippedV;
/** BoundigBox-X */
double BBoxX;
double BBoxX;
/** BoundingBox-H */
double BBoxH;
double BBoxH;
/** Extra Abstand vom Rand */
double Extra;
double TExtra;
double BExtra;
double RExtra;
double Extra;
double TExtra;
double BExtra;
double RExtra;
/** Linespacing */
double LineSp;
double LineSp;
/** Zeichen X-Position */
double CurX;
double CurX;
/** Zeichen Y-Position */
double CurY;
double CurY;
/** Cursorposition */
int CPos;
int CPos;
/** Text des Elements */
QPtrList<Pti> Ptext;
QPtrList<Pti> Ptext;
/** Flag ob Element gedruckt wird */
bool isPrintable;
bool isPrintable;
/** Flag fuer PDF-Bookmark */
bool isBookmark;
int BMnr;
bool isBookmark;
int BMnr;
/** Flag fuer PDF-Annotation */
bool isAnnotation;
int AnType;
bool isAnnotation;
int AnType;
int AnActType;
QString AnAction;
QString AnAction;
QString An_E_act;
QString An_X_act;
QString An_D_act;
205,7 → 207,7
int AnBsty;
int AnBwid;
int AnFeed;
int AnZiel;
int AnZiel;
int AnFlag;
int AnMaxChar;
int AnVis;
219,40 → 221,40
int AnScaleW;
int AnFormat;
/** Flag fuer neuzeichnen im EditMode */
bool Dirty;
bool Dirty;
/** Item Font */
QString IFont;
QString IFont;
/** Item Fontgroesse */
int ISize;
int ISize;
/** Flag fuer Auswahl */
bool HasSel;
bool HasSel;
/** Flag fuer Textfluss */
bool Textflow;
bool Textflow2;
bool FrameOnly;
PageItem *BackBox;
PageItem *NextBox;
int NextIt;
int NextPg;
bool Tinput;
bool isAutoText;
int Ausrich;
uint MaxChars;
bool Redrawn;
double ExtraV;
bool isRaster;
double OldB;
double OldH;
double OldB2;
double OldH2;
bool Sizing;
bool toPixmap;
bool Textflow;
bool Textflow2;
bool FrameOnly;
PageItem *BackBox;
PageItem *NextBox;
int NextIt;
int NextPg;
bool Tinput;
bool isAutoText;
int Ausrich;
uint MaxChars;
bool Redrawn;
double ExtraV;
bool isRaster;
double OldB;
double OldH;
double OldB2;
double OldH2;
bool Sizing;
bool toPixmap;
int LayerNr;
bool ScaleType;
bool AspectRatio;
double Transparency;
double TranspStroke;
QValueStack<int> Groups;
QValueStack<int> Groups;
bool InvPict;
QValueList<double> DashValues;
QValueList<double> TabValues;
/trunk/Scribus/scribus/fpoint.h
38,6 → 38,7
bool operator!=(const FPoint &rhs);
FPoint &operator+=( const FPoint &p );
FPoint &operator-=( const FPoint &p );
 
private:
double xp;
double yp;
/trunk/Scribus/scribus/picsearch.h
29,9 → 29,9
QString Bild;
 
private slots:
void ShowPrev();
void selBild(QListBoxItem *c);
void GenPreview();
void ShowPrev();
void selBild(QListBoxItem *c);
void GenPreview();
protected:
QVBoxLayout* PicSearchLayout;
/trunk/Scribus/scribus/tabmanager.h
32,7 → 32,7
TabManager( QWidget* parent, int dEin, QValueList<double> inTab);
~TabManager() {};
void UnitChange(int dEin);
void UpdateTabL();
void UpdateTabL();
 
QListBox* TabList;
QLabel* Text1;
44,8 → 44,8
QPushButton* DelButton;
QPushButton* AddButton;
QValueList<double> tmpTab;
int selTab;
int Einheit;
int selTab;
int Einheit;
 
public slots:
void DelTab();
60,7 → 60,6
QVBoxLayout* layout8;
QGridLayout* layout7;
QGridLayout* layout10;
 
};
 
#endif // TABMANAGER_H
/trunk/Scribus/scribus/page.h
39,23 → 39,23
Page(QWidget *pa, int x, int y, int b, int h, ScribusDoc *doc, QScrollView *view);
~Page() {};
/** Zeichnet eine Ellipse */
int PaintEllipse(double x, double y, double b, double h, double w, QString fill, QString outline);
int PaintEllipse(double x, double y, double b, double h, double w, QString fill, QString outline);
/** Zeichnet eine Bildbox */
int PaintPict(double x, double y, double b, double h);
int PaintPict(double x, double y, double b, double h);
/** Zeichnet ein Rechteck */
int PaintRect(double x, double y, double b, double h, double w, QString fill, QString outline);
int PaintRect(double x, double y, double b, double h, double w, QString fill, QString outline);
/** Zeichnet eine Linie */
int PaintLine(double x, double y, double b, double h, double w, QString outline);
int PaintLine(double x, double y, double b, double h, double w, QString outline);
/** Zeichnet eine Textbox */
int PaintText(double x, double y, double b, double h, double w, QString outline);
int PaintText(double x, double y, double b, double h, double w, QString outline);
/** Zeichnet ein Polygon */
int PaintPoly(double x, double y, double b, double h, double w, QString fill, QString outline);
int PaintPolyLine(double x, double y, double b, double h, double w, QString fill, QString outline);
/** Laedt ein Bild */
void LoadPict(QString fn, int ItNr);
void insertColor(QString nam, double c, double m, double y, double k);
void DrawPageMarks(ScPainter *p, QRect rd);
void DrawPageItems(ScPainter *painter, QRect rd);
void LoadPict(QString fn, int ItNr);
void insertColor(QString nam, double c, double m, double y, double k);
void DrawPageMarks(ScPainter *p, QRect rd);
void DrawPageItems(ScPainter *painter, QRect rd);
void paintEvent(QPaintEvent *e);
void setGroupRect();
void getGroupRect(double *x, double *y, double *w, double *h);
135,39 → 135,39
void AdjItemGradient(PageItem *b, int typ, QString col1, int sh1, QString col2, int sh2);
QRegion ViewReg();
/** Liste der Elemente */
QPtrList<PageItem> Items;
QPtrList<PageItem> Items;
/** Dokument zu dem die Seite gehoert */
ScribusDoc *doku;
ScribusDoc *doku;
/** Nummer der Seite */
uint PageNr;
uint PageNr;
/** Name der Seite, wenn Musterseite */
QString PageNam;
QString MPageNam;
QScrollView *Anz;
QString PageNam;
QString MPageNam;
QScrollView *Anz;
QPopupMenu *pmen3;
Margs Margins;
int Mxp;
int Myp;
bool Mpressed;
bool mCG;
double oldW;
QPtrList<PageItem> SelItem;
Margs Margins;
int Mxp;
int Myp;
bool Mpressed;
bool mCG;
double oldW;
QPtrList<PageItem> SelItem;
QValueList<int> SelNode;
int HowTo;
int ClRe;
int ClRe2;
int HowTo;
int ClRe;
int ClRe2;
int SegP1;
int SegP2;
bool CursVis;
int oldCp;
int Dxp;
int Dyp;
bool Imoved;
int SeRx;
int SeRy;
bool HaveSelRect;
bool LeftPg;
bool Magnify;
bool CursVis;
int oldCp;
int Dxp;
int Dyp;
bool Imoved;
int SeRx;
int SeRy;
bool HaveSelRect;
bool LeftPg;
bool Magnify;
bool FirstPoly;
bool EdPoints;
bool MoveSym;
245,63 → 245,63
 
signals: // Signals
/** Mausposition X */
void Hrule(int);
void Hrule(int);
/** Mausposition Y */
void Vrule(int);
void Vrule(int);
/** Seite gewechselt */
void PgCh(int);
void PgCh(int);
/** Element gezeichnet */
void PaintingDone();
void PaintingDone();
/** Element ausgewaehlt */
void HaveSel(int);
void HaveSel(int);
/** Seite veraendert */
void DocChanged();
void DocChanged();
/** Position eines Elementes */
void ItemPos(double, double);
void ItemPos(double, double);
/** Breite und Hoehe eines Elementes */
void ItemGeom(double, double);
void ItemRadius(double);
void ItemGeom(double, double);
void ItemRadius(double);
/** Setzt den Drehungswinkel des Elementes */
void SetAngle(double);
void SetAngle(double);
/** Zoomfunktionen */
void ZoomIn();
void ZoomOut();
void ZoomAbs();
void AbsPosi(int, int);
void AbsPosi2(int, int);
void ZoomIn();
void ZoomOut();
void ZoomAbs();
void AbsPosi(int, int);
void AbsPosi2(int, int);
/** Sendet die Linienstaerke an die Masspalette */
void SetSizeValue(double);
void SetSizeValue(double);
/** Sendet die Linienart an die Masspalette */
void SetLineArt(PenStyle, PenCapStyle, PenJoinStyle);
void SetLineArt(PenStyle, PenCapStyle, PenJoinStyle);
/** Sendet die lokalen Bildeigenschaften an die Masspalette */
void SetLocalValues(double, double, double, double);
void SetLocalValues(double, double, double, double);
/** Sendet die Stiftfarbe an die Farbpalette */
void ItemFarben(QString, QString, int, int);
void ItemGradient(QString, QString, int, int, int);
void ItemFarben(QString, QString, int, int);
void ItemGradient(QString, QString, int, int, int);
/** Sendet die Textattribute an die Masspalette */
void ItemTextAttr(double);
void ItemTextAttr(double);
/** Sendet die Schriftart */
void ItemTextFont(QString);
void ItemTextFont(QString);
/** Sendet die Schriftgroesse */
void ItemTextSize(int);
void ItemTextSca(int);
void ItemTextUSval(double);
void ItemTextAbs(int);
void ItemTextSize(int);
void ItemTextSca(int);
void ItemTextUSval(double);
void ItemTextAbs(int);
void ItemTextCols(int, double);
void ItemTextFarben(QString, QString, int, int);
void ItemTextFarben(QString, QString, int, int);
/** Text in Textbox selektiert */
void HasTextSel();
void HasNoTextSel();
void CutItem();
void CopyItem();
void ItemTextStil(int);
void LoadPic();
void HasTextSel();
void HasNoTextSel();
void CutItem();
void CopyItem();
void ItemTextStil(int);
void LoadPic();
void EditText();
void LoadElem(QString, int, int, bool, bool, ScribusDoc *);
void Amode(int);
void LoadElem(QString, int, int, bool, bool, ScribusDoc *);
void Amode(int);
void AnnotProps();
void ToScrap(QString);
void MousePos(double, double);
void MousePos(double, double);
void ClipPo(double, double);
void HavePoint(bool, bool);
void PolyOpen();
/trunk/Scribus/scribus/muster.h
29,7 → 29,7
private:
void updateMList(QString nam);
QListBox* ListBox1;
QPushButton* LoadM;
QPushButton* LoadM;
QPushButton* NewB;
QPushButton* DuplicateB;
QPushButton* DeleteB;
39,17 → 39,17
QString sMuster;
 
private slots:
void ExitEditor();
void DuplTemp();
void DelTemp();
void NewTemp();
void loadMpage();
void selTemplate(QListBoxItem *c);
void ExitEditor();
void DuplTemp();
void DelTemp();
void NewTemp();
void loadMpage();
void selTemplate(QListBoxItem *c);
signals:
void CreateNew(int);
void LoadPage(QString, int, bool);
void Fertig();
void CreateNew(int);
void LoadPage(QString, int, bool);
void Fertig();
protected:
QHBoxLayout* MusterSeitenLayout;
/trunk/Scribus/scribus/reformdoc.h
22,7 → 22,8
Q_OBJECT
 
public:
ReformDoc( QWidget* parent, double t, double l, double r, double b, double Pagebr, double Pageho, bool fp, bool fpe, int Einh );
ReformDoc( QWidget* parent, double t, double l, double r, double b, double Pagebr, double Pageho,
bool fp, bool fpe, int Einh );
~ReformDoc() {};
 
QGroupBox* GroupBox7;
38,9 → 39,9
QLabel* Rechts;
QPushButton* OKButton;
QPushButton* CancelB;
int einheit;
double Breite;
double Hoehe;
int einheit;
double Breite;
double Hoehe;
 
protected:
QVBoxLayout* ReformDocLayout;
50,11 → 51,10
 
protected slots:
virtual void setDS();
virtual void setTop(int v);
virtual void setBottom(int v);
virtual void setLeft(int v);
virtual void setRight(int v);
 
virtual void setTop(int v);
virtual void setBottom(int v);
virtual void setLeft(int v);
virtual void setRight(int v);
};
 
#endif // REFORMDOC_H
/trunk/Scribus/scribus/delpages.h
38,7 → 38,6
public slots:
virtual void FromChanged(int nr);
virtual void ToChanged(int nr);
 
};
 
#endif // DELPAGES_H
/trunk/Scribus/scribus/frameedit.h
27,8 → 27,8
QToolButton* DeleteNode;
QToolButton* AsymMove;
QToolButton* SymMove;
QToolButton* ResNode;
QToolButton* Res1Node;
QToolButton* ResNode;
QToolButton* Res1Node;
QToolButton* PolySplit;
QToolButton* BezierClose;
QToolButton* PolyMirrorH;
41,7 → 41,7
QToolButton* RotateCW;
QToolButton* Expand;
QToolButton* Crop;
QCheckBox* AbsMode;
QCheckBox* AbsMode;
QLabel* TextLabel1;
MSpinBox* YSpin;
QLabel* TextLabel2;
51,36 → 51,36
ScribusDoc *doc;
 
private slots:
void closeEvent(QCloseEvent *);
void EndEdit();
void MoveK();
void AddN();
void DelN();
void MovePoint();
void SetSym();
void SetAsym();
void ResetControl();
void Reset1Control();
void CloseBezier();
void SplitPoly();
void MirrorH();
void MirrorV();
void doRotCCW();
void doRotCW();
void doCrop();
void doExpand();
void ShearR();
void ShearL();
void ShearU();
void ShearD();
void ToggleAbsMode();
void closeEvent(QCloseEvent *);
void EndEdit();
void MoveK();
void AddN();
void DelN();
void MovePoint();
void SetSym();
void SetAsym();
void ResetControl();
void Reset1Control();
void CloseBezier();
void SplitPoly();
void MirrorH();
void MirrorV();
void doRotCCW();
void doRotCW();
void doCrop();
void doExpand();
void ShearR();
void ShearL();
void ShearU();
void ShearD();
void ToggleAbsMode();
 
public slots:
void MoveN();
void SetXY(double x, double y);
void HaveNode(bool have, bool mov);
void IsOpen();
void PolyStatus(int typ, uint size);
void MoveN();
void SetXY(double x, double y);
void HaveNode(bool have, bool mov);
void IsOpen();
void PolyStatus(int typ, uint size);
 
protected:
QVBoxLayout* NodePaletteLayout;
/trunk/Scribus/scribus/cmykfw.h
31,8 → 31,8
public:
CMYKChoose( QWidget* parent, CMYKColor orig, QString name );
~CMYKChoose() {};
virtual void mouseReleaseEvent(QMouseEvent *m);
QColor CMYK2RGB(int c, int m, int y, int k);
virtual void mouseReleaseEvent(QMouseEvent *m);
QColor CMYK2RGB(int c, int m, int y, int k);
QLabel* TextLabel1;
QLabel* Farbname;
QLabel* TextLabel3;
67,14 → 67,15
QPixmap imageN;
CMYKColor Farbe;
bool CMYKmode;
bool Wsave;
bool Wsave;
bool dynamic;
int BlackComp;
 
public slots:
void ToggleSL();
QPixmap SliderPix(int farbe);
QPixmap SliderBlack();
void SelModel(const QString& mod);
void ToggleSL();
QPixmap SliderPix(int farbe);
QPixmap SliderBlack();
void SelModel(const QString& mod);
void setColor();
void setColor2(int h, int s, bool ende);
void setValues();
/trunk/Scribus/scribus/scribusdoc.h
47,379 → 47,390
class Page;
 
/* Struktur fuer Pageitem Text */
struct Pti { QString ch;
double xp;
double yp;
int csize;
QString cfont;
QString ccolor;
QString cstroke;
bool cselect;
double cextra;
int cshade;
int cshade2;
int cstyle;
int cab;
int PtransX;
int PtransY;
int cscale;
double PRot;
};
struct Pti {
QString ch;
double xp;
double yp;
int csize;
QString cfont;
QString ccolor;
QString cstroke;
bool cselect;
double cextra;
int cshade;
int cshade2;
int cstyle;
int cab;
int PtransX;
int PtransY;
int cscale;
double PRot;
};
 
struct CLBuf { int PType;
double Xpos;
double Ypos;
double Width;
double Height;
double RadRect;
int FrameType;
bool ClipEdited;
double Pwidth;
QString Pcolor;
QString Pcolor2;
int Shade;
int Shade2;
QString GrColor;
QString GrColor2;
int GrShade;
int GrShade2;
int GrType;
QString TxtStroke;
QString TxtFill;
int ShTxtStroke;
int ShTxtFill;
int TxtScale;
int TxTStyle;
double Rot;
int PLineArt;
int PLineJoin;
int PLineEnd;
double LineSp;
double ExtraV;
double LocalScX;
double LocalScY;
double LocalX;
double LocalY;
bool PicArt;
int flippedH;
int flippedV;
double BBoxX;
double BBoxH;
bool isPrintable;
bool isBookmark;
int BMnr;
bool isAnnotation;
int AnType;
QString AnAction;
QString An_E_act;
QString An_X_act;
QString An_D_act;
QString An_Fo_act;
QString An_Bl_act;
QString An_K_act;
QString An_F_act;
QString An_V_act;
QString An_C_act;
QString An_Extern;
int AnZiel;
int AnActType;
QString AnName;
QString AnToolTip;
QString AnRollOver;
QString AnDown;
QString AnBColor;
int AnBwid;
int AnBsty;
int AnFeed;
int AnFlag;
int AnMaxChar;
int AnVis;
int AnFont;
int AnChkStil;
int AnFormat;
bool AnIsChk;
bool AnAAact;
bool AnHTML;
bool AnUseIcons;
int AnIPlace;
int AnScaleW;
double Extra;
double TExtra;
double BExtra;
double RExtra;
QString Pfile;
QString Pfile2;
QString Pfile3;
QString IProfile;
QString EmProfile;
int IRender;
bool UseEmbedded;
QString Ptext;
QPointArray Clip;
FPointArray PoLine;
bool PoShow;
double BaseOffs;
bool Textflow;
bool Textflow2;
int Ausrich;
QString IFont;
int ISize;
QValueStack<int> Groups;
int LayerNr;
bool ScaleType;
bool AspectRatio;
bool Locked;
double Transparency;
double TranspStroke;
bool Reverse;
bool InvPict;
QString NamedLStyle;
QString Language;
int Cols;
double ColGap;
QValueList<double> TabValues;
QValueList<double> DashValues;
double DashOffset;
};
struct CLBuf {
int PType;
double Xpos;
double Ypos;
double Width;
double Height;
double RadRect;
int FrameType;
bool ClipEdited;
double Pwidth;
QString Pcolor;
QString Pcolor2;
int Shade;
int Shade2;
QString GrColor;
QString GrColor2;
int GrShade;
int GrShade2;
int GrType;
QString TxtStroke;
QString TxtFill;
int ShTxtStroke;
int ShTxtFill;
int TxtScale;
int TxTStyle;
double Rot;
int PLineArt;
int PLineJoin;
int PLineEnd;
double LineSp;
double ExtraV;
double LocalScX;
double LocalScY;
double LocalX;
double LocalY;
bool PicArt;
int flippedH;
int flippedV;
double BBoxX;
double BBoxH;
bool isPrintable;
bool isBookmark;
int BMnr;
bool isAnnotation;
int AnType;
QString AnAction;
QString An_E_act;
QString An_X_act;
QString An_D_act;
QString An_Fo_act;
QString An_Bl_act;
QString An_K_act;
QString An_F_act;
QString An_V_act;
QString An_C_act;
QString An_Extern;
int AnZiel;
int AnActType;
QString AnName;
QString AnToolTip;
QString AnRollOver;
QString AnDown;
QString AnBColor;
int AnBwid;
int AnBsty;
int AnFeed;
int AnFlag;
int AnMaxChar;
int AnVis;
int AnFont;
int AnChkStil;
int AnFormat;
bool AnIsChk;
bool AnAAact;
bool AnHTML;
bool AnUseIcons;
int AnIPlace;
int AnScaleW;
double Extra;
double TExtra;
double BExtra;
double RExtra;
QString Pfile;
QString Pfile2;
QString Pfile3;
QString IProfile;
QString EmProfile;
int IRender;
bool UseEmbedded;
QString Ptext;
QPointArray Clip;
FPointArray PoLine;
bool PoShow;
double BaseOffs;
bool Textflow;
bool Textflow2;
int Ausrich;
QString IFont;
int ISize;
QValueStack<int> Groups;
int LayerNr;
bool ScaleType;
bool AspectRatio;
bool Locked;
double Transparency;
double TranspStroke;
bool Reverse;
bool InvPict;
QString NamedLStyle;
QString Language;
int Cols;
double ColGap;
QValueList<double> TabValues;
QValueList<double> DashValues;
double DashOffset;
};
 
/** Seitenraender */
struct Margs { double Top;
double Left;
double Right;
double Bottom;
};
struct Margs {
double Top;
double Left;
double Right;
double Bottom;
};
 
struct StVorL { QString Vname;
double LineSpa;
int Ausri;
double Indent;
double First;
double Avor;
double Anach;
QString Font;
int FontSize;
QValueList<double> TabValues;
bool Drop;
int DropLin;
};
struct StVorL {
QString Vname;
double LineSpa;
int Ausri;
double Indent;
double First;
double Avor;
double Anach;
QString Font;
int FontSize;
QValueList<double> TabValues;
bool Drop;
int DropLin;
};
 
struct CMSset {
QString DefaultMonitorProfile;
QString DefaultPrinterProfile;
QString DefaultInputProfile;
QString DefaultInputProfile2;
int ComponentsInput2;
int ComponentsPrinter;
int DefaultIntentMonitor;
int DefaultIntentMonitor2;
int DefaultIntentPrinter;
bool CMSinUse;
bool SoftProofOn;
bool GamutCheck;
bool BlackPoint;
} ;
QString DefaultMonitorProfile;
QString DefaultPrinterProfile;
QString DefaultInputProfile;
QString DefaultInputProfile2;
int ComponentsInput2;
int ComponentsPrinter;
int DefaultIntentMonitor;
int DefaultIntentMonitor2;
int DefaultIntentPrinter;
bool CMSinUse;
bool SoftProofOn;
bool GamutCheck;
bool BlackPoint;
} ;
 
struct UndoData {
PageItem* Item;
uint PageNr;
uint ItemNr;
double Xpos;
double Ypos;
double Width;
double Height;
double Rot;
double Gx;
double Gy;
double Gw;
double Gh;
int UnCode;
};
PageItem* Item;
uint PageNr;
uint ItemNr;
double Xpos;
double Ypos;
double Width;
double Height;
double Rot;
double Gx;
double Gy;
double Gw;
double Gh;
int UnCode;
};
 
/** Definition der Farbenlisten */
typedef QMap<QString,CMYKColor> CListe;
typedef QMap<QString,QString> ProfilesL;
 
struct singleLine { double Width;
int Dash;
int LineEnd;
int LineJoin;
QString Color;
int Shade;
};
struct singleLine {
double Width;
int Dash;
int LineEnd;
int LineJoin;
QString Color;
int Shade;
};
typedef QValueVector<singleLine> multiLine;
 
struct Layer { int LNr;
int Level;
QString Name;
bool Sichtbar;
bool Drucken;
};
struct Layer {
int LNr;
int Level;
QString Name;
bool Sichtbar;
bool Drucken;
};
 
struct PreSet { int EffektLen;
int AnzeigeLen;
int Effekt;
int Dm;
int M;
int Di;
};
struct PreSet {
int EffektLen;
int AnzeigeLen;
int Effekt;
int Dm;
int M;
int Di;
};
 
struct PDFOpt { bool Thumbnails;
bool Articles;
bool Compress;
bool RecalcPic;
bool Bookmarks;
int PicRes;
int Version;
int Resolution;
int Binding;
QValueList<QString> EmbedList;
bool PresentMode;
QValueList<PreSet> PresentVals;
QString Datei;
bool UseRGB;
bool UseProfiles;
bool UseProfiles2;
QString SolidProf;
int SComp;
QString ImageProf;
bool EmbeddedI;
int Intent2;
QString PrintProf;
QString Info;
int Intent;
double BleedTop;
double BleedLeft;
double BleedRight;
double BleedBottom;
bool Encrypt;
QString PassOwner;
QString PassUser;
int Permissions;
};
struct PDFOpt {
bool Thumbnails;
bool Articles;
bool Compress;
bool RecalcPic;
bool Bookmarks;
int PicRes;
int Version;
int Resolution;
int Binding;
QValueList<QString> EmbedList;
bool PresentMode;
QValueList<PreSet> PresentVals;
QString Datei;
bool UseRGB;
bool UseProfiles;
bool UseProfiles2;
QString SolidProf;
int SComp;
QString ImageProf;
bool EmbeddedI;
int Intent2;
QString PrintProf;
QString Info;
int Intent;
double BleedTop;
double BleedLeft;
double BleedRight;
double BleedBottom;
bool Encrypt;
QString PassOwner;
QString PassUser;
int Permissions;
};
 
struct Keys { QString Name;
int MenuID;
int KeyID;
};
struct Keys {
QString Name;
int MenuID;
int KeyID;
};
 
struct preV { SCFonts AvailFonts;
QString DefFont;
int DefSize;
CListe DColors;
int Wheelval;
int AppFontSize;
int GrabRad;
double GuideRad;
double DminGrid;
double DmajGrid;
QColor DminColor;
QColor DmajColor;
QColor DpapColor;
QColor DmargColor;
QColor guideColor;
QString GUI;
int DVHoch;
int DVHochSc;
int DVTief;
int DVTiefSc;
int DVKapit;
QString Dpen;
QString Dbrush;
int Dshade;
int Dshade2;
int DLineArt;
double Dwidth;
QString DpenLine;
QString DpenText;
int DshadeLine;
double DwidthLine;
int DLstyleLine;
int MagMin;
int MagMax;
int MagStep;
QString DbrushPict;
int ShadePict;
double ScaleX;
double ScaleY;
bool Before;
int Einheit;
bool Werkv;
bool WerkvP;
bool Mpalv;
int Mpalx;
int Mpaly;
bool Tpalv;
int Tpalx;
int Tpaly;
int Npalx;
int Npaly;
int MainX;
int MainY;
int MainW;
int MainH;
bool SCpalv;
int SCpalx;
int SCpaly;
int SCpalw;
int SCpalh;
bool Lpalv;
int Lpalx;
int Lpaly;
bool Sepalv;
int Sepalx;
int Sepaly;
bool Bopalv;
int Bopalx;
int Bopaly;
bool SepalT;
bool SepalN;
int PSize;
bool SaveAtQ;
bool PagesSbS;
bool ShFrames;
bool RandFarbig;
QStringList RecentDocs;
uint RecentDCount;
int AutoLine;
CMSset DCMSset;
QMap<int,Keys> KeyActions;
int PolyC;
int PolyFd;
double PolyF;
bool PolyS;
double PolyR;
QString PrinterName;
QString PrinterFile;
QString PrinterCommand;
int PageFormat;
int Ausrichtung;
double PageBreite;
double PageHoehe;
double RandOben;
double RandUnten;
double RandLinks;
double RandRechts;
bool DoppelSeiten;
bool ErsteLinks;
bool ScaleType;
bool AspectRatio;
int MinWordLen;
QString Language;
bool Automatic;
bool AutoCheck;
QString DocDir;
QString ProfileDir;
QString ScriptDir;
QMap<QString,QString> GFontSub;
bool PDFTransparency;
bool AutoSave;
int AutoSaveTime;
double DisScale;
int DCols;
double DGap;
QString DColorSet;
QStringList CustomColorSets;
};
struct preV {
SCFonts AvailFonts;
QString DefFont;
int DefSize;
CListe DColors;
int Wheelval;
int AppFontSize;
int GrabRad;
double GuideRad;
double DminGrid;
double DmajGrid;
QColor DminColor;
QColor DmajColor;
QColor DpapColor;
QColor DmargColor;
QColor guideColor;
QString GUI;
int DVHoch;
int DVHochSc;
int DVTief;
int DVTiefSc;
int DVKapit;
QString Dpen;
QString Dbrush;
int Dshade;
int Dshade2;
int DLineArt;
double Dwidth;
QString DpenLine;
QString DpenText;
int DshadeLine;
double DwidthLine;
int DLstyleLine;
int MagMin;
int MagMax;
int MagStep;
QString DbrushPict;
int ShadePict;
double ScaleX;
double ScaleY;
bool Before;
int Einheit;
bool Werkv;
bool WerkvP;
bool Mpalv;
int Mpalx;
int Mpaly;
bool Tpalv;
int Tpalx;
int Tpaly;
int Npalx;
int Npaly;
int MainX;
int MainY;
int MainW;
int MainH;
bool SCpalv;
int SCpalx;
int SCpaly;
int SCpalw;
int SCpalh;
bool Lpalv;
int Lpalx;
int Lpaly;
bool Sepalv;
int Sepalx;
int Sepaly;
bool Bopalv;
int Bopalx;
int Bopaly;
bool SepalT;
bool SepalN;
int PSize;
bool SaveAtQ;
bool PagesSbS;
bool ShFrames;
bool RandFarbig;
QStringList RecentDocs;
uint RecentDCount;
int AutoLine;
CMSset DCMSset;
QMap<int,Keys> KeyActions;
int PolyC;
int PolyFd;
double PolyF;
bool PolyS;
double PolyR;
QString PrinterName;
QString PrinterFile;
QString PrinterCommand;
int PageFormat;
int Ausrichtung;
double PageBreite;
double PageHoehe;
double RandOben;
double RandUnten;
double RandLinks;
double RandRechts;
bool DoppelSeiten;
bool ErsteLinks;
bool ScaleType;
bool AspectRatio;
int MinWordLen;
QString Language;
bool Automatic;
bool AutoCheck;
QString DocDir;
QString ProfileDir;
QString ScriptDir;
QMap<QString,QString> GFontSub;
bool PDFTransparency;
bool AutoSave;
int AutoSaveTime;
double DisScale;
int DCols;
double DGap;
QString DColorSet;
QStringList CustomColorSets;
};
/**
* the Document Class
*/
434,86 → 445,89
void setUnModified();
bool isModified() const;
/** Setzt die Seitenattribute */
void setPage(double b, double h, double t, double l, double r, double bo, double sp, double ab, bool atf, bool fp);
void resetPage(double t, double l, double r, double bo, bool fp);
void AddFont(QString name, QFont fo);
protected:
void setPage(double b, double h, double t, double l, double r, double bo, double sp, double ab,
bool atf, bool fp);
void resetPage(double t, double l, double r, double bo, bool fp);
void AddFont(QString name, QFont fo);
 
protected:
bool modified;
public: // Public attributes
 
public: // Public attributes
/** Vergroesserungsfaktor fuer das Dokument */
double Scale;
bool Marks;
double Scale;
bool Marks;
bool Guides;
bool SnapGuides;
double GuideRad;
bool GuideLock;
bool loading;
bool loading;
/** Breite der Seite */
double PageB;
double PageB;
/** Hoehe der Seite */
double PageH;
double PageH;
/** Anzahl der Seiten */
int PageC;
int PageC;
/** Seitenraender */
Margs PageM;
Margs PageM;
/** Anzahl der Spalten */
double PageSp;
double PageSp;
/** Abstand der Spalten */
double PageSpa;
double PageSpa;
/** Flag fuer AutoTextrahmen */
bool PageAT;
bool PageAT;
/** Flag fuer Doppelseiten */
bool PageFP;
bool PageFP;
/** Flag fuer Hoch- oder Querformat 0 = Hochformat */
int PageOri;
/** Erste Seitennummer im Dokument */
int FirstPnum;
/** Flag fuer Raster */
bool Raster;
bool Raster;
/** Flag fuer Rasterbenutzung */
bool useRaster;
bool useRaster;
/** Flag fuer Bilder */
bool ShowPic;
bool ShowPic;
/** Im Dokument benutzte Farben */
CListe PageColors;
Page* ActPage;
CListe PageColors;
Page* ActPage;
/** InfoStrings fuer das aktuelle Dokument */
QString DocAutor;
QString DocTitel;
QString DocComments;
QString DocAutor;
QString DocTitel;
QString DocComments;
QString DocKeyWords;
int AppMode;
int AppMode;
int SubMode;
double *ShapeValues;
int ValCount;
QString Dpen;
QString Dbrush;
double Dwidth;
int Dshade;
int Dshade2;
PenStyle DLineArt;
QString DpenLine;
QString DpenText;
QString Dpen;
QString Dbrush;
double Dwidth;
int Dshade;
int Dshade2;
PenStyle DLineArt;
QString DpenLine;
QString DpenText;
int DCols;
double DGap;
int DshadeLine;
PenStyle DLstyleLine;
double DwidthLine;
QString Dfont;
QString DocName;
QMap<QString,QFont> UsedFonts;
SCFonts *AllFonts;
int Dsize;
QColor minorColor;
QColor majorColor;
QColor papColor;
QColor margColor;
int DshadeLine;
PenStyle DLstyleLine;
double DwidthLine;
QString Dfont;
QString DocName;
QMap<QString,QFont> UsedFonts;
SCFonts *AllFonts;
int Dsize;
QColor minorColor;
QColor majorColor;
QColor papColor;
QColor margColor;
QColor guideColor;
double minorGrid;
double majorGrid;
int CurrentSel;
int CurrentStyle;
int CurrentABStil;
double minorGrid;
double majorGrid;
int CurrentSel;
int CurrentStyle;
int CurrentABStil;
QString CurrFont;
int CurrFontSize;
QString CurrTextFill;
521,26 → 535,26
QString CurrTextStroke;
int CurrTextStrokeSh;
int CurrTextScale;
bool EditClip;
int EditClipMode;
bool EditClip;
int EditClipMode;
/** um wieviel Prozent wird hochgestellt */
int VHoch;
int VHoch;
/** Verkleinerung in Prozent bei Hochstellung */
int VHochSc;
int VHochSc;
/** um wieviel Prozent wird tiefgestellt */
int VTief;
int VTief;
/** Verkleinerung in Prozent bei Tiefstellung */
int VTiefSc;
int VTiefSc;
/** Verkleinerunug in Prozent bei Kapitaelchen */
int VKapit;
int VKapit;
/** Letztes Element fuer AutoTextrahmen */
PageItem *LastAuto;
PageItem *LastAuto;
/** Erstes Element fuer AutoTextrahmen */
PageItem *FirstAuto;
int MagMin;
int MagMax;
int MagStep;
int GrabRad;
PageItem *FirstAuto;
int MagMin;
int MagMax;
int MagStep;
int GrabRad;
QString DbrushPict;
int ShadePict;
double ScaleX;
549,20 → 563,20
bool AspectRatio;
bool Before;
int Einheit;
bool DragP;
PageItem *DraggedElem;
PageItem *ElemToLink;
QValueList<uint> DragElements;
QValueList<StVorL> Vorlagen;
bool DragP;
PageItem *DraggedElem;
PageItem *ElemToLink;
QValueList<uint> DragElements;
QValueList<StVorL> Vorlagen;
QValueList<Layer> Layers;
bool MasterP;
bool FirstPageLeft;
bool PagesSbS;
bool ShFrames;
bool RandFarbig;
int GroupCounter;
int AutoLine;
CMSset CMSSettings;
bool MasterP;
bool FirstPageLeft;
bool PagesSbS;
bool ShFrames;
bool RandFarbig;
int GroupCounter;
int AutoLine;
CMSset CMSSettings;
int ActiveLayer;
#ifdef HAVE_CMS
cmsHPROFILE DocInputProf;
569,7 → 583,7
cmsHPROFILE DocOutputProf;
cmsHPROFILE DocPrinterProf;
#endif
bool HasCMS;
bool HasCMS;
QMap<QString,QString> JavaScripts;
bool UnDoValid;
UndoData UnData;
579,21 → 593,22
QString Language;
bool Automatic;
bool AutoCheck;
bool TemplateMode;
bool TemplateMode;
struct PDFOpt PDF_Optionen;
bool RePos;
struct BookMa { QString Title;
QString Text;
QString Aktion;
int Parent;
int Seite;
int Element;
int ItemNr;
int First;
int Last;
int Prev;
int Next;
};
struct BookMa {
QString Title;
QString Text;
QString Aktion;
int Parent;
int Seite;
int Element;
int ItemNr;
int First;
int Last;
int Prev;
int Next;
};
QValueList<BookMa> BookMarks;
bool OldBM;
bool hasName;
601,11 → 616,11
bool AutoSave;
QTimer *ASaveTimer;
FT_Library library;
QMap<QString,FT_Face> FFonts;
QMap<QString,FT_Face> FFonts;
QMap<QString,multiLine> MLineStyles;
QWidget* WinHan;
bool DoDrawing;
QValueList<int> OpenNodes;
QValueList<int> OpenNodes;
QTimer *CurTimer;
};
 
/trunk/Scribus/scribus/bookpalette.h
32,7 → 32,7
public:
BookPalette(QWidget* parent);
~BookPalette() {};
void closeEvent(QCloseEvent *ce);
void closeEvent(QCloseEvent *ce);
BookMView *BView;
 
signals:
/trunk/Scribus/scribus/hyask.h
30,8 → 30,8
QPushButton* Cancel;
 
public slots:
void Check();
void DoSkip();
void Check();
void DoSkip();
 
protected:
QVBoxLayout* HyAskLayout;
/trunk/Scribus/scribus/hyphenator.h
21,29 → 21,29
~Hyphenator();
/*! There are languages having rule not to hyphen word shorter than
MinWordLen */
int MinWordLen;
int MinWordLen;
/*! Language in use */
QString Language;
QString Language;
/*! Flag - if user set auto hyphen processing.*/
bool Automatic;
bool Automatic;
/*! Flag - obsolete? */
bool AutoCheck;
bool AutoCheck;
/*! Reference to the hyphen dictionary structure. */
HyphenDict *hdict;
HyphenDict *hdict;
/*! Embeded reference to the \see ScribusDoc filled by \a dok */
ScribusDoc *doc;
ScribusDoc *doc;
/*! Embeded reference to the \see ScribusApp filled by \a app */
ScribusApp *Sap;
ScribusApp *Sap;
/*! Flag - if is the dictionary without errors etc. If is it 'false'
hyphen aborted. */
bool useAble;
bool useAble;
/*! Qt text codec which handles local characters. */
QTextCodec *codec;
QTextCodec *codec;
 
public slots:
void slotNewDict(QString name);
void slotNewSettings(int Wordlen, bool Autom, bool ACheck);
void slotHyphenateWord(PageItem* it, QString text, int firstC);
void slotHyphenate(PageItem *it);
void slotNewDict(QString name);
void slotNewSettings(int Wordlen, bool Autom, bool ACheck);
void slotHyphenateWord(PageItem* it, QString text, int firstC);
void slotHyphenate(PageItem *it);
};
#endif
/trunk/Scribus/scribus/cmsprefs.h
25,7 → 25,7
 
public:
CMSPrefs( QWidget* parent, CMSset *Vor,
ProfilesL *InputProfiles, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
ProfilesL *InputProfiles, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
~CMSPrefs() {};
 
QCheckBox* CheckBox1;
44,8 → 44,8
QComboBox* PrinterI;
QLabel* Text21;
QCheckBox* Simulate;
QCheckBox* GamutC;
QCheckBox* BlackP;
QCheckBox* GamutC;
QCheckBox* BlackP;
QPushButton* Cancel;
QPushButton* OK;
CMSset *Prefs;
54,7 → 54,7
public slots:
virtual void slotCMSon();
virtual void SetValues();
virtual void slotSimula();
virtual void slotSimula();
 
protected:
QVBoxLayout* CMSPrefsLayout;
/trunk/Scribus/scribus/newfile.cpp
325,6 → 325,7
 
void NewDoc::setUnit(int u)
{
char *units[] = {" pt", " mm", " in", " p"};
ein = units[u];
switch (u)
{
/trunk/Scribus/scribus/scribuswin.h
29,7 → 29,7
 
class ScribusWin : public QMainWindow
{
Q_OBJECT
Q_OBJECT
 
public:
ScribusWin(QWidget* parent, ScribusDoc* ddoc);
41,7 → 41,7
ScribusView* view;
ScribusDoc* doc;
MusterSeiten* muster;
bool MenuStat[7];
bool MenuStat[7];
#ifdef HAVE_CMS
cmsHTRANSFORM stdTrans;
cmsHTRANSFORM stdProof;
55,8 → 55,10
int NrItems;
int First;
int Last;
public slots:
void slotAutoSave();
signals:
void Schliessen();
void SaveAndClose();
/trunk/Scribus/scribus/mspinbox.h
24,7 → 24,8
*@author Franz Schmid
*/
 
class MSpinBox : public QSpinBox {
class MSpinBox : public QSpinBox
{
public:
MSpinBox(QWidget *pa, int s);
~MSpinBox() {};
38,6 → 39,7
int Width;
QLineEdit *ed;
void setDecimals( int deci );
 
protected:
bool eventFilter( QObject* ob, QEvent* ev );
};
/trunk/Scribus/scribus/search.cpp
77,18 → 77,15
 
SStyleVal = new QComboBox( true, Search, "SStyleVal" );
SStyleVal->setEditable(false);
SStyleVal->insertItem( tr("Left"));
SStyleVal->insertItem( tr("Center"));
SStyleVal->insertItem( tr("Right"));
SStyleVal->insertItem( tr("Block"));
SStyleVal->insertItem( tr("Forced"));
char *tmp_sty[] = {"Left", "Center", "Right", "Block", "Forced"};
size_t ar_sty = sizeof(tmp_sty) / sizeof(*tmp_sty);
for (uint a = 0; a < ar_sty; ++a)
SStyleVal->insertItem(tr(tmp_sty[a]));
if (doc->Vorlagen.count() > 5)
{
{
for (uint x = 5; x < doc->Vorlagen.count(); ++x)
{
SStyleVal->insertItem(doc->Vorlagen[x].Vname);
}
}
}
SStyleVal->setCurrentItem(doc->CurrentABStil);
SStyleVal->setEnabled(false);
SearchLayout->addWidget( SStyleVal, 1, 1 );
116,10 → 113,10
SFillVal->setEditable(false);
SFillVal->insertItem( tr("None"));
for (it = doc->PageColors.begin(); it != doc->PageColors.end(); ++it)
{
{
pm.fill(doc->PageColors[it.key()].getRGBColor());
SFillVal->insertItem(pm, it.key());
}
}
SFillVal->setCurrentText(doc->CurrTextFill);
SFillVal->setEnabled(false);
SearchLayout->addWidget( SFillVal, 5, 1 );
128,10 → 125,10
SStrokeVal->setEditable(false);
SStrokeVal->insertItem( tr("None"));
for (it = doc->PageColors.begin(); it != doc->PageColors.end(); ++it)
{
{
pm.fill(doc->PageColors[it.key()].getRGBColor());
SStrokeVal->insertItem(pm, it.key());
}
}
SStrokeVal->setCurrentText(doc->CurrTextStroke);
SStrokeVal->setEnabled(false);
SearchLayout->addWidget( SStrokeVal, 6, 1 );
180,18 → 177,13
 
RStyleVal = new QComboBox( true, Replace, "RStyleVal" );
RStyleVal->setEditable(false);
RStyleVal->insertItem( tr("Left"));
RStyleVal->insertItem( tr("Center"));
RStyleVal->insertItem( tr("Right"));
RStyleVal->insertItem( tr("Block"));
RStyleVal->insertItem( tr("Forced"));
for (uint a = 0; a < ar_sty; ++a)
RStyleVal->insertItem(tr(tmp_sty[a]));
if (doc->Vorlagen.count() > 5)
{
{
for (uint x = 5; x < doc->Vorlagen.count(); ++x)
{
RStyleVal->insertItem(doc->Vorlagen[x].Vname);
}
}
}
RStyleVal->setCurrentItem(doc->CurrentABStil);
RStyleVal->setEnabled(false);
ReplaceLayout->addWidget( RStyleVal, 1, 1 );
219,10 → 211,10
RFillVal->setEditable(false);
RFillVal->insertItem( tr("None"));
for (it = doc->PageColors.begin(); it != doc->PageColors.end(); ++it)
{
{
pm.fill(doc->PageColors[it.key()].getRGBColor());
RFillVal->insertItem(pm, it.key());
}
}
RFillVal->setCurrentText(doc->CurrTextFill);
RFillVal->setEnabled(false);
ReplaceLayout->addWidget( RFillVal, 5, 1 );
231,10 → 223,10
RStrokeVal->setEditable(false);
RStrokeVal->insertItem( tr("None"));
for (it = doc->PageColors.begin(); it != doc->PageColors.end(); ++it)
{
{
pm.fill(doc->PageColors[it.key()].getRGBColor());
RStrokeVal->insertItem(pm, it.key());
}
}
RStrokeVal->setCurrentText(doc->CurrTextStroke);
RStrokeVal->setEnabled(false);
ReplaceLayout->addWidget( RStrokeVal, 6, 1 );
260,7 → 252,7
 
DoSearch = new QPushButton( this, "DoSearch" );
DoSearch->setText( tr( "Search" ) );
DoSearch->setDefault( TRUE );
DoSearch->setDefault( true );
ButtonsLayout->addWidget( DoSearch );
 
DoReplace = new QPushButton( this, "DoReplace" );
341,9 → 333,7
DoReplace->setEnabled(false);
AllReplace->setEnabled(false);
for (uint a = 0; a < Item->MaxChars; ++a)
{
Item->Ptext.at(a)->cselect = false;
}
Item->HasSel = false;
QString fCol = "";
QString sCol = "";
380,38 → 370,35
uint as = Item->CPos;
ReplStart = as;
for (uint a = as; a < Item->MaxChars; ++a)
{
if (SText->isChecked())
{
if (SText->isChecked())
{
QString chx = Item->Ptext.at(a)->ch;
if (CaseIgnore->isChecked())
chx = chx.lower();
if (chx == sText.mid(inde,1))
found = true;
else
found = false;
found = chx == sText.mid(inde, 1) ? true : false;
if ((Word->isChecked()) && (inde == 0) && (chx[0].isSpace()))
found = true;
}
}
else
found = true;
if (SSize->isChecked())
{
{
if (Item->Ptext.at(a)->csize != sSize)
found = false;
}
}
if (SFont->isChecked())
{
{
if (Item->Ptext.at(a)->cfont != sFont)
found = false;
}
}
if (SStyle->isChecked())
{
{
if (Item->Ptext.at(a)->cab != sStyle)
found = false;
}
}
if (SStroke->isChecked())
{
{
if (Item->Ptext.at(a)->cstroke != sCol)
found = false;
}
421,64 → 408,61
found = false;
}
if (SFill->isChecked())
{
{
if (Item->Ptext.at(a)->ccolor != fCol)
found = false;
}
}
if (found)
{
{
Item->Ptext.at(a)->cselect = true;
Item->HasSel = true;
if (rep)
{
{
DoReplace->setEnabled(true);
AllReplace->setEnabled(true);
}
}
Item->CPos = a+1;
if (SText->isChecked())
{
{
if (inde == 0)
ReplStart = a;
inde++;
if ((Word->isChecked()) && (inde == 1) && (Item->Ptext.at(a)->ch[0].isSpace()))
{
{
inde--;
Item->Ptext.at(a)->cselect = false;
}
if ((Word->isChecked()) && (inde == sText.length()) && (!Item->Ptext.at(QMIN(Item->MaxChars-1,a+1))->ch[0].isSpace()))
{
}
if ((Word->isChecked()) && (inde == sText.length()) &&
(!Item->Ptext.at(QMIN(Item->MaxChars-1,a+1))->ch[0].isSpace()))
{
for (uint xx = ReplStart; xx < a+1; ++xx)
{
Item->Ptext.at(QMIN(xx,Item->MaxChars-1))->cselect = false;
}
Item->HasSel = false;
inde = 0;
found = false;
}
}
else
{
{
if (inde == sText.length())
break;
}
}
}
else
break;
}
}
else
{
if (SText->isChecked())
{
if (SText->isChecked())
{
for (uint xx = ReplStart; xx < a+1; ++xx)
{
Item->Ptext.at(QMIN(xx,Item->MaxChars-1))->cselect = false;
}
Item->HasSel = false;
}
}
inde = 0;
}
}
}
if (!found)
{
{
Doc->DoDrawing = true;
Doc->ActPage->RefreshItem(Item, true);
DoReplace->setEnabled(false);
486,7 → 470,7
QMessageBox::information(this, tr("Search/Replace"), tr("Search finished"), tr("OK"));
Item->CPos = 0;
NotFound = false;
}
}
Doc->ActPage->slotDoCurs(true);
Doc->ActPage->RefreshItem(Item, true);
}
497,26 → 481,22
uint cs, cx;
struct Pti *hg;
if (RText->isChecked())
{
{
repl = RTextVal->text();
sear = STextVal->text();
if (sear.length() == repl.length())
{
{
for (cs = 0; cs < sear.length(); ++cs)
{
Item->Ptext.at(ReplStart+cs)->ch = repl[cs];
}
}
}
else
{
if (sear.length() < repl.length())
{
if (sear.length() < repl.length())
{
for (cs = 0; cs < sear.length(); ++cs)
{
Item->Ptext.at(ReplStart+cs)->ch = repl[cs];
}
for (cx = cs; cx < repl.length(); ++cx)
{
{
hg = new Pti;
hg->ch = repl[cx];
if (RSize->isChecked())
541,10 → 521,10
else
hg->cab = Doc->CurrentABStil;
if (Doc->Vorlagen[hg->cab].Font != "")
{
{
hg->cfont = Doc->Vorlagen[hg->cab].Font;
hg->csize = Doc->Vorlagen[hg->cab].FontSize;
}
}
if (RFont->isChecked())
hg->cfont = RFontVal->currentText();
else
556,23 → 536,19
hg->PtransX = 0;
hg->PtransY = 0;
Item->Ptext.insert(ReplStart+cx, hg);
}
}
Item->CPos = ReplStart+cx;
}
}
else
{
{
for (cs = 0; cs < repl.length(); ++cs)
{
Item->Ptext.at(ReplStart+cs)->ch = repl[cs];
}
for (uint cxx = cs; cxx < sear.length(); ++cxx)
{
Item->Ptext.remove(ReplStart+cs);
}
Item->CPos = ReplStart+cs;
}
}
}
}
if (RStyle->isChecked())
emit NewAbs(RStyleVal->currentItem());
if (RFill->isChecked())
602,9 → 578,7
DoReplace->setEnabled(false);
AllReplace->setEnabled(false);
for (uint a = 0; a < Item->Ptext.count(); ++a)
{
Item->Ptext.at(a)->cselect = false;
}
Doc->ActPage->slotDoCurs(true);
Doc->ActPage->RefreshItem(Item, true);
}
613,10 → 587,10
{
Doc->DoDrawing = false;
do
{
{
slotReplace();
slotSearch();
}
}
while (NotFound);
Doc->DoDrawing = true;
}
/trunk/Scribus/scribus/polyprops.h
41,14 → 41,14
QSlider* Slider2;
QPushButton* PushButton1;
QPushButton* PushButton2;
QPixmap* Pre;
double PFactor;
QPixmap* Pre;
double PFactor;
 
public slots:
void UpdatePreView();
double GetFaktor();
void ValFromSpin(int a);
void ValFromSpin2(int a);
void UpdatePreView();
double GetFaktor();
void ValFromSpin(int a);
void ValFromSpin2(int a);
 
protected:
QVBoxLayout* PolygonPropsLayout;
/trunk/Scribus/scribus/annot.h
37,13 → 37,13
public:
Annot(QWidget* parent, PageItem *it, int Seite, int b, int h, CListe Farben, ScribusView* vie);
~Annot();
void DecodeNum();
void DecodeVali();
void DecodeCalc();
QWidgetStack* Fram;
QWidgetStack* Fram2;
QWidgetStack* FramOp;
QWidgetStack* FoFram;
void DecodeNum();
void DecodeVali();
void DecodeCalc();
QWidgetStack* Fram;
QWidgetStack* Fram2;
QWidgetStack* FramOp;
QWidgetStack* FoFram;
QLabel* TextLabel1;
QComboBox* ComboBox1;
QLabel* TextVa;
54,26 → 54,24
QFrame* Frame4;
QGroupBox* Frame4a;
QLabel* TextLabel4a;
QLineEdit *Name;
QLineEdit *Name;
QLabel* TextLabel4b;
QLineEdit *Tip;
QLineEdit *Tip;
QLabel* AcText1;
QLabel* AcText2;
QComboBox* SelAction;
QComboBox* SelAction;
QTextEdit* EditJava;
QGroupBox* GroupBox11;
QLabel* TextLabel31;
QLabel* TextLabel41;
QLabel* TextLabel51;
QCheckBox* LExtern;
QLineEdit* Destfile;
QPushButton* ChFile;
QCheckBox* LExtern;
QLineEdit* Destfile;
QPushButton* ChFile;
Navigator* Pg1;
QSpinBox* SpinBox11;
QSpinBox* SpinBox21;
QSpinBox* SpinBox31;
 
 
QGroupBox* GroupBox10;
QLabel* TextLabel20;
QLabel* TextLabel30;
88,8 → 86,8
QLineEdit* TextO;
QGroupBox* GroupBox30;
QCheckBox* ReadOnly;
QCheckBox* Required;
QCheckBox* NoExport;
QCheckBox* Required;
QCheckBox* NoExport;
QLabel* TextLabel8_2;
QComboBox* ComboBox7_2;
QLabel* TextLabel90;
198,7 → 196,6
QPushButton* IconPR;
QPushButton* IconRR;
QPushButton* PlaceIcon;
 
QPushButton* PushButton1;
QPushButton* PushButton2;
PageItem* item;
207,44 → 204,44
int Hoehe;
int OriBreite;
int OriHoehe;
int ScrEdited;
int FormNum;
QString JavaScr;
int MaxSeite;
int ScrEdited;
int FormNum;
QString JavaScr;
int MaxSeite;
 
public slots:
void IPlace();
void RemoveNIcon();
void RemovePIcon();
void RemoveRIcon();
void IconsEin();
void GetNIcon();
void GetPIcon();
void GetRIcon();
void SelectFelder();
void editKeySc();
void editFormatSc();
void editValidSc();
void editCalcSc();
void editJavaSc();
void SetFormNum();
void SetCurr();
void HandleVali();
void SetVali();
void HandleCalc();
void SetCalc();
void SetFoScript(int it);
void SetCo(double x, double y);
void SetPg(int v);
void SetCross();
void SetVals();
void SetZiel(int i);
void GetFile();
void SetActTyp(int it);
void SetLimit();
void SetActScript(int it);
void setDateSample(const QString& ds);
void SetExternL();
void IPlace();
void RemoveNIcon();
void RemovePIcon();
void RemoveRIcon();
void IconsEin();
void GetNIcon();
void GetPIcon();
void GetRIcon();
void SelectFelder();
void editKeySc();
void editFormatSc();
void editValidSc();
void editCalcSc();
void editJavaSc();
void SetFormNum();
void SetCurr();
void HandleVali();
void SetVali();
void HandleCalc();
void SetCalc();
void SetFoScript(int it);
void SetCo(double x, double y);
void SetPg(int v);
void SetCross();
void SetVals();
void SetZiel(int i);
void GetFile();
void SetActTyp(int it);
void SetLimit();
void SetActScript(int it);
void setDateSample(const QString& ds);
void SetExternL();
 
protected:
QVBoxLayout* AnnotLayout;
255,7 → 252,6
QVBoxLayout* Frame3Layout;
QVBoxLayout* Frame3bLayout;
QVBoxLayout* Frame3cLayout;
 
QHBoxLayout* Layout50;
QVBoxLayout* GroupBox10Layout;
QGridLayout* Layout60;
/trunk/Scribus/scribus/fmitem.h
27,7 → 27,8
*@author Franz Schmid
*/
 
class FmItem : public QCustomMenuItem {
class FmItem : public QCustomMenuItem
{
public:
FmItem(const QString& s, const QFont& f);
~FmItem() {};
34,6 → 35,7
void paint(QPainter *p, const QColorGroup& cg, bool act, bool enabled, int x, int y, int w, int h);
QSize sizeHint();
QString Ctext();
 
private:
QString stringy;
QFont font;
/trunk/Scribus/scribus/fontcombo.h
32,7 → 32,6
public:
FontListItem(QComboBox* parent, QString f, QFont fo);
virtual ~FontListItem() {};
 
virtual int width(const QListBox *) const;
virtual int height(const QListBox *) const;
 
44,7 → 43,8
QString fontName;
};
 
class FontCombo : public QComboBox {
class FontCombo : public QComboBox
{
public:
FontCombo(QWidget* pa, preV *Prefs);
void RebuildList(preV *Prefs);
/trunk/Scribus/scribus/selfield.h
26,15 → 26,15
QListBox* SelFields;
QPushButton* OK;
QPushButton* Cancel;
QString S_Fields;
int FTyp;
QString S_Fields;
int FTyp;
 
public slots:
void SetRetVal();
void RemoveSel();
void PutToSel();
void SelAField(QListBoxItem *c);
void SelEField(QListBoxItem *c);
void SetRetVal();
void RemoveSel();
void PutToSel();
void SelAField(QListBoxItem *c);
void SelEField(QListBoxItem *c);
 
protected:
QVBoxLayout* SelectFieldsLayout;
/trunk/Scribus/scribus/navigator.h
26,10 → 26,10
*@author Franz Schmid
*/
 
class Navigator : public QLabel {
class Navigator : public QLabel
{
Q_OBJECT
 
Q_OBJECT
 
public:
Navigator(QWidget *parent, int Size, int Seite, ScribusView* vie, QString fn = "");
~Navigator() {};
/trunk/Scribus/scribus/splash.h
8,7 → 8,7
{
public:
SplashScreen();
~SplashScreen() {};
~SplashScreen() {};
void setStatus( const QString &message );
void repaint();
 
/trunk/Scribus/scribus/tree.h
30,30 → 30,29
QListView* ListView1;
QPtrList<QListViewItem> Seiten;
struct Elem { QPtrList<QListViewItem> Elemente; };
QPtrList<Elem> PageObj;
ScribusView *vie;
QPtrList<Elem> PageObj;
ScribusView *vie;
void closeEvent(QCloseEvent *ce);
void resizeEvent(QResizeEvent *r);
void rebuildPageD();
void reopenTree(QValueList<int> op);
QValueList<int> buildReopenVals();
void rebuildPageD();
void reopenTree(QValueList<int> op);
QValueList<int> buildReopenVals();
 
public slots:
void slotShowSelect(uint SNr, int Nr);
void slotRemoveElement(uint SNr, uint Nr);
void slotUpdateElement(uint SNr, uint Nr);
void slotAddElement(uint SNr, uint Nr);
void slotMoveElement(uint SNr, uint NrOld, uint NrNew);
void slotDelPage(uint Nr);
void slotAddPage(uint Nr);
void slotShowSelect(uint SNr, int Nr);
void slotRemoveElement(uint SNr, uint Nr);
void slotUpdateElement(uint SNr, uint Nr);
void slotAddElement(uint SNr, uint Nr);
void slotMoveElement(uint SNr, uint NrOld, uint NrNew);
void slotDelPage(uint Nr);
void slotAddPage(uint Nr);
void slotSelect(QListViewItem* ite);
void BuildTree(ScribusView *view);
signals:
void Schliessen();
void SelectElement(int, int);
void SelectSeite(int);
 
void Schliessen();
void SelectElement(int, int);
void SelectSeite(int);
};
 
#endif // TREE_H
/trunk/Scribus/scribus/movepage.h
42,7 → 42,6
public slots:
virtual void FromChanged(int);
virtual void ToChanged(int);
 
};
 
#endif // MOVEPAGES_H
/trunk/Scribus/scribus/scpreview.h
6,19 → 6,19
 
class ScPreview
{
 
public:
ScPreview(preV *prefs);
~ScPreview() {};
QPixmap createPreview(QString data);
void SetFarbe(QColor *tmp, QString farbe, int shad);
void DrawZeichenS(ScPainter *p, double xco, double yco, QString ch, QString ZFo, bool Reverse, int Style, int mode, int Siz);
void DrawPoly(QPainter *p, QPointArray pts, QColor BackF, struct CLBuf *OB, bool bitm = false);
QMap<QString,CMYKColor> Farben;
QMap<QString,multiLine> MLineStyles;
QValueList<uint> Segments;
void SetFarbe(QColor *tmp, QString farbe, int shad);
void DrawZeichenS(ScPainter *p, double xco, double yco, QString ch, QString ZFo, bool Reverse, int Style,
int mode, int Siz);
void DrawPoly(QPainter *p, QPointArray pts, QColor BackF, struct CLBuf *OB, bool bitm = false);
QMap<QString,CMYKColor> Farben;
QMap<QString,multiLine> MLineStyles;
QValueList<uint> Segments;
preV *Prefs;
FT_Library library;
FT_Library library;
};
#endif
 
/trunk/Scribus/scribus/scribus.h
69,7 → 69,7
{
Q_OBJECT
public:
public:
/** construtor */
ScribusApp(SplashScreen *splash);
ScribusApp();
102,7 → 102,8
void closePSDriver();
bool getPDFDriver(QString fn, QString nam, int Components, int frPa, int toPa, QMap<int,QPixmap> thumbs);
bool DoSaveAsEps(QString fn);
QString CFileDialog(QString caption = "", QString filter = "", QString defNa = "", bool Pre = false, bool mod = true, bool comp = false, bool cod = false);
QString CFileDialog(QString caption = "", QString filter = "", QString defNa = "", bool Pre = false,
bool mod = true, bool comp = false, bool cod = false);
void GetCMSProfiles();
void GetCMSProfilesDir(QString pfad);
void RecalcColors(QProgressBar *dia = 0);
519,16 → 520,17
void *PSDriver;
int DocNr;
QStringList RecentDocs;
struct PlugData { QString Datei;
void *Zeiger;
int Typ;
struct PlugData {
QString Datei;
void *Zeiger;
int Typ;
} ;
QMap<QString, PlugData> PluginMap;
bool PrinterUsed;
struct PDe { QString Pname;
QString Dname;
QString Command;
struct PDe {
QString Pname;
QString Dname;
QString Command;
} PDef ;
};
#endif
 
/trunk/Scribus/scribus/mergedoc.h
38,7 → 38,7
QPushButton* Import;
QPushButton* Cancel;
int Count;
bool Mpa;
bool Mpa;
 
public slots:
void ChangeFile();
48,8 → 48,6
QHBoxLayout* layout1;
QHBoxLayout* layout2;
QHBoxLayout* layout3;
 
 
};
 
#endif // MERGEDOC_H
/trunk/Scribus/scribus/javadocs.h
23,12 → 23,12
QPushButton* DeleteScript;
QPushButton* ExitDia;
ScribusDoc *Doc;
ScribusView *View;
ScribusView *View;
 
private slots:
void slotAdd();
void slotEdit();
void slotDelete();
void slotAdd();
void slotEdit();
void slotDelete();
 
protected:
QHBoxLayout* JavaDocsLayout;
/trunk/Scribus/scribus/frameedit.cpp
221,7 → 221,6
doc = dc;
disconnect(AbsMode, SIGNAL(clicked()), this, SLOT(ToggleAbsMode()));
char *tmp_abs[]={" pt", " mm", " in", "p"};
size_t array = sizeof(tmp_abs) / sizeof(*tmp_abs);
YSpin->setSuffix(tr(tmp_abs[doc->Einheit]));
XSpin->setSuffix(tr(tmp_abs[doc->Einheit]));
AbsMode->setChecked(false);
/trunk/Scribus/scribus/colorm.h
31,7 → 31,8
CListe EditColors;
QMap<QString,QString> Ersatzliste;
QToolButton* LoadColSet;
QStringList CColSet;
QStringList CColSet;
 
private:
QListBox* ListBox1;
QGroupBox* ColorsGroup;
45,16 → 46,16
QPushButton* CancF;
QLabel* textLabel1;
QPushButton* SaveColSet;
QPopupMenu* CSets;
QPopupMenu* CSets;
QString sFarbe;
QColor tmpFarbe;
QStringList DontChange;
bool HaveDoc;
QStringList DontChange;
bool HaveDoc;
 
private slots:
void saveDefaults();
void loadDefaults(int id);
void loadFarben();
void saveDefaults();
void loadDefaults(int id);
void loadFarben();
void delFarbe();
void duplFarbe();
void neueFarbe();
/trunk/Scribus/scribus/layers.h
22,38 → 22,38
~LayerPalette() {};
 
QTable* Table;
QHeader* Header;
QHeader* Header;
QPushButton* NewLayer;
QPushButton* DeleteLayer;
QPushButton* RaiseLayer;
QPushButton* LowerLayer;
QPushButton* CloseB;
QValueList<Layer> *layers;
QValueList<Layer> *layers;
void closeEvent(QCloseEvent *ce);
void setLayers(QValueList<Layer> *layin, int *act);
void rebuildList();
void rebuildList();
QPtrList<QCheckBox> FlagsPrint;
QPtrList<QCheckBox> FlagsSicht;
int *Activ;
int *Activ;
 
public slots:
void addLayer();
void removeLayer();
void upLayer();
void downLayer();
void changeName(int row, int col);
void visibleLayer();
void printLayer();
void setActiveLayer(int row);
void ClearInhalt();
void MarkActiveLayer(int l);
void Verlassen();
void addLayer();
void removeLayer();
void upLayer();
void downLayer();
void changeName(int row, int col);
void visibleLayer();
void printLayer();
void setActiveLayer(int row);
void ClearInhalt();
void MarkActiveLayer(int l);
void Verlassen();
 
signals:
void LayerRemoved(int);
void LayerChanged();
void LayerActivated(int);
void Schliessen();
void LayerRemoved(int);
void LayerChanged();
void LayerActivated(int);
void Schliessen();
 
protected:
QVBoxLayout* LayerPaletteLayout;
/trunk/Scribus/scribus/customfdialog.h
62,7 → 62,8
{
Q_OBJECT
public:
CustomFDialog(QWidget *pa, QString cap = "", QString filter = "", bool Pre = false, bool mod = true, bool comp = false, bool cod = false);
CustomFDialog(QWidget *pa, QString cap = "", QString filter = "", bool Pre = false, bool mod = true,
bool comp = false, bool cod = false);
~CustomFDialog();
QDir cDir;
QCheckBox* SaveZip;
/trunk/Scribus/scribus/hysettings.h
26,7 → 26,6
QPushButton* OK;
QPushButton* Cancel;
 
 
protected:
QVBoxLayout* HySettingsLayout;
QGridLayout* Layout3;
/trunk/Scribus/scribus/multiline.h
2,7 → 2,11
** Form interface generated from reading ui file 'Mline.ui'
**
** Created: Mit Jun 4 23:28:08 2003
<<<<<<< multiline.h
** by: The User Interface Compiler ($Id$)
=======
** by: The User Interface Compiler ($Id$)
>>>>>>> 1.2
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
33,14 → 37,14
 
public:
MultiLine( QWidget* parent, ScribusDoc* doc, multiLine ml, QString nam, bool ed, QMap<QString,multiLine> *Sty);
void updatePreview();
QColor calcFarbe(QString name, int shade);
void updateSList();
void reSort();
void RebuildList();
void updatePreview();
QColor calcFarbe(QString name, int shade);
void updateSList();
void reSort();
void RebuildList();
~MultiLine();
 
QLineEdit* SName;
QLineEdit* SName;
QLabel* Preview;
QPushButton* AddStyle;
QPushButton* RemoveStyle;
52,25 → 56,25
QLabel* WidthText;
MSpinBox* LWidth;
QComboBox* Color;
QSpinBox* Shade;
QSpinBox* Shade;
QPushButton* OK;
QPushButton* Cancel;
multiLine TempVorl;
int CurLin;
ScribusDoc* Docu;
QMap<QString,multiLine> *TempStyles;
QString GivenName;
int CurLin;
ScribusDoc* Docu;
QMap<QString,multiLine> *TempStyles;
QString GivenName;
 
public slots:
void NewName();
void DelSubLine();
void NewSubLine();
void NewLJoin();
void NewLEnd();
void NewLSty();
void NewLColor();
void NewLWidth();
void NewLShade();
void NewName();
void DelSubLine();
void NewSubLine();
void NewLJoin();
void NewLEnd();
void NewLSty();
void NewLColor();
void NewLWidth();
void NewLShade();
void slotEditStyle( int i);
 
protected:
/trunk/Scribus/scribus/scribusview.h
44,83 → 44,89
 
class ScribusView : public QScrollView
{
Q_OBJECT
public:
Q_OBJECT
 
public:
ScribusView(QWidget *parent=0, ScribusDoc *doc=0, preV *prefs=0);
~ScribusView() {};
/** Vergroesserungseingabefeld */
MSpinBox* LE;
QSpinBox* PGS;
QToolButton *UN;
Hruler *HR;
Vruler *VR;
QToolButton *UN;
Hruler *HR;
Vruler *VR;
/** Liste der Seiten */
QPtrList<Page> Pages;
QPtrList<Page> Pages;
/** Liste der Musterseiten */
QPtrList<Page> MasterPages;
QPtrList<Page> MasterPages;
/** Liste der Dokumentseiten */
QPtrList<Page> DocPages;
QPtrList<Page> DocPages;
/** Mapping Namen zu Musterseiten */
QMap<QString,int> MasterNames;
/** Fügt eine Seite hinzu */
Page* addPage(int nr);
/** Löscht eine Seite */
void delPage(int Nr);
QMap<QString,int> MasterNames;
/** Fgt eine Seite hinzu */
Page* addPage(int nr);
/** L�cht eine Seite */
void delPage(int Nr);
/** verschiebt Seiten */
void movePage(int from, int to, int ziel, int art);
void reformPages();
void movePage(int from, int to, int ziel, int art);
void reformPages();
void LaMenu();
void ShowTemplate(int nr);
void HideTemplate();
int CountElements();
QPixmap PageToPixmap(int Nr, int maxGr);
void ShowTemplate(int nr);
void HideTemplate();
int CountElements();
QPixmap PageToPixmap(int Nr, int maxGr);
QPixmap MPageToPixmap(QString name, int maxGr);
void RecalcTextPos();
void RecalcPictures(ProfilesL *Pr, QProgressBar *dia = 0);
void CreatePS(PSLib *p, uint von, uint bis, int step, bool sep, QString SepNam, bool farb, bool Hm, bool Vm, bool Ic);
void ProcessPage(PSLib *p, Page* a, uint PNr, bool sep = false, bool farb = true, bool ic = false);
void RecalcPictures(ProfilesL *Pr, QProgressBar *dia = 0);
void CreatePS(PSLib *p, uint von, uint bis, int step, bool sep, QString SepNam, bool farb,
bool Hm, bool Vm, bool Ic);
void ProcessPage(PSLib *p, Page* a, uint PNr, bool sep = false, bool farb = true, bool ic = false);
void SetClipPath(PSLib *p, FPointArray *c);
void SetFarbe(QString farb, int shade, int *h, int *s, int *v, int *k);
/** Dokument zu dem die Seite gehört */
ScribusDoc *Doc;
preV *Prefs;
/** Dokument zu dem die Seite geh�t */
ScribusDoc *Doc;
preV *Prefs;
 
public slots: // Public slots
/** Führt die Vergrößerung/Verkleinerung aus; */
void slotDoZoom();
/** Vergrößert die Ansicht */
void slotZoomIn();
/** Fhrt die Vergr�erung/Verkleinerung aus; */
void slotDoZoom();
/** Vergr�ert die Ansicht */
void slotZoomIn();
/** Verkleinert die Ansicht */
void slotZoomOut();
/** Vergrößert die Ansicht */
void slotZoomIn2();
void slotZoomOut();
/** Vergr�ert die Ansicht */
void slotZoomIn2();
/** Verkleinert die Ansicht */
void slotZoomOut2();
void slotZoomOut2();
/** Zeichnet alle Seiten neu */
void DrawNew();
void setMenTxt(int Seite);
void DrawNew();
void setMenTxt(int Seite);
void setLayMenTxt(int l);
void GotoPa(int Seite);
void GotoPa(int Seite);
void GotoLa(int l);
void GotoPage(int Seite);
void ChgUnit(int art);
void SetCPo(int x, int y);
void GotoPage(int Seite);
void ChgUnit(int art);
void SetCPo(int x, int y);
void SetCCPo(int x, int y);
 
private: // Private attributes
QPushButton *SB1;
QPushButton *SB2;
QPushButton *LY;
QPopupMenu *Unitmen;
QPushButton *SB1;
QPushButton *SB2;
QPushButton *LY;
QPopupMenu *Unitmen;
QPopupMenu *Laymen;
bool Ready;
bool Ready;
private slots:
void Zval();
void setRulerPos(int x, int y);
void Zval();
void setRulerPos(int x, int y);
 
protected: // Protected methods
/** Waagrechter Scrollbalken */
virtual void contentsWheelEvent ( QWheelEvent *ev );
virtual void setHBarGeometry(QScrollBar &bar, int x, int y, int w, int h);
virtual void setVBarGeometry(QScrollBar &bar, int x, int y, int w, int h);
 
signals:
void changeUN(int);
void changeLA(int);
/trunk/Scribus/scribus/fontprefs.h
21,9 → 21,8
public:
FontPrefs( QWidget* parent, SCFonts &flist, bool Hdoc, preV *prefs, QString PPath );
~FontPrefs() {};
void ReadPath();
void RebuildDialog();
 
void ReadPath();
void RebuildDialog();
QTabWidget* TabWidget;
QWidget* tab1;
QWidget* tab;
44,25 → 43,25
QPtrList<QCheckBox> FlagsSub;
QPtrList<QComboBox> FlagsRepl;
preV *Prefs;
QMap<QString,QString> RList;
QStringList UsedFonts;
QStringList ExtraFonts;
QString HomeP;
QString CurrentPath;
bool DocAvail;
QMap<QString,QString> RList;
QStringList UsedFonts;
QStringList ExtraFonts;
QString HomeP;
QString CurrentPath;
bool DocAvail;
 
public slots:
void LeaveDia();
void ReplaceSel(int r, int c);
void UpdateFliste();
void DelEntry();
void SelectPath(QListBoxItem *c);
void AddPath();
void ChangePath();
void DelPath();
void LeaveDia();
void ReplaceSel(int r, int c);
void UpdateFliste();
void DelEntry();
void SelectPath(QListBoxItem *c);
void AddPath();
void ChangePath();
void DelPath();
 
signals:
void ReReadPrefs();
void ReReadPrefs();
 
protected:
QVBoxLayout* FontPrefsLayout;
72,7 → 71,6
QHBoxLayout* Layout2a;
QHBoxLayout* tab3Layout;
QVBoxLayout* LayoutR;
 
};
 
#endif // FONTPREFS_H
/trunk/Scribus/scribus/spalette.h
26,8 → 26,10
*@author Franz Schmid
*/
 
class Spalette : public QListBox {
Q_OBJECT
class Spalette : public QListBox
{
Q_OBJECT
 
public:
Spalette(QWidget* parent);
~Spalette() {};
/trunk/Scribus/scribus/keymanager.h
52,9 → 52,9
int Kcode;
 
public slots:
void SetKeyText();
void DispKey(int r);
void SetNoKey();
void SetKeyText();
void DispKey(int r);
void SetNoKey();
 
protected:
QVBoxLayout* KeyManagerLayout;
/trunk/Scribus/scribus/bookmwin.h
34,14 → 34,14
class BookMItem : public QListViewItem
{
public:
BookMItem(QListViewItem* parent, struct ScribusDoc::BookMa *Bm);
BookMItem(QListViewItem* parent, QListViewItem* after, struct ScribusDoc::BookMa *Bm);
BookMItem(QListView* parent, QListViewItem* after, struct ScribusDoc::BookMa *Bm);
BookMItem(QListView* parent, struct ScribusDoc::BookMa *Bm);
BookMItem(QListViewItem* parent, struct ScribusDoc::BookMa *Bm);
BookMItem(QListViewItem* parent, QListViewItem* after, struct ScribusDoc::BookMa *Bm);
BookMItem(QListView* parent, QListViewItem* after, struct ScribusDoc::BookMa *Bm);
BookMItem(QListView* parent, struct ScribusDoc::BookMa *Bm);
BookMItem(QListView* parent, QListViewItem* after, int nr, int s, int el);
BookMItem(QListView* parent, int nr, int s, int el);
~BookMItem() {};
void SetUp(struct ScribusDoc::BookMa *Bm);
void SetUp(struct ScribusDoc::BookMa *Bm);
virtual QString key(int, bool) const;
int ItemNr;
int Seite;
49,11 → 49,11
int PdfObj;
QString Action;
QString Titel;
int First;
int Last;
int Prev;
int Next;
int Pare;
int First;
int Last;
int Prev;
int Next;
int Pare;
};
 
class BookMView : public QListView
74,13 → 74,13
int Last;
 
public slots:
void AddPageItem(PageItem* ite);
void ChangeItem(int nr, int itnr);
void ChangeText(PageItem *b);
void AddPageItem(PageItem* ite);
void ChangeItem(int nr, int itnr);
void ChangeText(PageItem *b);
 
signals:
void MarkMoved();
void ChangeBMNr(int, int, int);
void MarkMoved();
void ChangeBMNr(int, int, int);
 
protected:
void contentsMouseReleaseEvent(QMouseEvent *m);
/trunk/Scribus/scribus/newfile.h
57,32 → 57,31
QPushButton* OKButton;
QPushButton* CancelB;
double Umrech;
int Orient;
double Pagebr;
double Pageho;
double Top;
double Bottom;
double Left;
double Right;
double Dist;
int Orient;
double Pagebr;
double Pageho;
double Top;
double Bottom;
double Left;
double Right;
double Dist;
QString ein;
int einheit;
char *units[];
void setSize(int gr);
int einheit;
void setSize(int gr);
void code_repeat(int);
 
public slots:
void setHoehe(int v);
void setBreite(int v);
void setTop(int v);
void setBottom(int v);
void setLeft(int v);
void setRight(int v);
void setDist(int v);
void setUnit(int u);
void ExitOK();
void setOrien(int ori);
void setPGsize();
void setHoehe(int v);
void setBreite(int v);
void setTop(int v);
void setBottom(int v);
void setLeft(int v);
void setRight(int v);
void setDist(int v);
void setUnit(int u);
void ExitOK();
void setOrien(int ori);
void setPGsize();
void setDS();
void setAT();
 
101,7 → 100,6
QHBoxLayout* GroupBox4Layout;
QGridLayout* Layout2;
QHBoxLayout* Layout1;
 
};
 
#endif // NEWDOC_H
/trunk/Scribus/scribus/scribusXml.h
2,7 → 2,7
scribusXml.h the document xml library for scribus
-------------------
begin : Sam Jul 14 10:00:00 CEST 2001
copyright : (C) 2001 by Christian Töpp
copyright : (C) 2001 by Christian T�p
email : christian.toepp@mr-ct@gmx.de
***************************************************************************/
 
25,10 → 25,12
bool ReadStyles(QString fileName, ScribusDoc* doc, preV *Prefs);
bool ReadColors(QString fileName);
bool ReadPageCount(QString fileName, int *num1, int *num2);
bool ReadPage(QString fileName, SCFonts &avail, ScribusDoc *doc, ScribusView *view, int PageToLoad, bool Mpage);
bool ReadPage(QString fileName, SCFonts &avail, ScribusDoc *doc, ScribusView *view, int PageToLoad,
bool Mpage);
QString WriteElem(QPtrList<PageItem> *Selitems, ScribusDoc *doc);
bool ReadElemHeader(QString file, bool isFile, double *x, double *y, double *w, double *h);
bool ReadElem(QString fileName, SCFonts &avail, ScribusDoc *doc, int Xp, int Yp, bool Fi, bool loc, QMap<QString,QString> &FontSub, preV *Prefs);
bool ReadElem(QString fileName, SCFonts &avail, ScribusDoc *doc, int Xp, int Yp, bool Fi, bool loc,
QMap<QString,QString> &FontSub, preV *Prefs);
bool ReadDoc(QString fileName, SCFonts &avail, ScribusDoc *docu, ScribusView *viewx, QProgressBar *dia2);
void WritePages(ScribusView *view, QDomDocument docu, QDomElement dc, QProgressBar *dia2, uint maxC);
bool WriteDoc(QString fileName, ScribusDoc *docu, ScribusView *viewx, QProgressBar *dia2);
35,9 → 37,10
void WritePref(preV *Vor, QString ho);
bool ReadPref(struct preV *Vorein, QString ho);
CListe Farben;
QValueList<StVorL> Vorlagen;
struct Linked { int Start;
int StPag;
QValueList<StVorL> Vorlagen;
struct Linked {
int Start;
int StPag;
};
QValueList<Linked> LFrames;
QStringList MNames;
/trunk/Scribus/scribus/autoform.h
56,7 → 56,6
 
protected:
QGridLayout* buttonGroup1Layout;
 
};
 
#endif
/trunk/Scribus/scribus/hruler.h
27,8 → 27,10
*@author Franz Schmid
*/
 
class Hruler : public QWidget {
Q_OBJECT
class Hruler : public QWidget
{
Q_OBJECT
 
public:
Hruler(QScrollView *pa, ScribusDoc *doc);
~Hruler() {};
40,9 → 42,11
int Markp;
bool repX;
bool Mpressed;
 
private: // Private attributes
/** Zeichensatz des Lineals */
ScribusDoc *doku;
 
public slots: // Public slots
/** Zeichnet den Pfeil */
void Draw(int wo);
/trunk/Scribus/scribus/cmykcolor.h
26,7 → 26,8
* its API is based on the API of QColor
*/
 
class CMYKColor {
class CMYKColor
{
public:
/** Constructs a CMYKColor with 4 Components
* in the range from 0 - 255 */
/trunk/Scribus/scribus/query.h
20,7 → 20,8
Q_OBJECT
 
public:
Query( QWidget* parent=0, const char* name=0, bool modal = FALSE, WFlags fl=0, QString text=0, QString titel=0 );
Query( QWidget* parent=0, const char* name=0, bool modal = FALSE, WFlags fl=0, QString text=0,
QString titel=0 );
~Query() {};
 
QPushButton* PushButton1;
29,7 → 30,7
QLabel* Frage;
 
public slots:
void Leave();
void Leave();
 
protected:
QVBoxLayout* QueryLayout;
/trunk/Scribus/scribus/scrap.h
31,9 → 31,10
void SaveContents(QString name);
void ReadContents(QString name);
void RebuildView();
struct Elem {QString Data;
QPixmap Preview;
};
struct Elem {
QString Data;
QPixmap Preview;
};
QMap<QString,Elem> Objekte;
preV *Prefs;
 
50,7 → 51,7
~Biblio() {};
void closeEvent(QCloseEvent *ce);
void AdjustMenu();
void ObjFromMenu(QString text);
void ObjFromMenu(QString text);
 
QPopupMenu* pmenu;
QPopupMenu* fmenu;
64,14 → 65,14
int vS;
int vM;
int vB;
bool Changed;
bool Changed;
 
public slots:
void Save();
 
private slots:
void HandleMouse(QIconViewItem *ite);
void DeleteObj(QString name, QIconViewItem *ite);
void HandleMouse(QIconViewItem *ite);
void DeleteObj(QString name, QIconViewItem *ite);
void DropOn(QDropEvent *e);
void SaveAs();
void Load();
/trunk/Scribus/scribus/pdfopts.h
35,7 → 35,8
Q_OBJECT
 
public:
PDF_Opts( QWidget* parent, QString Fname, QMap<QString,QFont> DocFonts, ScribusView *vie, PDFOpt *Optionen, QValueList<PreSet> Eff, ProfilesL *PDFXProfiles, SCFonts &AllFonts );
PDF_Opts( QWidget* parent, QString Fname, QMap<QString,QFont> DocFonts, ScribusView *vie, PDFOpt *Optionen,
QValueList<PreSet> Eff, ProfilesL *PDFXProfiles, SCFonts &AllFonts );
~PDF_Opts();
 
QLabel* Name;
51,7 → 52,7
QPushButton* OK;
QPushButton* Cancel;
QLineEdit* Datei;
BookMView *BView;
BookMView *BView;
QGroupBox* GroupBox1;
QGroupBox* GroupBox2;
QLabel* TextLabel2;
139,18 → 140,18
ScribusView *view;
QValueList<PreSet> EffVal;
int PgSel;
int Einheit;
int Einheit;
 
public slots:
void ToggleEncr();
void BleedChanged();
void EnablePDFX(int a);
void DoDownsample();
void RemoveEmbed();
void PutToEmbed();
void SelAFont(QListBoxItem*);
void SelEFont(QListBoxItem*);
void EmbedAll();
void ToggleEncr();
void BleedChanged();
void EnablePDFX(int a);
void DoDownsample();
void RemoveEmbed();
void PutToEmbed();
void SelAFont(QListBoxItem*);
void SelEFont(QListBoxItem*);
void EmbedAll();
void ChangeFile();
void PagePr();
void SetPgEff(int nr);
158,13 → 159,13
void ValidDI(int nr);
void DoEffects();
void EffectOnAll();
void SelRange(bool e);
void ChFrom();
void ChTo();
void EnablePr(int a);
void EnablePG();
void EnablePGI();
void EnablePGI2();
void SelRange(bool e);
void ChFrom();
void ChTo();
void EnablePr(int a);
void EnablePG();
void EnablePGI();
void EnablePGI2();
 
protected:
QVBoxLayout* PDFOptsLayout;
195,7 → 196,6
QVBoxLayout* tabsecLayout;
QGridLayout* GroupPassLayout;
QVBoxLayout* GroupSecSetLayout;
 
};
 
#endif // PDF_OPTS_H
/trunk/Scribus/scribus/applytemplate.h
33,10 → 33,10
QPushButton* OKButton;
 
public slots:
void RangeSel();
void SingleSel();
void CheckRangeF();
void CheckRangeT();
void RangeSel();
void SingleSel();
void CheckRangeF();
void CheckRangeT();
 
protected:
QVBoxLayout* ApplyTLayout;
/trunk/Scribus/scribus/lineformats.h
17,7 → 17,7
~LineFormate() {};
 
QListBox* ListBox1;
QPushButton* LoadLS;
QPushButton* LoadLS;
QPushButton* NewB;
QPushButton* EditB;
QPushButton* DublicateB;
25,17 → 25,17
QPushButton* SaveB;
QPushButton* CancelB;
QString sFnumber;
QMap<QString,multiLine> TempStyles;
ScribusDoc *Docu;
QMap<QString,multiLine> TempStyles;
ScribusDoc *Docu;
void UpdateFList();
 
public slots:
void selFormat(QListBoxItem *c);
void editFormat();
void neuesFormat();
void dupFormat();
void deleteFormat();
void loadLStyles();
void selFormat(QListBoxItem *c);
void editFormat();
void neuesFormat();
void dupFormat();
void deleteFormat();
void loadLStyles();
 
protected:
QHBoxLayout* StilFormateLayout;
/trunk/Scribus/scribus/buttonicon.h
32,18 → 32,18
QPushButton* OK;
QPushButton* Cancel;
QPushButton* Reset;
PageItem* Item;
int IcPlace;
int IcScaleW;
int IcScaleH;
double IcPlaceX;
double IcPlaceY;
PageItem* Item;
int IcPlace;
int IcScaleW;
int IcScaleH;
double IcPlaceX;
double IcPlaceY;
 
private slots:
void MoveIconY(int y);
void MoveIconX(int x);
void SetAllVals();
void SetScaleHow(int s);
void MoveIconY(int y);
void MoveIconX(int x);
void SetAllVals();
void SetScaleHow(int s);
 
protected:
QVBoxLayout* ButtonIconLayout;
/trunk/Scribus/scribus/cupsoptions.h
41,9 → 41,10
QPushButton* PushButton2;
QHeader *Header;
QTable* Table;
struct OpData { int Cnum;
QString KeyW;
};
struct OpData {
int Cnum;
QString KeyW;
};
QPtrList<QComboBox> FlagsOpt;
QMap<QString,OpData> KeyToText;
QMap<QString,QString> KeyToDefault;
/trunk/Scribus/scribus/editor.h
17,7 → 17,6
public:
Editor( QWidget* parent, QString daten, ScribusView* vie = 0);
~Editor() {};
 
QTextEdit* EditTex;
QPopupMenu* fmenu;
QPopupMenu* emenu;
25,9 → 24,9
ScribusView* view;
 
private slots:
void LoadScript();
void SaveAs();
void GetFieldN();
void LoadScript();
void SaveAs();
void GetFieldN();
 
protected:
QVBoxLayout* EditorLayout;
/trunk/Scribus/scribus/guidemanager.h
19,11 → 19,10
public:
GuideManager( QWidget* parent, Page* page, int Einh);
~GuideManager() {};
void UnitChange();
QString GetUnit();
void UpdateHList();
void UpdateVList();
 
void UnitChange();
QString GetUnit();
void UpdateHList();
void UpdateVList();
QGroupBox* VerGroup;
QListBox* VerticalList;
QLabel* TextLabel1;
39,23 → 38,23
QCheckBox* Lock;
QPushButton* OK;
QPushButton* Cancel;
int Einheit;
Page* pag;
int curX;
int curY;
QValueList<double> XLocal;
QValueList<double> YLocal;
int Einheit;
Page* pag;
int curX;
int curY;
QValueList<double> XLocal;
QValueList<double> YLocal;
 
private slots:
void HandleLock();
void GetHVal(int n);
void GetVVal(int n);
void SetHVal();
void SetVVal();
void DelHVal();
void DelVVal();
void valChange();
void ExitOK();
void HandleLock();
void GetHVal(int n);
void GetVVal(int n);
void SetHVal();
void SetVVal();
void DelHVal();
void DelVVal();
void valChange();
void ExitOK();
 
protected:
QVBoxLayout* GuideManagerLayout;