Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 187 → Rev 188

/trunk/Scribus/ChangeLogCVS
1,4 → 1,9
Changes since Version 1.1.4
08.02.2004 Fixed Problems with Images having an Alpha Channel.
Added an Option to remove unused Colors.
 
07.02.2004 Updated the Ukrainian Translation.
 
05.02.2004 Added two new Color Sets, a Greyscale one, and a Gnome Colors Set.
Updated the Finnish and Czech Translations.
Added a new Splash Screen and Icons.
/trunk/Scribus/scribus/mpalette.cpp
136,7 → 136,7
Text3->setText( tr( "Rotation:" ) );
GeoGroupLayout->addWidget( Text3, 4, 0 );
Rot = new MSpinBox( GeoGroup, 2);
Rot->setSuffix(" °");
Rot->setSuffix(" ");
Rot->setWrapping( true );
GeoGroupLayout->addWidget( Rot, 4, 1 );
Text3r = new QLabel( GeoGroup, "Text3r" );
906,7 → 906,13
disconnect(NameEdit, SIGNAL(Leaved()), this, SLOT(NewName()));
HaveItem = false;
CurItem = i;
NameEdit->setText(i->AnName);
if (i->FrameType == 0)
SCustom->setPixmap(SCustom->getIconPixmap(0));
if (i->FrameType == 1)
SCustom->setPixmap(SCustom->getIconPixmap(1));
if (i->FrameType > 3)
SCustom->setPixmap(SCustom->getIconPixmap(i->FrameType-2));
NameEdit->setText(i->AnName);
RoundRect->setValue(i->RadRect*UmReFaktor);
DCol->setMaxValue(QMAX(qRound(i->Width / QMAX(i->ColGap, 10.0)), 1));
DGap->setMaxValue(QMAX((i->Width / i->Cols - i->Extra - i->RExtra)*UmReFaktor, 0));
2362,8 → 2368,10
break;
default:
doc->ActPage->SetFrameShape(CurItem, c, vals);
CurItem->FrameType = f+2;
break;
}
ScApp->SCustom->setPixmap(ScApp->SCustom->getIconPixmap(f));
doc->ActPage->RefreshItem(CurItem);
emit DocChanged();
if ((CurItem->PType == 2) || (CurItem->PType == 4))
/trunk/Scribus/scribus/util.cpp
299,49 → 299,23
fn + "\"" + cmd2);
if (ret == 0)
{
QImage im4;
QImage image;
image.load(tmpFile);
image = image.convertDepth(32);
image = image.convertDepth(32);
image.setAlphaBuffer(true);
int wi = image.width();
int hi = image.height();
QBitmap bm(tmpFile);
bm.fill(Qt::color1);
QPainter pp;
pp.begin(&bm);
pp.setPen(Qt::color0);
QString tmp2;
if ( image.depth() == 8 )
{
for( int yi=0; yi < hi; ++yi )
for( int yi=0; yi < hi; ++yi )
{
uchar * s = image.scanLine( yi );
for( int xi=0; xi < wi; ++xi )
QRgb *s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if(image.color(s[xi]) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
else
{
for( int yi=0; yi < hi; ++yi )
{
QRgb * s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if((*s++) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
pp.end();
QPixmap pm;
pm.convertFromImage(image);
pm.setMask(bm);
im4.setAlphaBuffer(true);
im4 = pm.convertToImage();
Bild = im4.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
if((*s) == 0xffffffff)
(*s) &= 0x00ffffff;
s++;
}
}
Bild = image.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
system("rm -f "+tmpFile);
}
}
462,49 → 436,23
fn + "\"" + cmd2);
if (ret == 0)
{
QImage im4;
QImage image;
image.load(tmpFile);
image = image.convertDepth(32);
image = image.convertDepth(32);
image.setAlphaBuffer(true);
int wi = image.width();
int hi = image.height();
QBitmap bm(tmpFile);
bm.fill(Qt::color1);
QPainter pp;
pp.begin(&bm);
pp.setPen(Qt::color0);
QString tmp2;
if ( image.depth() == 8 )
{
for( int yi=0; yi < hi; ++yi )
for( int yi=0; yi < hi; ++yi )
{
uchar * s = image.scanLine( yi );
for( int xi=0; xi < wi; ++xi )
QRgb *s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if(image.color(s[xi]) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
else
{
for( int yi=0; yi < hi; ++yi )
{
QRgb * s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if((*s++) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
pp.end();
QPixmap pm;
pm.convertFromImage(image);
pm.setMask(bm);
im4.setAlphaBuffer(true);
im4 = pm.convertToImage();
Bild = im4.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
if((*s) == 0xffffffff)
(*s) &= 0x00ffffff;
s++;
}
}
Bild = image.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
system("rm -f "+tmpFile);
*realCMYK = false;
}
/trunk/Scribus/scribus/icons/Splash.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus/icons/scribus_logo.jpg
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus/autoform.cpp
11,7 → 11,7
#include "autoform.moc"
#include "fpointarray.h"
#include "scpainter.h"
#include <qbitmap.h>
#include <qimage.h>
 
Autoforms::Autoforms( QWidget* parent ) : QToolButton( parent, "auto" )
{
286,17 → 286,33
Path.addPoint(x2, y2);
}
ScPainter *painter = new ScPainter(&Ico, 22, 22);
painter->setBrush(qRgb(240, 240, 240));
painter->setBrush(qRgb(230, 230, 230));
painter->setPen(qRgb(0, 0, 0));
painter->setFillMode(1);
painter->setLineWidth(0.0);
painter->drawRect(0.0, 0.0, 22.0, 22.0);
painter->setFillMode(0);
painter->translate(3.0, 3.0);
painter->setupPolygon(&Path);
painter->setLineWidth(1.0);
painter->drawPolygon();
painter->drawPolyLine();
painter->end();
delete painter;
Ico.setMask( Ico.createHeuristicMask() );
QImage image;
image = Ico.convertToImage();
image = image.convertDepth(32);
image.setAlphaBuffer(true);
int wi = image.width();
int hi = image.height();
for( int yi=0; yi < hi; ++yi )
{
QRgb *s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if((*s) == 0xffffffff)
(*s) &= 0x00ffffff;
s++;
}
}
Ico.convertFromImage(image);
// Ico.setMask( Ico.createHeuristicMask() );
return Ico;
}
/trunk/Scribus/scribus/alignselect.cpp
54,7 → 54,8
 
void AlignSelect::setStyle(int s)
{
switch (s)
setButton(s == 1 ? 2 : s == 2 ? 1 : s);
/* switch (s)
{
case 0:
setButton(0);
71,7 → 72,7
case 4:
setButton(4);
break;
}
}*/
}
 
int AlignSelect::getStyle()
92,7 → 93,8
 
void AlignSelect::setTypeStyle(int a)
{
switch (a)
emit State(a == 1 ? 2 : a == 2 ? 1 : a);
/*switch (a)
{
case 0:
emit State(0);
109,5 → 111,5
case 4:
emit State(4);
break;
}
}*/
}
/trunk/Scribus/scribus/pageitem.cpp
362,11 → 362,16
pb.setBrush(Qt::color1);
pb.setPen(QPen(Qt::color1, 1, DotLine, FlatCap, MiterJoin));
DrawPoly(&pb, Clip, pb.brush().color(), true);
pb.end();
QPixmap pmd = QPixmap(static_cast<int>(Width), static_cast<int>(Height));
QPixmap pmd2;
QPainter pd2;
QImage imd;
pmd.fill();
QPainter pd;
pd.begin(&pmd);
pmd2 = QPixmap(static_cast<int>(Width), static_cast<int>(Height));
pmd2.fill();
pd2.begin(&pmd2);
if ((!PicArt) || (!PicAvail))
{
pd.setPen(QPen(black, 1, SolidLine, FlatCap, MiterJoin));
383,29 → 388,41
}
else
{
if ((Pcolor != "None") || (GrType != 0))
imd = pixm.copy();
imd.setAlphaBuffer(true);
int wi = imd.width();
int hi = imd.height();
for( int yi=0; yi < hi; ++yi )
{
pd.setPen(NoPen);
SetFarbe(&tmp, Pcolor, Shade);
pd.setBrush(tmp);
if (!Doc->RePos)
QRgb *s = (QRgb*)(imd.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if (GrType == 0)
DrawPoly(&pd, Clip, pd.brush().color());
if(qAlpha((*s)) != 0)
(*s) = 0xff000000;
else
(*s) = 0xffffffff;
s++;
}
}
}
if (flippedH % 2 != 0)
{
pd.translate(Width, 0);
pd.scale(-1, 1);
pd2.translate(Width, 0);
pd2.scale(-1, 1);
}
if (flippedV % 2 != 0)
{
pd.translate(0, static_cast<int>(Height));
pd.scale(1, -1);
pd2.translate(0, static_cast<int>(Height));
pd2.scale(1, -1);
}
if ((LocalViewX != 1) || (LocalViewY != 1))
{
pd.scale(LocalViewX, LocalViewY);
pd2.scale(LocalViewX, LocalViewY);
}
if (InvPict)
{
QImage ip = pixm.copy();
414,11 → 431,34
}
else
pd.drawImage(static_cast<int>(LocalX*LocalScX), static_cast<int>(LocalY*LocalScY), pixm);
pd2.drawImage(static_cast<int>(LocalX*LocalScX), static_cast<int>(LocalY*LocalScY), imd);
pd2.end();
}
pmd.setMask(bmd);
QImage ip2 = pmd.convertToImage();
if (!imd.isNull())
{
imd = pmd2.convertToImage();
ip2 = ip2.convertDepth(32);
ip2.setAlphaBuffer(true);
int wi = ip2.width();
int hi = ip2.height();
for( int yi=0; yi < hi; ++yi )
{
QRgb *s = (QRgb*)(ip2.scanLine( yi ));
QRgb *s2 = (QRgb*)(imd.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if((*s2) != 0xff000000)
(*s) &= 0x00ffffff;
s++;
s2++;
}
}
}
p->drawImage(ip2);
pd.end();
pb.end();
}
break;
case 5:
/trunk/Scribus/scribus/art_kmisc.c
338,6 → 338,7
if (z < 0 || z >= src_height)
{
*p_x1 = *p_x0;
 
return;
}
}
/trunk/Scribus/scribus/libpostscript/pslib.cpp
57,7 → 57,7
{
QString tmp, tmp2, tmp3, tmp4, CHset;
QStringList wt;
QString Epfad = PREL;
QString Epfad = PREL;
Seiten = 0;
User = "";
Creator = "Scribus 1.0";
89,85 → 89,92
int c, m, y, k;
bool erst = true;
for (itf = DocColors.begin(); itf != DocColors.end(); ++itf)
{
if ((itf.key() != "Cyan") && (itf.key() != "Magenta") && (itf.key() != "Yellow") &&
(itf.key() != "Black"))
{
if ((itf.key() != "Cyan") && (itf.key() != "Magenta") && (itf.key() != "Yellow") && (itf.key() != "Black"))
{
DocColors[itf.key()].getCMYK(&c, &m, &y, &k);
if (!erst)
{
{
Farben += "%%+ ";
FNamen += "%%+ ";
}
Farben += ToStr(static_cast<double>(c) / 255) + " " + ToStr(static_cast<double>(m) / 255) + " ";
Farben += ToStr(static_cast<double>(y) / 255) + " " + ToStr(static_cast<double>(k) / 255) + " (" + itf.key() + ")\n";
}
Farben += ToStr(static_cast<double>(c) / 255) + " " +
ToStr(static_cast<double>(m) / 255) + " ";
Farben += ToStr(static_cast<double>(y) / 255) + " " +
ToStr(static_cast<double>(k) / 255) + " (" + itf.key() + ")\n";
FNamen += "(" + itf.key() + ")\n";
erst = false;
}
}
}
QMap<QString,QFont>::Iterator it;
int a = 0;
for (it = DocFonts.begin(); it != DocFonts.end(); ++it)
{
{
/* Subset all TTF Fonts until the bug in the TTF-Embedding Code is fixed */
QFileInfo fd = QFileInfo(AllFonts[it.key()]->Datei);
QString fext = fd.extension(false).lower();
 
if ((fext == "ttf") || (AllFonts[it.key()]->isOTF) || (AllFonts[it.key()]->Subset))
{
FontDesc += "/"+AllFonts[it.key()]->RealName()+" "+IToStr(AllFonts[it.key()]->RealGlyphs.count()+1)+" dict def\n";
{
FontDesc += "/"+AllFonts[it.key()]->RealName()+
" "+IToStr(AllFonts[it.key()]->RealGlyphs.count()+1)+" dict def\n";
FontDesc += AllFonts[it.key()]->RealName()+" begin\n";
QMap<uint,FPointArray>::Iterator ig;
for (ig = AllFonts[it.key()]->RealGlyphs.begin(); ig != AllFonts[it.key()]->RealGlyphs.end(); ++ig)
{
for (ig = AllFonts[it.key()]->RealGlyphs.begin();
ig != AllFonts[it.key()]->RealGlyphs.end(); ++ig)
{
FontDesc += "/G"+IToStr(ig.key())+" { newpath\n";
FPoint np, np1, np2;
bool nPath = true;
if (ig.data().size() > 3)
{
for (uint poi = 0; poi < ig.data().size()-3; poi += 4)
{
for (uint poi = 0; poi < ig.data().size()-3; poi += 4)
if (ig.data().point(poi).x() > 900000)
{
if (ig.data().point(poi).x() > 900000)
{
FontDesc += "cl\n";
nPath = true;
continue;
}
}
if (nPath)
{
{
np = ig.data().point(poi);
FontDesc += ToStr(np.x()) + " " + ToStr(-np.y()) + " m\n";
nPath = false;
}
}
np = ig.data().point(poi+1);
np1 = ig.data().point(poi+3);
np2 = ig.data().point(poi+2);
FontDesc += ToStr(np.x()) + " " + ToStr(-np.y()) + " " + ToStr(np1.x()) + " " + ToStr(-np1.y()) + " " + ToStr(np2.x()) + " " + ToStr(-np2.y()) + " cu\n";
}
FontDesc += ToStr(np.x()) + " " + ToStr(-np.y()) + " " +
ToStr(np1.x()) + " " + ToStr(-np1.y()) + " " +
ToStr(np2.x()) + " " + ToStr(-np2.y()) + " cu\n";
}
}
FontDesc += "cl\n} bind def\n";
}
}
FontDesc += "end\n";
AllFonts[it.key()]->RealGlyphs.clear();
}
}
else
{
{
UsedFonts.insert(it.key(), "/Fo"+IToStr(a));
Fonts += "/Fo"+IToStr(a)+" /"+AllFonts[it.key()]->RealName()+" findfont definefont pop\n";
if (AllFonts[it.key()]->EmbedPS)
{
{
QString tmp;
if(AllFonts[it.key()]->EmbedFont(tmp))
{
{
FontDesc += "%%BeginFont: " + AllFonts[it.key()]->RealName() + "\n";
FontDesc += tmp + "\n%%EndFont\n";
}
}
}
GListe gl;
AllFonts[it.key()]->GlNames(&gl);
GlyphsOfFont.insert(it.key(), gl);
a++;
}
}
}
Prolog = "%%BeginProlog\n";
Prolog += "/Scribusdict 100 dict def\n";
Prolog += "Scribusdict begin\n";
265,11 → 272,11
PutDoc("%%Pages: " + IToStr(numpage) + "\n");
BBox = "%%BoundingBox: 0 0 " + IToStr(qRound(breite)) + " " + IToStr(qRound(hoehe)) + "\n";
BBoxH = "%%HiResBoundingBox: 0 0 " + ToStr(breite) + " " + ToStr(hoehe) + "\n";
if (!Art)
{
if (!Art)
{
PutDoc(BBox);
PutDoc(BBoxH);
}
}
PutDoc(FNamen);
PutDoc(Farben);
PutDoc("%%LanguageLevel: 3\n");
299,12 → 306,12
QString tmp = "";
QString cc;
for (uint d = 0; d < in.length(); ++d)
{
{
cc = in.at(d);
if ((cc == "(") || (cc == ")") || (cc == "\\"))
tmp += "\\";
tmp += cc;
}
}
tmp = tmp.simplifyWhiteSpace().replace( QRegExp("\\s"), "" );
return tmp;
}
337,7 → 344,7
PDev += ToStr(Ma->Left) + " " + ToStr(hoehe - Ma->Top) + " li cl clip newpath\n";
Seiten++;
PutSeite("%%Page: " + IToStr(Seiten) + " " + IToStr(Seiten) + "\nsave\n" + PDev);
PutSeite("/DeviceCMYK setcolorspace\n");
PutSeite("/DeviceCMYK setcolorspace\n");
}
 
void PSLib::PS_end_page()
347,7 → 354,8
 
void PSLib::PS_curve(double x1, double y1, double x2, double y2, double x3, double y3)
{
PutSeite(ToStr(x1) + " " + ToStr(y1) + " " + ToStr(x2) + " " + ToStr(y2) + " " + ToStr(x3) + " " + ToStr(y3) + " curveto\n");
PutSeite(ToStr(x1) + " " + ToStr(y1) + " " + ToStr(x2) + " " + ToStr(y2) + " " + ToStr(x3) + " " +
ToStr(y3) + " curveto\n");
}
 
void PSLib::PS_moveto(double x, double y)
421,7 → 429,7
QString Dt = ToStr(QMAX(LineW, 1));
QString Da = ToStr(QMAX(3*LineW, 1));
switch (st)
{
{
case Qt::SolidLine:
PutSeite("[] 0 setdash\n");
break;
440,7 → 448,7
default:
PutSeite("[] 0 setdash\n");
break;
}
}
switch (ca)
{
case Qt::FlatCap:
520,7 → 528,7
PutSeite("/ShadingType 2\n");
PutSeite( DoSep ? "/ColorSpace /DeviceGray\n" : "/ColorSpace /DeviceCMYK\n" );
switch (grad)
{
{
case 1:
PutSeite("/Coords [0 "+ToStr(h / 2.0)+" "+ToStr(w)+" "+ToStr(h / 2.0)+"]\n");
break;
533,7 → 541,7
case 4:
PutSeite("/Coords ["+ToStr(w)+" 0 0 "+ToStr(h)+"]\n");
break;
}
}
PutSeite("/BBox [0 "+ToStr(h)+" "+ToStr(w)+" 0]\n");
PutSeite(DoSep ? QString("/Background [0]\n") : QString("/Background ["+FillColor+"]\n"));
PutSeite("/Extend [false false]\n");
542,18 → 550,18
PutSeite("/FunctionType 2\n");
PutSeite("/Domain [0 1]\n");
if (DoSep)
{
{
int pla = Plate - 1 < 0 ? 3 : Plate - 1;
QStringList cols1 = QStringList::split(" ", GrColor2);
QStringList cols2 = QStringList::split(" ", GrColor1);
PutSeite("/C1 ["+ToStr(1-cols1[pla].toDouble())+"]\n");
PutSeite("/C0 ["+ToStr(1-cols2[pla].toDouble())+"]\n");
}
}
else
{
{
PutSeite("/C0 ["+GrColor1+"]\n");
PutSeite("/C1 ["+GrColor2+"]\n");
}
}
PutSeite("/N 1\n");
PutSeite(">>\n");
PutSeite(">>\n");
580,34 → 588,35
PutSeite("/FunctionType 2\n");
PutSeite("/Domain [0 1]\n");
if (DoSep)
{
{
int pla = Plate - 1 < 0 ? 3 : Plate - 1;
QStringList cols1 = QStringList::split(" ", GrColor2);
QStringList cols2 = QStringList::split(" ", GrColor1);
PutSeite("/C0 ["+ToStr(1-cols1[pla].toDouble())+"]\n");
PutSeite("/C1 ["+ToStr(1-cols2[pla].toDouble())+"]\n");
}
}
else
{
{
PutSeite("/C0 ["+GrColor2+"]\n");
PutSeite("/C1 ["+GrColor1+"]\n");
}
}
PutSeite("/N 1\n");
PutSeite(">>\n");
PutSeite(">>\n");
if (item == 1)
PutSeite( w > fabs(h) ? "-"+ToStr(w2*(w2 / rad))+" "+ToStr(fabs(h2))+" tr\n" :
"-"+ToStr(w2*(w2 / rad))+" "+ToStr(fabs(h2)*(fabs(h2) /rad))+" tr\n" );
"-"+ToStr(w2*(w2 / rad))+" "+
ToStr(fabs(h2)*(fabs(h2) /rad))+" tr\n" );
else
{
{
if (w > fabs(h))
PutSeite("-"+ToStr(w2*(w2 / rad)-w2)+" 0 tr\n");
else
{
{
if (w < fabs(h))
PutSeite("0 "+ToStr(fabs(h2)*(fabs(h2) /rad)-fabs(h2))+" tr\n");
}
}
}
PutSeite(ToStr(w2 / rad)+" "+ToStr(fabs(h2) / rad)+" scale\n");
PutSeite("shfill\n");
PutSeite("cmtx setmatrix\n");
639,42 → 648,42
QFileInfo fi = QFileInfo(fn);
QString ext = fi.extension(false).lower();
if (ext == "eps")
{
if (loadText(fn, &tmp))
{
if (loadText(fn, &tmp))
{
PutSeite("currentfile 1 (%ENDEPSDATA) /SubFileDecode filter /ReusableStreamDecode filter\n");
PutSeite("%%BeginDocument: " + fi.fileName() + "\n");
PutSeite(tmp+"\n");
PutSeite("%ENDEPSDATA\n");
PutSeite("%%EndDocument\n");
PutSeite("%%BeginDocument: " + fi.fileName() + "\n");
PutSeite(tmp+"\n");
PutSeite("%ENDEPSDATA\n");
PutSeite("%%EndDocument\n");
PutSeite("/"+PSEncode(Name)+"Bild exch def\n");
}
}
return;
}
QString ImgStr = "";
}
QString ImgStr = "";
QImage image;
#ifdef HAVE_CMS
QImage image2;
bool cmy = false;
if ((CMSuse) && (UseProf))
{
{
image = LoadPict(fn);
image = image.convertDepth(32);
image2 = LoadPictCol(fn, Prof, UseEmbedded, &cmy);
if (inver)
{
{
image.invertPixels();
image2.invertPixels();
}
}
ImgStr = ImageToCMYK_PS(&image2, -1, cmy);
}
}
else
{
{
image = LoadPict(fn);
if (inver)
image.invertPixels();
ImgStr = ImageToCMYK_PS(&image, -1, false);
}
}
#else
image = LoadPict(fn);
image = image.convertDepth(32);
683,10 → 692,10
ImgStr = ImageToCMYK_PS(&image, -1, false);
#endif
if (CompAvail)
{
{
PutSeite("currentfile /ASCIIHexDecode filter /FlateDecode filter /ReusableStreamDecode filter\n");
ImgStr = CompressStr(&ImgStr);
}
}
else
PutSeite("currentfile /ASCIIHexDecode filter /ReusableStreamDecode filter\n");
ImgStr = String2Hex(&ImgStr);
699,10 → 708,10
QImage iMask = image.createAlphaMask();
ImgStr = MaskToTxt(&iMask, false);
if (CompAvail)
{
{
PutSeite("currentfile /ASCIIHexDecode filter /FlateDecode filter /ReusableStreamDecode filter\n");
ImgStr = CompressStr(&ImgStr);
}
}
else
PutSeite("currentfile /ASCIIHexDecode filter /ReusableStreamDecode filter\n");
ImgStr = String2Hex(&ImgStr);
709,7 → 718,7
PutSeite(ImgStr);
PutSeite("\n>\n");
PutSeite("/"+PSEncode(Name)+"Mask exch def\n");
}
}
}
 
void PSLib::PS_image(bool inver, double x, double y, QString fn, double scalex, double scaley, QString Prof, bool UseEmbedded, bool UseProf, QString Name)
718,84 → 727,87
QFileInfo fi = QFileInfo(fn);
QString ext = fi.extension(false).lower();
if (ext == "eps")
{
if (loadText(fn, &tmp))
{
if (loadText(fn, &tmp))
PutSeite("bEPS\n");
PutSeite(ToStr(scalex) + " " + ToStr(scaley) + " sc\n");
PutSeite(ToStr(x) + " " + ToStr(y) + " tr\n");
if (Name != "")
{
PutSeite("bEPS\n");
PutSeite(ToStr(scalex) + " " + ToStr(scaley) + " sc\n");
PutSeite(ToStr(x) + " " + ToStr(y) + " tr\n");
if (Name != "")
{
PutSeite(PSEncode(Name)+"Bild cvx exec\n");
PutSeite(PSEncode(Name)+"Bild resetfile\n");
}
else
{
PutSeite("%%BeginDocument: " + fi.fileName() + "\n");
PutSeite(tmp+"\n");
PutSeite("%%EndDocument\n");
}
PutSeite("eEPS\n");
PutSeite(PSEncode(Name)+"Bild cvx exec\n");
PutSeite(PSEncode(Name)+"Bild resetfile\n");
}
else
{
PutSeite("%%BeginDocument: " + fi.fileName() + "\n");
PutSeite(tmp+"\n");
PutSeite("%%EndDocument\n");
}
PutSeite("eEPS\n");
}
}
else
{
QString ImgStr = "";
{
QString ImgStr = "";
QImage image;
#ifdef HAVE_CMS
QImage image2;
bool cmy = false;
image = LoadPict(fn);
image = LoadPict(fn);
image = image.convertDepth(32);
if ((CMSuse) && (UseProf))
if ((CMSuse) && (UseProf))
image2 = LoadPictCol(fn, Prof, UseEmbedded, &cmy);
if (inver)
{
{
image.invertPixels();
image2.invertPixels();
}
}
#else
image = LoadPict(fn);
image = image.convertDepth(32);
image = image.convertDepth(32);
if (inver)
image.invertPixels();
#endif
int w = image.width();
int h = image.height();
PutSeite(ToStr(x*scalex) + " " + ToStr(y*scaley) + " tr\n");
PutSeite(ToStr(scalex*w) + " " + ToStr(scaley*h) + " sc\n");
PutSeite(((!DoSep) && (!GraySc)) ? "/DeviceCMYK setcolorspace\n" : "/DeviceGray setcolorspace\n");
if (image.hasAlphaBuffer())
{
PutSeite(ToStr(x*scalex) + " " + ToStr(y*scaley) + " tr\n");
PutSeite(ToStr(scalex*w) + " " + ToStr(scaley*h) + " sc\n");
PutSeite(((!DoSep) && (!GraySc)) ? "/DeviceCMYK setcolorspace\n" : "/DeviceGray setcolorspace\n");
if (image.hasAlphaBuffer())
{
QImage iMask = image.createAlphaMask();
#ifdef HAVE_CMS
if ((CMSuse) && (UseProf))
{
{
if (DoSep)
ImgStr = ImageToCMYK_PS(&image2, Plate, cmy);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image2, -2, cmy) : ImageToCMYK_PS(&image2, -1, cmy);
}
ImgStr = GraySc ? ImageToCMYK_PS(&image2, -2, cmy) :
ImageToCMYK_PS(&image2, -1, cmy);
}
else
{
{
if (DoSep)
ImgStr = ImageToCMYK_PS(&image, Plate, false);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) : ImageToCMYK_PS(&image, -1, false);
}
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) :
ImageToCMYK_PS(&image, -1, false);
}
#else
if (DoSep)
ImgStr = ImageToCMYK_PS(&image, Plate, false);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) : ImageToCMYK_PS(&image, -1, false);
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) : ImageToCMYK_PS(&image, -1,
false);
#endif
if (Name == "")
{
if (CompAvail)
{
if (CompAvail)
{
PutSeite("currentfile /ASCIIHexDecode filter /FlateDecode filter /ReusableStreamDecode filter\n");
ImgStr = CompressStr(&ImgStr);
}
}
else
PutSeite("currentfile /ASCIIHexDecode filter /ReusableStreamDecode filter\n");
ImgStr = String2Hex(&ImgStr);
805,10 → 817,10
PutSeite("/Bild exch def\n");
ImgStr = MaskToTxt(&iMask, false);
if (CompAvail)
{
{
PutSeite("currentfile /ASCIIHexDecode filter /FlateDecode filter /ReusableStreamDecode filter\n");
ImgStr = CompressStr(&ImgStr);
}
}
else
PutSeite("currentfile /ASCIIHexDecode filter /ReusableStreamDecode filter\n");
ImgStr = String2Hex(&ImgStr);
815,7 → 827,7
PutSeite(ImgStr);
PutSeite("\n>\n");
PutSeite("/Mask exch def\n");
}
}
PutSeite("<<\n");
PutSeite(" /PaintType 1\n");
PutSeite(" /PatternType 1\n");
830,7 → 842,8
PutSeite(" /ImageType 1\n");
PutSeite(" /Height " + IToStr(h) + "\n");
PutSeite(" /Width " + IToStr(w) + "\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h) +"]\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h)
+"]\n");
if (DoSep)
PutSeite(" /Decode [1 0]\n");
else
846,18 → 859,19
PutSeite(" /Height " + IToStr(h) + "\n");
PutSeite(" /BitsPerComponent 1\n");
PutSeite(" /Decode [1 0]\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h) + "]\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h) +
"]\n");
PutSeite(" /DataSource "+PSEncode(Name)+"Mask\n");
PutSeite(">>\n");
PutSeite("imagemask\n");
if (Name != "")
{
{
PutSeite(PSEncode(Name)+"Bild resetfile\n");
PutSeite(PSEncode(Name)+"Mask resetfile\n");
}
}
}
else
{
{
PutSeite("<< /ImageType 1\n");
PutSeite(" /Width " + IToStr(w) + "\n");
PutSeite(" /Height " + IToStr(h) + "\n");
866,37 → 880,41
PutSeite(" /Decode [1 0]\n");
else
PutSeite( GraySc ? " /Decode [1 0]\n" : " /Decode [0 1 0 1 0 1 0 1]\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h) + "]\n");
PutSeite(" /ImageMatrix [" + IToStr(w) + " 0 0 " + IToStr(-h) + " 0 " + IToStr(h) +
"]\n");
if (Name != "")
{
{
PutSeite(" /DataSource "+PSEncode(Name)+"Bild >>\n");
PutSeite("image\n");
PutSeite(PSEncode(Name)+"Bild resetfile\n");
}
}
else
PutSeite ( CompAvail ? " /DataSource currentfile /ASCIIHexDecode filter /FlateDecode filter >>\n" :
" /DataSource currentfile /ASCIIHexDecode filter >>\n");
" /DataSource currentfile /ASCIIHexDecode filter >>\n");
PutSeite("image\n");
#ifdef HAVE_CMS
if ((CMSuse) && (UseProf))
{
{
if (DoSep)
ImgStr = ImageToCMYK_PS(&image2, Plate, cmy);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image2, -2, cmy) : ImageToCMYK_PS(&image2, -1, cmy);
}
ImgStr = GraySc ? ImageToCMYK_PS(&image2, -2, cmy) :
ImageToCMYK_PS(&image2, -1, cmy);
}
else
{
{
if (DoSep)
ImgStr = ImageToCMYK_PS(&image, Plate, false);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) : ImageToCMYK_PS(&image, -1, false);
}
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) :
ImageToCMYK_PS(&image, -1, false);
}
#else
if (DoSep)
ImgStr = ImageToCMYK_PS(&image, Plate, false);
else
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) : ImageToCMYK_PS(&image, -1, false);
ImgStr = GraySc ? ImageToCMYK_PS(&image, -2, false) :
ImageToCMYK_PS(&image, -1, false);
#endif
if (CompAvail)
ImgStr = CompressStr(&ImgStr);
903,8 → 921,8
ImgStr = String2Hex(&ImgStr);
PutSeite(ImgStr);
PutSeite("\n>\n");
}
}
}
}
 
 
911,7 → 929,7
void PSLib::PS_plate(int nr)
{
switch (nr)
{
{
case 0:
PutSeite("%%PlateColor Black\n");
PutSeite("/setcmykcolor {exch pop exch pop exch pop 1 exch sub oldsetgray} bind def\n");
932,7 → 950,7
PutSeite("/setcmykcolor {pop exch pop exch pop 1 exch sub oldsetgray} bind def\n");
PutSeite("/setrgbcolor {exch pop exch pop oldsetgray} bind def\n");
break;
}
}
Plate = nr;
DoSep = true;
}
951,7 → 969,8
 
void PSLib::PDF_Annotation(QString text, double x, double y, double b, double h)
{
PutSeite("[ /Rect [ "+ToStr(static_cast<int>(x))+" "+ToStr(static_cast<int>(y))+" "+ToStr(static_cast<int>(b))+" "+ToStr(static_cast<int>(h))+" ]\n");
PutSeite("[ /Rect [ "+ToStr(static_cast<int>(x))+" "+ToStr(static_cast<int>(y))
+" "+ToStr(static_cast<int>(b))+" "+ToStr(static_cast<int>(h))+" ]\n");
PutSeite(" /Contents ("+text+")\n /Open false\n");
PutSeite("/ANN pdfmark\n");
isPDF = true;
/trunk/Scribus/scribus/libabout/about.h
11,28 → 11,28
 
class About : public QDialog
{
Q_OBJECT
Q_OBJECT
 
public:
About( QWidget* parent );
~About() {};
About( QWidget* parent );
~About() {};
QLabel* PixmapLabel1;
QLabel* BuildID;
QPushButton* PushButton1;
QTabWidget* TabWidget2;
QWidget* tab;
QWidget* tab_2;
QWidget* tab_3;
QTextView* TextView1;
QTextView* TextView2;
 
QLabel* PixmapLabel1;
QLabel* BuildID;
QPushButton* PushButton1;
QTabWidget* TabWidget2;
QWidget* tab;
QWidget* tab_2;
QWidget* tab_3;
QTextView* TextView1;
QTextView* TextView2;
 
protected:
QVBoxLayout* AboutLayout;
QHBoxLayout* tabLayout;
QVBoxLayout* tabLayout1;
QHBoxLayout* tabLayout_2;
QHBoxLayout* Layout2;
QVBoxLayout* AboutLayout;
QHBoxLayout* tabLayout;
QVBoxLayout* tabLayout1;
QHBoxLayout* tabLayout_2;
QHBoxLayout* Layout2;
 
};
 
/trunk/Scribus/scribus/libabout/about.cpp
54,41 → 54,41
tabLayout1->addWidget( PixmapLabel1 );
BuildID = new QLabel( tab, "BB" );
BuildID->setAlignment(Qt::AlignCenter);
QString bu = tr("%1. %2 %3 ").arg(5).arg("February").arg(2004);
QString bu = tr("%1. %2 %3 ").arg(8).arg("February").arg(2004);
#ifdef HAVE_CMS
bu += "C";
bu += "C";
#else
bu += "*";
bu += "*";
#endif
bu += "-";
bu += "-";
#ifdef HAVE_CUPS
bu += "C";
bu += "C";
#else
bu += "*";
bu += "*";
#endif
bu += "-";
bu += "-";
#ifdef HAVE_TIFF
bu += "T";
bu += "T";
#else
bu += "*";
bu += "*";
#endif
 
BuildID->setText( tr("Scribus Version %1\n%2 %3").arg(VERSION).arg( tr("Build-ID:")).arg(bu));
tabLayout1->addWidget( BuildID );
TabWidget2->insertTab( tab, tr( "About" ) );
tab_2 = new QWidget( TabWidget2, "tab_2" );
tabLayout = new QHBoxLayout( tab_2 );
tabLayout->setSpacing( 6 );
tabLayout->setMargin( 10 );
TextView1 = new QTextView( tab_2, "TextView1" );
TextView1->setText( "<table><tr><td><b>" + tr("Programming:") + "</b></td><td> </td></tr>" +
BuildID->setText( tr("Scribus Version %1\n%2 %3").arg(VERSION).arg( tr("Build-ID:")).arg(bu));
tabLayout1->addWidget( BuildID );
TabWidget2->insertTab( tab, tr( "About" ) );
tab_2 = new QWidget( TabWidget2, "tab_2" );
tabLayout = new QHBoxLayout( tab_2 );
tabLayout->setSpacing( 6 );
tabLayout->setMargin( 10 );
TextView1 = new QTextView( tab_2, "TextView1" );
TextView1->setText( "<table><tr><td><b>" + tr("Programming:") + "</b></td><td> </td></tr>" +
"<tr><td>Franz Schmid</td><td>Franz.Schmid@altmuehlnet.de</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Contributions from:") + "</b></td><td></td></tr>" +
"<tr><td>Paul F. Johnson</td><td>paul@all-the-johnsons.co.uk</td></tr>" +
"<tr><td>Craig Bradney</td><td>cbradney@zip.com.au</td></tr>" +
"<tr><td>Alessandro Rimoldi</td><td>a.l.e@ideale.ch</td></tr>" +
"<tr><td>Christian Töpp</td><td>mr-ct@gmx.de</td></tr>" +
"<tr><td>Alessandro Rimoldi</td><td>http://ideale.ch/contact</td></tr>" +
"<tr><td>Christian Tpp</td><td>mr-ct@gmx.de</td></tr>" +
"<tr><td>Alastair Robinson</td><td>blackfive@fakenhamweb.co.uk</td></tr>" +
"<tr><td></td><td> </td></tr>" +
#if (_MSC_VER >= 1200)
100,15 → 100,15
"<tr><td>Peter Linnell</td><td>scribusdocs@atlantictechsolutions.com</td></tr>" +
"<tr><td>Yves Ceccone</td><td>yves@yeccoe.org</td></tr>" +
"<tr><td>Thomas Zastrow</td><td>webmaster@thomas-zastrow.de</td></tr></table>");
TextView1->setTextFormat( QTextView::RichText );
tabLayout->addWidget( TextView1 );
TabWidget2->insertTab( tab_2, tr( "Authors" ) );
tab_3 = new QWidget( TabWidget2, "tab_3" );
tabLayout_2 = new QHBoxLayout( tab_3 );
tabLayout_2->setSpacing( 6 );
tabLayout_2->setMargin( 10 );
TextView2 = new QTextView( tab_3, "TextView1_2" );
TextView2->setText( "<table><tr><td><b>" + tr("German:") + "</b></td><td> </td></tr>" +
TextView1->setTextFormat( QTextView::RichText );
tabLayout->addWidget( TextView1 );
TabWidget2->insertTab( tab_2, tr( "Authors" ) );
tab_3 = new QWidget( TabWidget2, "tab_3" );
tabLayout_2 = new QHBoxLayout( tab_3 );
tabLayout_2->setSpacing( 6 );
tabLayout_2->setMargin( 10 );
TextView2 = new QTextView( tab_3, "TextView1_2" );
TextView2->setText( "<table><tr><td><b>" + tr("German:") + "</b></td><td> </td></tr>" +
"<tr><td>Franz Schmid</td><td>Franz.Schmid@altmuehlnet.de</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("French:") + "</b></td><td> </td>" +
123,7 → 123,7
"<tr><td>Giovanni Biczs</td><td>gbiczo@freestart.hu</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Hungarian:") + "</b></td><td> </td></tr>" +
"<tr><td>Giovanni Biczó</td><td>gbiczo@freestart.hu</td></tr>" +
"<tr><td>Giovanni Bicz</td><td>gbiczo@freestart.hu</td></tr>" +
"<tr><td>Bence Nagy</td><td>scribus@tipogral.hu</td></tr>" +
"<tr><td>Zolt? Bszrm?yi</td><td>zboszor@freemail.hu</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
143,13 → 143,13
"<tr><td>Aivaras Kirejevas</td><td>kiras@mail.lt</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Polish:") + "</b></td><td> </td></tr>" +
"<tr><td>Maciej Hañski</td><td>m.hanski@gmx.at</td></tr>" +
"<tr><td>Maciej Haski</td><td>m.hanski@gmx.at</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Czech:") + "</b></td><td></td></tr>" +
"<tr><td>Petr Vanìk</td><td>subzero@py.cz</td></tr>" +
"<tr><td>Petr Van�</td><td>subzero@py.cz</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Slovak:") + "</b></td><td></td></tr>" +
"<tr><td>Zdenko Podobný</td><td>zdpo@mailbox.sk</td></tr>" +
"<tr><td>Zdenko Podobn</td><td>zdpo@mailbox.sk</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"<tr><td><b>" + tr("Danish:") + "</b></td><td></td></tr>" +
"<tr><td>Morten Langlo</td><td>mlanglo@post6.tele.dk</td></tr>" +
174,24 → 174,24
"<tr><td>Riku Leino</td><td>tsoots@welho.com</td></tr>" +
"<tr><td> </td><td> </td></tr>" +
"</table>");
TextView2->setTextFormat( QTextView::RichText );
tabLayout_2->addWidget( TextView2 );
TabWidget2->insertTab( tab_3, tr( "Translations" ) );
AboutLayout->addWidget( TabWidget2 );
Layout2 = new QHBoxLayout;
Layout2->setSpacing( 6 );
Layout2->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout2->addItem( spacer );
PushButton1 = new QPushButton( this, "PushButton1" );
PushButton1->setText( tr( "Close" ) );
PushButton1->setDefault( true );
Layout2->addWidget( PushButton1 );
AboutLayout->addLayout( Layout2 );
setMaximumSize(sizeHint());
 
// signals and slots connections
connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
TextView2->setTextFormat( QTextView::RichText );
tabLayout_2->addWidget( TextView2 );
TabWidget2->insertTab( tab_3, tr( "Translations" ) );
AboutLayout->addWidget( TabWidget2 );
Layout2 = new QHBoxLayout;
Layout2->setSpacing( 6 );
Layout2->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout2->addItem( spacer );
PushButton1 = new QPushButton( this, "PushButton1" );
PushButton1->setText( tr( "Close" ) );
PushButton1->setDefault( true );
Layout2->addWidget( PushButton1 );
AboutLayout->addLayout( Layout2 );
setMaximumSize(sizeHint());
// signals and slots connections
connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
}
 
 
/trunk/Scribus/scribus/scribus.cpp
115,8 → 115,21
QString DocDir;
ScribusApp* ScApp;
 
ScribusApp::ScribusApp(SplashScreen *splash)
ScribusApp::ScribusApp()
{
} // ScribusApp::ScribusApp()
 
void ScribusApp::initGui()
{
splash = new SplashScreen();
splash->setStatus(QObject::tr("Initializing..."));
initScribus();
splash->close();
delete splash;
}
 
void ScribusApp::initScribus()
{
ScApp = this;
setCaption( tr("Scribus " VERSION));
setKeyCompression(false);
2310,10 → 2323,16
}
Mpal->NewSel(Nr);
if (Nr != -1)
{
{
Mpal->SetCurItem(b);
Tpal->slotShowSelect(b->OwnPage->PageNr, b->ItemNr);
}
if (b->FrameType == 0)
SCustom->setPixmap(SCustom->getIconPixmap(0));
if (b->FrameType == 1)
SCustom->setPixmap(SCustom->getIconPixmap(1));
if (b->FrameType > 3)
SCustom->setPixmap(SCustom->getIconPixmap(b->FrameType-2));
}
}
 
void ScribusApp::slotDocCh(bool reb)
4199,6 → 4218,8
doc->SubMode = WerkTools->SubMode;
doc->ShapeValues = WerkTools->ShapeVals;
doc->ValCount = WerkTools->ValCount;
Mpal->SCustom->setPixmap(Mpal->SCustom->getIconPixmap(doc->SubMode));
SCustom->setPixmap(SCustom->getIconPixmap(doc->SubMode));
}
else
doc->SubMode = -1;
5052,8 → 5073,10
break;
default:
doc->ActPage->SetFrameShape(b, c, vals);
b->FrameType = f+2;
break;
}
Mpal->SetCurItem(b);
doc->ActPage->RefreshItem(b);
slotDocCh();
doc->UnDoValid = false;
5834,6 → 5857,17
QMap<QString,QFont> ReallyUsed;
ReallyUsed.clear();
GetUsedFonts(&ReallyUsed);
if (doc->PDF_Optionen.EmbedList.count() != 0)
{
QValueList<QString> tmpEm;
QValueList<QString>::Iterator itef;
for (itef = doc->PDF_Optionen.EmbedList.begin(); itef != doc->PDF_Optionen.EmbedList.end(); ++itef)
{
if (ReallyUsed.contains((*itef)))
tmpEm.append((*itef));
}
doc->PDF_Optionen.EmbedList = tmpEm;
}
PDF_Opts *dia = new PDF_Opts(this, doc->DocName, ReallyUsed, view, &doc->PDF_Optionen, doc->PDF_Optionen.PresentVals, &PDFXProfiles, Prefs.AvailFonts);
if (dia->exec())
{
7297,7 → 7331,7
{
Really->insert(it->Ptext.at(e)->cfont, doc->UsedFonts[it->Ptext.at(e)->cfont]);
uint chr = it->Ptext.at(e)->ch[0].unicode();
if ((chr == 13) || (chr == 32))
if ((chr == 13) || (chr == 32) || (chr == 29) || (chr == 9))
continue;
if (it->Ptext.at(e)->cstyle & 64)
{
/trunk/Scribus/scribus/libprefs/prefs.cpp
45,1565 → 45,1475
: QDialog( parent, "pref", true, 0 )
{
int decimals;
fon = &Vor->AvailFonts;
ap = (ScribusApp*)parent;
Umrech = 1.0;
Einheit = ap->HaveDoc ? ap->doc->Einheit : Vor->Einheit;
 
switch (Einheit)
{
case 0:
decimals = 100;
break;
case 1:
decimals = 1000;
break;
case 2:
decimals = 10000;
break;
case 3:
decimals = 100;
break;
}
 
 
DisScale = Vor->DisScale;
KKC = Vor->KeyActions;
setCaption( tr( "Preferences" ) );
fon = &Vor->AvailFonts;
ap = (ScribusApp*)parent;
Umrech = 1.0;
Einheit = ap->HaveDoc ? ap->doc->Einheit : Vor->Einheit;
int f[] = {100, 1000, 10000};
if (Einheit == 3)
decimals = f[0];
else
decimals = f[Einheit];
DisScale = Vor->DisScale;
KKC = Vor->KeyActions;
setCaption( tr( "Preferences" ) );
setIcon(loadIcon("AppIcon.png"));
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
PrefsLayout = new QVBoxLayout( this );
PrefsLayout->setSpacing( 6 );
PrefsLayout->setMargin( 11 );
setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
PrefsLayout = new QVBoxLayout( this );
PrefsLayout->setSpacing( 6 );
PrefsLayout->setMargin( 11 );
 
PrefsLayout2 = new QHBoxLayout(0, 0, 6);
PrefsLayout2 = new QHBoxLayout(0, 0, 6);
 
TabListe = new QListBox(this, "StyledL");
TabListe->insertItem( tr( "General" ) );
TabListe->insertItem( tr( "Document" ) );
TabListe->insertItem( tr( "Guides" ) );
TabListe->insertItem( tr( "Typography" ) );
TabListe->insertItem( tr( "Tools" ) );
TabListe->insertItem( tr( "Scrapbook" ) );
TabListe->insertItem( tr( "Display" ) );
PrefsLayout2->addWidget(TabListe);
TabListe = new QListBox(this, "StyledL");
QString ar_tab[] = { tr("General"), tr("Document"), tr("Guides"), tr("Typography"), tr("Tools"), tr("Scrapbook"), tr("Display")};
size_t a_tab = sizeof(ar_tab) / sizeof(*ar_tab);
for (uint s = 0; s < a_tab; ++s)
TabListe->insertItem(ar_tab[s]);
PrefsLayout2->addWidget(TabListe);
 
TabWidget3 = new QWidgetStack( this, "TabWidget3" );
TabWidget3->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
TabWidget3->setFrameShape( QWidgetStack::StyledPanel );
TabWidget3->setFrameShadow( QWidgetStack::Sunken );
tab = new QWidget( TabWidget3, "tab" );
tabLayout = new QGridLayout( tab );
tabLayout->setSpacing( 6 );
tabLayout->setMargin( 10 );
ButtonGroup1 = new QButtonGroup( tab, "ButtonGroup1" );
ButtonGroup1->setTitle( tr( "GUI" ) );
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
ButtonGroup1->layout()->setSpacing( 0 );
ButtonGroup1->layout()->setMargin( 0 );
ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
ButtonGroup1Layout->setSpacing( 6 );
ButtonGroup1Layout->setMargin( 10 );
TextGstil = new QLabel(ButtonGroup1, "dd");
TextGstil->setText( tr("Theme"));
ButtonGroup1Layout->addWidget( TextGstil, 0, 0 );
GUICombo = new QComboBox( true, ButtonGroup1, "GUICombo" );
QStringList STtest;
STtest = QStyleFactory::keys();
for (uint stt = 0; stt < STtest.count(); ++stt)
{
GUICombo->insertItem(STtest[stt]);
}
GUICombo->setEditable(false);
GUICombo->setCurrentText(Vor->GUI);
ButtonGroup1Layout->addWidget( GUICombo, 0, 1, Qt::AlignRight );
TextGstil2 = new QLabel(ButtonGroup1, "dd");
TextGstil2->setText( tr("Font Size:"));
ButtonGroup1Layout->addWidget( TextGstil2, 1, 0 );
GFsize = new QSpinBox(ButtonGroup1, "gfs" );
GFsize->setSuffix( tr( " pts" ) );
GFsize->setMaxValue( 22 );
GFsize->setMinValue( 8 );
GFsize->setValue( Vor->AppFontSize );
ButtonGroup1Layout->addWidget( GFsize, 1, 1, Qt::AlignRight );
tabLayout->addWidget( ButtonGroup1, 0, 0 );
GroupBox20 = new QGroupBox( tab, "GroupBox20" );
GroupBox20->setTitle( tr( "Units" ) );
GroupBox20->setColumnLayout(0, Qt::Vertical );
GroupBox20->layout()->setSpacing( 0 );
GroupBox20->layout()->setMargin( 0 );
GroupBox20Layout = new QHBoxLayout( GroupBox20->layout() );
GroupBox20Layout->setAlignment( Qt::AlignTop );
GroupBox20Layout->setSpacing( 0 );
GroupBox20Layout->setMargin( 25 );
UnitCombo = new QComboBox( true, GroupBox20, "UnitCombo" );
UnitCombo->insertItem( tr( "Points (pt)" ) );
UnitCombo->insertItem( tr( "Millimetres (mm)" ) );
UnitCombo->insertItem( tr( "Inches (in)" ) );
UnitCombo->insertItem( tr( "Picas (p)" ) );
UnitCombo->setEditable(false);
UnitCombo->setCurrentItem(ap->HaveDoc ? ap->doc->Einheit : Vor->Einheit);
GroupBox20Layout->addWidget( UnitCombo );
tabLayout->addWidget( GroupBox20, 1, 0 );
Mouse = new QGroupBox( tab, "Mouse" );
Mouse->setTitle( tr( "Mouse-Settings" ) );
Mouse->setColumnLayout(0, Qt::Vertical );
Mouse->layout()->setSpacing( 0 );
Mouse->layout()->setMargin( 0 );
MouseLayout = new QHBoxLayout( Mouse->layout() );
MouseLayout->setAlignment( Qt::AlignTop );
MouseLayout->setSpacing( 6 );
MouseLayout->setMargin( 10 );
Layout5 = new QGridLayout;
Layout5->setSpacing( 6 );
Layout5->setMargin( 0 );
TextLabel1_2 = new QLabel( Mouse, "TextLabel1_2" );
TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_2->setText( tr( "Wheel-Jump" ) );
Layout5->addWidget( TextLabel1_2, 0, 0 );
SpinBox3 = new QSpinBox( Mouse, "SpinBox3" );
SpinBox3->setMaxValue( 1000 );
SpinBox3->setMinValue( 0 );
SpinBox3->setLineStep( 10 );
SpinBox3->setValue( Vor->Wheelval );
Layout5->addWidget( SpinBox3, 0, 1 );
TextLabel1_2_2 = new QLabel( Mouse, "TextLabel1_2_2" );
TextLabel1_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1_2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_2_2->setText( tr( "Grab-Radius" ) );
Layout5->addWidget( TextLabel1_2_2, 1, 0 );
SpinBox3_2 = new QSpinBox( Mouse, "SpinBox3_2" );
SpinBox3_2->setMaxValue( 1000 );
SpinBox3_2->setMinValue( 1 );
SpinBox3_2->setLineStep( 1 );
SpinBox3_2->setValue(ap->HaveDoc ? ap->doc->GrabRad : Vor->GrabRad );
Layout5->addWidget( SpinBox3_2, 1, 1 );
MouseLayout->addLayout( Layout5 );
tabLayout->addWidget( Mouse, 0, 1 );
TabWidget3 = new QWidgetStack( this, "TabWidget3" );
TabWidget3->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
TabWidget3->setFrameShape( QWidgetStack::StyledPanel );
TabWidget3->setFrameShadow( QWidgetStack::Sunken );
tab = new QWidget( TabWidget3, "tab" );
tabLayout = new QGridLayout( tab );
tabLayout->setSpacing( 6 );
tabLayout->setMargin( 10 );
ButtonGroup1 = new QButtonGroup( tab, "ButtonGroup1" );
ButtonGroup1->setTitle( tr( "GUI" ) );
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
ButtonGroup1->layout()->setSpacing( 0 );
ButtonGroup1->layout()->setMargin( 0 );
ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
ButtonGroup1Layout->setSpacing( 6 );
ButtonGroup1Layout->setMargin( 10 );
TextGstil = new QLabel(ButtonGroup1, "dd");
TextGstil->setText( tr("Theme"));
ButtonGroup1Layout->addWidget( TextGstil, 0, 0 );
GUICombo = new QComboBox( true, ButtonGroup1, "GUICombo" );
QStringList STtest;
STtest = QStyleFactory::keys();
for (uint stt = 0; stt < STtest.count(); ++stt)
GUICombo->insertItem(STtest[stt]);
GUICombo->setEditable(false);
GUICombo->setCurrentText(Vor->GUI);
ButtonGroup1Layout->addWidget( GUICombo, 0, 1, Qt::AlignRight );
TextGstil2 = new QLabel(ButtonGroup1, "dd");
TextGstil2->setText( tr("Font Size:"));
ButtonGroup1Layout->addWidget( TextGstil2, 1, 0 );
GFsize = new QSpinBox(ButtonGroup1, "gfs" );
GFsize->setSuffix( tr( " pts" ) );
GFsize->setMaxValue( 22 );
GFsize->setMinValue( 8 );
GFsize->setValue( Vor->AppFontSize );
ButtonGroup1Layout->addWidget( GFsize, 1, 1, Qt::AlignRight );
tabLayout->addWidget( ButtonGroup1, 0, 0 );
GroupBox20 = new QGroupBox( tab, "GroupBox20" );
GroupBox20->setTitle( tr( "Units" ) );
GroupBox20->setColumnLayout(0, Qt::Vertical );
GroupBox20->layout()->setSpacing( 0 );
GroupBox20->layout()->setMargin( 0 );
GroupBox20Layout = new QHBoxLayout( GroupBox20->layout() );
GroupBox20Layout->setAlignment( Qt::AlignTop );
GroupBox20Layout->setSpacing( 0 );
GroupBox20Layout->setMargin( 25 );
UnitCombo = new QComboBox( true, GroupBox20, "UnitCombo" );
UnitCombo->insertItem( tr( "Points (pt)" ) );
UnitCombo->insertItem( tr( "Millimetres (mm)" ) );
UnitCombo->insertItem( tr( "Inches (in)" ) );
UnitCombo->insertItem( tr( "Picas (p)" ) );
UnitCombo->setEditable(false);
UnitCombo->setCurrentItem(ap->HaveDoc ? ap->doc->Einheit : Vor->Einheit);
GroupBox20Layout->addWidget( UnitCombo );
tabLayout->addWidget( GroupBox20, 1, 0 );
Mouse = new QGroupBox( tab, "Mouse" );
Mouse->setTitle( tr( "Mouse-Settings" ) );
Mouse->setColumnLayout(0, Qt::Vertical );
Mouse->layout()->setSpacing( 0 );
Mouse->layout()->setMargin( 0 );
MouseLayout = new QHBoxLayout( Mouse->layout() );
MouseLayout->setAlignment( Qt::AlignTop );
MouseLayout->setSpacing( 6 );
MouseLayout->setMargin( 10 );
Layout5 = new QGridLayout;
Layout5->setSpacing( 6 );
Layout5->setMargin( 0 );
TextLabel1_2 = new QLabel( Mouse, "TextLabel1_2" );
TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_2->setText( tr( "Wheel-Jump" ) );
Layout5->addWidget( TextLabel1_2, 0, 0 );
SpinBox3 = new QSpinBox( Mouse, "SpinBox3" );
SpinBox3->setMaxValue( 1000 );
SpinBox3->setMinValue( 0 );
SpinBox3->setLineStep( 10 );
SpinBox3->setValue( Vor->Wheelval );
Layout5->addWidget( SpinBox3, 0, 1 );
TextLabel1_2_2 = new QLabel( Mouse, "TextLabel1_2_2" );
TextLabel1_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1_2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_2_2->setText( tr( "Grab-Radius" ) );
Layout5->addWidget( TextLabel1_2_2, 1, 0 );
SpinBox3_2 = new QSpinBox( Mouse, "SpinBox3_2" );
SpinBox3_2->setMaxValue( 1000 );
SpinBox3_2->setMinValue( 1 );
SpinBox3_2->setLineStep( 1 );
SpinBox3_2->setValue(ap->HaveDoc ? ap->doc->GrabRad : Vor->GrabRad );
Layout5->addWidget( SpinBox3_2, 1, 1 );
MouseLayout->addLayout( Layout5 );
tabLayout->addWidget( Mouse, 0, 1 );
 
GroupBox20b = new QGroupBox( tab, "GroupBox20b" );
GroupBox20b->setTitle( tr( "Menus" ) );
GroupBox20b->setColumnLayout(0, Qt::Vertical );
GroupBox20b->layout()->setSpacing( 0 );
GroupBox20b->layout()->setMargin( 0 );
GroupBox20bLayout = new QGridLayout( GroupBox20b->layout() );
GroupBox20bLayout->setAlignment( Qt::AlignTop );
GroupBox20bLayout->setSpacing( 5 );
GroupBox20bLayout->setMargin( 10 );
TextLabel4c = new QLabel( GroupBox20b, "TextLabel4c" );
TextLabel4c->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel4c->sizePolicy().hasHeightForWidth() ) );
TextLabel4c->setText( tr( "Recent Documents:" ) );
GroupBox20bLayout->addWidget( TextLabel4c, 0, 0);
Recen = new QSpinBox( GroupBox20b, "Recen" );
Recen->setMaxValue( 30 );
Recen->setMinValue( 1 );
Recen->setValue( Vor->RecentDCount );
GroupBox20bLayout->addWidget( Recen, 0, 1 );
Shorty = new QPushButton(GroupBox20b, "SH");
Shorty->setText( tr("Keyboard Shortcuts..."));
GroupBox20bLayout->addMultiCellWidget( Shorty, 1, 1, 0, 1 );
tabLayout->addWidget( GroupBox20b, 1, 1 );
GroupBox20b = new QGroupBox( tab, "GroupBox20b" );
GroupBox20b->setTitle( tr( "Menus" ) );
GroupBox20b->setColumnLayout(0, Qt::Vertical );
GroupBox20b->layout()->setSpacing( 0 );
GroupBox20b->layout()->setMargin( 0 );
GroupBox20bLayout = new QGridLayout( GroupBox20b->layout() );
GroupBox20bLayout->setAlignment( Qt::AlignTop );
GroupBox20bLayout->setSpacing( 5 );
GroupBox20bLayout->setMargin( 10 );
TextLabel4c = new QLabel( GroupBox20b, "TextLabel4c" );
TextLabel4c->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel4c->sizePolicy().hasHeightForWidth() ) );
TextLabel4c->setText( tr( "Recent Documents:" ) );
GroupBox20bLayout->addWidget( TextLabel4c, 0, 0);
Recen = new QSpinBox( GroupBox20b, "Recen" );
Recen->setMaxValue( 30 );
Recen->setMinValue( 1 );
Recen->setValue( Vor->RecentDCount );
GroupBox20bLayout->addWidget( Recen, 0, 1 );
Shorty = new QPushButton(GroupBox20b, "SH");
Shorty->setText( tr("Keyboard Shortcuts..."));
GroupBox20bLayout->addMultiCellWidget( Shorty, 1, 1, 0, 1 );
tabLayout->addWidget( GroupBox20b, 1, 1 );
 
GroupBox200 = new QGroupBox( tab, "GroupBox200" );
GroupBox200->setTitle( tr( "Paths" ) );
GroupBox200->setColumnLayout(0, Qt::Horizontal );
GroupBox200->layout()->setSpacing( 0 );
GroupBox200->layout()->setMargin( 0 );
GroupBox200Layout = new QGridLayout( GroupBox200->layout() );
GroupBox200Layout->setAlignment( Qt::AlignTop );
GroupBox200Layout->setSpacing( 0 );
GroupBox200Layout->setMargin( 5 );
PfadText = new QLabel( GroupBox200, "Pfadtext" );
PfadText->setText( tr("Documents:"));
GroupBox200Layout->addWidget( PfadText, 0, 0 );
Docs = new QLineEdit( GroupBox200, "Datei" );
Docs->setMinimumSize( QSize( 268, 22 ) );
Docs->setText(Vor->DocDir);
GroupBox200Layout->addWidget( Docs, 0, 1 );
FileC = new QToolButton( GroupBox200, "FileC" );
FileC->setMinimumSize( QSize( 88, 24 ) );
FileC->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC, 0, 2 );
PfadText2 = new QLabel( GroupBox200, "Pfadtext1" );
PfadText2->setText( tr("ICC-Profiles:"));
GroupBox200Layout->addWidget( PfadText2, 1, 0 );
ProPfad = new QLineEdit( GroupBox200, "Datei1" );
ProPfad->setMinimumSize( QSize( 268, 22 ) );
ProPfad->setText(Vor->ProfileDir);
GroupBox200Layout->addWidget( ProPfad, 1, 1 );
FileC2 = new QToolButton( GroupBox200, "FileC1" );
FileC2->setMinimumSize( QSize( 88, 24 ) );
FileC2->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC2, 1, 2 );
GroupBox200 = new QGroupBox( tab, "GroupBox200" );
GroupBox200->setTitle( tr( "Paths" ) );
GroupBox200->setColumnLayout(0, Qt::Horizontal );
GroupBox200->layout()->setSpacing( 0 );
GroupBox200->layout()->setMargin( 0 );
GroupBox200Layout = new QGridLayout( GroupBox200->layout() );
GroupBox200Layout->setAlignment( Qt::AlignTop );
GroupBox200Layout->setSpacing( 0 );
GroupBox200Layout->setMargin( 5 );
PfadText = new QLabel( GroupBox200, "Pfadtext" );
PfadText->setText( tr("Documents:"));
GroupBox200Layout->addWidget( PfadText, 0, 0 );
Docs = new QLineEdit( GroupBox200, "Datei" );
Docs->setMinimumSize( QSize( 268, 22 ) );
Docs->setText(Vor->DocDir);
GroupBox200Layout->addWidget( Docs, 0, 1 );
FileC = new QToolButton( GroupBox200, "FileC" );
FileC->setMinimumSize( QSize( 88, 24 ) );
FileC->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC, 0, 2 );
PfadText2 = new QLabel( GroupBox200, "Pfadtext1" );
PfadText2->setText( tr("ICC-Profiles:"));
GroupBox200Layout->addWidget( PfadText2, 1, 0 );
ProPfad = new QLineEdit( GroupBox200, "Datei1" );
ProPfad->setMinimumSize( QSize( 268, 22 ) );
ProPfad->setText(Vor->ProfileDir);
GroupBox200Layout->addWidget( ProPfad, 1, 1 );
FileC2 = new QToolButton( GroupBox200, "FileC1" );
FileC2->setMinimumSize( QSize( 88, 24 ) );
FileC2->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC2, 1, 2 );
 
PfadText3 = new QLabel( GroupBox200, "Pfadtext1" );
PfadText3->setText( tr("Scripts:"));
GroupBox200Layout->addWidget( PfadText3, 2, 0 );
ScriptPfad = new QLineEdit( GroupBox200, "Datei1" );
ScriptPfad->setMinimumSize( QSize( 268, 22 ) );
ScriptPfad->setText(Vor->ScriptDir);
GroupBox200Layout->addWidget( ScriptPfad, 2, 1 );
FileC3 = new QToolButton( GroupBox200, "FileC3" );
FileC3->setMinimumSize( QSize( 88, 24 ) );
FileC3->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC3, 2, 2 );
PfadText3 = new QLabel( GroupBox200, "Pfadtext1" );
PfadText3->setText( tr("Scripts:"));
GroupBox200Layout->addWidget( PfadText3, 2, 0 );
ScriptPfad = new QLineEdit( GroupBox200, "Datei1" );
ScriptPfad->setMinimumSize( QSize( 268, 22 ) );
ScriptPfad->setText(Vor->ScriptDir);
GroupBox200Layout->addWidget( ScriptPfad, 2, 1 );
FileC3 = new QToolButton( GroupBox200, "FileC3" );
FileC3->setMinimumSize( QSize( 88, 24 ) );
FileC3->setText( tr( "Change..." ) );
GroupBox200Layout->addWidget( FileC3, 2, 2 );
 
tabLayout->addMultiCellWidget( GroupBox200, 2, 2, 0, 1 );
tabLayout->addMultiCellWidget( GroupBox200, 2, 2, 0, 1 );
 
TabWidget3->addWidget( tab, 0 );
TabWidget3->addWidget( tab, 0 );
 
tab_7 = new QWidget( TabWidget3, "tab_7" );
tabLayout_7 = new QHBoxLayout( tab_7, 11, 6, "tabLayout_7");
Layout21 = new QVBoxLayout( 0, 0, 6, "Layout21");
GroupSize = new QButtonGroup( tab_7, "GroupSize" );
GroupSize->setTitle( tr( "Page Size" ) );
GroupSize->setColumnLayout(0, Qt::Vertical );
GroupSize->layout()->setSpacing( 6 );
GroupSize->layout()->setMargin( 10 );
GroupSizeLayout = new QVBoxLayout( GroupSize->layout() );
GroupSizeLayout->setAlignment( Qt::AlignTop );
Layout6 = new QGridLayout( 0, 1, 1, 0, 6, "Layout6");
GZText2 = new QLabel( GroupSize, "GZText2" );
GZText2->setText( tr( "Orientation:" ) );
Layout6->addWidget( GZText2, 1, 0 );
GZComboF = new QComboBox( true, GroupSize, "GZComboF" );
GZComboF->insertItem("A0");
GZComboF->insertItem("A1");
GZComboF->insertItem("A2");
GZComboF->insertItem("A3");
GZComboF->insertItem("A4");
GZComboF->insertItem("A5");
GZComboF->insertItem("A6");
GZComboF->insertItem("A7");
GZComboF->insertItem("A8");
GZComboF->insertItem("A9");
GZComboF->insertItem("B0");
GZComboF->insertItem("B1");
GZComboF->insertItem("B2");
GZComboF->insertItem("B3");
GZComboF->insertItem("B4");
GZComboF->insertItem("B5");
GZComboF->insertItem("B6");
GZComboF->insertItem("B7");
GZComboF->insertItem("B8");
GZComboF->insertItem("B9");
GZComboF->insertItem("B10");
GZComboF->insertItem("C5E");
GZComboF->insertItem("Comm10E");
GZComboF->insertItem("DLE");
GZComboF->insertItem("Executive");
GZComboF->insertItem("Folio");
GZComboF->insertItem("Ledger");
GZComboF->insertItem("Legal");
GZComboF->insertItem("Letter");
GZComboF->insertItem("Tabloid");
GZComboF->insertItem( tr( "Custom" ) );
GZComboF->setEditable(false);
GZComboF->setCurrentItem(Vor->PageFormat);
Layout6->addWidget( GZComboF, 0, 1 );
tab_7 = new QWidget( TabWidget3, "tab_7" );
tabLayout_7 = new QHBoxLayout( tab_7, 11, 6, "tabLayout_7");
Layout21 = new QVBoxLayout( 0, 0, 6, "Layout21");
GroupSize = new QButtonGroup( tab_7, "GroupSize" );
GroupSize->setTitle( tr( "Page Size" ) );
GroupSize->setColumnLayout(0, Qt::Vertical );
GroupSize->layout()->setSpacing( 6 );
GroupSize->layout()->setMargin( 10 );
GroupSizeLayout = new QVBoxLayout( GroupSize->layout() );
GroupSizeLayout->setAlignment( Qt::AlignTop );
Layout6 = new QGridLayout( 0, 1, 1, 0, 6, "Layout6");
GZText2 = new QLabel( GroupSize, "GZText2" );
GZText2->setText( tr( "Orientation:" ) );
Layout6->addWidget( GZText2, 1, 0 );
GZComboF = new QComboBox( true, GroupSize, "GZComboF" );
char *ar_size[] = {"A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "B0", "B1", "B2", "B3",
"B4", "B5", "B6", "B7", "B8", "B9", "B10", "C5E", "Comm10E", "DLE", "Executive",
"Folio", "Ledger", "Legal", "Letter", "Tabloid"};
size_t ar_s = sizeof(ar_size) / sizeof(*ar_size);
for (uint s = 0; s < ar_s; ++s)
GZComboF->insertItem(ar_size[s]);
GZComboF->insertItem( tr( "Custom" ) );
GZComboF->setEditable(false);
GZComboF->setCurrentItem(Vor->PageFormat);
Layout6->addWidget( GZComboF, 0, 1 );
 
GZComboO = new QComboBox( true, GroupSize, "GZComboO" );
GZComboO->insertItem( tr( "Portrait" ) );
GZComboO->insertItem( tr( "Landscape" ) );
GZComboO->setEditable(false);
GZComboO->setCurrentItem(Vor->Ausrichtung);
GZComboO = new QComboBox( true, GroupSize, "GZComboO" );
GZComboO->insertItem( tr( "Portrait" ) );
GZComboO->insertItem( tr( "Landscape" ) );
GZComboO->setEditable(false);
GZComboO->setCurrentItem(Vor->Ausrichtung);
 
Layout6->addWidget( GZComboO, 1, 1 );
Layout6->addWidget( GZComboO, 1, 1 );
 
GZText1 = new QLabel( GroupSize, "GZText1" );
GZText1->setText( tr( "Size:" ) );
GZText1 = new QLabel( GroupSize, "GZText1" );
GZText1->setText( tr( "Size:" ) );
 
Layout6->addWidget( GZText1, 0, 0 );
GroupSizeLayout->addLayout( Layout6 );
Layout6->addWidget( GZText1, 0, 0 );
GroupSizeLayout->addLayout( Layout6 );
 
Layout5_2 = new QHBoxLayout( 0, 0, 6, "Layout5_2");
Layout5_2 = new QHBoxLayout( 0, 0, 6, "Layout5_2");
 
GZText3 = new QLabel( GroupSize, "GZText3" );
GZText3->setText( tr( "Width:" ) );
Layout5_2->addWidget( GZText3 );
GZText3 = new QLabel( GroupSize, "GZText3" );
GZText3->setText( tr( "Width:" ) );
Layout5_2->addWidget( GZText3 );
 
Breite = new MSpinBox( GroupSize, 4 );
Breite->setEnabled( false );
Breite->setMinimumSize( QSize( 70, 20 ) );
Breite = new MSpinBox( GroupSize, 4 );
Breite->setEnabled( false );
Breite->setMinimumSize( QSize( 70, 20 ) );
Breite->setDecimals( decimals );
Breite->setMaxValue( 10000 );
Breite->setMinValue( 1 );
Layout5_2->addWidget( Breite );
Breite->setMaxValue( 10000 );
Breite->setMinValue( 1 );
Layout5_2->addWidget( Breite );
 
GZText4 = new QLabel( GroupSize, "GZText4" );
GZText4->setText( tr( "Height:" ) );
Layout5_2->addWidget( GZText4 );
GZText4 = new QLabel( GroupSize, "GZText4" );
GZText4->setText( tr( "Height:" ) );
Layout5_2->addWidget( GZText4 );
 
Hoehe = new MSpinBox( GroupSize, 4 );
Hoehe->setEnabled( false );
Hoehe->setMinimumSize( QSize( 70, 20 ) );
Hoehe = new MSpinBox( GroupSize, 4 );
Hoehe->setEnabled( false );
Hoehe->setMinimumSize( QSize( 70, 20 ) );
Hoehe->setDecimals( decimals );
Hoehe->setMaxValue( 10000 );
Hoehe->setMinValue( 1 );
Layout5_2->addWidget( Hoehe );
GroupSizeLayout->addLayout( Layout5_2 );
Breite->setValue(Vor->PageBreite * Umrech);
Hoehe->setValue(Vor->PageHoehe * Umrech);
Hoehe->setMaxValue( 10000 );
Hoehe->setMinValue( 1 );
Layout5_2->addWidget( Hoehe );
GroupSizeLayout->addLayout( Layout5_2 );
Breite->setValue(Vor->PageBreite * Umrech);
Hoehe->setValue(Vor->PageHoehe * Umrech);
 
Layout8 = new QHBoxLayout( 0, 0, 6, "Layout8");
Layout8 = new QHBoxLayout( 0, 0, 6, "Layout8");
 
Doppelseiten = new QCheckBox( GroupSize, "Doppelseiten" );
Doppelseiten->setText( tr( "Facing Pages" ) );
Doppelseiten->setChecked(Vor->DoppelSeiten);
Layout8->addWidget( Doppelseiten );
Doppelseiten = new QCheckBox( GroupSize, "Doppelseiten" );
Doppelseiten->setText( tr( "Facing Pages" ) );
Doppelseiten->setChecked(Vor->DoppelSeiten);
Layout8->addWidget( Doppelseiten );
 
Linkszuerst = new QCheckBox( GroupSize, "Linkszuerst" );
Linkszuerst->setText( tr( "Left Page First" ) );
Linkszuerst->setChecked(Vor->ErsteLinks);
if (!Doppelseiten->isChecked())
Linkszuerst->setEnabled(false);
Layout8->addWidget( Linkszuerst );
GroupSizeLayout->addLayout( Layout8 );
Layout21->addWidget( GroupSize );
Linkszuerst = new QCheckBox( GroupSize, "Linkszuerst" );
Linkszuerst->setText( tr( "Left Page First" ) );
Linkszuerst->setChecked(Vor->ErsteLinks);
if (!Doppelseiten->isChecked())
Linkszuerst->setEnabled(false);
Layout8->addWidget( Linkszuerst );
GroupSizeLayout->addLayout( Layout8 );
Layout21->addWidget( GroupSize );
 
GroupRand = new QGroupBox( tab_7, "GroupRand" );
GroupRand->setTitle( tr( "Margin Guides" ) );
GroupRand->setColumnLayout(0, Qt::Vertical );
GroupRand->layout()->setSpacing( 5 );
GroupRand->layout()->setMargin( 10 );
GroupRandLayout = new QGridLayout( GroupRand->layout() );
GroupRandLayout->setAlignment( Qt::AlignTop );
GroupRand = new QGroupBox( tab_7, "GroupRand" );
GroupRand->setTitle( tr( "Margin Guides" ) );
GroupRand->setColumnLayout(0, Qt::Vertical );
GroupRand->layout()->setSpacing( 5 );
GroupRand->layout()->setMargin( 10 );
GroupRandLayout = new QGridLayout( GroupRand->layout() );
GroupRandLayout->setAlignment( Qt::AlignTop );
 
TopR = new MSpinBox( GroupRand, 4 );
TopR->setMinimumSize( QSize( 70, 20 ) );
TopR = new MSpinBox( GroupRand, 4 );
TopR->setMinimumSize( QSize( 70, 20 ) );
TopR->setDecimals( decimals );
TopR->setMaxValue( 1000 );
TopR->setMinValue( 0 );
TopR->setValue(Vor->RandOben * Umrech);
RandT = Vor->RandOben;
GroupRandLayout->addWidget( TopR, 0, 1 );
BottomR = new MSpinBox( GroupRand, 4 );
BottomR->setMinimumSize( QSize( 70, 20 ) );
TopR->setMaxValue( 1000 );
TopR->setMinValue( 0 );
TopR->setValue(Vor->RandOben * Umrech);
RandT = Vor->RandOben;
GroupRandLayout->addWidget( TopR, 0, 1 );
BottomR = new MSpinBox( GroupRand, 4 );
BottomR->setMinimumSize( QSize( 70, 20 ) );
BottomR->setDecimals( decimals );
BottomR->setMaxValue( 1000 );
BottomR->setMinValue( 0 );
BottomR->setValue(Vor->RandUnten * Umrech);
RandB = Vor->RandUnten;
GroupRandLayout->addWidget( BottomR, 1, 1 );
RightR = new MSpinBox( GroupRand, 4 );
RightR->setMinimumSize( QSize( 70, 20 ) );
BottomR->setMaxValue( 1000 );
BottomR->setMinValue( 0 );
BottomR->setValue(Vor->RandUnten * Umrech);
RandB = Vor->RandUnten;
GroupRandLayout->addWidget( BottomR, 1, 1 );
RightR = new MSpinBox( GroupRand, 4 );
RightR->setMinimumSize( QSize( 70, 20 ) );
RightR->setDecimals( decimals );
RightR->setMaxValue( 1000 );
RightR->setMinValue( 0 );
RightR->setValue(Vor->RandRechts * Umrech);
RandR = Vor->RandRechts;
GroupRandLayout->addWidget( RightR, 1, 3 );
LeftR = new MSpinBox( GroupRand, 4 );
LeftR->setMinimumSize( QSize( 70, 20 ) );
RightR->setMaxValue( 1000 );
RightR->setMinValue( 0 );
RightR->setValue(Vor->RandRechts * Umrech);
RandR = Vor->RandRechts;
GroupRandLayout->addWidget( RightR, 1, 3 );
LeftR = new MSpinBox( GroupRand, 4 );
LeftR->setMinimumSize( QSize( 70, 20 ) );
LeftR->setDecimals( decimals );
LeftR->setMaxValue( 1000 );
LeftR->setMinValue( 0 );
LeftR->setValue(Vor->RandLinks * Umrech);
RandL = Vor->RandLinks;
GroupRandLayout->addWidget( LeftR, 0, 3 );
LeftR->setMaxValue( 1000 );
LeftR->setMinValue( 0 );
LeftR->setValue(Vor->RandLinks * Umrech);
RandL = Vor->RandLinks;
GroupRandLayout->addWidget( LeftR, 0, 3 );
 
GRText2 = new QLabel( GroupRand, "GRText2" );
GRText2->setText( tr( "Bottom:" ) );
GroupRandLayout->addWidget( GRText2, 1, 0 );
GRText1 = new QLabel( GroupRand, "GRText1" );
GRText1->setText( tr( "Top:" ) );
GroupRandLayout->addWidget( GRText1, 0, 0 );
GRText4 = new QLabel( GroupRand, "GRText4" );
GRText4->setText( tr( "Right:" ) );
GroupRandLayout->addWidget( GRText4, 1, 2 );
GRText3 = new QLabel( GroupRand, "GRText3" );
GRText3->setText( tr( "Left:" ) );
GroupRandLayout->addWidget( GRText3, 0, 2 );
GRText2 = new QLabel( GroupRand, "GRText2" );
GRText2->setText( tr( "Bottom:" ) );
GroupRandLayout->addWidget( GRText2, 1, 0 );
GRText1 = new QLabel( GroupRand, "GRText1" );
GRText1->setText( tr( "Top:" ) );
GroupRandLayout->addWidget( GRText1, 0, 0 );
GRText4 = new QLabel( GroupRand, "GRText4" );
GRText4->setText( tr( "Right:" ) );
GroupRandLayout->addWidget( GRText4, 1, 2 );
GRText3 = new QLabel( GroupRand, "GRText3" );
GRText3->setText( tr( "Left:" ) );
GroupRandLayout->addWidget( GRText3, 0, 2 );
 
Layout21->addWidget( GroupRand );
tabLayout_7->addLayout( Layout21 );
Layout21->addWidget( GroupRand );
tabLayout_7->addLayout( Layout21 );
 
Layout21b = new QVBoxLayout( 0, 0, 6, "Layout21b");
GroupAS = new QGroupBox( tab_7, "GroupAS" );
GroupAS->setTitle( tr( "Autosave" ) );
GroupAS->setColumnLayout(0, Qt::Vertical );
GroupAS->layout()->setSpacing( 5 );
GroupAS->layout()->setMargin( 10 );
GroupASLayout = new QGridLayout( GroupAS->layout() );
GroupASLayout->setAlignment( Qt::AlignTop );
ASon = new QCheckBox( GroupAS, "Enable Autosave" );
ASon->setText( tr( "Enabled" ) );
ASon->setChecked(ap->HaveDoc ? ap->doc->AutoSave : Vor->AutoSave);
GroupASLayout->addMultiCellWidget( ASon, 0, 0, 0, 1 );
ASText = new QLabel( GroupAS, "ASText" );
ASText->setText( tr( "Interval:" ) );
GroupASLayout->addWidget( ASText, 1, 0 );
ASTime = new QSpinBox( GroupAS, "Time" );
ASTime->setMaxValue( 60 );
ASTime->setMinValue( 1 );
ASTime->setSuffix( " " + tr("min") );
ASTime->setValue(Vor->AutoSaveTime / 1000 / 60);
GroupASLayout->addWidget( ASTime, 1, 1 );
Layout21b->addWidget( GroupAS );
QSpacerItem* spacerDocb = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout21b->addItem( spacerDocb );
tabLayout_7->addLayout( Layout21b );
TabWidget3->addWidget( tab_7, 1 );
Layout21b = new QVBoxLayout( 0, 0, 6, "Layout21b");
GroupAS = new QGroupBox( tab_7, "GroupAS" );
GroupAS->setTitle( tr( "Autosave" ) );
GroupAS->setColumnLayout(0, Qt::Vertical );
GroupAS->layout()->setSpacing( 5 );
GroupAS->layout()->setMargin( 10 );
GroupASLayout = new QGridLayout( GroupAS->layout() );
GroupASLayout->setAlignment( Qt::AlignTop );
ASon = new QCheckBox( GroupAS, "Enable Autosave" );
ASon->setText( tr( "Enabled" ) );
ASon->setChecked(ap->HaveDoc ? ap->doc->AutoSave : Vor->AutoSave);
GroupASLayout->addMultiCellWidget( ASon, 0, 0, 0, 1 );
ASText = new QLabel( GroupAS, "ASText" );
ASText->setText( tr( "Interval:" ) );
GroupASLayout->addWidget( ASText, 1, 0 );
ASTime = new QSpinBox( GroupAS, "Time" );
ASTime->setMaxValue( 60 );
ASTime->setMinValue( 1 );
ASTime->setSuffix( " " + tr("min") );
ASTime->setValue(Vor->AutoSaveTime / 1000 / 60);
GroupASLayout->addWidget( ASTime, 1, 1 );
Layout21b->addWidget( GroupAS );
QSpacerItem* spacerDocb = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout21b->addItem( spacerDocb );
tabLayout_7->addLayout( Layout21b );
TabWidget3->addWidget( tab_7, 1 );
 
tab_2 = new QWidget( TabWidget3, "tab_2" );
tabLayout_2 = new QGridLayout( tab_2 );
tabLayout_2->setSpacing( 6 );
tabLayout_2->setMargin( 11 );
GroupBox1 = new QGroupBox( tab_2, "GroupBox1" );
GroupBox1->setTitle( tr( "Grid Layout" ) );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new QHBoxLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 0 );
GroupBox1Layout->setMargin( 10 );
Layout10 = new QGridLayout;
Layout10->setSpacing( 6 );
Layout10->setMargin( 0 );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1->sizePolicy().hasHeightForWidth() ) );
TextLabel1->setText( tr( "Minor Grid Spacing:" ) );
Layout10->addWidget( TextLabel1, 0, 0 );
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2->sizePolicy().hasHeightForWidth() ) );
TextLabel2->setText( tr( "Major Grid Spacing:" ) );
Layout10->addWidget( TextLabel2, 1, 0 );
SpinBox1 = new MSpinBox( GroupBox1, 4 );
tab_2 = new QWidget( TabWidget3, "tab_2" );
tabLayout_2 = new QGridLayout( tab_2 );
tabLayout_2->setSpacing( 6 );
tabLayout_2->setMargin( 11 );
GroupBox1 = new QGroupBox( tab_2, "GroupBox1" );
GroupBox1->setTitle( tr( "Grid Layout" ) );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new QHBoxLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 0 );
GroupBox1Layout->setMargin( 10 );
Layout10 = new QGridLayout;
Layout10->setSpacing( 6 );
Layout10->setMargin( 0 );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1->sizePolicy().hasHeightForWidth() ) );
TextLabel1->setText( tr( "Minor Grid Spacing:" ) );
Layout10->addWidget( TextLabel1, 0, 0 );
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2->sizePolicy().hasHeightForWidth() ) );
TextLabel2->setText( tr( "Major Grid Spacing:" ) );
Layout10->addWidget( TextLabel2, 1, 0 );
SpinBox1 = new MSpinBox( GroupBox1, 4 );
SpinBox1->setDecimals( decimals );
SpinBox1->setMaxValue( 1000 );
SpinBox1->setMinValue( 1 );
Layout10->addWidget( SpinBox1, 0, 1 );
SpinBox2 = new MSpinBox( GroupBox1, 4 );
SpinBox1->setMaxValue( 1000 );
SpinBox1->setMinValue( 1 );
Layout10->addWidget( SpinBox1, 0, 1 );
SpinBox2 = new MSpinBox( GroupBox1, 4 );
SpinBox2->setDecimals( decimals );
SpinBox2->setMaxValue( 1000 );
SpinBox2->setMinValue( 10 );
Layout10->addWidget( SpinBox2, 1, 1 );
TextLabel2g = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2g->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2->sizePolicy().hasHeightForWidth() ) );
TextLabel2g->setText( tr( "Guide Snap Distance:" ) );
Layout10->addWidget( TextLabel2g, 2, 0 );
SpinBox2g = new MSpinBox( GroupBox1, 4 );
SpinBox2->setMaxValue( 1000 );
SpinBox2->setMinValue( 10 );
Layout10->addWidget( SpinBox2, 1, 1 );
TextLabel2g = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2g->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2->sizePolicy().hasHeightForWidth() ) );
TextLabel2g->setText( tr( "Guide Snap Distance:" ) );
Layout10->addWidget( TextLabel2g, 2, 0 );
SpinBox2g = new MSpinBox( GroupBox1, 4 );
SpinBox2g->setDecimals( decimals );
SpinBox2g->setMaxValue( 1000 );
SpinBox2g->setMinValue( 1 );
Layout10->addWidget( SpinBox2g, 2, 1 );
if (ap->HaveDoc)
{
SpinBox2->setValue(ap->doc->majorGrid * Umrech);
SpinBox1->setValue(ap->doc->minorGrid * Umrech);
SpinBox2g->setValue(ap->doc->GuideRad * Umrech);
}
else
{
SpinBox2->setValue(Vor->DmajGrid * Umrech);
SpinBox1->setValue(Vor->DminGrid * Umrech);
SpinBox2g->setValue(Vor->GuideRad * Umrech);
}
GroupBox1Layout->addLayout( Layout10 );
tabLayout_2->addWidget( GroupBox1, 0, 0 );
GroupBox2 = new QGroupBox( tab_2, "GroupBox2" );
GroupBox2->setTitle( tr( "Grid Colors" ) );
GroupBox2->setColumnLayout(0, Qt::Vertical );
GroupBox2->layout()->setSpacing( 0 );
GroupBox2->layout()->setMargin( 0 );
GroupBox2Layout = new QHBoxLayout( GroupBox2->layout() );
GroupBox2Layout->setAlignment( Qt::AlignTop );
GroupBox2Layout->setSpacing( 6 );
GroupBox2Layout->setMargin( 11 );
Layout11 = new QGridLayout;
Layout11->setSpacing( 6 );
Layout11->setMargin( 0 );
TextLabel3 = new QLabel( GroupBox2, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel3->sizePolicy().hasHeightForWidth() ) );
TextLabel3->setText( tr( "Minor Grid Color:" ) );
Layout11->addWidget( TextLabel3, 0, 0 );
TextLabel4 = new QLabel( GroupBox2, "TextLabel4" );
TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel4->sizePolicy().hasHeightForWidth() ) );
TextLabel4->setText( tr( "Major Grid Color:" ) );
Layout11->addWidget( TextLabel4, 1, 0 );
minColor = new QPushButton( GroupBox2, "minColor" );
minColor->setText( tr( "" ) );
minColor->setAutoDefault( false );
QPixmap pm = QPixmap(40, 20);
if (ap->HaveDoc)
{
pm.fill(ap->doc->minorColor);
Cmin = ap->doc->minorColor;
}
else
{
pm.fill(Vor->DminColor);
Cmin = Vor->DminColor;
}
minColor->setPixmap(pm);
Layout11->addWidget( minColor, 0, 1 );
MaxColor = new QPushButton( GroupBox2, "MaxColor" );
MaxColor->setText( tr( "" ) );
MaxColor->setAutoDefault( false );
QPixmap pm1 = QPixmap(40, 20);
if (ap->HaveDoc)
{
pm1.fill(ap->doc->majorColor);
Cmax = ap->doc->majorColor;
}
else
{
pm1.fill(Vor->DmajColor);
Cmax = Vor->DmajColor;
}
MaxColor->setPixmap(pm1);
Layout11->addWidget( MaxColor, 1, 1 );
TextLabel4g = new QLabel( GroupBox2, "TextLabel4g" );
TextLabel4g->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel4->sizePolicy().hasHeightForWidth() ) );
TextLabel4g->setText( tr( "User Guides Color:" ) );
Layout11->addWidget( TextLabel4g, 2, 0 );
GuideColor = new QPushButton( GroupBox2, "GuideColor" );
GuideColor->setText( tr( "" ) );
GuideColor->setAutoDefault( false );
QPixmap pm12 = QPixmap(40, 20);
if (ap->HaveDoc)
{
pm12.fill(ap->doc->guideColor);
Cgui = ap->doc->guideColor;
}
else
{
pm12.fill(Vor->guideColor);
Cgui = Vor->guideColor;
}
GuideColor->setPixmap(pm12);
Layout11->addWidget( GuideColor, 2, 1 );
GroupBox2Layout->addLayout( Layout11 );
tabLayout_2->addWidget( GroupBox2, 1, 0 );
ButtonGroup5 = new QButtonGroup( tab_2, "ButtonGroup5" );
ButtonGroup5->setTitle( tr( "Placing" ) );
ButtonGroup5->setExclusive( true );
ButtonGroup5->setColumnLayout(0, Qt::Vertical );
ButtonGroup5->layout()->setSpacing( 0 );
ButtonGroup5->layout()->setMargin( 0 );
ButtonGroup5Layout = new QHBoxLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop );
ButtonGroup5Layout->setSpacing( 6 );
ButtonGroup5Layout->setMargin( 11 );
Layout7 = new QVBoxLayout;
Layout7->setSpacing( 6 );
Layout7->setMargin( 0 );
RadioButton6 = new QRadioButton( ButtonGroup5, "RadioButton6" );
RadioButton6->setText( tr( "In the Background" ) );
RadioButton6->setChecked(ap->HaveDoc ? ap->doc->Before : Vor->Before );
Layout7->addWidget( RadioButton6 );
RadioButton7 = new QRadioButton( ButtonGroup5, "RadioButton6_2" );
RadioButton7->setText( tr( "In the Foreground" ) );
RadioButton7->setChecked(ap->HaveDoc ? !ap->doc->Before : !Vor->Before );
Layout7->addWidget( RadioButton7 );
ButtonGroup5Layout->addLayout( Layout7 );
tabLayout_2->addWidget( ButtonGroup5, 0, 1 );
TabWidget3->addWidget( tab_2, 2 );
SpinBox2g->setMaxValue( 1000 );
SpinBox2g->setMinValue( 1 );
Layout10->addWidget( SpinBox2g, 2, 1 );
SpinBox2->setValue(ap->HaveDoc ? ap->doc->majorGrid * Umrech : Vor->DmajGrid * Umrech);
SpinBox1->setValue(ap->HaveDoc ? ap->doc->minorGrid * Umrech : Vor->DminGrid * Umrech);
SpinBox2g->setValue(ap->HaveDoc ? ap->doc->GuideRad * Umrech : Vor->GuideRad * Umrech);
GroupBox1Layout->addLayout( Layout10 );
tabLayout_2->addWidget( GroupBox1, 0, 0 );
GroupBox2 = new QGroupBox( tab_2, "GroupBox2" );
GroupBox2->setTitle( tr( "Grid Colors" ) );
GroupBox2->setColumnLayout(0, Qt::Vertical );
GroupBox2->layout()->setSpacing( 0 );
GroupBox2->layout()->setMargin( 0 );
GroupBox2Layout = new QHBoxLayout( GroupBox2->layout() );
GroupBox2Layout->setAlignment( Qt::AlignTop );
GroupBox2Layout->setSpacing( 6 );
GroupBox2Layout->setMargin( 11 );
Layout11 = new QGridLayout;
Layout11->setSpacing( 6 );
Layout11->setMargin( 0 );
TextLabel3 = new QLabel( GroupBox2, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel3->sizePolicy().hasHeightForWidth() ) );
TextLabel3->setText( tr( "Minor Grid Color:" ) );
Layout11->addWidget( TextLabel3, 0, 0 );
TextLabel4 = new QLabel( GroupBox2, "TextLabel4" );
TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel4->sizePolicy().hasHeightForWidth() ) );
TextLabel4->setText( tr( "Major Grid Color:" ) );
Layout11->addWidget( TextLabel4, 1, 0 );
minColor = new QPushButton( GroupBox2, "minColor" );
minColor->setText( tr( "" ) );
minColor->setAutoDefault( false );
QPixmap pm = QPixmap(40, 20);
pm.fill(ap->HaveDoc ? ap->doc->minorColor : Vor->DminColor);
Cmin = ap->HaveDoc ? ap->doc->minorColor : Vor->DminColor;
minColor->setPixmap(pm);
Layout11->addWidget( minColor, 0, 1 );
MaxColor = new QPushButton( GroupBox2, "MaxColor" );
MaxColor->setText( tr( "" ) );
MaxColor->setAutoDefault( false );
QPixmap pm1 = QPixmap(40, 20);
pm1.fill(ap->HaveDoc ? ap->doc->majorColor : Vor->DmajColor);
Cmax = ap->HaveDoc ? ap->doc->majorColor : Vor->DmajColor;
MaxColor->setPixmap(pm1);
Layout11->addWidget( MaxColor, 1, 1 );
TextLabel4g = new QLabel( GroupBox2, "TextLabel4g" );
TextLabel4g->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel4->sizePolicy().hasHeightForWidth() ) );
TextLabel4g->setText( tr( "User Guides Color:" ) );
Layout11->addWidget( TextLabel4g, 2, 0 );
GuideColor = new QPushButton( GroupBox2, "GuideColor" );
GuideColor->setText( tr( "" ) );
GuideColor->setAutoDefault( false );
QPixmap pm12 = QPixmap(40, 20);
pm12.fill(ap->HaveDoc ? ap->doc->guideColor : Vor->guideColor);
Cgui = ap->HaveDoc ? ap->doc->guideColor : Vor->guideColor;
GuideColor->setPixmap(pm12);
Layout11->addWidget( GuideColor, 2, 1 );
GroupBox2Layout->addLayout( Layout11 );
tabLayout_2->addWidget( GroupBox2, 1, 0 );
ButtonGroup5 = new QButtonGroup( tab_2, "ButtonGroup5" );
ButtonGroup5->setTitle( tr( "Placing" ) );
ButtonGroup5->setExclusive( true );
ButtonGroup5->setColumnLayout(0, Qt::Vertical );
ButtonGroup5->layout()->setSpacing( 0 );
ButtonGroup5->layout()->setMargin( 0 );
ButtonGroup5Layout = new QHBoxLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop );
ButtonGroup5Layout->setSpacing( 6 );
ButtonGroup5Layout->setMargin( 11 );
Layout7 = new QVBoxLayout;
Layout7->setSpacing( 6 );
Layout7->setMargin( 0 );
RadioButton6 = new QRadioButton( ButtonGroup5, "RadioButton6" );
RadioButton6->setText( tr( "In the Background" ) );
RadioButton6->setChecked(ap->HaveDoc ? ap->doc->Before : Vor->Before );
Layout7->addWidget( RadioButton6 );
RadioButton7 = new QRadioButton( ButtonGroup5, "RadioButton6_2" );
RadioButton7->setText( tr( "In the Foreground" ) );
RadioButton7->setChecked(ap->HaveDoc ? !ap->doc->Before : !Vor->Before );
Layout7->addWidget( RadioButton7 );
ButtonGroup5Layout->addLayout( Layout7 );
tabLayout_2->addWidget( ButtonGroup5, 0, 1 );
TabWidget3->addWidget( tab_2, 2 );
 
tab_4 = new QWidget( TabWidget3, "tab_4" );
tabLayout_3 = new QGridLayout( tab_4 );
tabLayout_3->setSpacing( 6 );
tabLayout_3->setMargin( 11 );
GroupBox4_2 = new QGroupBox( tab_4, "GroupBox4_2" );
GroupBox4_2->setTitle( tr( "Subscript" ) );
GroupBox4_2->setColumnLayout(0, Qt::Vertical );
GroupBox4_2->layout()->setSpacing( 0 );
GroupBox4_2->layout()->setMargin( 0 );
GroupBox4_2Layout = new QHBoxLayout( GroupBox4_2->layout() );
GroupBox4_2Layout->setAlignment( Qt::AlignTop );
GroupBox4_2Layout->setSpacing( 6 );
GroupBox4_2Layout->setMargin( 11 );
tab_4 = new QWidget( TabWidget3, "tab_4" );
tabLayout_3 = new QGridLayout( tab_4 );
tabLayout_3->setSpacing( 6 );
tabLayout_3->setMargin( 11 );
GroupBox4_2 = new QGroupBox( tab_4, "GroupBox4_2" );
GroupBox4_2->setTitle( tr( "Subscript" ) );
GroupBox4_2->setColumnLayout(0, Qt::Vertical );
GroupBox4_2->layout()->setSpacing( 0 );
GroupBox4_2->layout()->setMargin( 0 );
GroupBox4_2Layout = new QHBoxLayout( GroupBox4_2->layout() );
GroupBox4_2Layout->setAlignment( Qt::AlignTop );
GroupBox4_2Layout->setSpacing( 6 );
GroupBox4_2Layout->setMargin( 11 );
 
Layout12 = new QGridLayout;
Layout12->setSpacing( 6 );
Layout12->setMargin( 0 );
TextLabel2_3_2 = new QLabel( GroupBox4_2, "TextLabel2_3_2" );
TextLabel2_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2_3_2->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_2->setText( tr( "Scaling:" ) );
Layout12->addWidget( TextLabel2_3_2, 1, 0 );
TextLabel1_5_2 = new QLabel( GroupBox4_2, "TextLabel1_5_2" );
TextLabel1_5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1_5_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_5_2->setText( tr( "Disp.:" ) );
Layout12->addWidget( TextLabel1_5_2, 0, 0 );
VTiefW = new QSpinBox( GroupBox4_2, "VTiefW" );
VTiefW->setSuffix( tr( " %" ) );
VTiefW->setMaxValue( 100 );
VTiefW->setMinValue( 1 );
VTiefW->setValue(ap->HaveDoc ? ap->doc->VTief : Vor->DVTief );
Layout12->addWidget( VTiefW, 0, 1 );
VTiefWSc = new QSpinBox( GroupBox4_2, "VTiefWSc" );
VTiefWSc->setSuffix( tr( " %" ) );
VTiefWSc->setMaxValue( 100 );
VTiefWSc->setMinValue( 1 );
VTiefWSc->setValue(ap->HaveDoc ? ap->doc->VTiefSc : Vor->DVTiefSc );
Layout12->addWidget( VTiefWSc, 1, 1 );
GroupBox4_2Layout->addLayout( Layout12 );
tabLayout_3->addWidget( GroupBox4_2, 1, 0 );
GroupBox4 = new QGroupBox( tab_4, "GroupBox4" );
GroupBox4->setTitle( tr( "Superscript" ) );
GroupBox4->setColumnLayout(0, Qt::Vertical );
GroupBox4->layout()->setSpacing( 0 );
GroupBox4->layout()->setMargin( 0 );
GroupBox4Layout = new QHBoxLayout( GroupBox4->layout() );
GroupBox4Layout->setAlignment( Qt::AlignTop );
GroupBox4Layout->setSpacing( 6 );
GroupBox4Layout->setMargin( 11 );
Layout13 = new QGridLayout;
Layout13->setSpacing( 6 );
Layout13->setMargin( 0 );
TextLabel2_3 = new QLabel( GroupBox4, "TextLabel2_3" );
TextLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2_3->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3->setText( tr( "Scaling:" ) );
Layout13->addWidget( TextLabel2_3, 1, 0 );
TextLabel1_5 = new QLabel( GroupBox4, "TextLabel1_5" );
TextLabel1_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1_5->sizePolicy().hasHeightForWidth() ) );
TextLabel1_5->setText( tr( "Disp.:" ) );
Layout13->addWidget( TextLabel1_5, 0, 0 );
VHochW = new QSpinBox( GroupBox4, "VHochW" );
VHochW->setSuffix( tr( " %" ) );
VHochW->setMaxValue( 100 );
VHochW->setMinValue( 1 );
VHochW->setValue(ap->HaveDoc ? ap->doc->VHoch : Vor->DVHoch );
Layout13->addWidget( VHochW, 0, 1 );
VHochWSc = new QSpinBox( GroupBox4, "VHochWSc" );
VHochWSc->setSuffix( tr( " %" ) );
VHochWSc->setMaxValue( 100 );
VHochWSc->setMinValue( 1 );
VHochWSc->setValue(ap->HaveDoc ? ap->doc->VHochSc : Vor->DVHochSc );
Layout13->addWidget( VHochWSc, 1, 1 );
GroupBox4Layout->addLayout( Layout13 );
tabLayout_3->addWidget( GroupBox4, 0, 0 );
GroupBox4_3 = new QGroupBox( tab_4, "GroupBox4_3" );
GroupBox4_3->setTitle( tr( "Small Caps" ) );
GroupBox4_3->setColumnLayout(0, Qt::Vertical );
GroupBox4_3->layout()->setSpacing( 0 );
GroupBox4_3->layout()->setMargin( 0 );
GroupBox4_3Layout = new QHBoxLayout( GroupBox4_3->layout() );
GroupBox4_3Layout->setAlignment( Qt::AlignTop );
GroupBox4_3Layout->setSpacing( 6 );
GroupBox4_3Layout->setMargin( 11 );
Layout14 = new QHBoxLayout;
Layout14->setSpacing( 6 );
Layout14->setMargin( 0 );
TextLabel2_3_3 = new QLabel( GroupBox4_3, "TextLabel2_3_3" );
TextLabel2_3_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2_3_3->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_3->setText( tr( "Scaling:" ) );
Layout14->addWidget( TextLabel2_3_3 );
SmallCaps = new QSpinBox( GroupBox4_3, "SmallCaps" );
SmallCaps->setSuffix( tr( " %" ) );
SmallCaps->setMaxValue( 100 );
SmallCaps->setMinValue( 1 );
SmallCaps->setValue(ap->HaveDoc ? ap->doc->VKapit : Vor->DVKapit );
Layout14->addWidget( SmallCaps );
GroupBox4_3Layout->addLayout( Layout14 );
tabLayout_3->addWidget( GroupBox4_3, 0, 1 );
Layout12 = new QGridLayout;
Layout12->setSpacing( 6 );
Layout12->setMargin( 0 );
TextLabel2_3_2 = new QLabel( GroupBox4_2, "TextLabel2_3_2" );
TextLabel2_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2_3_2->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_2->setText( tr( "Scaling:" ) );
Layout12->addWidget( TextLabel2_3_2, 1, 0 );
TextLabel1_5_2 = new QLabel( GroupBox4_2, "TextLabel1_5_2" );
TextLabel1_5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1_5_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_5_2->setText( tr( "Disp.:" ) );
Layout12->addWidget( TextLabel1_5_2, 0, 0 );
VTiefW = new QSpinBox( GroupBox4_2, "VTiefW" );
VTiefW->setSuffix( tr( " %" ) );
VTiefW->setMaxValue( 100 );
VTiefW->setMinValue( 1 );
VTiefW->setValue(ap->HaveDoc ? ap->doc->VTief : Vor->DVTief );
Layout12->addWidget( VTiefW, 0, 1 );
VTiefWSc = new QSpinBox( GroupBox4_2, "VTiefWSc" );
VTiefWSc->setSuffix( tr( " %" ) );
VTiefWSc->setMaxValue( 100 );
VTiefWSc->setMinValue( 1 );
VTiefWSc->setValue(ap->HaveDoc ? ap->doc->VTiefSc : Vor->DVTiefSc );
Layout12->addWidget( VTiefWSc, 1, 1 );
GroupBox4_2Layout->addLayout( Layout12 );
tabLayout_3->addWidget( GroupBox4_2, 1, 0 );
GroupBox4 = new QGroupBox( tab_4, "GroupBox4" );
GroupBox4->setTitle( tr( "Superscript" ) );
GroupBox4->setColumnLayout(0, Qt::Vertical );
GroupBox4->layout()->setSpacing( 0 );
GroupBox4->layout()->setMargin( 0 );
GroupBox4Layout = new QHBoxLayout( GroupBox4->layout() );
GroupBox4Layout->setAlignment( Qt::AlignTop );
GroupBox4Layout->setSpacing( 6 );
GroupBox4Layout->setMargin( 11 );
Layout13 = new QGridLayout;
Layout13->setSpacing( 6 );
Layout13->setMargin( 0 );
TextLabel2_3 = new QLabel( GroupBox4, "TextLabel2_3" );
TextLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2_3->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3->setText( tr( "Scaling:" ) );
Layout13->addWidget( TextLabel2_3, 1, 0 );
TextLabel1_5 = new QLabel( GroupBox4, "TextLabel1_5" );
TextLabel1_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1_5->sizePolicy().hasHeightForWidth() ) );
TextLabel1_5->setText( tr( "Disp.:" ) );
Layout13->addWidget( TextLabel1_5, 0, 0 );
VHochW = new QSpinBox( GroupBox4, "VHochW" );
VHochW->setSuffix( tr( " %" ) );
VHochW->setMaxValue( 100 );
VHochW->setMinValue( 1 );
VHochW->setValue(ap->HaveDoc ? ap->doc->VHoch : Vor->DVHoch );
Layout13->addWidget( VHochW, 0, 1 );
VHochWSc = new QSpinBox( GroupBox4, "VHochWSc" );
VHochWSc->setSuffix( tr( " %" ) );
VHochWSc->setMaxValue( 100 );
VHochWSc->setMinValue( 1 );
VHochWSc->setValue(ap->HaveDoc ? ap->doc->VHochSc : Vor->DVHochSc );
Layout13->addWidget( VHochWSc, 1, 1 );
GroupBox4Layout->addLayout( Layout13 );
tabLayout_3->addWidget( GroupBox4, 0, 0 );
GroupBox4_3 = new QGroupBox( tab_4, "GroupBox4_3" );
GroupBox4_3->setTitle( tr( "Small Caps" ) );
GroupBox4_3->setColumnLayout(0, Qt::Vertical );
GroupBox4_3->layout()->setSpacing( 0 );
GroupBox4_3->layout()->setMargin( 0 );
GroupBox4_3Layout = new QHBoxLayout( GroupBox4_3->layout() );
GroupBox4_3Layout->setAlignment( Qt::AlignTop );
GroupBox4_3Layout->setSpacing( 6 );
GroupBox4_3Layout->setMargin( 11 );
Layout14 = new QHBoxLayout;
Layout14->setSpacing( 6 );
Layout14->setMargin( 0 );
TextLabel2_3_3 = new QLabel( GroupBox4_3, "TextLabel2_3_3" );
TextLabel2_3_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2_3_3->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_3->setText( tr( "Scaling:" ) );
Layout14->addWidget( TextLabel2_3_3 );
SmallCaps = new QSpinBox( GroupBox4_3, "SmallCaps" );
SmallCaps->setSuffix( tr( " %" ) );
SmallCaps->setMaxValue( 100 );
SmallCaps->setMinValue( 1 );
SmallCaps->setValue(ap->HaveDoc ? ap->doc->VKapit : Vor->DVKapit );
Layout14->addWidget( SmallCaps );
GroupBox4_3Layout->addLayout( Layout14 );
tabLayout_3->addWidget( GroupBox4_3, 0, 1 );
 
GroupBox4_3a = new QGroupBox( tab_4, "GroupBox4_3a" );
GroupBox4_3a->setTitle( tr( "Other" ) );
GroupBox4_3a->setColumnLayout(0, Qt::Vertical );
GroupBox4_3a->layout()->setSpacing( 0 );
GroupBox4_3a->layout()->setMargin( 0 );
GroupBox4_3aLayout = new QHBoxLayout( GroupBox4_3a->layout() );
GroupBox4_3aLayout->setAlignment( Qt::AlignTop );
GroupBox4_3aLayout->setSpacing( 6 );
GroupBox4_3aLayout->setMargin( 11 );
Layout14a = new QHBoxLayout;
Layout14a->setSpacing( 6 );
Layout14a->setMargin( 0 );
TextLabel2_3_3a = new QLabel( GroupBox4_3a, "TextLabel2_3_3" );
TextLabel2_3_3a->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2_3_3a->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_3a->setText( tr( "Automatic Line Spacing:" ) );
Layout14a->addWidget( TextLabel2_3_3a );
AutoLineV = new QSpinBox( GroupBox4_3a, "LineS" );
AutoLineV->setSuffix( tr( " %" ) );
AutoLineV->setMaxValue( 100 );
AutoLineV->setMinValue( 1 );
AutoLineV->setValue(ap->HaveDoc ? ap->doc->AutoLine : Vor->AutoLine );
Layout14a->addWidget( AutoLineV );
GroupBox4_3aLayout->addLayout( Layout14a );
tabLayout_3->addWidget( GroupBox4_3a, 1, 1 );
 
TabWidget3->addWidget( tab_4, 3 );
 
tab_3 = new QWidget( TabWidget3, "tab_3" );
tabLayout_4 = new QHBoxLayout( tab_3 );
tabLayout_4->setSpacing( 0 );
tabLayout_4->setMargin( 10 );
ButtonGroup2 = new QButtonGroup( tab_3, "ButtonGroup2" );
ButtonGroup2->setTitle( tr( "" ) );
ButtonGroup2->setExclusive( true );
ButtonGroup2->setColumnLayout(0, Qt::Vertical );
ButtonGroup2->layout()->setSpacing( 0 );
ButtonGroup2->layout()->setMargin( 0 );
ButtonGroup2Layout = new QHBoxLayout( ButtonGroup2->layout() );
ButtonGroup2Layout->setAlignment( Qt::AlignTop );
ButtonGroup2Layout->setSpacing( 6 );
ButtonGroup2Layout->setMargin( 5 );
Layout16 = new QGridLayout;
Layout16->setSpacing( 6 );
Layout16->setMargin( 0 );
TextButton = new QToolButton( ButtonGroup2, "TextButton" );
TextButton->setText( tr( "" ) );
TextButton->setPixmap(loadIcon("Text.xpm"));
TextButton->setToggleButton( true );
TextButton->setOn( true );
ButtonGroup2->insert( TextButton, -1 );
Layout16->addWidget( TextButton, 0, 0 );
BildButton = new QToolButton( ButtonGroup2, "BildButton" );
BildButton->setText( tr( "" ) );
BildButton->setPixmap(loadIcon("Bild.xpm"));
BildButton->setToggleButton( true );
ButtonGroup2->insert( BildButton, -1 );
Layout16->addWidget( BildButton, 0, 1 );
RectButton = new QToolButton( ButtonGroup2, "RectButton" );
RectButton->setText( tr( "" ) );
RectButton->setPixmap(loadIcon("Rechtecke.xpm") );
RectButton->setToggleButton( true );
ButtonGroup2->insert( RectButton, -1 );
Layout16->addWidget( RectButton, 1, 0 );
OvalButton = new QToolButton( ButtonGroup2, "OvalButton" );
OvalButton->setText( tr( "" ) );
OvalButton->setPixmap(loadIcon("Kreise.xpm"));
OvalButton->setToggleButton( true );
ButtonGroup2->insert( OvalButton, -1 );
Layout16->addWidget( OvalButton, 1, 1 );
ZoomButton = new QToolButton( ButtonGroup2, "ZoomButton" );
ZoomButton->setText( tr( "" ) );
ZoomButton->setPixmap(loadIcon("Lupe.xpm"));
ZoomButton->setToggleButton( true );
ButtonGroup2->insert( ZoomButton, -1 );
Layout16->addWidget( ZoomButton, 2, 0 );
LineButton = new QToolButton( ButtonGroup2, "LineButton" );
LineButton->setText( tr( "" ) );
LineButton->setPixmap(loadIcon("Stift.xpm"));
LineButton->setToggleButton( true );
ButtonGroup2->insert( LineButton, -1 );
Layout16->addWidget( LineButton, 2, 1 );
PolyButton = new QToolButton( ButtonGroup2, "PolyButton" );
PolyButton->setText( tr( "" ) );
PolyButton->setPixmap(loadIcon("spline.png"));
PolyButton->setToggleButton( true );
ButtonGroup2->insert( PolyButton, -1 );
Layout16->addWidget( PolyButton, 3, 0 );
ButtonGroup2Layout->addLayout( Layout16 );
tabLayout_4->addWidget( ButtonGroup2 );
 
Fram = new QWidgetStack(tab_3);
tabLayout_4->addWidget( Fram );
 
ToolFrame = new QFrame( this, "ToolFrame" );
ToolFrame->setFrameShape( QFrame::Box );
ToolFrame->setFrameShadow( QFrame::Sunken );
ToolFrameLayout = new QHBoxLayout( ToolFrame );
ToolFrameLayout->setSpacing( 0 );
ToolFrameLayout->setMargin( 10 );
Layout15a = new QGridLayout;
Layout15a->setSpacing( 6 );
Layout15a->setMargin( 0 );
TextLabel2_2 = new QLabel( ToolFrame, "TextLabel2_2" );
TextLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel2_2->setText( tr( "Default Size:" ) );
Layout15a->addWidget( TextLabel2_2, 1, 0 );
TextLabel1_3 = new QLabel( ToolFrame, "TextLabel1_3" );
TextLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel1_3->sizePolicy().hasHeightForWidth() ) );
TextLabel1_3->setText( tr( "Default Font:" ) );
Layout15a->addWidget( TextLabel1_3, 0, 0 );
FontComb = new FontCombo(ToolFrame, Vor);
if (ap->HaveDoc)
{
for (int fc=0; fc<FontComb->count(); ++fc)
GroupBox4_3a = new QGroupBox( tab_4, "GroupBox4_3a" );
GroupBox4_3a->setTitle( tr( "Other" ) );
GroupBox4_3a->setColumnLayout(0, Qt::Vertical );
GroupBox4_3a->layout()->setSpacing( 0 );
GroupBox4_3a->layout()->setMargin( 0 );
GroupBox4_3aLayout = new QHBoxLayout( GroupBox4_3a->layout() );
GroupBox4_3aLayout->setAlignment( Qt::AlignTop );
GroupBox4_3aLayout->setSpacing( 6 );
GroupBox4_3aLayout->setMargin( 11 );
Layout14a = new QHBoxLayout;
Layout14a->setSpacing( 6 );
Layout14a->setMargin( 0 );
TextLabel2_3_3a = new QLabel( GroupBox4_3a, "TextLabel2_3_3" );
TextLabel2_3_3a->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2_3_3a->sizePolicy().hasHeightForWidth() ) );
TextLabel2_3_3a->setText( tr( "Automatic Line Spacing:" ) );
Layout14a->addWidget( TextLabel2_3_3a );
AutoLineV = new QSpinBox( GroupBox4_3a, "LineS" );
AutoLineV->setSuffix( tr( " %" ) );
AutoLineV->setMaxValue( 100 );
AutoLineV->setMinValue( 1 );
AutoLineV->setValue(ap->HaveDoc ? ap->doc->AutoLine : Vor->AutoLine );
Layout14a->addWidget( AutoLineV );
GroupBox4_3aLayout->addLayout( Layout14a );
tabLayout_3->addWidget( GroupBox4_3a, 1, 1 );
TabWidget3->addWidget( tab_4, 3 );
tab_3 = new QWidget( TabWidget3, "tab_3" );
tabLayout_4 = new QHBoxLayout( tab_3 );
tabLayout_4->setSpacing( 0 );
tabLayout_4->setMargin( 10 );
ButtonGroup2 = new QButtonGroup( tab_3, "ButtonGroup2" );
ButtonGroup2->setTitle( tr( "" ) );
ButtonGroup2->setExclusive( true );
ButtonGroup2->setColumnLayout(0, Qt::Vertical );
ButtonGroup2->layout()->setSpacing( 0 );
ButtonGroup2->layout()->setMargin( 0 );
ButtonGroup2Layout = new QHBoxLayout( ButtonGroup2->layout() );
ButtonGroup2Layout->setAlignment( Qt::AlignTop );
ButtonGroup2Layout->setSpacing( 6 );
ButtonGroup2Layout->setMargin( 5 );
Layout16 = new QGridLayout;
Layout16->setSpacing( 6 );
Layout16->setMargin( 0 );
TextButton = new QToolButton( ButtonGroup2, "TextButton" );
TextButton->setText( tr( "" ) );
TextButton->setPixmap(loadIcon("Text.xpm"));
TextButton->setToggleButton( true );
TextButton->setOn( true );
ButtonGroup2->insert( TextButton, -1 );
Layout16->addWidget( TextButton, 0, 0 );
BildButton = new QToolButton( ButtonGroup2, "BildButton" );
BildButton->setText( tr( "" ) );
BildButton->setPixmap(loadIcon("Bild.xpm"));
BildButton->setToggleButton( true );
ButtonGroup2->insert( BildButton, -1 );
Layout16->addWidget( BildButton, 0, 1 );
RectButton = new QToolButton( ButtonGroup2, "RectButton" );
RectButton->setText( tr( "" ) );
RectButton->setPixmap(loadIcon("Rechtecke.xpm") );
RectButton->setToggleButton( true );
ButtonGroup2->insert( RectButton, -1 );
Layout16->addWidget( RectButton, 1, 0 );
OvalButton = new QToolButton( ButtonGroup2, "OvalButton" );
OvalButton->setText( tr( "" ) );
OvalButton->setPixmap(loadIcon("Kreise.xpm"));
OvalButton->setToggleButton( true );
ButtonGroup2->insert( OvalButton, -1 );
Layout16->addWidget( OvalButton, 1, 1 );
ZoomButton = new QToolButton( ButtonGroup2, "ZoomButton" );
ZoomButton->setText( tr( "" ) );
ZoomButton->setPixmap(loadIcon("Lupe.xpm"));
ZoomButton->setToggleButton( true );
ButtonGroup2->insert( ZoomButton, -1 );
Layout16->addWidget( ZoomButton, 2, 0 );
LineButton = new QToolButton( ButtonGroup2, "LineButton" );
LineButton->setText( tr( "" ) );
LineButton->setPixmap(loadIcon("Stift.xpm"));
LineButton->setToggleButton( true );
ButtonGroup2->insert( LineButton, -1 );
Layout16->addWidget( LineButton, 2, 1 );
PolyButton = new QToolButton( ButtonGroup2, "PolyButton" );
PolyButton->setText( tr( "" ) );
PolyButton->setPixmap(loadIcon("spline.png"));
PolyButton->setToggleButton( true );
ButtonGroup2->insert( PolyButton, -1 );
Layout16->addWidget( PolyButton, 3, 0 );
ButtonGroup2Layout->addLayout( Layout16 );
tabLayout_4->addWidget( ButtonGroup2 );
Fram = new QWidgetStack(tab_3);
tabLayout_4->addWidget( Fram );
ToolFrame = new QFrame( this, "ToolFrame" );
ToolFrame->setFrameShape( QFrame::Box );
ToolFrame->setFrameShadow( QFrame::Sunken );
ToolFrameLayout = new QHBoxLayout( ToolFrame );
ToolFrameLayout->setSpacing( 0 );
ToolFrameLayout->setMargin( 10 );
Layout15a = new QGridLayout;
Layout15a->setSpacing( 6 );
Layout15a->setMargin( 0 );
TextLabel2_2 = new QLabel( ToolFrame, "TextLabel2_2" );
TextLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel2_2->setText( tr( "Default Size:" ) );
Layout15a->addWidget( TextLabel2_2, 1, 0 );
TextLabel1_3 = new QLabel( ToolFrame, "TextLabel1_3" );
TextLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel1_3->sizePolicy().hasHeightForWidth() ) );
TextLabel1_3->setText( tr( "Default Font:" ) );
Layout15a->addWidget( TextLabel1_3, 0, 0 );
FontComb = new FontCombo(ToolFrame, Vor);
if (ap->HaveDoc)
{
for (int fc=0; fc<FontComb->count(); ++fc)
{
if (FontComb->text(fc) == ap->doc->Dfont)
if (FontComb->text(fc) == ap->doc->Dfont)
{
FontComb->setCurrentItem(fc);
break;
FontComb->setCurrentItem(fc);
break;
}
}
}
else
{
for (int fc=0; fc<FontComb->count(); ++fc)
}
else
{
for (int fc=0; fc<FontComb->count(); ++fc)
{
if (FontComb->text(fc) == Vor->DefFont)
if (FontComb->text(fc) == Vor->DefFont)
{
FontComb->setCurrentItem(fc);
break;
FontComb->setCurrentItem(fc);
break;
}
}
}
Layout15a->addWidget( FontComb, 0, 1 );
SizeCombo = new QComboBox( true, ToolFrame, "SizeCombo" );
SizeCombo->setEditable(false);
SizeCombo->insertItem(" 7 pt");
SizeCombo->insertItem(" 9 pt");
SizeCombo->insertItem("10 pt");
SizeCombo->insertItem("12 pt");
SizeCombo->insertItem("14 pt");
SizeCombo->insertItem("18 pt");
SizeCombo->insertItem("24 pt");
SizeCombo->insertItem("36 pt");
SizeCombo->insertItem("48 pt");
SizeCombo->insertItem("60 pt");
SizeCombo->insertItem("72 pt");
int a;
if (ap->HaveDoc)
{
for (a = 0; a < SizeCombo->count(); ++a)
{
if (SizeCombo->text(a).left(2).toInt() == ap->doc->Dsize / 10)
}
Layout15a->addWidget( FontComb, 0, 1 );
SizeCombo = new QComboBox( true, ToolFrame, "SizeCombo" );
SizeCombo->setEditable(false);
char *ar_sizes[] = {" 7 pt", " 9 pt", "10 pt", "12 pt", "14 pt", "18 pt", "24 pt", "36 pt", "48 pt",
"60 pt", "72 pt"};
size_t f_size = sizeof(ar_sizes) / sizeof(*ar_sizes);
for (uint s = 0; s < f_size; ++s)
SizeCombo->insertItem(ar_sizes[s]);
int a;
if (ap->HaveDoc)
{
for (a = 0; a < SizeCombo->count(); ++a)
{
if (SizeCombo->text(a).left(2).toInt() == ap->doc->Dsize / 10)
SizeCombo->setCurrentItem(a);
}
}
else
{
for (a = 0; a < SizeCombo->count(); ++a)
{
if (SizeCombo->text(a).left(2).toInt() == Vor->DefSize / 10)
SizeCombo->setCurrentItem(a);
}
}
Layout15a->addWidget( SizeCombo, 1, 1 );
TextLabelT1 = new QLabel( ToolFrame, "TextLabel1_3_2" );
TextLabelT1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT1->sizePolicy().hasHeightForWidth() ) );
TextLabelT1->setText( tr( "Text Color:" ) );
Layout15a->addWidget( TextLabelT1, 2, 0 );
ForegroundT = new QComboBox( true, ToolFrame, "Foreground" );
ForegroundT->setEditable(false);
QPixmap pm2;
pm2 = QPixmap(15, 15);
CListe::Iterator itc;
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
ForegroundT->insertItem(pm2, itc.key());
if (itc.key() == Vor->DpenText)
{
ForegroundT->setCurrentItem(ForegroundT->count()-1);
}
}
Layout15a->addWidget( ForegroundT, 2, 1 );
TextCol = new QLabel(ToolFrame, "TextCol");
TextCol->setText( tr("Columns:") );
Layout15a->addWidget( TextCol, 3, 0 );
TextColVal = new QSpinBox( ToolFrame, "TextColVal" );
TextColVal->setMaxValue( 100 );
TextColVal->setMinValue( 1 );
TextColVal->setValue(ap->HaveDoc ? ap->doc->DCols : Vor->DCols );
Layout15a->addWidget( TextColVal, 3, 1 );
TextGap = new QLabel(ToolFrame, "TextCol");
TextGap->setText( tr("Gap:") );
Layout15a->addWidget( TextGap, 4, 0 );
TextGapVal = new MSpinBox( ToolFrame, 1 );
TextGapVal->setSuffix( tr( " pt" ) );
}
}
else
{
for (a = 0; a < SizeCombo->count(); ++a)
{
if (SizeCombo->text(a).left(2).toInt() == Vor->DefSize / 10)
SizeCombo->setCurrentItem(a);
}
}
Layout15a->addWidget( SizeCombo, 1, 1 );
TextLabelT1 = new QLabel( ToolFrame, "TextLabel1_3_2" );
TextLabelT1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT1->sizePolicy().hasHeightForWidth() ) );
TextLabelT1->setText( tr( "Text Color:" ) );
Layout15a->addWidget( TextLabelT1, 2, 0 );
ForegroundT = new QComboBox( true, ToolFrame, "Foreground" );
ForegroundT->setEditable(false);
QPixmap pm2;
pm2 = QPixmap(15, 15);
CListe::Iterator itc;
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
ForegroundT->insertItem(pm2, itc.key());
if (itc.key() == Vor->DpenText)
ForegroundT->setCurrentItem(ForegroundT->count()-1);
}
Layout15a->addWidget( ForegroundT, 2, 1 );
TextCol = new QLabel(ToolFrame, "TextCol");
TextCol->setText( tr("Columns:") );
Layout15a->addWidget( TextCol, 3, 0 );
TextColVal = new QSpinBox( ToolFrame, "TextColVal" );
TextColVal->setMaxValue( 100 );
TextColVal->setMinValue( 1 );
TextColVal->setValue(ap->HaveDoc ? ap->doc->DCols : Vor->DCols );
Layout15a->addWidget( TextColVal, 3, 1 );
TextGap = new QLabel(ToolFrame, "TextCol");
TextGap->setText( tr("Gap:") );
Layout15a->addWidget( TextGap, 4, 0 );
TextGapVal = new MSpinBox( ToolFrame, 1 );
TextGapVal->setSuffix( tr( " pt" ) );
TextGapVal->setDecimals( decimals );
TextGapVal->setMaxValue( 200 );
TextGapVal->setMinValue( 0 );
TextGapVal->setValue(ap->HaveDoc ? ap->doc->DGap : Vor->DGap);
Layout15a->addWidget( TextGapVal, 4, 1 );
TextLabel1_4 = new QLabel( ToolFrame, "TextLabel1_4" );
TextLabel1_4->setMinimumSize(QSize(260, 70));
TextLabel1_4->setMaximumSize(QSize(260, 70));
TextLabel1_4->setText( tr( "Woven silk pyjamas exchanged for blue quartz" ) );
TextLabel1_4->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
SetSample();
Layout15a->addMultiCellWidget( TextLabel1_4, 5, 5, 0, 1 );
QSpacerItem* sp09 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrameLayout->addItem( sp09 );
ToolFrameLayout->addLayout( Layout15a );
QSpacerItem* sp10 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrameLayout->addItem( sp10 );
Fram->addWidget(ToolFrame, 1);
TextGapVal->setMaxValue( 200 );
TextGapVal->setMinValue( 0 );
TextGapVal->setValue(ap->HaveDoc ? ap->doc->DGap : Vor->DGap);
Layout15a->addWidget( TextGapVal, 4, 1 );
TextLabel1_4 = new QLabel( ToolFrame, "TextLabel1_4" );
TextLabel1_4->setMinimumSize(QSize(260, 70));
TextLabel1_4->setMaximumSize(QSize(260, 70));
TextLabel1_4->setText( tr( "Woven silk pyjamas exchanged for blue quartz" ) );
TextLabel1_4->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
SetSample();
Layout15a->addMultiCellWidget( TextLabel1_4, 5, 5, 0, 1 );
QSpacerItem* sp09 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrameLayout->addItem( sp09 );
ToolFrameLayout->addLayout( Layout15a );
QSpacerItem* sp10 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrameLayout->addItem( sp10 );
Fram->addWidget(ToolFrame, 1);
 
ToolFrame2 = new QFrame( this, "ToolFrame" );
ToolFrame2->setFrameShape( QFrame::Box );
ToolFrame2->setFrameShadow( QFrame::Sunken );
ToolFrame2Layout = new QHBoxLayout( ToolFrame2 );
ToolFrame2Layout->setSpacing( 0 );
ToolFrame2Layout->setMargin( 10 );
Layout15b = new QGridLayout;
Layout15b->setSpacing( 6 );
Layout15b->setMargin( 0 );
TextLabelT21 = new QLabel( ToolFrame2, "TextLabel1_3_2" );
TextLabelT21->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT21->sizePolicy().hasHeightForWidth() ) );
TextLabelT21->setText( tr( "Line Color:" ) );
Layout15b->addWidget(TextLabelT21, 0, 0);
TextLabelT22 = new QLabel( ToolFrame2, "TextLabel2_2" );
TextLabelT22->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT22->sizePolicy().hasHeightForWidth() ) );
TextLabelT22->setText( tr( "Shading:" ) );
Layout15b->addWidget(TextLabelT22, 1, 0);
TextLabelT23 = new QLabel( ToolFrame2, "TextLabel1_3" );
TextLabelT23->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT23->sizePolicy().hasHeightForWidth() ) );
TextLabelT23->setText( tr( "Fill Color:" ) );
Layout15b->addWidget(TextLabelT23, 2, 0);
TextLabelT24 = new QLabel( ToolFrame2, "TextLabel2_2_2" );
TextLabelT24->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT24->sizePolicy().hasHeightForWidth() ) );
TextLabelT24->setText( tr( "Shading:" ) );
Layout15b->addWidget(TextLabelT24, 3, 0);
TextLabelT25 = new QLabel( ToolFrame2, "TextLabel1_3_3" );
TextLabelT25->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT25->sizePolicy().hasHeightForWidth() ) );
TextLabelT25->setText( tr( "Linestyle:" ) );
Layout15b->addWidget(TextLabelT25, 4, 0);
TextLabelT26 = new QLabel( ToolFrame2, "TextLabel2_3_4" );
TextLabelT26->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT26->sizePolicy().hasHeightForWidth() ) );
TextLabelT26->setText( tr( "Line Width:" ) );
Layout15b->addWidget(TextLabelT26, 5, 0);
Foreground = new QComboBox( true, ToolFrame2, "Foreground" );
Foreground->setEditable(false);
Foreground->insertItem( tr("None"));
if (Vor->Dpen == "None")
Foreground->setCurrentItem(Foreground->count()-1);
pm2 = QPixmap(15, 15);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
Foreground->insertItem(pm2, itc.key());
if (itc.key() == Vor->Dpen)
{
Foreground->setCurrentItem(Foreground->count()-1);
}
}
Layout15b->addWidget(Foreground, 0, 1);
Shade2 = new QSpinBox( ToolFrame2, "Shade2" );
Shade2->setSuffix( tr( " %" ) );
Shade2->setMaxValue( 100 );
Shade2->setMinValue( 0 );
Shade2->setValue(ap->HaveDoc ? ap->doc->Dshade2 : Vor->Dshade2 );
Layout15b->addWidget(Shade2, 1, 1);
Background = new QComboBox( true, ToolFrame2, "Background" );
Background->setEditable(false);
Background->insertItem( tr("None"));
if (Vor->Dbrush == "None")
Background->setCurrentItem(Background->count()-1);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
Background->insertItem(pm2, itc.key());
if (itc.key() == Vor->Dbrush)
{
Background->setCurrentItem(Background->count()-1);
}
}
Layout15b->addWidget(Background, 2, 1);
Shade = new QSpinBox( ToolFrame2, "Shade" );
Shade->setSuffix( tr( " %" ) );
Shade->setMaxValue( 100 );
Shade->setMinValue( 0 );
Shade->setValue(ap->HaveDoc ? ap->doc->Dshade : Vor->Dshade );
Layout15b->addWidget(Shade, 3, 1);
Linestyle = new LineCombo(ToolFrame2);
Linestyle->setEditable(false);
int dla;
dla = ap->HaveDoc ? ap->doc->DLineArt : Vor->DLineArt;
switch (dla)
{
case SolidLine:
Linestyle->setCurrentItem(0);
break;
case DashLine:
Linestyle->setCurrentItem(1);
break;
case DotLine:
Linestyle->setCurrentItem(2);
break;
case DashDotLine:
Linestyle->setCurrentItem(3);
break;
case DashDotDotLine:
Linestyle->setCurrentItem(4);
break;
default:
Linestyle->setCurrentItem(0);
break;
}
Layout15b->addWidget(Linestyle, 4, 1);
LineW = new MSpinBox( ToolFrame2, 1 );
LineW->setSuffix( tr( " pt" ) );
LineW->setMaxValue( 36 );
LineW->setMinValue( 0 );
LineW->setValue(ap->HaveDoc ? ap->doc->Dwidth : Vor->Dwidth);
Layout15b->addWidget(LineW, 5, 1);
QSpacerItem* sp07 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame2Layout->addItem( sp07 );
ToolFrame2Layout->addLayout( Layout15b );
QSpacerItem* sp08 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame2Layout->addItem( sp08 );
Fram->addWidget(ToolFrame2, 2);
ToolFrame2 = new QFrame( this, "ToolFrame" );
ToolFrame2->setFrameShape( QFrame::Box );
ToolFrame2->setFrameShadow( QFrame::Sunken );
ToolFrame2Layout = new QHBoxLayout( ToolFrame2 );
ToolFrame2Layout->setSpacing( 0 );
ToolFrame2Layout->setMargin( 10 );
Layout15b = new QGridLayout;
Layout15b->setSpacing( 6 );
Layout15b->setMargin( 0 );
TextLabelT21 = new QLabel( ToolFrame2, "TextLabel1_3_2" );
TextLabelT21->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT21->sizePolicy().hasHeightForWidth() ) );
TextLabelT21->setText( tr( "Line Color:" ) );
Layout15b->addWidget(TextLabelT21, 0, 0);
TextLabelT22 = new QLabel( ToolFrame2, "TextLabel2_2" );
TextLabelT22->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT22->sizePolicy().hasHeightForWidth() ) );
TextLabelT22->setText( tr( "Shading:" ) );
Layout15b->addWidget(TextLabelT22, 1, 0);
TextLabelT23 = new QLabel( ToolFrame2, "TextLabel1_3" );
TextLabelT23->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT23->sizePolicy().hasHeightForWidth() ) );
TextLabelT23->setText( tr( "Fill Color:" ) );
Layout15b->addWidget(TextLabelT23, 2, 0);
TextLabelT24 = new QLabel( ToolFrame2, "TextLabel2_2_2" );
TextLabelT24->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT24->sizePolicy().hasHeightForWidth() ) );
TextLabelT24->setText( tr( "Shading:" ) );
Layout15b->addWidget(TextLabelT24, 3, 0);
TextLabelT25 = new QLabel( ToolFrame2, "TextLabel1_3_3" );
TextLabelT25->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT25->sizePolicy().hasHeightForWidth() ) );
TextLabelT25->setText( tr( "Linestyle:" ) );
Layout15b->addWidget(TextLabelT25, 4, 0);
TextLabelT26 = new QLabel( ToolFrame2, "TextLabel2_3_4" );
TextLabelT26->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT26->sizePolicy().hasHeightForWidth() ) );
TextLabelT26->setText( tr( "Line Width:" ) );
Layout15b->addWidget(TextLabelT26, 5, 0);
Foreground = new QComboBox( true, ToolFrame2, "Foreground" );
Foreground->setEditable(false);
Foreground->insertItem( tr("None"));
if (Vor->Dpen == "None")
Foreground->setCurrentItem(Foreground->count()-1);
pm2 = QPixmap(15, 15);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
Foreground->insertItem(pm2, itc.key());
if (itc.key() == Vor->Dpen)
Foreground->setCurrentItem(Foreground->count()-1);
}
Layout15b->addWidget(Foreground, 0, 1);
Shade2 = new QSpinBox( ToolFrame2, "Shade2" );
Shade2->setSuffix( tr( " %" ) );
Shade2->setMaxValue( 100 );
Shade2->setMinValue( 0 );
Shade2->setValue(ap->HaveDoc ? ap->doc->Dshade2 : Vor->Dshade2 );
Layout15b->addWidget(Shade2, 1, 1);
Background = new QComboBox( true, ToolFrame2, "Background" );
Background->setEditable(false);
Background->insertItem( tr("None"));
if (Vor->Dbrush == "None")
Background->setCurrentItem(Background->count()-1);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
Background->insertItem(pm2, itc.key());
if (itc.key() == Vor->Dbrush)
Background->setCurrentItem(Background->count()-1);
}
Layout15b->addWidget(Background, 2, 1);
Shade = new QSpinBox( ToolFrame2, "Shade" );
Shade->setSuffix( tr( " %" ) );
Shade->setMaxValue( 100 );
Shade->setMinValue( 0 );
Shade->setValue(ap->HaveDoc ? ap->doc->Dshade : Vor->Dshade );
Layout15b->addWidget(Shade, 3, 1);
Linestyle = new LineCombo(ToolFrame2);
Linestyle->setEditable(false);
int dla = ap->HaveDoc ? ap->doc->DLineArt : Vor->DLineArt;
switch (dla)
{
case SolidLine:
Linestyle->setCurrentItem(0);
break;
case DashLine:
Linestyle->setCurrentItem(1);
break;
case DotLine:
Linestyle->setCurrentItem(2);
break;
case DashDotLine:
Linestyle->setCurrentItem(3);
break;
case DashDotDotLine:
Linestyle->setCurrentItem(4);
break;
default:
Linestyle->setCurrentItem(0);
break;
}
Layout15b->addWidget(Linestyle, 4, 1);
LineW = new MSpinBox( ToolFrame2, 1 );
LineW->setSuffix( tr( " pt" ) );
LineW->setMaxValue( 36 );
LineW->setMinValue( 0 );
LineW->setValue(ap->HaveDoc ? ap->doc->Dwidth : Vor->Dwidth);
Layout15b->addWidget(LineW, 5, 1);
QSpacerItem* sp07 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame2Layout->addItem( sp07 );
ToolFrame2Layout->addLayout( Layout15b );
QSpacerItem* sp08 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame2Layout->addItem( sp08 );
Fram->addWidget(ToolFrame2, 2);
 
ToolFrame3 = new QFrame( this, "ToolFrame" );
ToolFrame3->setFrameShape( QFrame::Box );
ToolFrame3->setFrameShadow( QFrame::Sunken );
ToolFrame3Layout = new QHBoxLayout( ToolFrame3 );
ToolFrame3Layout->setSpacing( 0 );
ToolFrame3Layout->setMargin( 10 );
Layout15c = new QGridLayout;
Layout15c->setSpacing( 6 );
Layout15c->setMargin( 0 );
TextLabelT31 = new QLabel( ToolFrame3, "TextLabel1_3_2" );
TextLabelT31->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT31->sizePolicy().hasHeightForWidth() ) );
TextLabelT31->setText( tr( "Line Color:" ) );
Layout15c->addWidget(TextLabelT31, 0, 0);
TextLabelT32 = new QLabel( ToolFrame3, "TextLabel2_2" );
TextLabelT32->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT32->sizePolicy().hasHeightForWidth() ) );
TextLabelT32->setText( tr( "Shading:" ) );
Layout15c->addWidget(TextLabelT32, 1, 0);
TextLabelT35 = new QLabel( ToolFrame3, "TextLabel1_3_3" );
TextLabelT35->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT35->sizePolicy().hasHeightForWidth() ) );
TextLabelT35->setText( tr( "Line Style:" ) );
Layout15c->addWidget(TextLabelT35, 2, 0);
TextLabelT36 = new QLabel( ToolFrame3, "TextLabel2_3_4" );
TextLabelT36->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT36->sizePolicy().hasHeightForWidth() ) );
TextLabelT36->setText( tr( "Line Width:" ) );
Layout15c->addWidget(TextLabelT36, 3, 0);
Foreground2 = new QComboBox( true, ToolFrame3, "Foreground" );
Foreground2->setEditable(false);
QPixmap pm3;
pm3 = QPixmap(15, 15);
CListe::Iterator itc2;
for (itc2 = Vor->DColors.begin(); itc2 != Vor->DColors.end(); ++itc2)
{
pm3.fill(Vor->DColors[itc2.key()].getRGBColor());
Foreground2->insertItem(pm3, itc2.key());
if (itc2.key() == Vor->DpenLine)
{
Foreground2->setCurrentItem(Foreground2->count()-1);
}
}
Layout15c->addWidget(Foreground2, 0, 1);
Shade22 = new QSpinBox( ToolFrame3, "Shade2" );
Shade22->setSuffix( tr( " %" ) );
Shade22->setMaxValue( 100 );
Shade22->setMinValue( 0 );
Shade22->setValue(ap->HaveDoc ? ap->doc->DshadeLine : Vor->DshadeLine );
Layout15c->addWidget(Shade22, 1, 1);
Linestyle2 = new LineCombo(ToolFrame3);
Linestyle2->setEditable(false);
dla = ap->HaveDoc ? ap->doc->DLstyleLine : Vor->DLstyleLine;
switch (dla)
{
case SolidLine:
Linestyle2->setCurrentItem(0);
break;
case DashLine:
Linestyle2->setCurrentItem(1);
break;
case DotLine:
Linestyle2->setCurrentItem(2);
break;
case DashDotLine:
Linestyle2->setCurrentItem(3);
break;
case DashDotDotLine:
Linestyle2->setCurrentItem(4);
break;
default:
Linestyle2->setCurrentItem(0);
break;
}
Layout15c->addWidget(Linestyle2, 2, 1);
LineW2 = new MSpinBox( ToolFrame3, 1 );
LineW2->setSuffix( tr( " pts" ) );
LineW2->setMaxValue( 36 );
LineW2->setMinValue( 1 );
LineW2->setValue(ap->HaveDoc ? ap->doc->DwidthLine : Vor->DwidthLine);
Layout15c->addWidget(LineW2, 3, 1);
QSpacerItem* sp05 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame3Layout->addItem( sp05 );
ToolFrame3Layout->addLayout( Layout15c );
QSpacerItem* sp06 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame3Layout->addItem( sp06 );
Fram->addWidget(ToolFrame3, 3);
 
ToolFrame4 = new QFrame( this, "ToolFrame" );
ToolFrame4->setFrameShape( QFrame::Box );
ToolFrame4->setFrameShadow( QFrame::Sunken );
ToolFrame4Layout = new QHBoxLayout( ToolFrame4 );
ToolFrame4Layout->setSpacing( 0 );
ToolFrame4Layout->setMargin( 10 );
Layout15d = new QGridLayout;
Layout15d->setSpacing( 6 );
Layout15d->setMargin( 0 );
TextLabelT42 = new QLabel( ToolFrame4, "TextLabel2_2" );
TextLabelT42->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT42->sizePolicy().hasHeightForWidth() ) );
TextLabelT42->setText( tr( "Minimum:" ) );
Layout15d->addWidget(TextLabelT42, 0, 0);
TextLabelT43 = new QLabel( ToolFrame4, "TextLabel2_2_3" );
TextLabelT43->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT43->sizePolicy().hasHeightForWidth() ) );
TextLabelT43->setText( tr( "Maximum:" ) );
Layout15d->addWidget(TextLabelT43, 1, 0);
TextLabelT44 = new QLabel( ToolFrame4, "TextLabel2_3_4" );
TextLabelT44->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT44->sizePolicy().hasHeightForWidth() ) );
TextLabelT44->setText( tr( "Stepping:" ) );
Layout15d->addWidget(TextLabelT44, 2, 0);
MinMag = new QSpinBox( ToolFrame4, "Shade2" );
MinMag->setSuffix( tr( " %" ) );
MinMag->setMaxValue( 800 );
MinMag->setMinValue( 10 );
MinMag->setLineStep( 10 );
MinMag->setValue(ap->HaveDoc ? ap->doc->MagMin : Vor->MagMin );
Layout15d->addWidget(MinMag, 0, 1);
MaxMag = new QSpinBox( ToolFrame4, "Shade" );
MaxMag->setSuffix( tr( " %" ) );
MaxMag->setMaxValue( 800 );
MaxMag->setMinValue( 10 );
MaxMag->setLineStep( 10 );
MaxMag->setValue(ap->HaveDoc ? ap->doc->MagMax : Vor->MagMax );
Layout15d->addWidget(MaxMag, 1, 1);
StepMag = new QSpinBox( ToolFrame4, "LineW" );
StepMag->setSuffix( tr( " %" ) );
StepMag->setMaxValue( 200 );
StepMag->setMinValue( 1 );
StepMag->setLineStep( 25 );
StepMag->setValue(ap->HaveDoc ? ap->doc->MagStep : Vor->MagStep );
Layout15d->addWidget(StepMag, 2, 1);
QSpacerItem* sp03 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame4Layout->addItem( sp03 );
ToolFrame4Layout->addLayout( Layout15d );
QSpacerItem* sp04 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame4Layout->addItem( sp04 );
Fram->addWidget(ToolFrame4, 4);
 
ToolFrame5 = new QButtonGroup( this, "ToolFrame5" );
ToolFrame5->setFrameShape( QFrame::Box );
ToolFrame5->setFrameShadow( QFrame::Sunken );
ToolFrame5->setExclusive( false );
ToolFrame5->setRadioButtonExclusive(true);
ToolFrame5Layout = new QHBoxLayout( ToolFrame5 );
ToolFrame5Layout->setSpacing( 0 );
ToolFrame5Layout->setMargin( 20 );
Layout15 = new QGridLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
FreeScale = new QRadioButton( ToolFrame5, "FreeScale" );
FreeScale->setText( tr( "Free Scaling" ) );
Layout15->addMultiCellWidget( FreeScale, 0, 0, 0, 3 );
TextLabelT51 = new QLabel( ToolFrame5, "TextLabelT51" );
TextLabelT51->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT51->sizePolicy().hasHeightForWidth() ) );
TextLabelT51->setText( tr( "Horizontal Scaling" ) );
Layout15->addWidget( TextLabelT51, 1, 1 );
TextLabelT52 = new QLabel( ToolFrame5, "TextLabelT52" );
TextLabelT52->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT52->sizePolicy().hasHeightForWidth() ) );
TextLabelT52->setText( tr( "Vertical Scaling" ) );
Layout15->addWidget( TextLabelT52, 2, 1 );
TextLabelT53 = new QLabel( ToolFrame5, "TextLabelT53" );
TextLabelT53->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT53->sizePolicy().hasHeightForWidth() ) );
TextLabelT53->setText( tr( "Fill Color:" ) );
Layout15->addWidget( TextLabelT53, 5, 0 );
TextLabelT54 = new QLabel( ToolFrame5, "TextLabelT54" );
TextLabelT54->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabelT54->sizePolicy().hasHeightForWidth() ) );
TextLabelT54->setText( tr( "Shading:" ) );
Layout15->addWidget( TextLabelT54, 6, 0 );
XScale = new QSpinBox( ToolFrame5, "XScale" );
XScale->setSuffix( tr( " %" ) );
XScale->setMaxValue( 1000 );
XScale->setMinValue( 1 );
XScale->setValue(ap->HaveDoc ? qRound(ap->doc->ScaleX * 100) : qRound(Vor->ScaleX * 100) );
Layout15->addWidget( XScale, 1, 2 );
YScale = new QSpinBox( ToolFrame5, "YScale" );
YScale->setSuffix( tr( " %" ) );
YScale->setMaxValue( 1000 );
YScale->setMinValue( 1 );
YScale->setValue(ap->HaveDoc ? qRound(ap->doc->ScaleY * 100) : qRound(Vor->ScaleY * 100) );
Layout15->addWidget( YScale, 2, 2 );
Kette = new LinkButton( ToolFrame5 );
Kette->setToggleButton( true );
Kette->setAutoRaise(true);
Layout15->addMultiCellWidget( Kette, 1, 2, 3, 3 );
FrameScale = new QRadioButton(ToolFrame5, "FrameScale" );
FrameScale->setText( tr( "Scale Picture to Frame Size" ) );
Layout15->addMultiCellWidget( FrameScale, 3, 3, 0, 3 );
Aspect = new QCheckBox( ToolFrame5, "Aspect" );
Aspect->setText( tr( "Keep Aspect Ratio" ) );
Layout15->addMultiCellWidget( Aspect, 4, 4, 1, 3 );
ShadeP = new QSpinBox( ToolFrame5, "ShadeP" );
ShadeP->setSuffix( tr( " %" ) );
ShadeP->setMaxValue( 100 );
ShadeP->setMinValue( 0 );
ShadeP->setValue(ap->HaveDoc ? ap->doc->ShadePict : Vor->ShadePict );
Layout15->addWidget( ShadeP, 6, 1 );
BackgroundP = new QComboBox( true, ToolFrame5, "BackgroundP" );
BackgroundP->setEditable(false);
BackgroundP->insertItem( tr("None"));
ToolFrame3 = new QFrame( this, "ToolFrame" );
ToolFrame3->setFrameShape( QFrame::Box );
ToolFrame3->setFrameShadow( QFrame::Sunken );
ToolFrame3Layout = new QHBoxLayout( ToolFrame3 );
ToolFrame3Layout->setSpacing( 0 );
ToolFrame3Layout->setMargin( 10 );
Layout15c = new QGridLayout;
Layout15c->setSpacing( 6 );
Layout15c->setMargin( 0 );
TextLabelT31 = new QLabel( ToolFrame3, "TextLabel1_3_2" );
TextLabelT31->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT31->sizePolicy().hasHeightForWidth() ) );
TextLabelT31->setText( tr( "Line Color:" ) );
Layout15c->addWidget(TextLabelT31, 0, 0);
TextLabelT32 = new QLabel( ToolFrame3, "TextLabel2_2" );
TextLabelT32->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT32->sizePolicy().hasHeightForWidth() ) );
TextLabelT32->setText( tr( "Shading:" ) );
Layout15c->addWidget(TextLabelT32, 1, 0);
TextLabelT35 = new QLabel( ToolFrame3, "TextLabel1_3_3" );
TextLabelT35->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT35->sizePolicy().hasHeightForWidth() ) );
TextLabelT35->setText( tr( "Line Style:" ) );
Layout15c->addWidget(TextLabelT35, 2, 0);
TextLabelT36 = new QLabel( ToolFrame3, "TextLabel2_3_4" );
TextLabelT36->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT36->sizePolicy().hasHeightForWidth() ) );
TextLabelT36->setText( tr( "Line Width:" ) );
Layout15c->addWidget(TextLabelT36, 3, 0);
Foreground2 = new QComboBox( true, ToolFrame3, "Foreground" );
Foreground2->setEditable(false);
QPixmap pm3;
pm3 = QPixmap(15, 15);
CListe::Iterator itc2;
for (itc2 = Vor->DColors.begin(); itc2 != Vor->DColors.end(); ++itc2)
{
pm3.fill(Vor->DColors[itc2.key()].getRGBColor());
Foreground2->insertItem(pm3, itc2.key());
if (itc2.key() == Vor->DpenLine)
Foreground2->setCurrentItem(Foreground2->count()-1);
}
Layout15c->addWidget(Foreground2, 0, 1);
Shade22 = new QSpinBox( ToolFrame3, "Shade2" );
Shade22->setSuffix( tr( " %" ) );
Shade22->setMaxValue( 100 );
Shade22->setMinValue( 0 );
Shade22->setValue(ap->HaveDoc ? ap->doc->DshadeLine : Vor->DshadeLine );
Layout15c->addWidget(Shade22, 1, 1);
Linestyle2 = new LineCombo(ToolFrame3);
Linestyle2->setEditable(false);
dla = ap->HaveDoc ? ap->doc->DLstyleLine : Vor->DLstyleLine;
switch (dla)
{
case SolidLine:
Linestyle2->setCurrentItem(0);
break;
case DashLine:
Linestyle2->setCurrentItem(1);
break;
case DotLine:
Linestyle2->setCurrentItem(2);
break;
case DashDotLine:
Linestyle2->setCurrentItem(3);
break;
case DashDotDotLine:
Linestyle2->setCurrentItem(4);
break;
default:
Linestyle2->setCurrentItem(0);
break;
}
Layout15c->addWidget(Linestyle2, 2, 1);
LineW2 = new MSpinBox( ToolFrame3, 1 );
LineW2->setSuffix( tr( " pts" ) );
LineW2->setMaxValue( 36 );
LineW2->setMinValue( 1 );
LineW2->setValue(ap->HaveDoc ? ap->doc->DwidthLine : Vor->DwidthLine);
Layout15c->addWidget(LineW2, 3, 1);
QSpacerItem* sp05 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame3Layout->addItem( sp05 );
ToolFrame3Layout->addLayout( Layout15c );
QSpacerItem* sp06 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame3Layout->addItem( sp06 );
Fram->addWidget(ToolFrame3, 3);
ToolFrame4 = new QFrame( this, "ToolFrame" );
ToolFrame4->setFrameShape( QFrame::Box );
ToolFrame4->setFrameShadow( QFrame::Sunken );
ToolFrame4Layout = new QHBoxLayout( ToolFrame4 );
ToolFrame4Layout->setSpacing( 0 );
ToolFrame4Layout->setMargin( 10 );
Layout15d = new QGridLayout;
Layout15d->setSpacing( 6 );
Layout15d->setMargin( 0 );
TextLabelT42 = new QLabel( ToolFrame4, "TextLabel2_2" );
TextLabelT42->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT42->sizePolicy().hasHeightForWidth() ) );
TextLabelT42->setText( tr( "Minimum:" ) );
Layout15d->addWidget(TextLabelT42, 0, 0);
TextLabelT43 = new QLabel( ToolFrame4, "TextLabel2_2_3" );
TextLabelT43->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT43->sizePolicy().hasHeightForWidth() ) );
TextLabelT43->setText( tr( "Maximum:" ) );
Layout15d->addWidget(TextLabelT43, 1, 0);
TextLabelT44 = new QLabel( ToolFrame4, "TextLabel2_3_4" );
TextLabelT44->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT44->sizePolicy().hasHeightForWidth() ) );
TextLabelT44->setText( tr( "Stepping:" ) );
Layout15d->addWidget(TextLabelT44, 2, 0);
MinMag = new QSpinBox( ToolFrame4, "Shade2" );
MinMag->setSuffix( tr( " %" ) );
MinMag->setMaxValue( 800 );
MinMag->setMinValue( 10 );
MinMag->setLineStep( 10 );
MinMag->setValue(ap->HaveDoc ? ap->doc->MagMin : Vor->MagMin );
Layout15d->addWidget(MinMag, 0, 1);
MaxMag = new QSpinBox( ToolFrame4, "Shade" );
MaxMag->setSuffix( tr( " %" ) );
MaxMag->setMaxValue( 800 );
MaxMag->setMinValue( 10 );
MaxMag->setLineStep( 10 );
MaxMag->setValue(ap->HaveDoc ? ap->doc->MagMax : Vor->MagMax );
Layout15d->addWidget(MaxMag, 1, 1);
StepMag = new QSpinBox( ToolFrame4, "LineW" );
StepMag->setSuffix( tr( " %" ) );
StepMag->setMaxValue( 200 );
StepMag->setMinValue( 1 );
StepMag->setLineStep( 25 );
StepMag->setValue(ap->HaveDoc ? ap->doc->MagStep : Vor->MagStep );
Layout15d->addWidget(StepMag, 2, 1);
QSpacerItem* sp03 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame4Layout->addItem( sp03 );
ToolFrame4Layout->addLayout( Layout15d );
QSpacerItem* sp04 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame4Layout->addItem( sp04 );
Fram->addWidget(ToolFrame4, 4);
ToolFrame5 = new QButtonGroup( this, "ToolFrame5" );
ToolFrame5->setFrameShape( QFrame::Box );
ToolFrame5->setFrameShadow( QFrame::Sunken );
ToolFrame5->setExclusive( false );
ToolFrame5->setRadioButtonExclusive(true);
ToolFrame5Layout = new QHBoxLayout( ToolFrame5 );
ToolFrame5Layout->setSpacing( 0 );
ToolFrame5Layout->setMargin( 20 );
Layout15 = new QGridLayout;
Layout15->setSpacing( 6 );
Layout15->setMargin( 0 );
FreeScale = new QRadioButton( ToolFrame5, "FreeScale" );
FreeScale->setText( tr( "Free Scaling" ) );
Layout15->addMultiCellWidget( FreeScale, 0, 0, 0, 3 );
TextLabelT51 = new QLabel( ToolFrame5, "TextLabelT51" );
TextLabelT51->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT51->sizePolicy().hasHeightForWidth() ) );
TextLabelT51->setText( tr( "Horizontal Scaling" ) );
Layout15->addWidget( TextLabelT51, 1, 1 );
TextLabelT52 = new QLabel( ToolFrame5, "TextLabelT52" );
TextLabelT52->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT52->sizePolicy().hasHeightForWidth() ) );
TextLabelT52->setText( tr( "Vertical Scaling" ) );
Layout15->addWidget( TextLabelT52, 2, 1 );
TextLabelT53 = new QLabel( ToolFrame5, "TextLabelT53" );
TextLabelT53->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT53->sizePolicy().hasHeightForWidth() ) );
TextLabelT53->setText( tr( "Fill Color:" ) );
Layout15->addWidget( TextLabelT53, 5, 0 );
TextLabelT54 = new QLabel( ToolFrame5, "TextLabelT54" );
TextLabelT54->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabelT54->sizePolicy().hasHeightForWidth() ) );
TextLabelT54->setText( tr( "Shading:" ) );
Layout15->addWidget( TextLabelT54, 6, 0 );
XScale = new QSpinBox( ToolFrame5, "XScale" );
XScale->setSuffix( tr( " %" ) );
XScale->setMaxValue( 1000 );
XScale->setMinValue( 1 );
XScale->setValue(ap->HaveDoc ? qRound(ap->doc->ScaleX * 100) : qRound(Vor->ScaleX * 100) );
Layout15->addWidget( XScale, 1, 2 );
YScale = new QSpinBox( ToolFrame5, "YScale" );
YScale->setSuffix( tr( " %" ) );
YScale->setMaxValue( 1000 );
YScale->setMinValue( 1 );
YScale->setValue(ap->HaveDoc ? qRound(ap->doc->ScaleY * 100) : qRound(Vor->ScaleY * 100) );
Layout15->addWidget( YScale, 2, 2 );
Kette = new LinkButton( ToolFrame5 );
Kette->setToggleButton( true );
Kette->setAutoRaise(true);
Layout15->addMultiCellWidget( Kette, 1, 2, 3, 3 );
FrameScale = new QRadioButton(ToolFrame5, "FrameScale" );
FrameScale->setText( tr( "Scale Picture to Frame Size" ) );
Layout15->addMultiCellWidget( FrameScale, 3, 3, 0, 3 );
Aspect = new QCheckBox( ToolFrame5, "Aspect" );
Aspect->setText( tr( "Keep Aspect Ratio" ) );
Layout15->addMultiCellWidget( Aspect, 4, 4, 1, 3 );
ShadeP = new QSpinBox( ToolFrame5, "ShadeP" );
ShadeP->setSuffix( tr( " %" ) );
ShadeP->setMaxValue( 100 );
ShadeP->setMinValue( 0 );
ShadeP->setValue(ap->HaveDoc ? ap->doc->ShadePict : Vor->ShadePict );
Layout15->addWidget( ShadeP, 6, 1 );
BackgroundP = new QComboBox( true, ToolFrame5, "BackgroundP" );
BackgroundP->setEditable(false);
BackgroundP->insertItem( tr("None"));
if (Vor->DbrushPict == "None")
BackgroundP->setCurrentItem(BackgroundP->count()-1);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
BackgroundP->insertItem(pm2, itc.key());
if (itc.key() == Vor->DbrushPict)
{
BackgroundP->setCurrentItem(BackgroundP->count()-1);
}
}
Layout15->addMultiCellWidget( BackgroundP, 5, 5, 1, 3 );
QSpacerItem* sp01 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame5Layout->addItem( sp01 );
ToolFrame5Layout->addLayout( Layout15 );
QSpacerItem* sp02 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame5Layout->addItem( sp02 );
Aspect->setChecked(ap->HaveDoc ? ap->doc->AspectRatio : Vor->AspectRatio);
bool sct;
sct = ap->HaveDoc ? ap->doc->ScaleType : Vor->ScaleType;
if (sct)
{
FreeScale->setChecked(true);
FrameScale->setChecked(false);
}
else
{
FreeScale->setChecked(false);
FrameScale->setChecked(true);
}
ChangeScaling();
Fram->addWidget(ToolFrame5, 5);
for (itc = Vor->DColors.begin(); itc != Vor->DColors.end(); ++itc)
{
pm2.fill(Vor->DColors[itc.key()].getRGBColor());
BackgroundP->insertItem(pm2, itc.key());
if (itc.key() == Vor->DbrushPict)
BackgroundP->setCurrentItem(BackgroundP->count()-1);
}
Layout15->addMultiCellWidget( BackgroundP, 5, 5, 1, 3 );
QSpacerItem* sp01 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame5Layout->addItem( sp01 );
ToolFrame5Layout->addLayout( Layout15 );
QSpacerItem* sp02 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
ToolFrame5Layout->addItem( sp02 );
Aspect->setChecked(ap->HaveDoc ? ap->doc->AspectRatio : Vor->AspectRatio);
bool sct = ap->HaveDoc ? ap->doc->ScaleType : Vor->ScaleType;
FreeScale->setChecked(sct ? true : false);
FrameScale->setChecked(sct ? false : true);
ChangeScaling();
Fram->addWidget(ToolFrame5, 5);
ToolFrame6 = new QFrame( this, "ToolFrame6" );
ToolFrame6->setFrameShape( QFrame::Box );
ToolFrame6->setFrameShadow( QFrame::Sunken );
Pre = new QPixmap(101, 101);
Pre->fill(white);
PolygonPropsLayout = new QHBoxLayout( ToolFrame6, 10, 5, "PolygonPropsLayout");
T6_Layout11 = new QHBoxLayout( 0, 0, 5, "Layout11");
T6_Layout10 = new QVBoxLayout( 0, 0, 5, "Layout10");
T6_Layout2 = new QHBoxLayout( 0, 0, 5, "Layout2");
T6_Text1 = new QLabel( ToolFrame6, "Text1" );
T6_Text1->setText( tr( "Corners:" ) );
T6_Layout2->addWidget( T6_Text1 );
T6_Ecken = new QSpinBox( ToolFrame6, "Ecken" );
T6_Ecken->setMaxValue( 999 );
T6_Ecken->setMinValue( 3 );
T6_Ecken->setValue(Vor->PolyC);
T6_Layout2->addWidget( T6_Ecken );
T6_Layout10->addLayout( T6_Layout2 );
T6_Layout9_2 = new QHBoxLayout( 0, 0, 5, "Layout9_2");
T6_Layout8_2 = new QVBoxLayout( 0, 0, 5, "Layout8_2");
T6_Layout7_2 = new QHBoxLayout( 0, 0, 5, "Layout7_2");
T6_Text2_2 = new QLabel( ToolFrame6, "Text2_2" );
T6_Text2_2->setText( tr( "Rotation:" ) );
T6_Layout7_2->addWidget( T6_Text2_2 );
T6_Faktor2 = new QSpinBox( ToolFrame6, "Faktor_2" );
T6_Faktor2->setSuffix(" °");
T6_Faktor2->setMaxValue( 180 );
T6_Faktor2->setMinValue( -180 );
T6_Faktor2->setValue(static_cast<int>(Vor->PolyR));
T6_Layout7_2->addWidget( T6_Faktor2 );
T6_Layout8_2->addLayout( T6_Layout7_2 );
T6_Slider2 = new QSlider( ToolFrame6, "Slider1_2" );
T6_Slider2->setMinValue( -180 );
T6_Slider2->setMaxValue( 180 );
T6_Slider2->setValue(static_cast<int>(Vor->PolyR));
T6_Slider2->setOrientation( QSlider::Horizontal );
T6_Slider2->setTickmarks( QSlider::Right );
T6_Layout8_2->addWidget( T6_Slider2 );
T6_Layout9_2->addLayout( T6_Layout8_2 );
T6_Layout10->addLayout( T6_Layout9_2 );
T6_Konvex = new QCheckBox( ToolFrame6, "Konvex" );
T6_Konvex->setText( tr( "Convex Polygon" ) );
T6_Konvex->setChecked(Vor->PolyS);
T6_Layout10->addWidget( T6_Konvex );
T6_Layout9 = new QHBoxLayout( 0, 0, 5, "Layout9");
QSpacerItem* T6_spacer = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
T6_Layout9->addItem( T6_spacer );
T6_Layout8 = new QVBoxLayout( 0, 0, 5, "Layout8");
T6_Layout7 = new QHBoxLayout( 0, 0, 5, "Layout7");
T6_Text2 = new QLabel( ToolFrame6, "Text2" );
T6_Text2->setText( tr( "Factor:" ) );
T6_Layout7->addWidget( T6_Text2 );
T6_Faktor = new QSpinBox( ToolFrame6, "Faktor" );
T6_Faktor->setSuffix( tr( " %" ) );
T6_Faktor->setMaxValue( 100 );
T6_Faktor->setMinValue( -100 );
T6_Faktor->setValue(Vor->PolyFd);
T6_Layout7->addWidget( T6_Faktor );
T6_Layout8->addLayout( T6_Layout7 );
T6_Slider1 = new QSlider( ToolFrame6, "Slider1" );
T6_Slider1->setMinValue( -100 );
T6_Slider1->setMaxValue( 100 );
T6_Slider1->setOrientation( QSlider::Horizontal );
T6_Slider1->setTickmarks( QSlider::Right );
T6_Slider1->setValue(Vor->PolyFd);
T6_Layout8->addWidget( T6_Slider1 );
T6_Layout9->addLayout( T6_Layout8 );
T6_Layout10->addLayout( T6_Layout9 );
T6_Layout11->addLayout( T6_Layout10 );
T6_Preview = new QLabel( ToolFrame6, "Preview" );
T6_Preview->setMinimumSize( QSize( 106, 106 ) );
T6_Preview->setMaximumSize( QSize( 106, 106 ) );
T6_Preview->setFrameShape( QLabel::Panel );
T6_Preview->setFrameShadow( QLabel::Sunken );
T6_Preview->setLineWidth(2);
T6_Preview->setAlignment(AlignCenter);
T6_Preview->setPixmap(*Pre);
T6_Layout11->addWidget( T6_Preview );
QSpacerItem* T6_spacer3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
PolygonPropsLayout->addItem( T6_spacer3 );
PolygonPropsLayout->addLayout( T6_Layout11 );
QSpacerItem* T6_spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
PolygonPropsLayout->addItem( T6_spacer2 );
UpdatePreView();
Fram->addWidget(ToolFrame6, 6);
 
ToolFrame6 = new QFrame( this, "ToolFrame6" );
ToolFrame6->setFrameShape( QFrame::Box );
ToolFrame6->setFrameShadow( QFrame::Sunken );
Pre = new QPixmap(101, 101);
Pre->fill(white);
PolygonPropsLayout = new QHBoxLayout( ToolFrame6, 10, 5, "PolygonPropsLayout");
T6_Layout11 = new QHBoxLayout( 0, 0, 5, "Layout11");
T6_Layout10 = new QVBoxLayout( 0, 0, 5, "Layout10");
T6_Layout2 = new QHBoxLayout( 0, 0, 5, "Layout2");
T6_Text1 = new QLabel( ToolFrame6, "Text1" );
T6_Text1->setText( tr( "Corners:" ) );
T6_Layout2->addWidget( T6_Text1 );
T6_Ecken = new QSpinBox( ToolFrame6, "Ecken" );
T6_Ecken->setMaxValue( 999 );
T6_Ecken->setMinValue( 3 );
T6_Ecken->setValue(Vor->PolyC);
T6_Layout2->addWidget( T6_Ecken );
T6_Layout10->addLayout( T6_Layout2 );
T6_Layout9_2 = new QHBoxLayout( 0, 0, 5, "Layout9_2");
T6_Layout8_2 = new QVBoxLayout( 0, 0, 5, "Layout8_2");
T6_Layout7_2 = new QHBoxLayout( 0, 0, 5, "Layout7_2");
T6_Text2_2 = new QLabel( ToolFrame6, "Text2_2" );
T6_Text2_2->setText( tr( "Rotation:" ) );
T6_Layout7_2->addWidget( T6_Text2_2 );
T6_Faktor2 = new QSpinBox( ToolFrame6, "Faktor_2" );
T6_Faktor2->setSuffix(" °");
T6_Faktor2->setMaxValue( 180 );
T6_Faktor2->setMinValue( -180 );
T6_Faktor2->setValue(static_cast<int>(Vor->PolyR));
T6_Layout7_2->addWidget( T6_Faktor2 );
T6_Layout8_2->addLayout( T6_Layout7_2 );
T6_Slider2 = new QSlider( ToolFrame6, "Slider1_2" );
T6_Slider2->setMinValue( -180 );
T6_Slider2->setMaxValue( 180 );
T6_Slider2->setValue(static_cast<int>(Vor->PolyR));
T6_Slider2->setOrientation( QSlider::Horizontal );
T6_Slider2->setTickmarks( QSlider::Right );
T6_Layout8_2->addWidget( T6_Slider2 );
T6_Layout9_2->addLayout( T6_Layout8_2 );
T6_Layout10->addLayout( T6_Layout9_2 );
T6_Konvex = new QCheckBox( ToolFrame6, "Konvex" );
T6_Konvex->setText( tr( "Convex Polygon" ) );
T6_Konvex->setChecked(Vor->PolyS);
T6_Layout10->addWidget( T6_Konvex );
T6_Layout9 = new QHBoxLayout( 0, 0, 5, "Layout9");
QSpacerItem* T6_spacer = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
T6_Layout9->addItem( T6_spacer );
T6_Layout8 = new QVBoxLayout( 0, 0, 5, "Layout8");
T6_Layout7 = new QHBoxLayout( 0, 0, 5, "Layout7");
T6_Text2 = new QLabel( ToolFrame6, "Text2" );
T6_Text2->setText( tr( "Factor:" ) );
T6_Layout7->addWidget( T6_Text2 );
T6_Faktor = new QSpinBox( ToolFrame6, "Faktor" );
T6_Faktor->setSuffix( tr( " %" ) );
T6_Faktor->setMaxValue( 100 );
T6_Faktor->setMinValue( -100 );
T6_Faktor->setValue(Vor->PolyFd);
T6_Layout7->addWidget( T6_Faktor );
T6_Layout8->addLayout( T6_Layout7 );
T6_Slider1 = new QSlider( ToolFrame6, "Slider1" );
T6_Slider1->setMinValue( -100 );
T6_Slider1->setMaxValue( 100 );
T6_Slider1->setOrientation( QSlider::Horizontal );
T6_Slider1->setTickmarks( QSlider::Right );
T6_Slider1->setValue(Vor->PolyFd);
T6_Layout8->addWidget( T6_Slider1 );
T6_Layout9->addLayout( T6_Layout8 );
T6_Layout10->addLayout( T6_Layout9 );
T6_Layout11->addLayout( T6_Layout10 );
T6_Preview = new QLabel( ToolFrame6, "Preview" );
T6_Preview->setMinimumSize( QSize( 106, 106 ) );
T6_Preview->setMaximumSize( QSize( 106, 106 ) );
T6_Preview->setFrameShape( QLabel::Panel );
T6_Preview->setFrameShadow( QLabel::Sunken );
T6_Preview->setLineWidth(2);
T6_Preview->setAlignment(AlignCenter);
T6_Preview->setPixmap(*Pre);
T6_Layout11->addWidget( T6_Preview );
QSpacerItem* T6_spacer3 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
PolygonPropsLayout->addItem( T6_spacer3 );
PolygonPropsLayout->addLayout( T6_Layout11 );
QSpacerItem* T6_spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
PolygonPropsLayout->addItem( T6_spacer2 );
UpdatePreView();
Fram->addWidget(ToolFrame6, 6);
TabWidget3->addWidget( tab_3, 4 );
tab_5 = new QWidget( TabWidget3, "tab_5" );
tabLayout_5 = new QGridLayout( tab_5 );
tabLayout_5->setSpacing( 6 );
tabLayout_5->setMargin( 11 );
Saving = new QGroupBox( tab_5, "Saving" );
Saving->setTitle( tr( "Other Options" ) );
Saving->setColumnLayout(0, Qt::Vertical );
Saving->layout()->setSpacing( 0 );
Saving->layout()->setMargin( 0 );
SavingLayout = new QHBoxLayout( Saving->layout() );
SavingLayout->setAlignment( Qt::AlignTop );
SavingLayout->setSpacing( 6 );
SavingLayout->setMargin( 25 );
SaveAtQuit = new QCheckBox( Saving, "SaveAtQuit" );
SaveAtQuit->setText( tr( "Save Contents on Exit" ) );
SaveAtQuit->setChecked(Vor->SaveAtQ);
SavingLayout->addWidget( SaveAtQuit );
tabLayout_5->addWidget( Saving, 1, 0 );
Preview = new QGroupBox( tab_5, "Preview" );
Preview->setTitle( tr( "Preview" ) );
Preview->setColumnLayout(0, Qt::Vertical );
Preview->layout()->setSpacing( 0 );
Preview->layout()->setMargin( 0 );
PreviewLayout = new QHBoxLayout( Preview->layout() );
PreviewLayout->setAlignment( Qt::AlignTop );
PreviewLayout->setSpacing( 10 );
PreviewLayout->setMargin( 24 );
TextLabelP = new QLabel( Preview, "TextLabel1_3" );
TextLabelP->setText( tr( "Size:" ) );
PreviewLayout->addWidget( TextLabelP );
PreviewSize = new QComboBox( true, Preview, "PreviewSize" );
PreviewSize->insertItem( tr( "Small" ) );
PreviewSize->insertItem( tr( "Medium" ) );
PreviewSize->insertItem( tr( "Big" ) );
PreviewSize->setEditable(false);
int sci = Vor->PSize == 40 ? 0 : Vor->PSize == 60 ? 1 : 2;
PreviewSize->setCurrentItem(sci);
PreviewLayout->addWidget( PreviewSize );
tabLayout_5->addWidget( Preview, 0, 0 );
Frame6 = new QFrame( tab_5, "Frame6" );
Frame6->setFrameShape( QFrame::NoFrame );
Frame6->setFrameShadow( QFrame::Plain );
Frame6->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
tabLayout_5->addMultiCellWidget( Frame6, 0, 1, 1, 1 );
TabWidget3->addWidget( tab_5, 5 );
tab_6 = new QWidget( TabWidget3, "tab_6" );
tabLayout_6 = new QHBoxLayout( tab_6 );
tabLayout_6->setSpacing( 6 );
tabLayout_6->setMargin( 11 );
GroupBox10 = new QGroupBox( tab_6, "GroupBox10" );
GroupBox10->setTitle( tr( "" ) );
GroupBox10->setColumnLayout(0, Qt::Vertical );
GroupBox10->layout()->setSpacing( 0 );
GroupBox10->layout()->setMargin( 0 );
GroupBox10Layout = new QVBoxLayout( GroupBox10->layout() );
GroupBox10Layout->setAlignment( Qt::AlignTop );
GroupBox10Layout->setSpacing( 6 );
GroupBox10Layout->setMargin( 11 );
FramesVisible = new QCheckBox( GroupBox10, "FramesVisible" );
FramesVisible->setText( tr( "Display Frames" ) );
FramesVisible->setChecked(ap->HaveDoc ? ap->doc->ShFrames : Vor->ShFrames);
GroupBox10Layout->addWidget( FramesVisible );
SidebySide = new QCheckBox( GroupBox10, "SidebySide" );
SidebySide->setText( tr( "Display Pages Side by Side" ) );
SidebySide->setChecked(ap->HaveDoc ? ap->doc->PagesSbS : Vor->PagesSbS);
GroupBox10Layout->addWidget( SidebySide );
 
TabWidget3->addWidget( tab_3, 4 );
Layout_6b = new QHBoxLayout();
Layout_6b->setSpacing( 0 );
Layout_6b->setMargin( 0 );
GroupBox20a = new QGroupBox( GroupBox10, "GroupBox20" );
GroupBox20a->setTitle( tr( "Page-Colors" ) );
GroupBox20a->setColumnLayout(0, Qt::Vertical );
GroupBox20a->layout()->setSpacing( 0 );
GroupBox20a->layout()->setMargin( 0 );
GroupBox20aLayout = new QHBoxLayout( GroupBox20a->layout() );
GroupBox20aLayout->setAlignment( Qt::AlignTop );
GroupBox20aLayout->setSpacing( 10 );
GroupBox20aLayout->setMargin( 5 );
TextLabel4a = new QLabel( GroupBox20a, "TextLabel4" );
TextLabel4a->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel4a->sizePolicy().hasHeightForWidth() ) );
TextLabel4a->setText( tr( "Background:" ) );
GroupBox20aLayout->addWidget( TextLabel4a);
PapColor = new QPushButton( GroupBox20a, "PapColor" );
PapColor->setText( tr( "" ) );
PapColor->setAutoDefault( false );
QPixmap pm1a = QPixmap(40, 20);
pm1a.fill(ap->HaveDoc ? ap->doc->papColor : Vor->DpapColor);
Cpaper = ap->HaveDoc ? ap->doc->papColor : Vor->DpapColor;
PapColor->setPixmap(pm1a);
GroupBox20aLayout->addWidget( PapColor );
TextLabel4b = new QLabel( GroupBox20a, "TextLabel4" );
TextLabel4b->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1,
TextLabel4b->sizePolicy().hasHeightForWidth() ) );
TextLabel4b->setText( tr( "Margins:" ) );
GroupBox20aLayout->addWidget( TextLabel4b);
RandColor = new QPushButton( GroupBox20a, "RColor" );
RandColor->setText( tr( "" ) );
RandColor->setAutoDefault( false );
pm1a.fill(ap->HaveDoc ? ap->doc->margColor : Vor->DmargColor);
Crand = ap->HaveDoc ? ap->doc->margColor : Vor->DmargColor;
RandColor->setPixmap(pm1a);
GroupBox20aLayout->addWidget( RandColor );
Layout_6b->addWidget(GroupBox20a);
QSpacerItem* spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout_6b->addItem( spacer2 );
GroupBox10Layout->addLayout(Layout_6b);
RandFarb = new QCheckBox( GroupBox10, "Ran" );
RandFarb->setText( tr( "Display Unprintable Area in Margin Color" ) );
RandFarb->setChecked(ap->HaveDoc ? ap->doc->RandFarbig : Vor->RandFarbig);
GroupBox10Layout->addWidget( RandFarb );
UsePDFTrans = new QCheckBox( GroupBox10, "Ran2" );
UsePDFTrans->setText( tr( "Use PDF-1.4 Transparency Features" ) );
UsePDFTrans->setChecked(Vor->PDFTransparency);
GroupBox10Layout->addWidget( UsePDFTrans );
 
tab_5 = new QWidget( TabWidget3, "tab_5" );
tabLayout_5 = new QGridLayout( tab_5 );
tabLayout_5->setSpacing( 6 );
tabLayout_5->setMargin( 11 );
CaliGroup = new QGroupBox( GroupBox10, "CaliGroup" );
CaliGroup->setTitle( tr( "Adjust Display Size" ) );
CaliGroup->setColumnLayout(0, Qt::Vertical );
CaliGroup->layout()->setSpacing( 6 );
CaliGroup->layout()->setMargin( 11 );
CaliGroupLayout = new QVBoxLayout( CaliGroup->layout() );
CaliGroupLayout->setAlignment( Qt::AlignTop );
CaliText = new QLabel( CaliGroup, "CaliText" );
CaliText->setText( tr( "To adjust the display drag the ruler below with the Slider." ) );
CaliGroupLayout->addWidget( CaliText );
CaliRuler = new QLabel( CaliGroup, "CaliRuler" );
CaliRuler->setMinimumSize( QSize( 20, 20 ) );
DrawRuler();
CaliRuler->setFrameShape( QLabel::Box );
CaliRuler->setFrameShadow( QLabel::Sunken );
CaliRuler->setScaledContents( FALSE );
CaliGroupLayout->addWidget( CaliRuler );
layout15ca = new QHBoxLayout( 0, 0, 6, "layout15");
CaliSlider = new QSlider( CaliGroup, "CaliSlider" );
CaliSlider->setMinValue( -100 );
CaliSlider->setMaxValue( 100 );
CaliSlider->setValue(static_cast<int>(100 * DisScale)-100);
CaliSlider->setOrientation( QSlider::Horizontal );
CaliSlider->setTickmarks( QSlider::Right );
CaliSlider->setTickInterval( 10 );
layout15ca->addWidget( CaliSlider );
CaliAnz = new QLabel( CaliGroup, "CaliAnz" );
CaliAnz->setText(QString::number(DisScale*100, 'f', 2)+" %");
layout15ca->addWidget( CaliAnz );
CaliGroupLayout->addLayout( layout15ca );
GroupBox10Layout->addWidget( CaliGroup );
tabLayout_6->addWidget( GroupBox10 );
TabWidget3->addWidget( tab_6, 6 );
Fram->raiseWidget(1);
 
Saving = new QGroupBox( tab_5, "Saving" );
Saving->setTitle( tr( "Other Options" ) );
Saving->setColumnLayout(0, Qt::Vertical );
Saving->layout()->setSpacing( 0 );
Saving->layout()->setMargin( 0 );
SavingLayout = new QHBoxLayout( Saving->layout() );
SavingLayout->setAlignment( Qt::AlignTop );
SavingLayout->setSpacing( 6 );
SavingLayout->setMargin( 25 );
PrefsLayout2->addWidget( TabWidget3 );
PrefsLayout->addLayout(PrefsLayout2);
 
SaveAtQuit = new QCheckBox( Saving, "SaveAtQuit" );
SaveAtQuit->setText( tr( "Save Contents on Exit" ) );
SaveAtQuit->setChecked(Vor->SaveAtQ);
SavingLayout->addWidget( SaveAtQuit );
 
tabLayout_5->addWidget( Saving, 1, 0 );
 
Preview = new QGroupBox( tab_5, "Preview" );
Preview->setTitle( tr( "Preview" ) );
Preview->setColumnLayout(0, Qt::Vertical );
Preview->layout()->setSpacing( 0 );
Preview->layout()->setMargin( 0 );
PreviewLayout = new QHBoxLayout( Preview->layout() );
PreviewLayout->setAlignment( Qt::AlignTop );
PreviewLayout->setSpacing( 10 );
PreviewLayout->setMargin( 24 );
 
TextLabelP = new QLabel( Preview, "TextLabel1_3" );
TextLabelP->setText( tr( "Size:" ) );
PreviewLayout->addWidget( TextLabelP );
 
PreviewSize = new QComboBox( true, Preview, "PreviewSize" );
PreviewSize->insertItem( tr( "Small" ) );
PreviewSize->insertItem( tr( "Medium" ) );
PreviewSize->insertItem( tr( "Big" ) );
PreviewSize->setEditable(false);
switch (Vor->PSize)
{
case 40:
PreviewSize->setCurrentItem(0);
break;
case 60:
PreviewSize->setCurrentItem(1);
break;
case 80:
PreviewSize->setCurrentItem(2);
break;
}
PreviewLayout->addWidget( PreviewSize );
 
tabLayout_5->addWidget( Preview, 0, 0 );
 
Frame6 = new QFrame( tab_5, "Frame6" );
Frame6->setFrameShape( QFrame::NoFrame );
Frame6->setFrameShadow( QFrame::Plain );
Frame6->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum));
 
tabLayout_5->addMultiCellWidget( Frame6, 0, 1, 1, 1 );
TabWidget3->addWidget( tab_5, 5 );
 
tab_6 = new QWidget( TabWidget3, "tab_6" );
tabLayout_6 = new QHBoxLayout( tab_6 );
tabLayout_6->setSpacing( 6 );
tabLayout_6->setMargin( 11 );
GroupBox10 = new QGroupBox( tab_6, "GroupBox10" );
GroupBox10->setTitle( tr( "" ) );
GroupBox10->setColumnLayout(0, Qt::Vertical );
GroupBox10->layout()->setSpacing( 0 );
GroupBox10->layout()->setMargin( 0 );
GroupBox10Layout = new QVBoxLayout( GroupBox10->layout() );
GroupBox10Layout->setAlignment( Qt::AlignTop );
GroupBox10Layout->setSpacing( 6 );
GroupBox10Layout->setMargin( 11 );
FramesVisible = new QCheckBox( GroupBox10, "FramesVisible" );
FramesVisible->setText( tr( "Display Frames" ) );
FramesVisible->setChecked(ap->HaveDoc ? ap->doc->ShFrames : Vor->ShFrames);
GroupBox10Layout->addWidget( FramesVisible );
SidebySide = new QCheckBox( GroupBox10, "SidebySide" );
SidebySide->setText( tr( "Display Pages Side by Side" ) );
SidebySide->setChecked(ap->HaveDoc ? ap->doc->PagesSbS : Vor->PagesSbS);
GroupBox10Layout->addWidget( SidebySide );
 
Layout_6b = new QHBoxLayout();
Layout_6b->setSpacing( 0 );
Layout_6b->setMargin( 0 );
GroupBox20a = new QGroupBox( GroupBox10, "GroupBox20" );
GroupBox20a->setTitle( tr( "Page-Colors" ) );
GroupBox20a->setColumnLayout(0, Qt::Vertical );
GroupBox20a->layout()->setSpacing( 0 );
GroupBox20a->layout()->setMargin( 0 );
GroupBox20aLayout = new QHBoxLayout( GroupBox20a->layout() );
GroupBox20aLayout->setAlignment( Qt::AlignTop );
GroupBox20aLayout->setSpacing( 10 );
GroupBox20aLayout->setMargin( 5 );
TextLabel4a = new QLabel( GroupBox20a, "TextLabel4" );
TextLabel4a->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel4a->sizePolicy().hasHeightForWidth() ) );
TextLabel4a->setText( tr( "Background:" ) );
GroupBox20aLayout->addWidget( TextLabel4a);
PapColor = new QPushButton( GroupBox20a, "PapColor" );
PapColor->setText( tr( "" ) );
PapColor->setAutoDefault( false );
QPixmap pm1a = QPixmap(40, 20);
if (ap->HaveDoc)
{
pm1a.fill(ap->doc->papColor);
Cpaper = ap->doc->papColor;
}
else
{
pm1a.fill(Vor->DpapColor);
Cpaper = Vor->DpapColor;
}
PapColor->setPixmap(pm1a);
GroupBox20aLayout->addWidget( PapColor );
TextLabel4b = new QLabel( GroupBox20a, "TextLabel4" );
TextLabel4b->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, TextLabel4b->sizePolicy().hasHeightForWidth() ) );
TextLabel4b->setText( tr( "Margins:" ) );
GroupBox20aLayout->addWidget( TextLabel4b);
RandColor = new QPushButton( GroupBox20a, "RColor" );
RandColor->setText( tr( "" ) );
RandColor->setAutoDefault( false );
if (ap->HaveDoc)
{
pm1a.fill( ap->doc->margColor );
Crand = ap->doc->margColor;
}
else
{
pm1a.fill( Vor->DmargColor );
Crand = Vor->DmargColor;
}
RandColor->setPixmap(pm1a);
GroupBox20aLayout->addWidget( RandColor );
Layout_6b->addWidget(GroupBox20a);
QSpacerItem* spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout_6b->addItem( spacer2 );
GroupBox10Layout->addLayout(Layout_6b);
RandFarb = new QCheckBox( GroupBox10, "Ran" );
RandFarb->setText( tr( "Display Unprintable Area in Margin Color" ) );
RandFarb->setChecked(ap->HaveDoc ? ap->doc->RandFarbig : Vor->RandFarbig);
GroupBox10Layout->addWidget( RandFarb );
UsePDFTrans = new QCheckBox( GroupBox10, "Ran2" );
UsePDFTrans->setText( tr( "Use PDF-1.4 Transparency Features" ) );
UsePDFTrans->setChecked(Vor->PDFTransparency);
GroupBox10Layout->addWidget( UsePDFTrans );
 
CaliGroup = new QGroupBox( GroupBox10, "CaliGroup" );
CaliGroup->setTitle( tr( "Adjust Display Size" ) );
CaliGroup->setColumnLayout(0, Qt::Vertical );
CaliGroup->layout()->setSpacing( 6 );
CaliGroup->layout()->setMargin( 11 );
CaliGroupLayout = new QVBoxLayout( CaliGroup->layout() );
CaliGroupLayout->setAlignment( Qt::AlignTop );
CaliText = new QLabel( CaliGroup, "CaliText" );
CaliText->setText( tr( "To adjust the display drag the ruler below with the Slider." ) );
CaliGroupLayout->addWidget( CaliText );
CaliRuler = new QLabel( CaliGroup, "CaliRuler" );
CaliRuler->setMinimumSize( QSize( 20, 20 ) );
DrawRuler();
CaliRuler->setFrameShape( QLabel::Box );
CaliRuler->setFrameShadow( QLabel::Sunken );
CaliRuler->setScaledContents( FALSE );
CaliGroupLayout->addWidget( CaliRuler );
layout15ca = new QHBoxLayout( 0, 0, 6, "layout15");
CaliSlider = new QSlider( CaliGroup, "CaliSlider" );
CaliSlider->setMinValue( -100 );
CaliSlider->setMaxValue( 100 );
CaliSlider->setValue(static_cast<int>(100 * DisScale)-100);
CaliSlider->setOrientation( QSlider::Horizontal );
CaliSlider->setTickmarks( QSlider::Right );
CaliSlider->setTickInterval( 10 );
layout15ca->addWidget( CaliSlider );
CaliAnz = new QLabel( CaliGroup, "CaliAnz" );
CaliAnz->setText(QString::number(DisScale*100, 'f', 2)+" %");
layout15ca->addWidget( CaliAnz );
CaliGroupLayout->addLayout( layout15ca );
 
GroupBox10Layout->addWidget( CaliGroup );
 
tabLayout_6->addWidget( GroupBox10 );
TabWidget3->addWidget( tab_6, 6 );
Fram->raiseWidget(1);
 
PrefsLayout2->addWidget( TabWidget3 );
PrefsLayout->addLayout(PrefsLayout2);
 
Layout3 = new QHBoxLayout;
Layout3->setSpacing( 6 );
Layout3->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer );
buttonOK = new QPushButton( this, "buttonOK" );
buttonOK->setText( tr( "OK" ) );
buttonOK->setDefault( true );
Layout3->addWidget( buttonOK );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer_2 );
buttonCancel = new QPushButton( this, "buttonCancel" );
buttonCancel->setText( tr( "Cancel" ) );
buttonCancel->setDefault( false );
Layout3->addWidget( buttonCancel );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer_3 );
PrefsLayout->addLayout( Layout3 );
setDS();
// signals and slots connections
connect( minColor, SIGNAL( clicked() ), this, SLOT( changeMicolor() ) );
connect( MaxColor, SIGNAL( clicked() ), this, SLOT( changeMaColor() ) );
connect( PapColor, SIGNAL( clicked() ), this, SLOT( changePapColor() ) );
connect( RandColor, SIGNAL( clicked() ), this, SLOT( changeRandColor() ) );
connect( GuideColor, SIGNAL( clicked() ), this, SLOT( changeGuideColor() ) );
connect( buttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect(FontComb, SIGNAL(activated(int)), this, SLOT(SetSample()));
connect(SizeCombo, SIGNAL(activated(int)), this, SLOT(SetSample()));
connect(TextButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(RectButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(OvalButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(LineButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(ZoomButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(BildButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(PolyButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(Kette, SIGNAL(clicked()), this, SLOT(ToggleKette()));
connect(XScale, SIGNAL(valueChanged(int)), this, SLOT(HChange()));
connect(YScale, SIGNAL(valueChanged(int)), this, SLOT(VChange()));
connect(UnitCombo, SIGNAL(activated(int)), this, SLOT(UnitChange()));
connect(Shorty, SIGNAL(clicked()), this, SLOT(DefKB()));
connect(T6_Faktor, SIGNAL(valueChanged(int)), this, SLOT(ValFromSpin(int)));
connect(T6_Slider1, SIGNAL(valueChanged(int)), T6_Faktor, SLOT(setValue(int)));
connect(T6_Slider1, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Faktor2, SIGNAL(valueChanged(int)), this, SLOT(ValFromSpin2(int)));
connect(T6_Slider2, SIGNAL(valueChanged(int)), T6_Faktor2, SLOT(setValue(int)));
connect(T6_Slider2, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Ecken, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Konvex, SIGNAL(clicked()), this, SLOT(UpdatePreView()));
connect(Breite, SIGNAL(valueChanged(int)), this, SLOT(setBreite(int)));
connect(Hoehe, SIGNAL(valueChanged(int)), this, SLOT(setHoehe(int)));
connect(TopR, SIGNAL(valueChanged(int)), this, SLOT(setTop(int)));
connect(BottomR, SIGNAL(valueChanged(int)), this, SLOT(setBottom(int)));
connect(LeftR, SIGNAL(valueChanged(int)), this, SLOT(setLeft(int)));
connect(RightR, SIGNAL(valueChanged(int)), this, SLOT(setRight(int)));
connect(GZComboO, SIGNAL(activated(int)), this, SLOT(setOrien(int)));
connect(GZComboF, SIGNAL(activated(int)), this, SLOT(setSize(int)));
connect(Doppelseiten, SIGNAL(clicked()), this, SLOT(setDS()));
connect(FreeScale, SIGNAL(clicked()), this, SLOT(ChangeScaling()));
connect(FrameScale, SIGNAL(clicked()), this, SLOT(ChangeScaling()));
connect(FileC, SIGNAL(clicked()), this, SLOT(ChangeDocs()));
connect(FileC2, SIGNAL(clicked()), this, SLOT(ChangeProfs()));
connect(FileC3, SIGNAL(clicked()), this, SLOT(ChangeScripts()));
connect(CaliSlider, SIGNAL(valueChanged(int)), this, SLOT(SetDisScale()));
connect(TabListe, SIGNAL(highlighted(int)), TabWidget3, SLOT(raiseWidget(int)));
setSize(Vor->PageFormat);
setOrien(Vor->Ausrichtung);
UnitChange();
Layout3 = new QHBoxLayout;
Layout3->setSpacing( 6 );
Layout3->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer );
buttonOK = new QPushButton( this, "buttonOK" );
buttonOK->setText( tr( "OK" ) );
buttonOK->setDefault( true );
Layout3->addWidget( buttonOK );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer_2 );
buttonCancel = new QPushButton( this, "buttonCancel" );
buttonCancel->setText( tr( "Cancel" ) );
buttonCancel->setDefault( false );
Layout3->addWidget( buttonCancel );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout3->addItem( spacer_3 );
PrefsLayout->addLayout( Layout3 );
setDS();
// signals and slots connections
connect( minColor, SIGNAL( clicked() ), this, SLOT( changeMicolor() ) );
connect( MaxColor, SIGNAL( clicked() ), this, SLOT( changeMaColor() ) );
connect( PapColor, SIGNAL( clicked() ), this, SLOT( changePapColor() ) );
connect( RandColor, SIGNAL( clicked() ), this, SLOT( changeRandColor() ) );
connect( GuideColor, SIGNAL( clicked() ), this, SLOT( changeGuideColor() ) );
connect( buttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect(FontComb, SIGNAL(activated(int)), this, SLOT(SetSample()));
connect(SizeCombo, SIGNAL(activated(int)), this, SLOT(SetSample()));
connect(TextButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(RectButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(OvalButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(LineButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(ZoomButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(BildButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(PolyButton, SIGNAL(clicked()), this, SLOT(SetTool()));
connect(Kette, SIGNAL(clicked()), this, SLOT(ToggleKette()));
connect(XScale, SIGNAL(valueChanged(int)), this, SLOT(HChange()));
connect(YScale, SIGNAL(valueChanged(int)), this, SLOT(VChange()));
connect(UnitCombo, SIGNAL(activated(int)), this, SLOT(UnitChange()));
connect(Shorty, SIGNAL(clicked()), this, SLOT(DefKB()));
connect(T6_Faktor, SIGNAL(valueChanged(int)), this, SLOT(ValFromSpin(int)));
connect(T6_Slider1, SIGNAL(valueChanged(int)), T6_Faktor, SLOT(setValue(int)));
connect(T6_Slider1, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Faktor2, SIGNAL(valueChanged(int)), this, SLOT(ValFromSpin2(int)));
connect(T6_Slider2, SIGNAL(valueChanged(int)), T6_Faktor2, SLOT(setValue(int)));
connect(T6_Slider2, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Ecken, SIGNAL(valueChanged(int)), this, SLOT(UpdatePreView()));
connect(T6_Konvex, SIGNAL(clicked()), this, SLOT(UpdatePreView()));
connect(Breite, SIGNAL(valueChanged(int)), this, SLOT(setBreite(int)));
connect(Hoehe, SIGNAL(valueChanged(int)), this, SLOT(setHoehe(int)));
connect(TopR, SIGNAL(valueChanged(int)), this, SLOT(setTop(int)));
connect(BottomR, SIGNAL(valueChanged(int)), this, SLOT(setBottom(int)));
connect(LeftR, SIGNAL(valueChanged(int)), this, SLOT(setLeft(int)));
connect(RightR, SIGNAL(valueChanged(int)), this, SLOT(setRight(int)));
connect(GZComboO, SIGNAL(activated(int)), this, SLOT(setOrien(int)));
connect(GZComboF, SIGNAL(activated(int)), this, SLOT(setSize(int)));
connect(Doppelseiten, SIGNAL(clicked()), this, SLOT(setDS()));
connect(FreeScale, SIGNAL(clicked()), this, SLOT(ChangeScaling()));
connect(FrameScale, SIGNAL(clicked()), this, SLOT(ChangeScaling()));
connect(FileC, SIGNAL(clicked()), this, SLOT(ChangeDocs()));
connect(FileC2, SIGNAL(clicked()), this, SLOT(ChangeProfs()));
connect(FileC3, SIGNAL(clicked()), this, SLOT(ChangeScripts()));
connect(CaliSlider, SIGNAL(valueChanged(int)), this, SLOT(SetDisScale()));
connect(TabListe, SIGNAL(highlighted(int)), TabWidget3, SLOT(raiseWidget(int)));
setSize(Vor->PageFormat);
setOrien(Vor->Ausrichtung);
UnitChange();
}
 
/*!
1674,9 → 1584,7
*/
void Preferences::ChangeScaling()
{
bool setter = false;
if (FreeScale->isChecked())
setter = true;
bool setter = FreeScale->isChecked() ? true : false;
TextLabelT51->setEnabled(setter);
TextLabelT52->setEnabled(setter);
XScale->setEnabled(setter);
1695,19 → 1603,12
*/
void Preferences::setDS()
{
if (Doppelseiten->isChecked())
{
GRText3->setText( tr( "Inside:" ) );
GRText4->setText( tr( "Outside:" ) );
Linkszuerst->setEnabled(true);
}
else
{
GRText3->setText( tr( "Left:" ) );
GRText4->setText( tr( "Right:" ) );
Linkszuerst->setEnabled(false);
Linkszuerst->setChecked(false);
}
bool m = Doppelseiten->isChecked() ? true : false;
GRText3->setText(m == true ? tr( "Inside:" ) : tr( "Left:" ));
GRText4->setText(m == true ? tr( "Outside:" ) : tr( "Right:" ));
Linkszuerst->setEnabled(m);
if (m == false)
Linkszuerst->setChecked(false);
}
 
/*!
1814,133 → 1715,20
Pageho = Hoehe->value();
Breite->setEnabled(false);
Hoehe->setEnabled(false);
switch (gr)
{
case 0: // A0
Pagebr = 2380;
Pageho = 3368;
break;
case 1: // A1
Pagebr = 1684;
Pageho = 2380;
break;
case 2: // A2
Pagebr = 1190;
Pageho = 1684;
break;
case 3: // A3
Pagebr = 842;
Pageho = 1190;
break;
case 4: // A4
Pagebr = 595;
Pageho = 842;
break;
case 5: // A5
Pagebr = 421;
Pageho = 595;
break;
case 6: // A6
Pagebr = 297;
Pageho = 421;
break;
case 7: // A7
Pagebr = 210;
Pageho = 297;
break;
case 8: // A8
Pagebr = 148;
Pageho = 210;
break;
case 9: // A9
Pagebr = 105;
Pageho = 148;
break;
case 10: // B0
Pagebr = 2836;
Pageho = 4008;
break;
case 11: // B1
Pagebr = 2004;
Pageho = 2836;
break;
case 12: // B2
Pagebr = 1418;
Pageho = 2004;
break;
case 13: // B3
Pagebr = 1002;
Pageho = 1418;
break;
case 14: // B4
Pagebr = 709;
Pageho = 1002;
break;
case 15: // B5
Pagebr = 501;
Pageho = 709;
break;
case 16: // B6
Pagebr = 355;
Pageho = 501;
break;
case 17: // B7
Pagebr = 250;
Pageho = 355;
break;
case 18: // B8
Pagebr = 178;
Pageho = 250;
break;
case 19: // B9
Pagebr = 125;
Pageho = 178;
break;
case 20: // B10
Pagebr = 89;
Pageho = 125;
break;
case 21: // C5E
Pagebr = 462;
Pageho = 649;
break;
case 22: // Comm10E
Pagebr = 298;
Pageho = 683;
break;
case 23: // DLE
Pagebr = 312;
Pageho = 624;
break;
case 24: // Executive
Pagebr = 542;
Pageho = 720;
break;
case 25: // Folio
Pagebr = 595;
Pageho = 935;
break;
case 26: // Ledger
Pagebr = 1224;
Pageho = 792;
break;
case 27: // Legal
Pagebr = 612;
Pageho = 1008;
break;
case 28: // Letter
Pagebr = 612;
Pageho = 792;
break;
case 29: // Tabloid
Pagebr = 792;
Pageho = 1224;
break;
case 30: // Custom
Breite->setEnabled(true);
Hoehe->setEnabled(true);
break;
}
int br[] = {2380, 1684, 1190, 842, 595, 421, 297, 210, 148, 105, 2836, 2004, 1418, 1002, 709, 501, 355,
250, 178, 125, 89, 462, 298, 312, 542, 595, 1224, 612, 612, 792};
int ho[] = {3368, 2380, 1684, 1190, 842, 595, 421, 297, 210, 148, 4008, 2836, 2004, 1418, 1002, 709, 501,
355, 250, 178, 125, 649, 683, 624, 720, 935, 792, 1008, 792, 1224};
if (gr == 30)
{
Breite->setEnabled(true);
Hoehe->setEnabled(true);
}
else
{
Pagebr = br[gr];
Pageho = ho[gr];
}
disconnect(Breite, SIGNAL(valueChanged(int)), this, SLOT(setBreite(int)));
disconnect(Hoehe, SIGNAL(valueChanged(int)), this, SLOT(setHoehe(int)));
Breite->setValue(Pagebr * Umrech);
1968,20 → 1756,20
disconnect(Breite, SIGNAL(valueChanged(int)), this, SLOT(setBreite(int)));
disconnect(Hoehe, SIGNAL(valueChanged(int)), this, SLOT(setHoehe(int)));
if (ori == 0)
{
if (GZComboF->currentItem() == 30)
{
if (GZComboF->currentItem() == 30)
{
br = Breite->value();
Breite->setValue(Hoehe->value());
Hoehe->setValue(br);
}
}
}
else
{
{
br = Breite->value();
Breite->setValue(Hoehe->value());
Hoehe->setValue(br);
}
}
connect(Breite, SIGNAL(valueChanged(int)), this, SLOT(setBreite(int)));
connect(Hoehe, SIGNAL(valueChanged(int)), this, SLOT(setHoehe(int)));
}
2032,12 → 1820,12
QColor neu = QColor();
neu = QColorDialog::getColor(Cmax, this);
if (neu.isValid())
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
Cmax = neu;
MaxColor->setPixmap(pm);
}
MaxColor->setPixmap(pm);
}
}
 
/*!
2053,12 → 1841,12
QColor neu = QColor();
neu = QColorDialog::getColor(Cmin, this);
if (neu.isValid())
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
Cmin = neu;
minColor->setPixmap(pm);
}
minColor->setPixmap(pm);
}
}
 
/*!
2074,12 → 1862,12
QColor neu = QColor();
neu = QColorDialog::getColor(Cpaper, this);
if (neu.isValid())
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
Cpaper = neu;
PapColor->setPixmap(pm);
}
PapColor->setPixmap(pm);
}
}
 
/*!
2095,12 → 1883,12
QColor neu = QColor();
neu = QColorDialog::getColor(Crand, this);
if (neu.isValid())
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
Crand = neu;
RandColor->setPixmap(pm);
}
RandColor->setPixmap(pm);
}
}
 
/*!
2116,12 → 1904,12
QColor neu = QColor();
neu = QColorDialog::getColor(Cgui, this);
if (neu.isValid())
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
{
QPixmap pm = QPixmap(40, 20);
pm.fill(neu);
Cgui = neu;
GuideColor->setPixmap(pm);
}
GuideColor->setPixmap(pm);
}
}
 
/*!
2135,19 → 1923,19
void Preferences::SetTool()
{
if (TextButton == sender())
Fram->raiseWidget(1);
Fram->raiseWidget(1);
if (RectButton == sender())
Fram->raiseWidget(2);
Fram->raiseWidget(2);
if (OvalButton == sender())
Fram->raiseWidget(2);
Fram->raiseWidget(2);
if (LineButton == sender())
Fram->raiseWidget(3);
Fram->raiseWidget(3);
if (ZoomButton == sender())
Fram->raiseWidget(4);
Fram->raiseWidget(4);
if (BildButton == sender())
Fram->raiseWidget(5);
Fram->raiseWidget(5);
if (PolyButton == sender())
Fram->raiseWidget(6);
Fram->raiseWidget(6);
}
 
/*!
2207,7 → 1995,7
int decimals;
Einheit = UnitCombo->currentItem();
switch (UnitCombo->currentItem())
{
{
case 0:
Umrech = 1.0;
decimals = 100;
2228,16 → 2016,16
decimals = 100;
einh = tr( " p" );
break;
}
SpinBox1->setSuffix(einh);
SpinBox2->setSuffix(einh);
SpinBox2g->setSuffix(einh);
Breite->setSuffix(einh);
Hoehe->setSuffix(einh);
TopR->setSuffix(einh);
BottomR->setSuffix(einh);
LeftR->setSuffix(einh);
RightR->setSuffix(einh);
}
SpinBox1->setSuffix(einh);
SpinBox2->setSuffix(einh);
SpinBox2g->setSuffix(einh);
Breite->setSuffix(einh);
Hoehe->setSuffix(einh);
TopR->setSuffix(einh);
BottomR->setSuffix(einh);
LeftR->setSuffix(einh);
RightR->setSuffix(einh);
TextGapVal->setSuffix(einh);
 
Breite->setDecimals (decimals);
2294,7 → 2082,7
{
disconnect(T6_Slider2, SIGNAL(valueChanged(int)), T6_Faktor2, SLOT(setValue(int)));
T6_Slider2->setValue(a);
connect(T6_Slider2, SIGNAL(valueChanged(int)), T6_Faktor2, SLOT(setValue(int)));
connect(T6_Slider2, SIGNAL(valueChanged(int)), T6_Faktor2, SLOT(setValue(int)));
}
 
/*!
2309,7 → 2097,7
{
disconnect(T6_Slider1, SIGNAL(valueChanged(int)), T6_Faktor, SLOT(setValue(int)));
T6_Slider1->setValue(a);
connect(T6_Slider1, SIGNAL(valueChanged(int)), T6_Faktor, SLOT(setValue(int)));
connect(T6_Slider1, SIGNAL(valueChanged(int)), T6_Faktor, SLOT(setValue(int)));
}
 
/*!
2327,7 → 2115,8
p.begin(Pre);
p.setBrush(NoBrush);
p.setPen(black);
QPointArray pp = RegularPolygon(100, 100, T6_Ecken->value(), T6_Konvex->isChecked(), GetFaktor(), T6_Slider2->value());
QPointArray pp = RegularPolygon(100, 100, T6_Ecken->value(), T6_Konvex->isChecked(), GetFaktor(),
T6_Slider2->value());
QRect br = pp.boundingRect();
if (br.x() < 0)
pp.translate(-br.x(), 0);
2335,12 → 2124,12
pp.translate(0, -br.y());
br = pp.boundingRect();
if ((br.height() > 100) || (br.width() > 100))
{
{
QWMatrix ma;
double sca = 100.0 / static_cast<double>(QMAX(br.width(), br.height()));
ma.scale(sca, sca);
pp = ma * pp;
}
}
p.drawPolygon(pp);
p.end();
T6_Preview->setPixmap(*Pre);
2391,15 → 2180,13
{
int val = T6_Slider1->value();
if (val < 0)
{
PFactor = GetZeroFaktor() * (100.0 + val) / 100.0;
}
else
{
{
double ma = GetMaxFaktor();
double mi = GetZeroFaktor();
PFactor = ((ma - mi) * val / 100.0) + mi;
}
}
return PFactor;
}
 
2430,15 → 2217,15
{
double xl, iter, iter2, maxi;
switch (Einheit)
{
{
case 0:
iter = 10.0;
iter2 = iter * 10.0;
iter2 = iter * 10.0;
maxi = 200.0;
break;
case 1:
iter = (10.0 / 25.4) * 72.0;
iter2 = iter * 10.0;
iter2 = iter * 10.0;
maxi = iter2;
break;
case 2:
2451,7 → 2238,7
iter2 = 120.0;
maxi = 240.0;
break;
}
}
QPixmap pm(static_cast<int>(maxi*DisScale+30), 21);
pm.fill();
QPainter p;
2461,28 → 2248,29
p.setPen(black);
p.scale(DisScale, 1.0);
for (xl = 0; xl < maxi; xl += iter)
{
p.drawLine(static_cast<int>(xl), 13, static_cast<int>(xl), 19);
}
for (xl = 0; xl < maxi+10; xl += iter2)
{
{
p.drawLine(static_cast<int>(xl), 6, static_cast<int>(xl), 19);
p.save();
p.scale(1.0 / DisScale, 1.0);
switch (Einheit)
{
{
case 2:
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12, QString::number(xl / iter2));
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12,
QString::number(xl / iter2));
break;
case 3:
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12, QString::number(xl / iter));
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12,
QString::number(xl / iter));
break;
default:
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12, QString::number(xl / iter * 10));
p.drawText(static_cast<int>((xl+qRound(2/DisScale)) * DisScale), 12,
QString::number(xl / iter * 10));
break;
}
}
p.restore();
}
}
p.end();
CaliRuler->setPixmap(pm);
}
/trunk/Scribus/scribus/libprefs/prefs.h
29,325 → 29,325
 
class Preferences : public QDialog
{
Q_OBJECT
Q_OBJECT
 
public:
Preferences( QWidget* parent, preV *Vor);
~Preferences();
double GetZeroFaktor();
double GetMaxFaktor();
void DrawRuler();
Preferences( QWidget* parent, preV *Vor);
~Preferences();
double GetZeroFaktor();
double GetMaxFaktor();
void DrawRuler();
 
QPushButton* buttonOK;
QPushButton* buttonCancel;
QWidgetStack* TabWidget3;
QListBox* TabListe;
QWidget* tab;
QGroupBox* Mouse;
QLabel* TextLabel1_2;
QLabel* TextLabel1_2_2;
QSpinBox* SpinBox3;
QSpinBox* SpinBox3_2;
QSpinBox* Recen;
QButtonGroup* ButtonGroup1;
QLabel* TextGstil;
QLabel* TextGstil2;
QSpinBox* GFsize;
QComboBox* GUICombo;
QComboBox* UnitCombo;
QGroupBox* GroupBox20;
QGroupBox* GroupBox20a;
QGroupBox* GroupBox20b;
QGroupBox* GroupBox200;
QLabel* PfadText;
QLineEdit* Docs;
QToolButton* FileC;
QLabel* PfadText2;
QLineEdit* ProPfad;
QToolButton* FileC2;
QLabel* PfadText3;
QLineEdit* ScriptPfad;
QToolButton* FileC3;
QButtonGroup* ButtonGroup2;
QButtonGroup* ButtonGroup5;
QRadioButton* RadioButton6;
QRadioButton* RadioButton7;
QWidget* tab_2;
QGroupBox* GroupBox1;
QLabel* TextLabel1;
QLabel* TextLabel2;
QLabel* TextLabel2g;
MSpinBox* SpinBox1;
MSpinBox* SpinBox2;
MSpinBox* SpinBox2g;
QGroupBox* GroupBox2;
QLabel* TextLabel3;
QLabel* TextLabel4;
QLabel* TextLabel4a;
QLabel* TextLabel4b;
QLabel* TextLabel4c;
QLabel* TextLabel4g;
QPushButton* minColor;
QPushButton* MaxColor;
QPushButton* GuideColor;
QPushButton* PapColor;
QPushButton* RandColor;
QPushButton* Shorty;
QWidget* tab_3;
QWidgetStack* Fram;
QLabel* TextLabel2_2;
QLabel* TextLabel1_3;
FontCombo* FontComb;
QComboBox* SizeCombo;
QComboBox* ForegroundT;
QLabel* TextLabelT1;
QLabel* TextLabel1_4;
QWidget* tab_4;
QGroupBox* GroupBox4_2;
QLabel* TextLabel2_3_2;
QLabel* TextLabel1_5_2;
QSpinBox* VTiefW;
QSpinBox* VTiefWSc;
QGroupBox* GroupBox4;
QLabel* TextLabel2_3;
QLabel* TextLabel1_5;
QSpinBox* VHochW;
QSpinBox* VHochWSc;
QGroupBox* GroupBox4_3;
QLabel* TextLabel2_3_3;
QSpinBox* SmallCaps;
QGroupBox* GroupBox4_3a;
QLabel* TextLabel2_3_3a;
QSpinBox* AutoLineV;
QToolButton* TextButton;
QToolButton* BildButton;
QToolButton* RectButton;
QToolButton* OvalButton;
QToolButton* LineButton;
QToolButton* ZoomButton;
QToolButton* PolyButton;
QFrame* ToolFrame;
QFrame* ToolFrame2;
QLabel* TextLabelT21;
QLabel* TextLabelT22;
QLabel* TextLabelT23;
QLabel* TextLabelT24;
QLabel* TextLabelT25;
QLabel* TextLabelT26;
QComboBox* Foreground;
QLabel* TextCol;
QLabel* TextGap;
QSpinBox* TextColVal;
MSpinBox* TextGapVal;
QSpinBox* Shade2;
QComboBox* Background;
QSpinBox* Shade;
LineCombo* Linestyle;
MSpinBox* LineW;
QFrame* ToolFrame3;
QLabel* TextLabelT31;
QLabel* TextLabelT32;
QLabel* TextLabelT35;
QLabel* TextLabelT36;
QComboBox* Foreground2;
QSpinBox* Shade22;
LineCombo* Linestyle2;
MSpinBox* LineW2;
QFrame* ToolFrame4;
QLabel* TextLabelT42;
QLabel* TextLabelT43;
QLabel* TextLabelT44;
QSpinBox* MinMag;
QSpinBox* MaxMag;
QSpinBox* StepMag;
QButtonGroup* ToolFrame5;
QLabel* TextLabelT51;
QLabel* TextLabelT52;
QLabel* TextLabelT53;
QLabel* TextLabelT54;
QRadioButton* FreeScale;
QRadioButton* FrameScale;
QCheckBox* Aspect;
QSpinBox* XScale;
QSpinBox* YScale;
LinkButton* Kette;
QComboBox* BackgroundP;
QSpinBox* ShadeP;
QLabel* TextLabelP;
QWidget* tab_5;
QGroupBox* Saving;
QCheckBox* SaveAtQuit;
QGroupBox* Preview;
QComboBox* PreviewSize;
QFrame* Frame6;
QWidget* tab_6;
QGroupBox* GroupBox10;
QCheckBox* FramesVisible;
QCheckBox* SidebySide;
QCheckBox* RandFarb;
QFrame* ToolFrame6;
QLabel* T6_Text1;
QSpinBox* T6_Ecken;
QCheckBox* T6_Konvex;
QLabel* T6_Text2;
QSpinBox* T6_Faktor;
QSlider* T6_Slider1;
QLabel* T6_Preview;
QLabel* T6_Text2_2;
QSpinBox* T6_Faktor2;
QSlider* T6_Slider2;
QWidget* tab_7;
QButtonGroup* GroupSize;
QLabel* GZText2;
QComboBox* GZComboF;
QComboBox* GZComboO;
QLabel* GZText1;
QLabel* GZText3;
QLabel* GZText4;
MSpinBox* Breite;
MSpinBox* Hoehe;
QCheckBox* Doppelseiten;
QCheckBox* Linkszuerst;
QGroupBox* GroupRand;
QLabel* GRText3;
MSpinBox* TopR;
MSpinBox* BottomR;
MSpinBox* RightR;
MSpinBox* LeftR;
QLabel* GRText2;
QLabel* GRText1;
QLabel* GRText4;
QCheckBox *UsePDFTrans;
QGroupBox* GroupAS;
QCheckBox* ASon;
QLabel* ASText;
QSpinBox* ASTime;
QGroupBox* CaliGroup;
QLabel* CaliText;
QLabel* CaliRuler;
QSlider* CaliSlider;
QLabel* CaliAnz;
QPushButton* buttonOK;
QPushButton* buttonCancel;
QWidgetStack* TabWidget3;
QListBox* TabListe;
QWidget* tab;
QGroupBox* Mouse;
QLabel* TextLabel1_2;
QLabel* TextLabel1_2_2;
QSpinBox* SpinBox3;
QSpinBox* SpinBox3_2;
QSpinBox* Recen;
QButtonGroup* ButtonGroup1;
QLabel* TextGstil;
QLabel* TextGstil2;
QSpinBox* GFsize;
QComboBox* GUICombo;
QComboBox* UnitCombo;
QGroupBox* GroupBox20;
QGroupBox* GroupBox20a;
QGroupBox* GroupBox20b;
QGroupBox* GroupBox200;
QLabel* PfadText;
QLineEdit* Docs;
QToolButton* FileC;
QLabel* PfadText2;
QLineEdit* ProPfad;
QToolButton* FileC2;
QLabel* PfadText3;
QLineEdit* ScriptPfad;
QToolButton* FileC3;
QButtonGroup* ButtonGroup2;
QButtonGroup* ButtonGroup5;
QRadioButton* RadioButton6;
QRadioButton* RadioButton7;
QWidget* tab_2;
QGroupBox* GroupBox1;
QLabel* TextLabel1;
QLabel* TextLabel2;
QLabel* TextLabel2g;
MSpinBox* SpinBox1;
MSpinBox* SpinBox2;
MSpinBox* SpinBox2g;
QGroupBox* GroupBox2;
QLabel* TextLabel3;
QLabel* TextLabel4;
QLabel* TextLabel4a;
QLabel* TextLabel4b;
QLabel* TextLabel4c;
QLabel* TextLabel4g;
QPushButton* minColor;
QPushButton* MaxColor;
QPushButton* GuideColor;
QPushButton* PapColor;
QPushButton* RandColor;
QPushButton* Shorty;
QWidget* tab_3;
QWidgetStack* Fram;
QLabel* TextLabel2_2;
QLabel* TextLabel1_3;
FontCombo* FontComb;
QComboBox* SizeCombo;
QComboBox* ForegroundT;
QLabel* TextLabelT1;
QLabel* TextLabel1_4;
QWidget* tab_4;
QGroupBox* GroupBox4_2;
QLabel* TextLabel2_3_2;
QLabel* TextLabel1_5_2;
QSpinBox* VTiefW;
QSpinBox* VTiefWSc;
QGroupBox* GroupBox4;
QLabel* TextLabel2_3;
QLabel* TextLabel1_5;
QSpinBox* VHochW;
QSpinBox* VHochWSc;
QGroupBox* GroupBox4_3;
QLabel* TextLabel2_3_3;
QSpinBox* SmallCaps;
QGroupBox* GroupBox4_3a;
QLabel* TextLabel2_3_3a;
QSpinBox* AutoLineV;
QToolButton* TextButton;
QToolButton* BildButton;
QToolButton* RectButton;
QToolButton* OvalButton;
QToolButton* LineButton;
QToolButton* ZoomButton;
QToolButton* PolyButton;
QFrame* ToolFrame;
QFrame* ToolFrame2;
QLabel* TextLabelT21;
QLabel* TextLabelT22;
QLabel* TextLabelT23;
QLabel* TextLabelT24;
QLabel* TextLabelT25;
QLabel* TextLabelT26;
QComboBox* Foreground;
QLabel* TextCol;
QLabel* TextGap;
QSpinBox* TextColVal;
MSpinBox* TextGapVal;
QSpinBox* Shade2;
QComboBox* Background;
QSpinBox* Shade;
LineCombo* Linestyle;
MSpinBox* LineW;
QFrame* ToolFrame3;
QLabel* TextLabelT31;
QLabel* TextLabelT32;
QLabel* TextLabelT35;
QLabel* TextLabelT36;
QComboBox* Foreground2;
QSpinBox* Shade22;
LineCombo* Linestyle2;
MSpinBox* LineW2;
QFrame* ToolFrame4;
QLabel* TextLabelT42;
QLabel* TextLabelT43;
QLabel* TextLabelT44;
QSpinBox* MinMag;
QSpinBox* MaxMag;
QSpinBox* StepMag;
QButtonGroup* ToolFrame5;
QLabel* TextLabelT51;
QLabel* TextLabelT52;
QLabel* TextLabelT53;
QLabel* TextLabelT54;
QRadioButton* FreeScale;
QRadioButton* FrameScale;
QCheckBox* Aspect;
QSpinBox* XScale;
QSpinBox* YScale;
LinkButton* Kette;
QComboBox* BackgroundP;
QSpinBox* ShadeP;
QLabel* TextLabelP;
QWidget* tab_5;
QGroupBox* Saving;
QCheckBox* SaveAtQuit;
QGroupBox* Preview;
QComboBox* PreviewSize;
QFrame* Frame6;
QWidget* tab_6;
QGroupBox* GroupBox10;
QCheckBox* FramesVisible;
QCheckBox* SidebySide;
QCheckBox* RandFarb;
QFrame* ToolFrame6;
QLabel* T6_Text1;
QSpinBox* T6_Ecken;
QCheckBox* T6_Konvex;
QLabel* T6_Text2;
QSpinBox* T6_Faktor;
QSlider* T6_Slider1;
QLabel* T6_Preview;
QLabel* T6_Text2_2;
QSpinBox* T6_Faktor2;
QSlider* T6_Slider2;
QWidget* tab_7;
QButtonGroup* GroupSize;
QLabel* GZText2;
QComboBox* GZComboF;
QComboBox* GZComboO;
QLabel* GZText1;
QLabel* GZText3;
QLabel* GZText4;
MSpinBox* Breite;
MSpinBox* Hoehe;
QCheckBox* Doppelseiten;
QCheckBox* Linkszuerst;
QGroupBox* GroupRand;
QLabel* GRText3;
MSpinBox* TopR;
MSpinBox* BottomR;
MSpinBox* RightR;
MSpinBox* LeftR;
QLabel* GRText2;
QLabel* GRText1;
QLabel* GRText4;
QCheckBox *UsePDFTrans;
QGroupBox* GroupAS;
QCheckBox* ASon;
QLabel* ASText;
QSpinBox* ASTime;
QGroupBox* CaliGroup;
QLabel* CaliText;
QLabel* CaliRuler;
QSlider* CaliSlider;
QLabel* CaliAnz;
SCFonts *fon; // can't use a reference, and can't copy whole structure...
double Umrech;
QPixmap* Pre;
double PFactor;
QMap<int,Keys> KKC;
QColor Cmin;
QColor Cmax;
QColor Crand;
QColor Cpaper;
QColor Cgui;
double Pagebr;
double Pageho;
double RandT;
double RandB;
double RandL;
double RandR;
int Einheit;
double DisScale;
ScribusApp *ap;
 
SCFonts *fon; // can't use a reference, and can't copy whole structure...
double Umrech;
QPixmap* Pre;
double PFactor;
QMap<int,Keys> KKC;
QColor Cmin;
QColor Cmax;
QColor Crand;
QColor Cpaper;
QColor Cgui;
double Pagebr;
double Pageho;
double RandT;
double RandB;
double RandL;
double RandR;
int Einheit;
double DisScale;
ScribusApp *ap;
 
public slots:
virtual void changeMaColor();
virtual void changeMicolor();
void ChangeDocs();
void ChangeProfs();
void ChangeScripts();
void ChangeScaling();
void setDS();
void setBreite(int v);
void setHoehe(int v);
void setTop(int v);
void setBottom(int v);
void setLeft(int v);
void setRight(int v);
void setSize(int gr);
void setOrien(int ori);
void changePapColor();
void changeRandColor();
void changeGuideColor();
void DefKB();
void SetSample();
void SetTool();
void ToggleKette();
void HChange();
void VChange();
void UnitChange();
void UpdatePreView();
double GetFaktor();
void ValFromSpin(int a);
void ValFromSpin2(int a);
void SetDisScale();
virtual void changeMaColor();
virtual void changeMicolor();
void ChangeDocs();
void ChangeProfs();
void ChangeScripts();
void ChangeScaling();
void setDS();
void setBreite(int v);
void setHoehe(int v);
void setTop(int v);
void setBottom(int v);
void setLeft(int v);
void setRight(int v);
void setSize(int gr);
void setOrien(int ori);
void changePapColor();
void changeRandColor();
void changeGuideColor();
void DefKB();
void SetSample();
void SetTool();
void ToggleKette();
void HChange();
void VChange();
void UnitChange();
void UpdatePreView();
double GetFaktor();
void ValFromSpin(int a);
void ValFromSpin2(int a);
void SetDisScale();
 
protected:
QVBoxLayout* PrefsLayout;
QHBoxLayout* PrefsLayout2;
QGridLayout* tabLayout;
QGridLayout* ButtonGroup1Layout;
QHBoxLayout* GroupBox20Layout;
QHBoxLayout* GroupBox20aLayout;
QGridLayout* GroupBox20bLayout;
QGridLayout* GroupBox200Layout;
QHBoxLayout* MouseLayout;
QGridLayout* Layout5;
QGridLayout* tabLayout_2;
QHBoxLayout* ButtonGroup5Layout;
QVBoxLayout* Layout7;
QHBoxLayout* GroupBox1Layout;
QGridLayout* Layout10;
QHBoxLayout* GroupBox2Layout;
QGridLayout* Layout11;
QGridLayout* tabLayout_3;
QHBoxLayout* GroupBox4_2Layout;
QGridLayout* Layout12;
QHBoxLayout* GroupBox4Layout;
QGridLayout* Layout13;
QHBoxLayout* GroupBox4_3Layout;
QHBoxLayout* Layout14;
QHBoxLayout* GroupBox4_3aLayout;
QHBoxLayout* Layout14a;
QHBoxLayout* tabLayout_4;
QHBoxLayout* ButtonGroup2Layout;
QGridLayout* Layout16;
QHBoxLayout* ToolFrameLayout;
QHBoxLayout* ToolFrame2Layout;
QHBoxLayout* ToolFrame3Layout;
QHBoxLayout* ToolFrame4Layout;
QHBoxLayout* ToolFrame5Layout;
QGridLayout* Layout15;
QGridLayout* Layout15a;
QGridLayout* Layout15b;
QGridLayout* Layout15c;
QGridLayout* Layout15d;
QGridLayout* tabLayout_5;
QHBoxLayout* SavingLayout;
QHBoxLayout* PreviewLayout;
QHBoxLayout* tabLayout_6;
QHBoxLayout* Layout_6b;
QVBoxLayout* GroupBox10Layout;
QHBoxLayout* Layout3;
QHBoxLayout* PolygonPropsLayout;
QHBoxLayout* T6_Layout11;
QVBoxLayout* T6_Layout10;
QHBoxLayout* T6_Layout2;
QHBoxLayout* T6_Layout9;
QVBoxLayout* T6_Layout8;
QHBoxLayout* T6_Layout7;
QHBoxLayout* T6_Layout9_2;
QVBoxLayout* T6_Layout8_2;
QHBoxLayout* T6_Layout7_2;
QHBoxLayout* tabLayout_7;
QVBoxLayout* Layout21;
QVBoxLayout* Layout21b;
QVBoxLayout* GroupSizeLayout;
QGridLayout* Layout6;
QHBoxLayout* Layout5_2;
QHBoxLayout* Layout8;
QGridLayout* GroupRandLayout;
QGridLayout* GroupASLayout;
QVBoxLayout* CaliGroupLayout;
QHBoxLayout* layout15ca;
QVBoxLayout* PrefsLayout;
QHBoxLayout* PrefsLayout2;
QGridLayout* tabLayout;
QGridLayout* ButtonGroup1Layout;
QHBoxLayout* GroupBox20Layout;
QHBoxLayout* GroupBox20aLayout;
QGridLayout* GroupBox20bLayout;
QGridLayout* GroupBox200Layout;
QHBoxLayout* MouseLayout;
QGridLayout* Layout5;
QGridLayout* tabLayout_2;
QHBoxLayout* ButtonGroup5Layout;
QVBoxLayout* Layout7;
QHBoxLayout* GroupBox1Layout;
QGridLayout* Layout10;
QHBoxLayout* GroupBox2Layout;
QGridLayout* Layout11;
QGridLayout* tabLayout_3;
QHBoxLayout* GroupBox4_2Layout;
QGridLayout* Layout12;
QHBoxLayout* GroupBox4Layout;
QGridLayout* Layout13;
QHBoxLayout* GroupBox4_3Layout;
QHBoxLayout* Layout14;
QHBoxLayout* GroupBox4_3aLayout;
QHBoxLayout* Layout14a;
QHBoxLayout* tabLayout_4;
QHBoxLayout* ButtonGroup2Layout;
QGridLayout* Layout16;
QHBoxLayout* ToolFrameLayout;
QHBoxLayout* ToolFrame2Layout;
QHBoxLayout* ToolFrame3Layout;
QHBoxLayout* ToolFrame4Layout;
QHBoxLayout* ToolFrame5Layout;
QGridLayout* Layout15;
QGridLayout* Layout15a;
QGridLayout* Layout15b;
QGridLayout* Layout15c;
QGridLayout* Layout15d;
QGridLayout* tabLayout_5;
QHBoxLayout* SavingLayout;
QHBoxLayout* PreviewLayout;
QHBoxLayout* tabLayout_6;
QHBoxLayout* Layout_6b;
QVBoxLayout* GroupBox10Layout;
QHBoxLayout* Layout3;
QHBoxLayout* PolygonPropsLayout;
QHBoxLayout* T6_Layout11;
QVBoxLayout* T6_Layout10;
QHBoxLayout* T6_Layout2;
QHBoxLayout* T6_Layout9;
QVBoxLayout* T6_Layout8;
QHBoxLayout* T6_Layout7;
QHBoxLayout* T6_Layout9_2;
QVBoxLayout* T6_Layout8_2;
QHBoxLayout* T6_Layout7_2;
QHBoxLayout* tabLayout_7;
QVBoxLayout* Layout21;
QVBoxLayout* Layout21b;
QVBoxLayout* GroupSizeLayout;
QGridLayout* Layout6;
QHBoxLayout* Layout5_2;
QHBoxLayout* Layout8;
QGridLayout* GroupRandLayout;
QGridLayout* GroupASLayout;
QVBoxLayout* CaliGroupLayout;
QHBoxLayout* layout15ca;
};
 
#endif // PREFS_H
/trunk/Scribus/scribus/plugins/libchar/charselect.h
38,7 → 38,7
 
public:
Zoom( QWidget* parent, QPixmap pix, uint val);
~Zoom();
~Zoom() {};
void paintEvent(QPaintEvent *);
QPixmap pixm;
QString valu;
48,30 → 48,30
 
class ZAuswahl : public QDialog
{
Q_OBJECT
Q_OBJECT
 
public:
ZAuswahl( QWidget* parent, preV *Vor, PageItem *item, ScribusApp *plug );
~ZAuswahl();
ChTable* ZTabelle;
QLabel* Zeichen;
QPushButton* Einf;
QPushButton* Delete;
QPushButton* Close;
PageItem *ite;
ScribusApp *ap;
QValueList<uint> Zeich;
QString ChToIns;
int MaxCount;
ZAuswahl( QWidget* parent, preV *Vor, PageItem *item, ScribusApp *plug );
~ZAuswahl() {};
ChTable* ZTabelle;
QLabel* Zeichen;
QPushButton* Einf;
QPushButton* Delete;
QPushButton* Close;
PageItem *ite;
ScribusApp *ap;
QValueList<uint> Zeich;
QString ChToIns;
int MaxCount;
 
public slots:
void NeuesZeichen(int r, int c);
void DelEdit();
void InsChar();
void NeuesZeichen(int r, int c);
void DelEdit();
void InsChar();
 
protected:
QVBoxLayout* ZAuswahlLayout;
QHBoxLayout* Layout1;
QVBoxLayout* ZAuswahlLayout;
QHBoxLayout* Layout1;
};
 
class ChTable : public QTable
79,19 → 79,19
Q_OBJECT
 
public:
ChTable(ZAuswahl* parent, ScribusApp *pl);
~ChTable() {};
bool Mpressed;
Zoom* dia;
ScribusApp *ap;
ZAuswahl* par;
int MaxCount;
ChTable(ZAuswahl* parent, ScribusApp *pl);
~ChTable() {};
bool Mpressed;
Zoom* dia;
ScribusApp *ap;
ZAuswahl* par;
int MaxCount;
 
signals:
void SelectChar(int, int);
void SelectChar(int, int);
 
protected:
virtual void contentsMouseReleaseEvent(QMouseEvent *m);
virtual void contentsMousePressEvent(QMouseEvent* e);
virtual void contentsMouseReleaseEvent(QMouseEvent *m);
virtual void contentsMousePressEvent(QMouseEvent* e);
};
#endif // QUERY_H
/trunk/Scribus/scribus/plugins/libchar/charselect.cpp
20,7 → 20,7
QString Name()
{
return QObject::tr("Insert Special");
return QObject::tr("Insert Special");
}
 
int Type()
31,10 → 31,10
void Run(QWidget *d, ScribusApp *plug)
{
if ((plug->HaveDoc) && (plug->doc->ActPage->SelItem.count() != 0))
{
{
PageItem *b = plug->doc->ActPage->SelItem.at(0);
if ((b->PType == 4) && (plug->doc->AppMode == 7))
{
{
ZAuswahl *dia = new ZAuswahl(d, &plug->Prefs, b, plug);
dia->exec();
delete dia;
53,10 → 53,6
valu = "0x"+tmp;
}
 
Zoom::~Zoom()
{
}
 
void Zoom::paintEvent(QPaintEvent *)
{
QPainter p;
63,7 → 59,7
p.begin(this);
p.setPen(black);
p.setBrush(NoBrush);
p.drawRect(0, 0, width(), height());
p.drawRect(0, 0, width(), height());
p.drawPixmap(1, 1, pixm);
p.drawText(5, height()-3, valu);
p.end();
83,7 → 79,7
int r = rowAt(e->pos().y());
int c = columnAt(e->pos().x());
if ((e->button() == RightButton) && ((r*32+c) < MaxCount))
{
{
Mpressed = true;
int bh = 48 + qRound(-(*ap->doc->AllFonts)[ap->doc->CurrFont]->numDescender * 48) + 3;
QPixmap pixm(bh,bh);
95,7 → 91,7
FPointArray gly = (*ap->doc->AllFonts)[ap->doc->CurrFont]->GlyphArray[par->Zeich[r*32+c]].Outlines.copy();
double ww = bh - (*ap->doc->AllFonts)[ap->doc->CurrFont]->CharWidth[par->Zeich[r*32+c]]*48;
if (gly.size() > 4)
{
{
gly.map(chma);
p->translate(ww / 2, 1);
p->setBrush(black);
103,13 → 99,13
p->setupPolygon(&gly);
p->fillPath();
p->end();
}
}
delete p;
dia = new Zoom(this, pixm, par->Zeich[r*32+c]);
QPoint ps = QCursor::pos();
dia->move(ps.x()-2, ps.y()-2);
dia->show();
}
}
}
 
void ChTable::contentsMouseReleaseEvent(QMouseEvent* e)
116,11 → 112,11
{
e->accept();
if ((e->button() == RightButton) && (Mpressed))
{
{
Mpressed = false;
dia->close();
delete dia;
}
}
if (e->button() == LeftButton)
emit SelectChar(rowAt(e->pos().y()), columnAt(e->pos().x()));
}
128,144 → 124,138
ZAuswahl::ZAuswahl( QWidget* parent, preV *Vor, PageItem *item, ScribusApp *pl)
: QDialog( parent, "ZAuswahl", true, 0 )
{
setCaption( tr( "Select Character:" )+" "+pl->doc->CurrFont );
ite = item;
ap = pl;
setCaption( tr( "Select Character:" )+" "+pl->doc->CurrFont );
ite = item;
ap = pl;
setIcon(loadIcon("AppIcon.png"));
ZAuswahlLayout = new QVBoxLayout( this );
ZAuswahlLayout->setSpacing( 6 );
ZAuswahlLayout->setMargin( 11 );
ZAuswahlLayout = new QVBoxLayout( this );
ZAuswahlLayout->setSpacing( 6 );
ZAuswahlLayout->setMargin( 11 );
 
ZTabelle = new ChTable( this, pl);
ZTabelle->setNumCols( 32 );
ZTabelle->setLeftMargin(0);
ZTabelle->verticalHeader()->hide();
ZTabelle->setTopMargin(0);
ZTabelle->horizontalHeader()->hide();
ZTabelle->setSorting(false);
ZTabelle->setSelectionMode(QTable::NoSelection);
ZTabelle->setColumnMovingEnabled(false);
ZTabelle->setRowMovingEnabled(false);
int counter = 1;
FT_Face face;
FT_ULong charcode;
FT_UInt gindex;
face = pl->doc->FFonts[pl->doc->CurrFont];
charcode = FT_Get_First_Char(face, &gindex );
while (gindex != 0)
ZTabelle = new ChTable( this, pl);
ZTabelle->setNumCols( 32 );
ZTabelle->setLeftMargin(0);
ZTabelle->verticalHeader()->hide();
ZTabelle->setTopMargin(0);
ZTabelle->horizontalHeader()->hide();
ZTabelle->setSorting(false);
ZTabelle->setSelectionMode(QTable::NoSelection);
ZTabelle->setColumnMovingEnabled(false);
ZTabelle->setRowMovingEnabled(false);
int counter = 1;
FT_Face face;
FT_ULong charcode;
FT_UInt gindex;
face = pl->doc->FFonts[pl->doc->CurrFont];
charcode = FT_Get_First_Char(face, &gindex );
while (gindex != 0)
{
Zeich.append(charcode);
counter++;
charcode = FT_Get_Next_Char(face, charcode, &gindex );
}
int ab = counter / 32;
int ac = counter % 32;
int cc = 0;
MaxCount = counter;
if (ac != 0)
ab++;
ZTabelle->setNumRows( ab );
int bh = 14 + qRound(-(*pl->doc->AllFonts)[pl->doc->CurrFont]->numDescender * 14) + 3;
QPixmap pixm(bh,bh);
ScPainter *p = new ScPainter(&pixm, bh, bh);
p->translate(1,1);
for (int a = 0; a < ab; ++a)
{
for (int b = 0; b < 32; ++b)
{
p->clear();
pixm.fill(white);
QWMatrix chma;
chma.scale(1.4, 1.4);
FPointArray gly = (*pl->doc->AllFonts)[pl->doc->CurrFont]->GlyphArray[Zeich[cc]].Outlines.copy();
cc++;
if (gly.size() > 4)
{
Zeich.append(charcode);
counter++;
charcode = FT_Get_Next_Char(face, charcode, &gindex );
gly.map(chma);
FPoint np;
double mx = 99999.9;
double my = 99999.9;
for (uint c = 0; c < gly.size(); ++c)
{
np = gly.point(c);
if (np.x() > 900000)
continue;
if (np.x() < mx)
mx = np.x();
if (np.y() < my)
my = np.y();
}
gly.translate(-mx, 0);
p->setBrush(black);
p->setFillMode(1);
p->setupPolygon(&gly);
p->fillPath();
p->end();
}
int ab = counter / 32;
int ac = counter % 32;
int cc = 0;
MaxCount = counter;
if (ac != 0)
ab++;
ZTabelle->setNumRows( ab );
int bh = 14 + qRound(-(*pl->doc->AllFonts)[pl->doc->CurrFont]->numDescender * 14) + 3;
QPixmap pixm(bh,bh);
ScPainter *p = new ScPainter(&pixm, bh, bh);
p->translate(1,1);
for (int a = 0; a < ab; a++)
{
for (int b = 0; b < 32; b++)
{
p->clear();
pixm.fill(white);
QWMatrix chma;
chma.scale(1.4, 1.4);
FPointArray gly = (*pl->doc->AllFonts)[pl->doc->CurrFont]->GlyphArray[Zeich[cc]].Outlines.copy();
cc++;
if (gly.size() > 4)
{
gly.map(chma);
FPoint np;
double mx = 99999.9;
double my = 99999.9;
for (uint c = 0; c < gly.size(); ++c)
{
np = gly.point(c);
if (np.x() > 900000)
continue;
if (np.x() < mx)
mx = np.x();
if (np.y() < my)
my = np.y();
}
gly.translate(-mx, 0);
p->setBrush(black);
p->setFillMode(1);
p->setupPolygon(&gly);
p->fillPath();
p->end();
}
QTableItem *it = new QTableItem(ZTabelle, QTableItem::Never, "", pixm);
ZTabelle->setItem(a, b, it);
if (cc == counter)
break;
}
}
delete p;
for (int d = 0; d < 32; d++)
{
ZTabelle->setColumnWidth(d, ZTabelle->rowHeight(0));
}
ZTabelle->setMinimumSize(QSize(ZTabelle->rowHeight(0)*33, ZTabelle->rowHeight(0)*7));
ZAuswahlLayout->addWidget( ZTabelle );
ZTabelle->MaxCount = MaxCount;
QTableItem *it = new QTableItem(ZTabelle, QTableItem::Never, "", pixm);
ZTabelle->setItem(a, b, it);
if (cc == counter)
break;
}
}
delete p;
for (int d = 0; d < 32; ++d)
ZTabelle->setColumnWidth(d, ZTabelle->rowHeight(0));
ZTabelle->setMinimumSize(QSize(ZTabelle->rowHeight(0)*33, ZTabelle->rowHeight(0)*7));
ZAuswahlLayout->addWidget( ZTabelle );
ZTabelle->MaxCount = MaxCount;
 
Zeichen = new QLabel( this, "Zeichen" );
DelEdit();
ZAuswahlLayout->addWidget( Zeichen );
Zeichen = new QLabel( this, "Zeichen" );
DelEdit();
ZAuswahlLayout->addWidget( Zeichen );
 
Layout1 = new QHBoxLayout;
Layout1->setSpacing( 6 );
Layout1->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer );
Layout1 = new QHBoxLayout;
Layout1->setSpacing( 6 );
Layout1->setMargin( 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer );
 
Einf = new QPushButton( this, "Einf" );
Einf->setText( tr( "Insert" ) );
Layout1->addWidget( Einf );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_2 );
Einf = new QPushButton( this, "Einf" );
Einf->setText( tr( "Insert" ) );
Layout1->addWidget( Einf );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_2 );
 
Delete = new QPushButton( this, "Delete" );
Delete->setText( tr( "Clear" ) );
Layout1->addWidget( Delete );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_3 );
Delete = new QPushButton( this, "Delete" );
Delete->setText( tr( "Clear" ) );
Layout1->addWidget( Delete );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_3 );
 
Close = new QPushButton( this, "Close" );
Close->setText( tr( "Close" ) );
Layout1->addWidget( Close );
QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_4 );
ZAuswahlLayout->addLayout( Layout1 );
Zeichen->setMaximumSize(width(), 50);
Close = new QPushButton( this, "Close" );
Close->setText( tr( "Close" ) );
Layout1->addWidget( Close );
QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout1->addItem( spacer_4 );
ZAuswahlLayout->addLayout( Layout1 );
Zeichen->setMaximumSize(width(), 50);
 
// signals and slots connections
connect(Close, SIGNAL(clicked()), this, SLOT(accept()));
connect(Delete, SIGNAL(clicked()), this, SLOT(DelEdit()));
connect(Einf, SIGNAL(clicked()), this, SLOT(InsChar()));
connect(ZTabelle, SIGNAL(SelectChar(int, int)), this, SLOT(NeuesZeichen(int, int)));
// signals and slots connections
connect(Close, SIGNAL(clicked()), this, SLOT(accept()));
connect(Delete, SIGNAL(clicked()), this, SLOT(DelEdit()));
connect(Einf, SIGNAL(clicked()), this, SLOT(InsChar()));
connect(ZTabelle, SIGNAL(SelectChar(int, int)), this, SLOT(NeuesZeichen(int, int)));
}
 
ZAuswahl::~ZAuswahl()
{
}
 
void ZAuswahl::NeuesZeichen(int r, int c) // , int b, const QPoint &pp)
{
if ((r*32+c) < MaxCount)
{
{
ChToIns += QChar(Zeich[r*32+c]);
QString da = (*ap->doc->AllFonts)[ap->doc->CurrFont]->Datei;
Zeichen->setPixmap(FontSample(da, 28, ChToIns, paletteBackgroundColor()));
}
}
}
 
void ZAuswahl::DelEdit()
279,12 → 269,14
void ZAuswahl::InsChar()
{
struct Pti *hg;
for (uint a=0; a<ChToIns.length(); a++)
{
for (uint a=0; a<ChToIns.length(); ++a)
{
hg = new Pti;
hg->ch = ChToIns.at(a);
if (hg->ch == QChar(10)) { hg->ch = QChar(13); }
if (hg->ch == QChar(9)) { hg->ch = " "; }
if (hg->ch == QChar(10))
hg->ch = QChar(13);
if (hg->ch == QChar(9))
hg->ch = " ";
hg->cfont = ap->doc->CurrFont;
hg->csize = ap->doc->CurrFontSize;
hg->ccolor = ap->doc->CurrTextFill;
296,10 → 288,10
hg->cstyle = ap->doc->CurrentStyle;
hg->cab = ap->doc->CurrentABStil;
if (ap->doc->Vorlagen[ap->doc->CurrentABStil].Font != "")
{
{
hg->cfont = ap->doc->Vorlagen[ap->doc->CurrentABStil].Font;
hg->csize = ap->doc->Vorlagen[ap->doc->CurrentABStil].FontSize;
}
}
hg->cextra = 0;
hg->cselect = false;
hg->xp = 0;
309,7 → 301,7
hg->PtransY = 0;
ite->Ptext.insert(ite->CPos, hg);
ite->CPos += 1;
}
}
ite->Dirty = true;
ap->doc->ActPage->update();
ap->slotDocCh();
/trunk/Scribus/scribus/page.cpp
3881,6 → 3881,7
default:
z = PaintPoly(Rxp, Ryp, 1+Rxpd, 1+Rypd, doku->Dwidth, doku->Dbrush, doku->Dpen);
SetFrameShape(Items.at(z), doku->ValCount, doku->ShapeValues);
Items.at(z)->FrameType = doku->SubMode+2;
SetupDraw(z);
break;
}
4461,7 → 4462,7
doku->ActPage = this;
emit PgCh(PageNr);
}
if ((m->state() == (ControlButton | ShiftButton)) && (SelItem.count() != 0))
if ((m->state() & (ControlButton | ShiftButton)) && (SelItem.count() != 0))
{
for (a = 0; a < Items.count(); ++a)
{
7359,48 → 7360,24
QImage im4;
QImage image;
image.load(tmpFile);
image = image.convertDepth(32);
image = image.convertDepth(32);
image.setAlphaBuffer(true);
int wi = image.width();
int hi = image.height();
QBitmap bm(tmpFile);
bm.fill(Qt::color1);
QPainter pp;
pp.begin(&bm);
pp.setPen(Qt::color0);
QString tmp2;
if ( image.depth() == 8 )
for( int yi=0; yi < hi; ++yi )
{
for( int yi=0; yi < hi; ++yi )
QRgb *s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
uchar * s = image.scanLine( yi );
for( int xi=0; xi < wi; ++xi )
{
if(image.color(s[xi]) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
else
{
for( int yi=0; yi < hi; ++yi )
{
QRgb * s = (QRgb*)(image.scanLine( yi ));
for(int xi=0; xi < wi; ++xi )
{
if((*s++) == 0xffffffff)
pp.drawPoint(xi, yi);
}
}
}
pp.end();
QPixmap pm;
pm.convertFromImage(image);
pm.setMask(bm);
if((*s) == 0xffffffff)
(*s) &= 0x00ffffff;
s++;
}
}
im4.setAlphaBuffer(true);
im4 = pm.convertToImage();
image = im4.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
im4 = ProofPict(&image, Items.at(ItNr)->IProfile, Items.at(ItNr)->IRender);
Items.at(ItNr)->pixm = im4;
im4 = image.copy(static_cast<int>(x), 0, static_cast<int>(b-x), static_cast<int>(h-y));
image = ProofPict(&im4, Items.at(ItNr)->IProfile, Items.at(ItNr)->IRender);
Items.at(ItNr)->pixm = image;
Items.at(ItNr)->Pfile = fi.absFilePath();
Items.at(ItNr)->PicAvail = true;
Items.at(ItNr)->PicArt = true;
/trunk/Scribus/scribus/libpdf/pdflib.cpp
62,20 → 62,21
bool ret = false;
int progresscount=0;
PDFlib *dia = new PDFlib();
if (dia->PDF_Begin_Doc(fn, plug->doc, plug->view, &plug->doc->PDF_Optionen, plug->Prefs.AvailFonts, plug->doc->UsedFonts, plug->BookPal->BView))
if (dia->PDF_Begin_Doc(fn, plug->doc, plug->view, &plug->doc->PDF_Optionen, plug->Prefs.AvailFonts,
plug->doc->UsedFonts, plug->BookPal->BView))
{
dia2->reset();
dia2->setTotalSteps(plug->view->MasterPages.count()+(toPa-frPa+1));
dia2->setProgress(0);
for (uint ap = 0; ap < plug->view->MasterPages.count(); ++ap)
dia2->reset();
dia2->setTotalSteps(plug->view->MasterPages.count()+(toPa-frPa+1));
dia2->setProgress(0);
for (uint ap = 0; ap < plug->view->MasterPages.count(); ++ap)
{
if (plug->view->MasterPages.at(ap)->Items.count() != 0)
dia->PDF_TemplatePage(plug->view->MasterPages.at(ap));
progresscount++;
dia2->setProgress(progresscount);
if (plug->view->MasterPages.at(ap)->Items.count() != 0)
dia->PDF_TemplatePage(plug->view->MasterPages.at(ap));
progresscount++;
dia2->setProgress(progresscount);
}
for (int a = frPa; a < toPa; ++a)
{
{
if (plug->doc->PDF_Optionen.Thumbnails)
pm = thumbs[a];
dia->PDF_Begin_Page(plug->view->Pages.at(a), pm);
83,14 → 84,15
dia->PDF_End_Page();
progresscount++;
dia2->setProgress(progresscount);
}
}
if (plug->doc->PDF_Optionen.Version == 12)
dia->PDF_End_Doc(plug->PrinterProfiles[plug->doc->PDF_Optionen.PrintProf], nam, Components);
dia->PDF_End_Doc(plug->PrinterProfiles[plug->doc->PDF_Optionen.PrintProf], nam,
Components);
else
dia->PDF_End_Doc();
ret = true;
dia2->reset();
}
}
delete dia;
return ret;
}
135,38 → 137,11
CompAvail = false;
#endif
KeyGen = QByteArray(32);
KeyGen[0] = 0x28;
KeyGen[1] = 0xbf;
KeyGen[2] = 0x4e;
KeyGen[3] = 0x5e;
KeyGen[4] = 0x4e;
KeyGen[5] = 0x75;
KeyGen[6] = 0x8a;
KeyGen[7] = 0x41;
KeyGen[8] = 0x64;
KeyGen[9] = 0x00;
KeyGen[10] = 0x4e;
KeyGen[11] = 0x56;
KeyGen[12] = 0xff;
KeyGen[13] = 0xfa;
KeyGen[14] = 0x01;
KeyGen[15] = 0x08;
KeyGen[16] = 0x2e;
KeyGen[17] = 0x2e;
KeyGen[18] = 0x00;
KeyGen[19] = 0xb6;
KeyGen[20] = 0xd0;
KeyGen[21] = 0x68;
KeyGen[22] = 0x3e;
KeyGen[23] = 0x80;
KeyGen[24] = 0x2f;
KeyGen[25] = 0x0c;
KeyGen[26] = 0xa9;
KeyGen[27] = 0xfe;
KeyGen[28] = 0x64;
KeyGen[29] = 0x53;
KeyGen[30] = 0x69;
KeyGen[31] = 0x7a;
int kg_array[] = {0x28, 0xbf, 0x4e, 0x5e, 0x4e, 0x75, 0x8a, 0x41, 0x64, 0x00, 0x4e, 0x56, 0xff, 0xfa,
0x01, 0x08, 0x2e, 0x2e, 0x00, 0xb6, 0xd0, 0x68, 0x3e, 0x80, 0x2f, 0x0c, 0xa9, 0xfe,
0x64, 0x53, 0x69, 0x7a};
for (int a = 0; a < 32; ++a)
KeyGen[a] = kg_array[a];
}
 
 
173,7 → 148,7
QString PDFlib::FToStr(double c)
{
QString cc;
return cc.setNum(c);
return cc.sprintf("%.5f", c);
}
 
QString PDFlib::IToStr(int c)
206,24 → 181,24
QString tmp = "";
QString cc;
for (uint d = 0; d < in.length(); ++d)
{
{
cc = in.at(d);
if ((cc == "(") || (cc == ")") || (cc == "\\"))
tmp += "\\";
tmp += cc;
}
}
return tmp;
}
 
QString PDFlib::EncStream(QString *in, int ObjNum)
{
if (in->length() < 1)
return "";
rc4_context_t rc4;
if (in->length() < 1)
return "";
rc4_context_t rc4;
QString tmp = "";
int dlen = 0;
if (Options->Encrypt)
{
{
tmp = *in;
QByteArray us(tmp.length());
QByteArray ou(tmp.length());
233,24 → 208,25
if (KeyLen > 5)
data.resize(21);
for (int cd = 0; cd < KeyLen; ++cd)
{
data[cd] = EncryKey[cd];
{
data[cd] = EncryKey[cd];
dlen++;
}
data[dlen++] = ObjNum;
data[dlen++] = ObjNum >> 8;
data[dlen++] = ObjNum >> 16;
data[dlen++] = 0;
data[dlen++] = 0;
}
data[dlen++] = ObjNum;
data[dlen++] = ObjNum >> 8;
data[dlen++] = ObjNum >> 16;
data[dlen++] = 0;
data[dlen++] = 0;
QByteArray step1(16);
step1 = ComputeMD5Sum(&data);
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), QMIN(KeyLen+5, 16));
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()), reinterpret_cast<uchar*>(ou.data()), tmp.length());
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), QMIN(KeyLen+5, 16));
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()),
reinterpret_cast<uchar*>(ou.data()), tmp.length());
QString uk = "";
for (uint cl = 0; cl < tmp.length(); ++cl)
uk += ou[cl];
tmp = uk;
}
}
else
tmp = *in;
return tmp;
258,13 → 234,13
 
QString PDFlib::EncString(QString in, int ObjNum)
{
if (in.length() < 3)
return "<>";
rc4_context_t rc4;
if (in.length() < 3)
return "<>";
rc4_context_t rc4;
QString tmp;
int dlen = 0;
if (Options->Encrypt)
{
{
tmp = in.mid(1, in.length()-2);
QByteArray us(tmp.length());
QByteArray ou(tmp.length());
274,24 → 250,25
if (KeyLen > 5)
data.resize(21);
for (int cd = 0; cd < KeyLen; ++cd)
{
data[cd] = EncryKey[cd];
{
data[cd] = EncryKey[cd];
dlen++;
}
data[dlen++] = ObjNum;
data[dlen++] = ObjNum >> 8;
data[dlen++] = ObjNum >> 16;
data[dlen++] = 0;
data[dlen++] = 0;
}
data[dlen++] = ObjNum;
data[dlen++] = ObjNum >> 8;
data[dlen++] = ObjNum >> 16;
data[dlen++] = 0;
data[dlen++] = 0;
QByteArray step1(16);
step1 = ComputeMD5Sum(&data);
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), QMIN(KeyLen+5, 16));
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()), reinterpret_cast<uchar*>(ou.data()), tmp.length());
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), QMIN(KeyLen+5, 16));
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()),
reinterpret_cast<uchar*>(ou.data()), tmp.length());
QString uk = "";
for (uint cl = 0; cl < tmp.length(); ++cl)
uk += ou[cl];
tmp = "<"+String2Hex(&uk, false)+">";
}
}
else
tmp = in;
return tmp;
301,11 → 278,11
{
QString pw = pass;
if (pw.length() < 32)
{
{
uint l = pw.length();
for (uint a = 0; a < 32 - l; ++a)
pw.append(KeyGen[a]);
}
}
else
pw = pw.left(32);
return pw;
324,31 → 301,33
QByteArray step1(16);
step1 = ComputeMD5(pw2);
if (KeyLen > 5)
{
{
for (int kl = 0; kl < 50; ++kl)
step1 = ComputeMD5Sum(&step1);
}
}
QByteArray us(32);
QByteArray enk(16);
if (KeyLen > 5)
{
{
for (uint a2 = 0; a2 < 32; ++a2)
OwnerKey[a2] = static_cast<uchar>(QChar(pw.at(a2)));
for (int rl = 0; rl < 20; rl++)
{
for (int j = 0; j < 16; j ++)
enk[j] = step1[j] ^ rl;
{
for (int j = 0; j < 16; j ++)
enk[j] = step1[j] ^ rl;
rc4_init(&rc4, reinterpret_cast<uchar*>(enk.data()), 16);
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(OwnerKey.data()), reinterpret_cast<uchar*>(OwnerKey.data()), 32);
}
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(OwnerKey.data()),
reinterpret_cast<uchar*>(OwnerKey.data()), 32);
}
}
else
{
{
for (uint a = 0; a < 32; ++a)
us[a] = static_cast<uchar>(QChar(pw.at(a)));
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), 5);
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()), reinterpret_cast<uchar*>(OwnerKey.data()), 32);
}
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(us.data()),
reinterpret_cast<uchar*>(OwnerKey.data()), 32);
}
}
 
void PDFlib::CalcUserKey(QString User, int Permission)
358,7 → 337,7
pw = FitKey(pw);
QByteArray step1(16);
QByteArray perm(4);
uint perm_value = (uint)Permission;
uint perm_value = static_cast<uint>(Permission);
perm[0] = perm_value;
perm[1] = perm_value >> 8;
perm[2] = perm_value >> 16;
371,15 → 350,15
pw += FileID[a3];
step1 = ComputeMD5(pw);
if (KeyLen > 5)
{
{
for (int kl = 0; kl < 50; ++kl)
step1 = ComputeMD5Sum(&step1);
EncryKey.resize(16);
}
}
for (int a2 = 0; a2 < KeyLen; ++a2)
EncryKey[a2] = step1[a2];
if (KeyLen > 5)
{
{
QString pr2 = "";
for (int kl3 = 0; kl3 < 32; ++kl3)
pr2 += KeyGen[kl3];
390,18 → 369,20
for (uint a3 = 0; a3 < 16; ++a3)
UserKey[a3] = step1[a3];
for (int rl = 0; rl < 20; rl++)
{
for (int j = 0; j < 16; j ++)
enk[j] = EncryKey[j] ^ rl;
{
for (int j = 0; j < 16; j ++)
enk[j] = EncryKey[j] ^ rl;
rc4_init(&rc4, reinterpret_cast<uchar*>(enk.data()), 16);
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(UserKey.data()), reinterpret_cast<uchar*>(UserKey.data()), 16);
}
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(UserKey.data()),
reinterpret_cast<uchar*>(UserKey.data()), 16);
}
}
else
{
{
rc4_init(&rc4, reinterpret_cast<uchar*>(step1.data()), 5);
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(KeyGen.data()), reinterpret_cast<uchar*>(UserKey.data()), 32);
}
rc4_encrypt(&rc4, reinterpret_cast<uchar*>(KeyGen.data()),
reinterpret_cast<uchar*>(UserKey.data()), 32);
}
}
 
QByteArray PDFlib::ComputeMD5(QString in)
414,10 → 395,10
 
bool PDFlib::PDF_Begin_Doc(QString fn, ScribusDoc *docu, ScribusView *vie, PDFOpt *opts, SCFonts &AllFonts, QMap<QString,QFont> DocFonts, BookMView* vi)
{
Spool.setName(fn);
Spool.setName(fn);
if (!Spool.open(IO_WriteOnly))
return false;
QString tmp;
QString tmp;
QString ok = "";
QString uk = "";
QFileInfo fd;
429,8 → 410,8
Options = opts;
UsedFontsP.clear();
ObjCounter = Options->Articles ? 9 : 8;
PutDoc(Options->Version <= 13 ? "%PDF-1.3\n" : "%PDF-1.4\n");
if (Options->Version == 12)
PutDoc(Options->Version <= 13 ? "%PDF-1.3\n" : "%PDF-1.4\n");
if (Options->Version == 12)
ObjCounter++;
PutDoc("%"+QString(QChar(199))+QString(QChar(236))+QString(QChar(143))+QString(QChar(162))+"\n");
StartObj(1);
451,7 → 432,7
IDg += "/False";
FileID = ComputeMD5(IDg);
if (Options->Encrypt)
{
{
KeyLen = Options->Version == 14 ? 16 : 5;
CalcOwnerKey(Options->PassOwner, Options->PassUser);
CalcUserKey(Options->PassUser, Options->Permissions);
458,18 → 439,18
for (uint cl2 = 0; cl2 < 32; ++cl2)
ok += OwnerKey[cl2];
if (KeyLen > 5)
{
{
for (uint cl3 = 0; cl3 < 16; ++cl3)
uk += UserKey[cl3];
for (uint cl3r = 0; cl3r < 16; ++cl3r)
uk += KeyGen[cl3r];
}
}
else
{
{
for (uint cl = 0; cl < 32; ++cl)
uk += UserKey[cl];
}
}
}
QDate d = QDate::currentDate();
Datum = "D:";
tmp.sprintf("%4d", d.year());
496,14 → 477,14
if (Options->Version == 12)
PutDoc("/GTS_PDFXVersion (PDF/X-3:2002)\n");
PutDoc("/Trapped /False\n>>\nendobj\n");
for (int t = 0; t < 5; ++t)
XRef.append(Dokument);
for (int t = 0; t < 5; ++t)
XRef.append(Dokument);
if (Options->Articles)
XRef.append(Dokument);
if (Options->Version == 12)
XRef.append(Dokument);
if (Options->Encrypt)
{
{
StartObj(ObjCounter);
Encrypt = ObjCounter;
ObjCounter++;
512,7 → 493,7
PutDoc("/O <"+String2Hex(&ok)+">\n");
PutDoc("/U <"+String2Hex(&uk)+">\n");
PutDoc("/P "+IToStr(Options->Permissions)+"\n>>\nendobj\n");
}
}
RealFonts = DocFonts;
QMap<QString,QFont> ReallyUsed;
ReallyUsed.clear();
521,104 → 502,111
PageItem* pgit;
QString chx;
for (uint c = 0; c < view->MasterPages.count(); ++c)
{
{
pg = view->MasterPages.at(c);
for (uint d = 0; d < pg->Items.count(); ++d)
{
{
pgit = pg->Items.at(d);
if ((pgit->PType == 4) || (pgit->PType == 8))
{
for (uint e = 0; e < pgit->Ptext.count(); ++e)
{
for (uint e = 0; e < pgit->Ptext.count(); ++e)
{
ReallyUsed.insert(pgit->Ptext.at(e)->cfont, DocFonts[pgit->Ptext.at(e)->cfont]);
ReallyUsed.insert(pgit->Ptext.at(e)->cfont,
DocFonts[pgit->Ptext.at(e)->cfont]);
uint chr = pgit->Ptext.at(e)->ch[0].unicode();
if ((chr == 13) || (chr == 32))
continue;
if (pgit->Ptext.at(e)->cstyle & 64)
{
{
chx = pgit->Ptext.at(e)->ch;
if (chx.upper() != pgit->Ptext.at(e)->ch)
chx = chx.upper();
chr = chx[0].unicode();
}
}
if (AllFonts[pgit->Ptext.at(e)->cfont]->CharWidth.contains(chr))
{
gly = AllFonts[pgit->Ptext.at(e)->cfont]->GlyphArray[chr].Outlines.copy();
{
gly = AllFonts[pgit->Ptext.at(e)->cfont]->
GlyphArray[chr].Outlines.copy();
AllFonts[pgit->Ptext.at(e)->cfont]->RealGlyphs.insert(chr, gly);
}
}
}
}
}
}
for (uint c=0; c<view->Pages.count(); ++c)
{
{
pg = view->Pages.at(c);
for (uint d = 0; d < pg->Items.count(); ++d)
{
{
pgit = pg->Items.at(d);
if ((pgit->PType == 4) || (pgit->PType == 8))
{
for (uint e = 0; e < pgit->Ptext.count(); ++e)
{
for (uint e = 0; e < pgit->Ptext.count(); ++e)
{
ReallyUsed.insert(pgit->Ptext.at(e)->cfont, DocFonts[pgit->Ptext.at(e)->cfont]);
ReallyUsed.insert(pgit->Ptext.at(e)->cfont,
DocFonts[pgit->Ptext.at(e)->cfont]);
uint chr = pgit->Ptext.at(e)->ch[0].unicode();
if ((chr == 13) || (chr == 32))
continue;
if (pgit->Ptext.at(e)->cstyle & 64)
{
{
chx = pgit->Ptext.at(e)->ch;
if (chx.upper() != pgit->Ptext.at(e)->ch)
chx = chx.upper();
chr = chx[0].unicode();
}
}
if (AllFonts[pgit->Ptext.at(e)->cfont]->CharWidth.contains(chr))
{
gly = AllFonts[pgit->Ptext.at(e)->cfont]->GlyphArray[chr].Outlines.copy();
{
gly = AllFonts[pgit->Ptext.at(e)->cfont]->
GlyphArray[chr].Outlines.copy();
AllFonts[pgit->Ptext.at(e)->cfont]->RealGlyphs.insert(chr, gly);
}
}
}
}
}
}
QMap<QString,QFont>::Iterator it;
a = 0;
for (it = ReallyUsed.begin(); it != ReallyUsed.end(); ++it)
{
{
fd = QFileInfo(AllFonts[it.key()]->Datei);
fext = fd.extension(false).lower();
if ((AllFonts[it.key()]->isOTF) || (AllFonts[it.key()]->Subset))
{
{
QString fon = "";
QMap<uint,FPointArray>::Iterator ig;
for (ig = AllFonts[it.key()]->RealGlyphs.begin(); ig != AllFonts[it.key()]->RealGlyphs.end(); ++ig)
{
for (ig = AllFonts[it.key()]->RealGlyphs.begin();
ig != AllFonts[it.key()]->RealGlyphs.end(); ++ig)
{
FPoint np, np1, np2;
bool nPath = true;
if (ig.data().size() > 3)
{
{
FPointArray gly = ig.data().copy();
QWMatrix mat;
mat.scale(0.1, 0.1);
gly.map(mat);
for (uint poi = 0; poi < gly.size()-3; poi += 4)
{
if (gly.point(poi).x() > 900000)
{
if (gly.point(poi).x() > 900000)
{
fon += "h\n";
nPath = true;
continue;
}
}
if (nPath)
{
{
np = gly.point(poi);
fon += FToStr(np.x())+" "+FToStr(-np.y())+" m\n";
nPath = false;
}
}
np = gly.point(poi+1);
np1 = gly.point(poi+3);
np2 = gly.point(poi+2);
fon += FToStr(np.x()) + " " + FToStr(-np.y()) + " " + FToStr(np1.x()) + " " + FToStr(-np1.y()) + " " + FToStr(np2.x()) + " " + FToStr(-np2.y()) + " c\n";
}
fon += FToStr(np.x()) + " " + FToStr(-np.y()) + " " +
FToStr(np1.x()) + " " + FToStr(-np1.y()) + " " +
FToStr(np2.x()) + " " + FToStr(-np2.y()) + " c\n";
}
fon += "h f*\n";
StartObj(ObjCounter);
ObjCounter++;
625,7 → 613,8
np = doc->ActPage->GetMinClipF(gly);
np1 = GetMaxClipF(gly);
PutDoc("<<\n/Type /XObject\n/Subtype /Form\n/FormType 1\n");
PutDoc("/BBox [ "+FToStr(np.x())+" "+FToStr(-np.y())+" "+FToStr(np1.x())+" "+FToStr(-np1.y())+" ]\n");
PutDoc("/BBox [ "+FToStr(np.x())+" "+FToStr(-np.y())+" "+FToStr(np1.x())+
" "+FToStr(-np1.y())+" ]\n");
PutDoc("/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n");
PutDoc(">>\n");
if ((Options->Compress) && (CompAvail))
633,34 → 622,37
PutDoc("/Length "+IToStr(fon.length()+1));
if ((Options->Compress) && (CompAvail))
PutDoc("\n/Filter /FlateDecode");
PutDoc(" >>\nstream\n"+EncStream(&fon, ObjCounter-1)+"\nendstream\nendobj\n");
Seite.XObjects[AllFonts[it.key()]->RealName()+IToStr(ig.key())] = ObjCounter-1;
PutDoc(" >>\nstream\n"+EncStream(&fon,
ObjCounter-1)+"\nendstream\nendobj\n");
Seite.XObjects[AllFonts[it.key()]->RealName()+IToStr(ig.key())] =
ObjCounter-1;
fon = "";
}
}
}
AllFonts[it.key()]->RealGlyphs.clear();
}
}
else
{
{
UsedFontsP.insert(it.key(), "/Fo"+IToStr(a));
if ((fext == "pfb") && (Options->EmbedList.contains(it.key())))
{
{
QString fon = "";
StartObj(ObjCounter);
QFile f(AllFonts[it.key()]->Datei);
QByteArray bb(f.size());
if (f.open(IO_ReadOnly))
{
{
f.readBlock(bb.data(), f.size());
f.close();
}
}
uint posi;
for (posi = 6; posi < bb.size(); ++posi)
{
if ((bb[posi] == static_cast<char>(0x80)) && (static_cast<int>(bb[posi+1]) == 2))
{
if ((bb[posi] == static_cast<char>(0x80)) &&
(static_cast<int>(bb[posi+1]) == 2))
break;
fon += bb[posi];
}
}
int len1 = fon.length();
uint ulen;
ulen = bb[posi+2] & 0xff;
671,14 → 663,11
ulen = bb.size()-7;
posi += 6;
for (uint j = 0; j < ulen; ++j)
{
fon += bb[posi];
posi++;
}
fon += bb[posi++];
posi += 6;
int len2 = fon.length()-len1;
for (uint j = posi; j < bb.size(); ++j)
{
{
if ((bb[j] == static_cast<char>(0x80)) && (static_cast<int>(bb[j+1]) == 3))
break;
if (bb[j] == '\r')
685,7 → 674,7
fon += "\n";
else
fon += bb[j];
}
}
int len3 = fon.length()-len2-len1;
if ((Options->Compress) && (CompAvail))
fon = CompressStr(&fon);
697,9 → 686,9
PutDoc("/Filter /FlateDecode\n");
PutDoc(">>\nstream\n"+EncStream(&fon,ObjCounter)+"\nendstream\nendobj\n");
ObjCounter++;
}
}
if ((fext == "pfa") && (Options->EmbedList.contains(it.key())))
{
{
QString fon = "";
QString fon2 = "";
QString tm = "";
714,7 → 703,7
len2 = fon.length()+1;
int count = 0;
for (int xx = len1; xx < len2-1; ++xx)
{
{
tm = fon.at(xx);
if ((tm == QChar(13)) || (tm == QChar(10)))
continue;
723,7 → 712,7
tm += fon.at(xx);
value = tm.toUInt(&ok, 16);
fon2 += QChar(value);
}
}
fon2 += fon.mid(len2);
if ((Options->Compress) && (CompAvail))
fon2 = CompressStr(&fon2);
736,23 → 725,20
PutDoc("/Filter /FlateDecode\n");
PutDoc(">>\nstream\n"+EncStream(&fon2, ObjCounter)+"\nendstream\nendobj\n");
ObjCounter++;
}
}
if (((fext == "ttf") || (fext == "otf")) && (Options->EmbedList.contains(it.key())))
{
{
QString fon = "";
StartObj(ObjCounter);
QFile f(AllFonts[it.key()]->Datei);
QByteArray bb(f.size());
if (f.open(IO_ReadOnly))
{
{
f.readBlock(bb.data(), f.size());
f.close();
}
uint posi;
for (posi = 0; posi < bb.size(); ++posi)
{
}
for (uint posi = 0; posi < bb.size(); ++posi)
fon += bb[posi];
}
int len = fon.length();
if ((Options->Compress) && (CompAvail))
fon = CompressStr(&fon);
762,7 → 748,7
PutDoc("/Filter /FlateDecode\n");
PutDoc(">>\nstream\n"+EncStream(&fon, ObjCounter)+"\nendstream\nendobj\n");
ObjCounter++;
}
}
StartObj(ObjCounter);
PutDoc("<<\n/Type /FontDescriptor\n");
PutDoc("/FontName /"+AllFonts[it.key()]->RealName()+"\n");
802,18 → 788,19
if ((gl.count() % 224) != 0)
Fcc += 1;
for (uint Fc = 0; Fc < Fcc; ++Fc)
{
{
StartObj(ObjCounter);
int chCount = 31;
PutDoc("[ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ");
for (int ww = 31; ww < 256; ++ww)
{
PutDoc(IToStr(static_cast<int>(AllFonts[it.key()]->CharWidth[itg.key()]*1000))+" ");
{
PutDoc(IToStr(static_cast<int>(AllFonts[it.key()]->CharWidth[itg.key()]*
1000))+" ");
if (itg == gl.end())
break;
++itg;
chCount++;
}
}
PutDoc("]\nendobj\n");
ObjCounter++;
StartObj(ObjCounter);
821,7 → 808,7
PutDoc("<< /Type /Encoding\n/Differences [ 32\n");
int crc = 0;
for (int ww2 = 32; ww2 < 256; ++ww2)
{
{
PutDoc(itg2.data().Name+" ");
if (itg2 == gl.end())
break;
828,11 → 815,11
++itg2;
crc++;
if (crc > 8)
{
{
PutDoc("\n");
crc = 0;
}
}
}
PutDoc("]\n>>\nendobj\n");
StartObj(ObjCounter);
PutDoc("<<\n/Type /Font\n/Subtype ");
847,13 → 834,13
PutDoc(">>\nendobj\n");
Seite.FObjects["Fo"+IToStr(a)+"S"+IToStr(Fc)] = ObjCounter;
ObjCounter++;
}
}
}
a++;
}
}
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
{
StartObj(ObjCounter);
ObjCounter++;
QString dataP;
861,10 → 848,10
loadText(InputProfiles[Options->SolidProf], &dataP);
PutDoc("<<\n");
if ((Options->Compress) && (CompAvail))
{
{
PutDoc("/Filter /FlateDecode\n");
dataP = CompressStr(&dataP);
}
}
PutDoc("/Length "+IToStr(dataP.length()+1)+"\n");
PutDoc("/N "+IToStr(Options->SComp)+"\n");
PutDoc(">>\nstream\n"+EncStream(&dataP, ObjCounter-1)+"\nendstream\nendobj\n");
877,7 → 864,7
PutDoc("endobj\n");
ResCount++;
ObjCounter++;
}
}
#endif
return true;
}
895,45 → 882,45
PutDoc("/BBox [ 0 0 "+FToStr(doc->PageB)+" "+FToStr(doc->PageH)+" ]\n");
PutDoc("/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n");
if (Seite.XObjects.count() != 0)
{
{
PutDoc("/XObject <<\n");
QMap<QString,int>::Iterator it;
for (it = Seite.XObjects.begin(); it != Seite.XObjects.end(); ++it)
PutDoc("/"+it.key()+" "+IToStr(it.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Seite.FObjects.count() != 0)
{
{
PutDoc("/Font << \n");
QMap<QString,int>::Iterator it2;
for (it2 = Seite.FObjects.begin(); it2 != Seite.FObjects.end(); ++it2)
PutDoc("/"+it2.key()+" "+IToStr(it2.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Shadings.count() != 0)
{
{
PutDoc("/Shading << \n");
QMap<QString,int>::Iterator it3;
for (it3 = Shadings.begin(); it3 != Shadings.end(); ++it3)
PutDoc("/"+it3.key()+" "+IToStr(it3.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Transpar.count() != 0)
{
{
PutDoc("/ExtGState << \n");
QMap<QString,int>::Iterator it3t;
for (it3t = Transpar.begin(); it3t != Transpar.end(); ++it3t)
PutDoc("/"+it3t.key()+" "+IToStr(it3t.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (ICCProfiles.count() != 0)
{
{
PutDoc("/ColorSpace << \n");
QMap<QString,ICCD>::Iterator it3c;
for (it3c = ICCProfiles.begin(); it3c != ICCProfiles.end(); ++it3c)
PutDoc("/"+it3c.data().ResName+" "+IToStr(it3c.data().ResNum)+" 0 R\n");
PutDoc(">>\n");
}
}
PutDoc(">>\n");
if ((Options->Compress) && (CompAvail))
Inhalt = CompressStr(&Inhalt);
952,7 → 939,7
Inhalt = "";
Seite.AObjects.clear();
if (Options->Thumbnails)
{
{
QImage img = pm.convertToImage();
QString im = ImageToTxt(&img);
if ((Options->Compress) && (CompAvail))
967,7 → 954,7
PutDoc(">>\nstream\n"+EncStream(&im, ObjCounter)+"\nendstream\nendobj\n");
Seite.Thumb = ObjCounter;
ObjCounter++;
}
}
}
 
void PDFlib::PDF_End_Page()
978,26 → 965,27
StartObj(ObjCounter);
PutDoc("<<\n/Type /Page\n/Parent 4 0 R\n");
PutDoc("/MediaBox [0 0 "+FToStr(doc->PageB)+" "+FToStr(doc->PageH)+"]\n");
PutDoc("/TrimBox ["+FToStr(Options->BleedLeft)+" "+FToStr(Options->BleedBottom)+" "+FToStr(doc->PageB-Options->BleedRight)+" "+FToStr(doc->PageH-Options->BleedTop)+"]\n");
PutDoc("/TrimBox ["+FToStr(Options->BleedLeft)+" "+FToStr(Options->BleedBottom)+
" "+FToStr(doc->PageB-Options->BleedRight)+" "+FToStr(doc->PageH-Options->BleedTop)+"]\n");
PutDoc("/Contents "+IToStr(Seite.ObjNum)+" 0 R\n");
if (Options->Thumbnails)
PutDoc("/Thumb "+IToStr(Seite.Thumb)+" 0 R\n");
if (Seite.AObjects.count() != 0)
{
{
PutDoc("/Annots [ ");
for (uint b = 0; b < Seite.AObjects.count(); ++b)
PutDoc(IToStr(Seite.AObjects[b])+" 0 R ");
PutDoc("]\n");
}
}
if (Options->PresentMode)
{
{
PutDoc("/Dur "+IToStr(Options->PresentVals[PgNr].AnzeigeLen)+"\n");
if (Options->PresentVals[PgNr].Effekt != 0)
{
{
PutDoc("/Trans << /Type /Trans\n");
PutDoc("/D "+IToStr(Options->PresentVals[PgNr].EffektLen)+"\n");
switch (Options->PresentVals[PgNr].Effekt)
{
{
case 1:
PutDoc("/S /Blinds\n");
PutDoc(Options->PresentVals[PgNr].Dm == 0 ? "/Dm /H\n" : "/Dm /V\n");
1022,10 → 1010,10
PutDoc("/S /Wipe\n");
PutDoc("/Di "+IToStr(Options->PresentVals[PgNr].Di)+"\n");
break;
}
}
PutDoc(">>\n");
}
}
}
PutDoc(">>\nendobj\n");
PageTree.Count++;
PageTree.Kids.append(ObjCounter);
1043,42 → 1031,46
ll.LNr = 0;
QString name = "/"+pag->MPageNam.simplifyWhiteSpace().replace( QRegExp("\\s"), "" );
if (pag->MPageNam != "")
{
{
Page* mPage = view->MasterPages.at(view->MasterNames[view->Pages.at(PNr)->MPageNam]);
if (mPage->Items.count() != 0)
{
{
PutPage("1 0 0 1 0 0 cm\n");
PutPage(name+" Do\n");
for (uint lam = 0; lam < doc->Layers.count(); ++lam)
{
{
Level2Layer(doc, &ll, Lnr);
Lnr++;
if (ll.Drucken)
{
for (uint am = 0; am < mPage->Items.count(); ++am)
{
for (uint am = 0; am < mPage->Items.count(); ++am)
{
ite = mPage->Items.at(am);
if ((ite->LayerNr != ll.LNr) || (!ite->isPrintable))
continue;
if (ite->PType == 4)
{
{
PutPage("q\n");
if (((ite->Transparency != 0) || (ite->TranspStroke != 0)) && (Options->Version == 14))
PDF_Transparenz(ite);
if (((ite->Transparency != 0) ||
(ite->TranspStroke != 0)) &&
(Options->Version == 14))
PDF_Transparenz(ite);
if (Options->UseRGB)
{
{
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" rg\n");
PutPage(SetFarbe(ite->Pcolor,
ite->Shade)+" rg\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" RG\n");
}
PutPage(SetFarbe(ite->Pcolor2,
ite->Shade2)+" RG\n");
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
switch (Options->Intent)
{
switch (Options->Intent)
{
case 0:
PutPage("/Perceptual");
break;
1091,29 → 1083,34
case 3:
PutPage("/AbsoluteColorimetric");
break;
}
}
PutPage(" ri\n");
PutPage("/"+ICCProfiles[Options->SolidProf].ResName+" cs\n");
PutPage("/"+ICCProfiles[Options->SolidProf].ResName+" CS\n");
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" scn\n");
PutPage(SetFarbe(ite->Pcolor,
ite->Shade)+" scn\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" SCN\n");
}
PutPage(SetFarbe(ite->Pcolor2,
ite->Shade2)+" SCN\n");
}
else
{
{
#endif
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" k\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" K\n");
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor,
ite->Shade)+" k\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2,
ite->Shade2)+" K\n");
}
#ifdef HAVE_CMS
}
}
#endif
PutPage("1 0 0 1 "+FToStr(ite->Xpos)+" "+FToStr(doc->PageH - ite->Ypos)+" cm\n");
PutPage("1 0 0 1 "+FToStr(ite->Xpos)+" "+
FToStr(doc->PageH - ite->Ypos)+" cm\n");
if (ite->Rot != 0)
{
{
double sr = sin(-ite->Rot* 3.1415927 / 180.0);
double cr = cos(-ite->Rot* 3.1415927 / 180.0);
if ((cr * cr) < 0.001)
1120,80 → 1117,73
cr = 0;
if ((sr * sr) < 0.001)
sr = 0;
PutPage(FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+" 0 0 cm\n");
}
PutPage(FToStr(cr)+" "+FToStr(sr)+
" "+FToStr(-sr)+" "+FToStr(cr)+
" 0 0 cm\n");
}
if ((ite->Pcolor != "None") || (ite->GrType != 0))
{
{
if (ite->GrType != 0)
PDF_Gradient(ite);
else
{
{
PutPage(SetClipPath(ite));
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" : "h\nf\n");
}
PutPage(ite->Segments.count() != 0 ?
"h\nf*\n" : "h\nf\n");
}
}
if ((ite->flippedH % 2) != 0)
PutPage("-1 0 0 1 "+FToStr(ite->Width)+" 0 cm\n");
if ((ite->flippedV % 2) != 0)
PutPage("1 0 0 -1 0 "+FToStr(-ite->Height)+" cm\n");
PutPage("1 0 0 -1 0 "+FToStr(-ite->Height)+
" cm\n");
PutPage(setTextSt(ite, PNr));
PutPage("Q\n");
}
}
}
}
}
}
}
ll.Drucken = false;
ll.LNr = 0;
Lnr = 0;
for (uint la = 0; la < doc->Layers.count(); ++la)
{
{
Level2Layer(doc, &ll, Lnr);
if (ll.Drucken)
{
for (uint a = 0; a < ActPageP->Items.count(); ++a)
{
for (uint a = 0; a < ActPageP->Items.count(); ++a)
{
ite = ActPageP->Items.at(a);
if (ite->LayerNr != ll.LNr)
continue;
PutPage("q\n");
if (((ite->Transparency != 0) || (ite->TranspStroke != 0)) && (Options->Version == 14))
if (((ite->Transparency != 0) || (ite->TranspStroke != 0)) &&
(Options->Version == 14))
PDF_Transparenz(ite);
if ((ite->isBookmark) && (Options->Bookmarks))
PDF_Bookmark(ite->BMnr, doc->PageH - ite->Ypos);
if (!ite->isPrintable || ((ite->PType == 4) && (pag->PageNam != "")))
{
{
PutPage("Q\n");
continue;
}
}
if (Options->UseRGB)
{
{
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" rg\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" RG\n");
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
switch (Options->Intent)
{
case 0:
PutPage("/Perceptual");
break;
case 1:
PutPage("/RelativeColorimetric");
break;
case 2:
PutPage("/Saturation");
break;
case 3:
PutPage("/AbsoluteColorimetric");
break;
}
{
char *tmp[] = {"/Perceptual", "/RelativeColorimetric",
"/Saturation", "/AbsoluteColorimetric"};
PutPage(tmp[Options->Intent]);
PutPage(" ri\n");
PutPage("/"+ICCProfiles[Options->SolidProf].ResName+" cs\n");
PutPage("/"+ICCProfiles[Options->SolidProf].ResName+" CS\n");
1201,23 → 1191,23
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" scn\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" SCN\n");
}
}
else
{
#endif
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" k\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" K\n");
if (ite->Pcolor != "None")
PutPage(SetFarbe(ite->Pcolor, ite->Shade)+" k\n");
if (ite->Pcolor2 != "None")
PutPage(SetFarbe(ite->Pcolor2, ite->Shade2)+" K\n");
}
#ifdef HAVE_CMS
}
}
#endif
Inhalt += FToStr(ite->Pwidth)+" w\n";
QString Dt = FToStr(QMAX(ite->Pwidth, 1));
QString Da = FToStr(QMAX(3*ite->Pwidth, 1));
switch (ite->PLineArt)
{
{
case Qt::SolidLine:
PutPage("[] 0 d\n");
break;
1236,9 → 1226,9
default:
PutPage("[] 0 d\n");
break;
}
}
switch (ite->PLineEnd)
{
{
case Qt::FlatCap:
PutPage("0 J\n");
break;
1251,9 → 1241,9
default:
PutPage("0 J\n");
break;
}
}
switch (ite->PLineJoin)
{
{
case Qt::MiterJoin:
PutPage("0 j\n");
break;
1266,10 → 1256,10
default:
PutPage("0 j\n");
break;
}
}
PutPage("1 0 0 1 "+FToStr(ite->Xpos)+" "+FToStr(doc->PageH - ite->Ypos)+" cm\n");
if (ite->Rot != 0)
{
{
double sr = sin(-ite->Rot* 3.1415927 / 180.0);
double cr = cos(-ite->Rot* 3.1415927 / 180.0);
if ((cr * cr) < 0.001)
1276,19 → 1266,21
cr = 0;
if ((sr * sr) < 0.001)
sr = 0;
PutPage(FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+" 0 0 cm\n");
}
PutPage(FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+
" 0 0 cm\n");
}
switch (ite->PType)
{
{
case 2:
if ((ite->Pcolor != "None") || (ite->GrType != 0))
{
{
PutPage(SetClipPath(ite));
if (ite->GrType != 0)
PDF_Gradient(ite);
else
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" : "h\nf\n");
}
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" :
"h\nf\n");
}
PutPage("q\n");
PutPage(SetClipPath(ite));
PutPage(ite->Segments.count() != 0 ? "h\nW*\nn\n" : "h\nW\nn\n");
1297,41 → 1289,45
if ((ite->flippedV % 2) != 0)
PutPage("1 0 0 -1 0 "+FToStr(-ite->Height)+" cm\n");
if ((ite->PicAvail) && (ite->Pfile != ""))
PDF_Image(ite->InvPict, ite->Pfile, ite->LocalScX, ite->LocalScY, ite->LocalX, -ite->LocalY, false, ite->IProfile, ite->UseEmbedded, ite->IRender);
PDF_Image(ite->InvPict, ite->Pfile, ite->LocalScX,
ite->LocalScY, ite->LocalX, -ite->LocalY,
false, ite->IProfile, ite->UseEmbedded,
ite->IRender);
PutPage("Q\n");
if ((ite->Pcolor2 != "None") || (ite->NamedLStyle != ""))
{
if (ite->NamedLStyle == "")
{
if (ite->NamedLStyle == "")
{
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
{
{
PutPage(setStrokeMulti(&ml[it]));
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
}
}
break;
case 4:
if ((ite->isAnnotation) && (Options->Version != 12))
{
{
PDF_Annotation(ite, PNr);
break;
}
if ((ite->Pcolor != "None") || (ite->GrType != 0))
{
{
PutPage(SetClipPath(ite));
if (ite->GrType != 0)
PDF_Gradient(ite);
else
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" : "h\nf\n");
}
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" :
"h\nf\n");
}
PutPage("q\n");
if ((ite->flippedH % 2) != 0)
PutPage("-1 0 0 1 "+FToStr(ite->Width)+" 0 cm\n");
1340,42 → 1336,44
PutPage(setTextSt(ite, PNr));
PutPage("Q\n");
if ((ite->Pcolor2 != "None") || (ite->NamedLStyle != ""))
{
if (ite->NamedLStyle == "")
{
if (ite->NamedLStyle == "")
{
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
{
{
PutPage(setStrokeMulti(&ml[it]));
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
}
}
break;
case 5:
if (ite->NamedLStyle == "")
{
{
PutPage("0 0 m\n");
PutPage(FToStr(ite->Width)+" "+FToStr(-ite->Height)+" l\n");
PutPage(FToStr(ite->Width)+" "+FToStr(-ite->Height)+
" l\n");
PutPage("S\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
{
{
PutPage(setStrokeMulti(&ml[it]));
PutPage("0 0 m\n");
PutPage(FToStr(ite->Width)+" "+FToStr(-ite->Height)+" l\n");
PutPage(FToStr(ite->Width)+
" "+FToStr(-ite->Height)+" l\n");
PutPage("S\n");
}
}
}
break;
case 1:
case 3:
1383,79 → 1381,82
if (ite->GrType != 0)
PDF_Gradient(ite);
else
{
if (ite->Pcolor != "None")
{
if (ite->Pcolor != "None")
{
PutPage(SetClipPath(ite));
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" : "h\nf\n");
}
PutPage(ite->Segments.count() != 0 ? "h\nf*\n" :
"h\nf\n");
}
}
if ((ite->Pcolor2 != "None") || (ite->NamedLStyle != ""))
{
if (ite->NamedLStyle == "")
{
if (ite->NamedLStyle == "")
{
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
{
{
PutPage(setStrokeMulti(&ml[it]));
PutPage(SetClipPath(ite));
PutPage("h\nS\n");
}
}
}
}
break;
case 7:
if ((ite->Pcolor2 != "None") || (ite->NamedLStyle != ""))
{
if (ite->NamedLStyle == "")
{
if (ite->NamedLStyle == "")
{
PutPage(SetClipPath(ite));
PutPage("S\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
{
{
PutPage(setStrokeMulti(&ml[it]));
PutPage(SetClipPath(ite));
PutPage("S\n");
}
}
}
}
break;
case 8:
if (ite->PoShow)
{
if (ite->PoLine.size() > 3)
{
if (ite->PoLine.size() > 3)
PutPage("q\n");
if ((ite->Pcolor2 != "None") ||
(ite->NamedLStyle != ""))
{
PutPage("q\n");
if ((ite->Pcolor2 != "None") || (ite->NamedLStyle != ""))
if (ite->NamedLStyle == "")
{
if (ite->NamedLStyle == "")
{
PutPage(SetClipPath(ite));
PutPage("S\n");
}
}
else
{
{
multiLine ml = doc->MLineStyles[ite->NamedLStyle];
for (int it = ml.size()-1; it > -1; it--)
for (int it = ml.size()-1;
it > -1; it--)
{
PutPage(setStrokeMulti(&ml[it]));
PutPage(SetClipPath(ite));
PutPage("S\n");
}
}
}
}
PutPage("Q\n");
}
}
}
PutPage(setTextSt(ite, PNr));
break;
}
1463,7 → 1464,7
}
}
Lnr++;
}
}
}
 
QString PDFlib::setStrokeMulti(struct singleLine *sl)
1472,42 → 1473,30
if (Options->UseRGB)
tmp += SetFarbe(sl->Color, sl->Shade)+" RG\n";
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
switch (Options->Intent)
{
case 0:
tmp += "/Perceptual";
break;
case 1:
tmp += "/RelativeColorimetric";
break;
case 2:
tmp += "/Saturation";
break;
case 3:
tmp += "/AbsoluteColorimetric";
break;
}
{
char *t[] = {"/Perceptual", "/RelativeColorimetric", "/Saturation",
"/AbsoluteColorimetric"};
tmp += t[Options->Intent];
tmp += " ri\n";
tmp += "/"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
tmp += SetFarbe(sl->Color, sl->Shade)+" SCN\n";
}
}
else
{
{
#endif
tmp += SetFarbe(sl->Color, sl->Shade)+" K\n";
}
}
#ifdef HAVE_CMS
}
}
#endif
tmp += FToStr(sl->Width)+" w\n";
QString Dt = FToStr(QMAX(sl->Width, 1));
QString Da = FToStr(QMAX(3*sl->Width, 1));
switch (static_cast<PenStyle>(sl->Dash))
{
{
case Qt::SolidLine:
tmp += "[] 0 d\n";
break;
1528,7 → 1517,7
break;
}
switch (static_cast<PenCapStyle>(sl->LineEnd))
{
{
case Qt::FlatCap:
tmp += "0 J\n";
break;
1541,9 → 1530,9
default:
tmp += "0 J\n";
break;
}
}
switch (static_cast<PenJoinStyle>(sl->LineJoin))
{
{
case Qt::MiterJoin:
tmp += "0 j\n";
break;
1556,7 → 1545,7
default:
tmp += "0 j\n";
break;
}
}
return tmp;
}
 
1570,12 → 1559,12
if (ite->PType == 4)
tmp += "BT\n";
for (uint d = 0; d < ite->MaxChars; ++d)
{
{
hl = ite->Ptext.at(d);
if ((hl->ch == QChar(13)) || (hl->ch == QChar(10)) || (hl->ch == QChar(9)))
continue;
if (ite->PType == 8)
{
{
tmp += "q\n";
tmp += "1 0 0 1 "+FToStr(hl->PtransX)+" "+FToStr(-hl->PtransY)+" cm\n";
double sr = sin(-hl->PRot* 3.1415927 / 180.0);
1586,28 → 1575,28
sr = 0;
tmp += FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+" 0 0 cm\n";
tmp += "BT\n";
}
}
else
{
{
if (hl->yp == 0)
break;
}
int tsz = hl->csize;
}
int tsz = hl->csize;
QString chx = hl->ch;
if (hl->ch == QChar(29))
chx = " ";
if (hl->ch == QChar(30))
{
{
uint zae = 0;
while (ite->Ptext.at(d+zae)->ch == QChar(30))
{
{
zae++;
if (d+zae == ite->MaxChars)
break;
}
}
QString out="%1";
chx = out.arg(PNr+doc->FirstPnum, zae).right(zae).left(1);
}
}
uint cc = chx[0].unicode();
uint idx = 0;
if (GlyphsIdxOfFont[hl->cfont].contains(cc))
1614,68 → 1603,67
idx = GlyphsIdxOfFont[hl->cfont][cc].Code;
uint idx1 = (idx >> 8) & 0xFF;
if (hl->cstyle & 64)
{
if (chx.upper() != chx)
{
if (chx.upper() != chx)
{
tsz = hl->csize * doc->VKapit / 100;
chx = chx.upper();
}
}
if (hl->cstyle & 1)
}
if ((hl->cstyle & 1) || (hl->cstyle & 2))
tsz = hl->csize * doc->VHochSc / 100;
if (hl->cstyle & 2)
tsz = hl->csize * doc->VHochSc / 100;
if (hl->cstroke != "None")
{
{
StrokeColor = "";
if (Options->UseRGB)
StrokeColor += SetFarbe(hl->cstroke, hl->cshade2)+" RG\n";
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
{
StrokeColor += "/"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
StrokeColor += SetFarbe(hl->cstroke, hl->cshade2)+" SCN\n";
}
}
else
#endif
StrokeColor += SetFarbe(hl->cstroke, hl->cshade2)+" K\n";
}
}
}
if (hl->ccolor != "None")
{
{
FillColor = "";
if (Options->UseRGB)
FillColor += SetFarbe(hl->ccolor, hl->cshade)+" rg\n";
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
{
FillColor += "/"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
FillColor += SetFarbe(hl->ccolor, hl->cshade)+" scn\n";
}
}
else
#endif
FillColor += SetFarbe(hl->ccolor, hl->cshade)+" k\n";
}
}
}
if (((*doc->AllFonts)[hl->cfont]->isOTF) || ((*doc->AllFonts)[hl->cfont]->Subset))
{
{
uint chr = chx[0].unicode();
if (((*doc->AllFonts)[hl->cfont]->CharWidth.contains(chr)) && (chr != 32))
{
if ((hl->cstroke != "None") && (hl->cstyle & 4))
{
if ((hl->cstroke != "None") && (hl->cstyle & 4))
{
tmp2 += FToStr((*doc->AllFonts)[hl->cfont]->strokeWidth * tsz / 200.0)+" w\n[] 0 d\n0 J\n0 j\n";
tmp2 += FToStr((*doc->AllFonts)[hl->cfont]->strokeWidth * tsz / 200.0)+
" w\n[] 0 d\n0 J\n0 j\n";
tmp2 += StrokeColor;
}
}
if (hl->ccolor != "None")
tmp2 += FillColor;
tmp2 += "q\n";
if (ite->PType == 8)
{
{
tmp2 += "1 0 0 1 "+FToStr(hl->PtransX)+" "+FToStr(-hl->PtransY)+" cm\n";
double sr = sin(-hl->PRot* 3.1415927 / 180.0);
double cr = cos(-hl->PRot* 3.1415927 / 180.0);
1683,22 → 1671,26
cr = 0;
if ((sr * sr) < 0.001)
sr = 0;
tmp2 += FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+" 0 0 cm\n";
}
tmp2 += FToStr(cr)+" "+FToStr(sr)+" "+FToStr(-sr)+" "+FToStr(cr)+
" 0 0 cm\n";
}
if (ite->Reverse)
{
{
double wid = Cwidth(doc, hl->cfont, chx, hl->csize) * (hl->cscale / 100.0);
tmp2 += "1 0 0 1 "+FToStr(hl->xp)+" "+FToStr((hl->yp - (tsz / 10.0)) * -1)+" cm\n";
tmp2 += "1 0 0 1 "+FToStr(hl->xp)+" "+FToStr((hl->yp - (tsz / 10.0)) *
-1)+" cm\n";
tmp2 += "-1 0 0 1 0 0 cm\n";
tmp2 += "1 0 0 1 "+FToStr(-wid)+" 0 cm\n";
tmp2 += FToStr(tsz / 10.0)+" 0 0 "+FToStr(tsz / 10.0)+" 0 0 cm\n";
}
}
else
tmp2 += FToStr(tsz / 10.0)+" 0 0 "+FToStr(tsz / 10.0)+" "+FToStr(hl->xp)+" "+FToStr((hl->yp - (tsz / 10.0)) * -1)+" cm\n";
tmp2 += FToStr(tsz / 10.0)+" 0 0 "+FToStr(tsz / 10.0)+" "+
FToStr(hl->xp)+" "+FToStr((hl->yp - (tsz / 10.0)) * -1)+
" cm\n";
tmp2 += FToStr(hl->cscale / 100.0)+" 0 0 1 0 0 cm\n";
tmp2 += "/"+(*doc->AllFonts)[hl->cfont]->RealName()+IToStr(chr)+" Do\n";
if (hl->cstyle & 4)
{
{
FPointArray gly = (*doc->AllFonts)[hl->cfont]->GlyphArray[chr].Outlines.copy();
QWMatrix mat;
mat.scale(0.1, 0.1);
1706,21 → 1698,21
bool nPath = true;
FPoint np;
if (gly.size() > 3)
{
for (uint poi=0; poi<gly.size()-3; poi += 4)
{
for (uint poi=0; poi<gly.size()-3; poi += 4)
if (gly.point(poi).x() > 900000)
{
if (gly.point(poi).x() > 900000)
{
tmp2 += "h\n";
nPath = true;
continue;
}
}
if (nPath)
{
{
np = gly.point(poi);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" m\n";
nPath = false;
}
}
np = gly.point(poi+1);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = gly.point(poi+3);
1727,12 → 1719,15
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = gly.point(poi+2);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" c\n";
}
}
}
tmp2 += "s\n";
}
if ((hl->cstyle & 128) && ((ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->yp != hl->yp) && (ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->ch != QChar(13)) || ((ite->NextBox != 0) && (d == ite->Ptext.count()-1))))
{
}
if ((hl->cstyle & 128) &&
((ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->yp != hl->yp) &&
(ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->ch != QChar(13)) ||
((ite->NextBox != 0) && (d == ite->Ptext.count()-1))))
{
int chs = hl->csize;
double wtr = Cwidth(doc, hl->cfont, chx, chs);
tmp2 += "1 0 0 1 "+FToStr(wtr / (tsz / 10.0))+" 0 cm\n";
1745,21 → 1740,21
bool nPath = true;
FPoint np;
if (gly.size() > 3)
{
for (uint poi=0; poi<gly.size()-3; poi += 4)
{
for (uint poi=0; poi<gly.size()-3; poi += 4)
if (gly.point(poi).x() > 900000)
{
if (gly.point(poi).x() > 900000)
{
tmp2 += "h\n";
nPath = true;
continue;
}
}
if (nPath)
{
{
np = gly.point(poi);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" m\n";
nPath = false;
}
}
np = gly.point(poi+1);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = gly.point(poi+3);
1766,15 → 1761,15
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = gly.point(poi+2);
tmp2 += FToStr(np.x())+" "+FToStr(-np.y())+" c\n";
}
}
}
tmp2 += "f*\n";
}
}
tmp2 += "Q\n";
}
}
}
else
{
{
cc = chx[0].unicode();
idx = 0;
if (GlyphsIdxOfFont[hl->cfont].contains(cc))
1782,48 → 1777,47
idx1 = (idx >> 8) & 0xFF;
tmp += UsedFontsP[hl->cfont]+"S"+IToStr(idx1)+" "+FToStr(tsz / 10.0)+" Tf\n";
if (hl->cstroke != "None")
{
{
tmp += StrokeColor;
if ((hl->cstyle & 8) || (hl->cstyle & 16))
tmp2 += StrokeColor;
}
}
if (hl->ccolor != "None")
{
{
tmp += FillColor;
if ((hl->cstyle & 8) || (hl->cstyle & 16))
tmp2 += FillColor;
}
}
if (hl->cstyle & 4)
{
if (hl->ccolor != "None")
tmp += FToStr((*doc->AllFonts)[hl->cfont]->strokeWidth * tsz / 20.0)+" w 2 Tr\n";
else
tmp += FToStr((*doc->AllFonts)[hl->cfont]->strokeWidth * tsz / 20.0)+" w 1 Tr\n";
}
tmp += FToStr((*doc->AllFonts)[hl->cfont]->strokeWidth * tsz / 20.0) +
(hl->ccolor != "None" ? " w 2 Tr\n" : " w 1 Tr\n");
else
tmp += "0 Tr\n";
if (ite->Reverse)
{
{
int chs = hl->csize;
double wtr;
if (d < ite->MaxChars-1)
{
{
QString ctx = ite->Ptext.at(d+1)->ch;
if (ctx == QChar(29))
ctx = " ";
wtr = Cwidth(doc, hl->cfont, chx, chs, ctx) * (hl->cscale / 100.0);
}
}
else
wtr = Cwidth(doc, hl->cfont, chx, chs) * (hl->cscale / 100.0);
tmp += "-1 0 0 1 "+FToStr(hl->xp+wtr)+" "+FToStr(-hl->yp)+" Tm\n";
}
}
else
tmp += "1 0 0 1 "+FToStr(hl->xp)+" "+FToStr(-hl->yp)+" Tm\n";
tmp += IToStr(hl->cscale) + " Tz\n";
uchar idx2 = idx & 0xFF;
tmp += "<"+QString(toHex(idx2))+"> Tj\n";
if ((hl->cstyle & 128) && ((ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->yp != hl->yp) && (ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->ch != QChar(13)) || ((ite->NextBox != 0) && (d == ite->Ptext.count()-1))))
{
if ((hl->cstyle & 128) &&
((ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->yp != hl->yp) &&
(ite->Ptext.at(QMIN(d+1, ite->Ptext.count()-1))->ch != QChar(13)) ||
((ite->NextBox != 0) && (d == ite->Ptext.count()-1))))
{
int chs = hl->csize;
double wtr = Cwidth(doc, hl->cfont, chx, chs);
tmp += "1 0 0 1 "+FToStr(hl->xp+wtr)+" "+FToStr(-hl->yp)+" Tm\n";
1836,29 → 1830,30
tmp += UsedFontsP[hl->cfont]+"S"+IToStr(idx1)+" "+FToStr(tsz / 10.0)+" Tf\n";
idx2 = idx & 0xFF;
tmp += "<"+QString(toHex(idx2))+"> Tj\n";
}
}
}
if ((hl->cstyle & 8) && (chx != QChar(13)))
{
{
uint chr = chx[0].unicode();
if ((*doc->AllFonts)[hl->cfont]->CharWidth.contains(chr))
{
{
double csi = tsz / 10.0;
double wid = Cwidth(doc, hl->cfont, chx, hl->csize) * (hl->cscale / 100.0);
QPixmap pgPix(static_cast<int>(wid), static_cast<int>(csi));
ScPainter *painter = new ScPainter(&pgPix, static_cast<int>(wid), static_cast<int>(csi));
ScPainter *painter = new ScPainter(&pgPix, static_cast<int>(wid),
static_cast<int>(csi));
FPointArray gly = (*doc->AllFonts)[hl->cfont]->GlyphArray[chr].Outlines.copy();
double st = (*doc->AllFonts)[hl->cfont]->underline_pos * csi;
double Uwid = QMAX((*doc->AllFonts)[hl->cfont]->strokeWidth * csi, 1);
painter->setLineWidth(Uwid);
if (gly.size() < 4)
{
{
gly.resize(0);
gly.addPoint(FPoint(0,0));
gly.addPoint(FPoint(0,0));
gly.addPoint(FPoint(1,0));
gly.addPoint(FPoint(1,0));
}
}
QWMatrix chma;
chma.scale(csi / 10.0, csi / 10.0);
gly.map(chma);
1867,7 → 1862,7
gly.map(chma);
tmp2 += "q\n";
if (ite->Reverse)
{
{
chma = QWMatrix();
chma.scale(-1, 1);
chma.translate(-wid, 0);
1875,7 → 1870,7
tmp2 += "1 0 0 1 "+FToStr(hl->xp)+" "+FToStr((hl->yp - st) * -1)+" cm\n";
tmp2 += "-1 0 0 1 0 0 cm\n";
tmp2 += "1 0 0 -1 "+FToStr(-wid)+" 0 cm\n";
}
}
else
tmp2 += "1 0 0 -1 "+FToStr(hl->xp)+" "+FToStr((hl->yp - st) * -1)+" cm\n";
painter->setupPolygon(&gly);
1883,41 → 1878,41
tmp2 += "h f Q\n";
painter->end();
delete painter;
}
}
}
if (hl->cstyle & 16)
{
{
double Ulen = Cwidth(doc, hl->cfont, chx, hl->csize) * (hl->cscale / 100.0);
double Upos = (*doc->AllFonts)[hl->cfont]->strikeout_pos * (tsz / 10.0);
double Uwid = QMAX((*doc->AllFonts)[hl->cfont]->strokeWidth * (tsz / 10.0), 1);
if (hl->ccolor != "None")
{
{
if (Options->UseRGB)
tmp2 += SetFarbe(hl->ccolor, hl->cshade)+" RG\n";
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
{
tmp2 += "/"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
tmp2 += SetFarbe(hl->ccolor, hl->cshade)+" SCN\n";
}
}
else
#endif
tmp2 += SetFarbe(hl->ccolor, hl->cshade)+" K\n";
}
}
}
tmp2 += FToStr(Uwid)+" w\n";
tmp2 += FToStr(hl->xp)+" "+FToStr(-hl->yp+Upos)+" m\n";
tmp2 += FToStr(hl->xp+Ulen)+" "+FToStr(-hl->yp+Upos)+" l\n";
tmp2 += "S\n";
}
}
if (ite->PType == 8)
{
{
tmp += "ET\nQ\n"+tmp2;
tmp2 = "";
}
}
}
if (ite->PType == 4)
tmp += "ET\n"+tmp2;
return tmp;
1931,49 → 1926,49
tmpC = doc->PageColors[farbe];
QColor tmpR;
if (Options->UseRGB)
{
{
tmpC.getRawRGBColor(&h, &s, &v);
tmpR.setRgb(h, s, v);
tmpR.hsv(&h, &s, &v);
if ((h == s) && (s == v))
{
{
sneu = 255 - ((255 - v) * Shade / 100);
tmpR.setHsv(h, s, sneu);
}
}
else
{
{
sneu = s * Shade / 100;
tmpR.setHsv(h, sneu, v);
}
}
tmpR.rgb(&h, &s, &v);
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0);
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
if (Options->SComp == 3)
{
if (Options->SComp == 3)
{
tmpC.getRawRGBColor(&h, &s, &v);
tmpR.setRgb(h, s, v);
tmpR.hsv(&h, &s, &v);
 
if ((h == s) && (s == v))
{
{
sneu = 255 - ((255 - v) * Shade / 100);
tmpR.setHsv(h, s, sneu);
}
}
else
{
{
sneu = s * Shade / 100;
tmpR.setHsv(h, sneu, v);
}
}
tmpR.rgb(&h, &s, &v);
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0);
}
}
else
{
{
tmpC.applyGCR();
tmpC.getCMYK(&h, &s, &v, &k);
h = h * Shade / 100;
1980,22 → 1975,23
s = s * Shade / 100;
v = v * Shade / 100;
k = k * Shade / 100;
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0)+" "+FToStr(k / 255.0);
}
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0)+" "+
FToStr(k / 255.0);
}
}
else
{
{
#endif
tmpC.applyGCR();
tmpC.getCMYK(&h, &s, &v, &k);
h = h * Shade / 100;
s = s * Shade / 100;
v = v * Shade / 100;
k = k * Shade / 100;
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0)+" "+FToStr(k / 255.0);
tmpC.applyGCR();
tmpC.getCMYK(&h, &s, &v, &k);
h = h * Shade / 100;
s = s * Shade / 100;
v = v * Shade / 100;
k = k * Shade / 100;
tmp = FToStr(h / 255.0)+" "+FToStr(s / 255.0)+" "+FToStr(v / 255.0)+" "+FToStr(k / 255.0);
}
#ifdef HAVE_CMS
}
}
#endif
return tmp;
}
2006,21 → 2002,21
QString tmp = "";
FPoint np;
if (ite->PoLine.size() > 3)
{
for (uint poi=0; poi<ite->PoLine.size()-3; poi += 4)
{
for (uint poi=0; poi<ite->PoLine.size()-3; poi += 4)
if (ite->PoLine.point(poi).x() > 900000)
{
if (ite->PoLine.point(poi).x() > 900000)
{
tmp += "h\n";
nPath = true;
continue;
}
}
if (nPath)
{
{
np = ite->PoLine.point(poi);
tmp += FToStr(np.x())+" "+FToStr(-np.y())+" m\n";
nPath = false;
}
}
np = ite->PoLine.point(poi+1);
tmp += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = ite->PoLine.point(poi+3);
2027,8 → 2023,8
tmp += FToStr(np.x())+" "+FToStr(-np.y())+" ";
np = ite->PoLine.point(poi+2);
tmp += FToStr(np.x())+" "+FToStr(-np.y())+" c\n";
}
}
}
return tmp;
}
 
2064,7 → 2060,7
PutDoc("/ColorSpace /DeviceRGB\n");
else
#ifdef HAVE_CMS
{
{
if ((CMSuse) && (Options->UseProfiles))
PutDoc("/ColorSpace "+ICCProfiles[Options->SolidProf].ICCArray+"\n");
else
2071,10 → 2067,10
#endif
PutDoc("/ColorSpace /DeviceCMYK\n");
#ifdef HAVE_CMS
}
}
#endif
switch (b->GrType)
{
{
case 1:
PutDoc("/Coords [0 "+FToStr(h / 2.0)+" "+FToStr(w)+" "+FToStr(h / 2.0)+"]\n");
break;
2088,41 → 2084,39
PutDoc("/Coords ["+FToStr(w)+" 0 0 "+FToStr(h)+"]\n");
break;
case 5:
PutDoc("/Coords ["+FToStr(w2)+" "+FToStr(h2)+" 0 "+FToStr(w2)+" "+FToStr(h2)+" "+FToStr(rad)+"]\n");
PutDoc("/Coords ["+FToStr(w2)+" "+FToStr(h2)+" 0 "+FToStr(w2)+" "+FToStr(h2)+
" "+FToStr(rad)+"]\n");
break;
}
}
PutDoc("/BBox [0 "+FToStr(h)+" "+FToStr(w)+" 0]\n");
PutDoc("/Background ["+SetFarbe(b->Pcolor, b->Shade)+"]\n");
PutDoc(b->GrType == 5 ? "/Extend [true true]\n" : "/Extend [false false]\n");
PutDoc("/Function\n<<\n/FunctionType 2\n/Domain [0 1]\n");
if (b->GrType == 5)
{
PutDoc("/C0 ["+SetFarbe(b->GrColor, b->GrShade)+"]\n");
PutDoc("/C1 ["+SetFarbe(b->GrColor2, b->GrShade2)+"]\n");
}
else
{
PutDoc("/C0 ["+SetFarbe(b->GrColor2, b->GrShade2)+"]\n");
PutDoc("/C1 ["+SetFarbe(b->GrColor, b->GrShade)+"]\n");
}
bool t = b->GrType == 5 ? true : false;
PutDoc("/C0 [" +
SetFarbe((t == true ? b->GrColor : b->GrColor2), (t == true ? b->GrShade : b->GrShade2)) +
"]\n");
PutDoc("/C1 [" +
SetFarbe((t == true ? b->GrColor2 : b->GrColor), (t == true ? b->GrShade2 : b->GrShade)) +
"]\n");
PutDoc("/N 1\n>>\n>>\nendobj\n");
PutPage("q\n");
PutPage(SetClipPath(b));
PutPage(b->Segments.count() != 0 ? "h\nW* n\n" : "h\nW n\n");
if (b->GrType == 5)
{
{
QString sca = FToStr(w2 / rad)+" 0 0 "+FToStr(fabs(h2) / rad)+" ";
if (w > fabs(h))
sca += "-"+FToStr(w2*(w2 / rad)-w2)+" 0";
else
{
{
if (w < fabs(h))
sca += "0 "+FToStr(fabs(h2)*(fabs(h2) /rad)-fabs(h2));
else
sca += "0 0";
}
}
PutPage(sca+" cm\n");
}
}
PutPage("/"+ShName+" sh\nQ\n");
}
 
2137,59 → 2131,31
QImage img;
QImage img2;
QMap<int, QString> ind2PDFabr;
ind2PDFabr[0] = "/Cour";
ind2PDFabr[1] = "/CoBo";
ind2PDFabr[2] = "/CoOb";
ind2PDFabr[3] = "/CoBO";
ind2PDFabr[4] = "/Helv";
ind2PDFabr[5] = "/HeBo";
ind2PDFabr[6] = "/HeOb";
ind2PDFabr[7] = "/HeBO";
ind2PDFabr[8] = "/TiRo";
ind2PDFabr[9] = "/TiBo";
ind2PDFabr[10] = "/TiIt";
ind2PDFabr[11] = "/TiBI";
ind2PDFabr[12] = "/ZaDb";
ind2PDFabr[13] = "/Symb";
char *tmp[] = {"/Cour", "/CoBo", "/CoOb", "/CoBO", "/Helv", "/HeBo", "/HeOb", "/HeBO",
"/TiRo", "/TiBo", "/TiIt", "/TiBI", "/ZaDb", "/Symb"};
size_t ar = sizeof(tmp) / sizeof(*tmp);
for (uint a = 0; a < ar; ++a)
ind2PDFabr[a] = tmp[a];
double x = ite->Xpos;
double y = doc->PageH - ite->Ypos;
double x2 = ite->Xpos+ite->Width;
double y2 = doc->PageH-ite->Ypos-ite->Height;
for (uint d = 0; d < ite->Ptext.count(); ++d)
{
{
cc = ite->Ptext.at(d)->ch;
if ((cc == "(") || (cc == ")") || (cc == "\\"))
bm += "\\";
bm += cc;
}
}
QStringList bmst = QStringList::split("\r", bm);
switch (ite->AnChkStil)
{
case 0:
ct = "4";
break;
case 1:
ct = "5";
break;
case 2:
ct = "F";
break;
case 3:
ct = "l";
break;
case 4:
ct = "H";
break;
case 5:
ct = "n";
break;
}
char *m[] = {"4", "5", "F", "l", "H", "n"};
ct = m[ite->AnChkStil];
StartObj(ObjCounter);
Seite.AObjects.append(ObjCounter);
ObjCounter++;
PutDoc("<<\n/Type /Annot\n");
switch (ite->AnType)
{
{
case 0:
case 10:
PutDoc("/Subtype /Text\n");
2199,7 → 2165,7
case 11:
PutDoc("/Subtype /Link\n");
if (ite->AnActType == 2)
{
{
PutDoc("/Dest /"+NDnam+IToStr(NDnum)+"\n");
de.Name = NDnam+IToStr(NDnum);
de.Seite = ite->AnZiel;
2206,14 → 2172,16
de.Act = ite->AnAction;
NamedDest.append(de);
NDnum++;
}
}
if (ite->AnActType == 7)
{
PutDoc("/A << /Type /Action /S /GoToR\n/F "+EncString("("+Path2Relative(ite->An_Extern)+")",ObjCounter-1)+"\n");
{
PutDoc("/A << /Type /Action /S /GoToR\n/F "+
EncString("("+Path2Relative(ite->An_Extern)+")",ObjCounter-1)+"\n");
PutDoc("/D ["+IToStr(ite->AnZiel)+" /XYZ "+ite->AnAction+"]\n>>\n");
}
}
if (ite->AnActType == 8)
PutDoc("/A << /Type /Action /S /URI\n/URI "+EncString("("+ite->An_Extern+")",ObjCounter-1)+"\n>>\n");
PutDoc("/A << /Type /Action /S /URI\n/URI "+
EncString("("+ite->An_Extern+")",ObjCounter-1)+"\n>>\n");
break;
case 2:
case 3:
2226,57 → 2194,28
if (ite->AnToolTip != "")
PutDoc("/TU "+EncString("("+PDFEncode(ite->AnToolTip)+")",ObjCounter-1)+"\n");
PutDoc("/F ");
switch (ite->AnVis)
{
case 0:
PutDoc("4");
break;
case 1:
PutDoc("2");
break;
case 2:
PutDoc("0");
break;
case 3:
PutDoc("32");
break;
}
char *mm[] = {"4", "2", "0", "32"};
PutDoc(mm[ite->AnVis]);
PutDoc("\n");
PutDoc("/BS << /Type /Border /W ");
PutDoc(ite->AnBColor != "None" ? IToStr(ite->AnBwid) : QString("0"));
PutDoc(" /S /");
switch (ite->AnBsty)
{
case 0:
PutDoc("S");
break;
case 1:
PutDoc("D");
break;
case 2:
PutDoc("U");
break;
case 3:
PutDoc("B");
break;
case 4:
PutDoc("I");
break;
}
char *x[] = {"S", "D", "U", "B", "I"};
PutDoc(x[ite->AnBsty]);
PutDoc(" >>\n");
cnx = "("+ind2PDFabr[ite->AnFont]+" "+FToStr(ite->ISize / 10.0)+" Tf";
if (Options->UseRGB)
{
{
if (ite->Pcolor2 != "None")
cnx += " "+SetFarbe(ite->Pcolor2, ite->Shade2)+" rg\n";
if (ite->Pcolor != "None")
cnx += " "+SetFarbe(ite->Pcolor, ite->Shade)+" RG\n";
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
{
cnx += " /"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
cnx += " /"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
if (ite->Pcolor != "None")
2283,7 → 2222,7
cnx += SetFarbe(ite->Pcolor, ite->Shade)+" SCN\n";
if (ite->Pcolor2 != "None")
cnx += SetFarbe(ite->Pcolor2, ite->Shade2)+" scn\n";
}
}
else
{
#endif
2291,9 → 2230,9
cnx += " "+SetFarbe(ite->Pcolor2, ite->Shade2)+" k";
if (ite->Pcolor != "None")
cnx += " "+SetFarbe(ite->Pcolor, ite->Shade)+" K";
}
}
#ifdef HAVE_CMS
}
}
#endif
cnx += ")";
PutDoc("/DA "+EncString(cnx,ObjCounter-1)+"\n");
2301,26 → 2240,13
if (Options->Version == 13)
flg = flg & 522247;
PutDoc("/Ff "+IToStr(flg)+"\n");
char *xs[] = {"N", "I", "O", "P"};
switch (ite->AnType)
{
{
case 2:
PutDoc("/FT /Btn\n");
PutDoc("/H /");
switch (ite->AnFeed)
{
case 0:
PutDoc("N");
break;
case 1:
PutDoc("I");
break;
case 2:
PutDoc("O");
break;
case 3:
PutDoc("P");
break;
}
PutDoc(xs[ite->AnFeed]);
PutDoc("\n");
PutDoc("/Q 0\n");
break;
2335,7 → 2261,8
break;
case 4:
PutDoc("/FT /Btn\n");
PutDoc(ite->AnIsChk ? "/V /On\n/DV /On\n/AS /On\n" : "/V /Off\n/DV /Off\n/AS /Off\n");
PutDoc(ite->AnIsChk ? "/V /On\n/DV /On\n/AS /On\n" :
"/V /Off\n/DV /Off\n/AS /Off\n");
PutDoc("/AP << /N << /On "+IToStr(ObjCounter)+" 0 R >> >>\n");
break;
case 5:
2355,65 → 2282,54
PutDoc("]\n");
PutDoc("/AP << /N "+IToStr(ObjCounter)+" 0 R >>\n");
break;
}
}
PutDoc("/MK << ");
if ((ite->AnType == 5) || (ite->AnType == 6))
{
{
PutDoc("/BG [ 1 1 1 ] ");
if (ite->AnBColor != "None")
PutDoc("/BC [ "+SetFarbe(ite->AnBColor, 100)+" ] ");
}
else
{
}
else
{
if (ite->Pcolor != "None")
PutDoc("/BG [ "+SetFarbe(ite->Pcolor, ite->Shade)+" ] ");
if (ite->AnBColor != "None")
PutDoc("/BC [ "+SetFarbe(ite->AnBColor, 100)+" ] ");
}
}
switch (ite->AnType)
{
{
case 2:
PutDoc("/CA "+EncString("("+bm+")",ObjCounter-1)+" ");
if (ite->AnRollOver != "")
PutDoc("/RC "+EncString("("+PDFEncode(ite->AnRollOver)+")",ObjCounter-1)+" ");
PutDoc("/RC "+
EncString("("+PDFEncode(ite->AnRollOver)+")",ObjCounter-1)+" ");
if (ite->AnDown != "")
PutDoc("/AC "+EncString("("+PDFEncode(ite->AnDown)+")",ObjCounter-1)+" ");
PutDoc("/AC "+
EncString("("+PDFEncode(ite->AnDown)+")",ObjCounter-1)+" ");
if (ite->AnUseIcons)
{
if (ite->Pfile != "")
{
if (ite->Pfile != "")
{
IconOb += ite->pixm.hasAlphaBuffer() ? 3 : 2;
IconOb += ite->pixm.hasAlphaBuffer() ? 3 : 2;
PutDoc("/I "+IToStr(ObjCounter+IconOb-1)+" 0 R ");
}
}
if (ite->Pfile2 != "")
{
{
img = LoadPict(ite->Pfile2);
IconOb += img.hasAlphaBuffer() ? 3 : 2;
PutDoc("/IX "+IToStr(ObjCounter+IconOb-1)+" 0 R ");
}
}
if (ite->Pfile3 != "")
{
{
img2 = LoadPict(ite->Pfile3);
IconOb = img2.hasAlphaBuffer() ? 3 : 2;
PutDoc("/RI "+IToStr(ObjCounter+IconOb-1)+" 0 R ");
}
}
PutDoc("/TP "+IToStr(ite->AnIPlace)+" ");
PutDoc("/IF << /SW /");
switch (ite->AnScaleW)
{
case 0:
PutDoc("A");
break;
case 1:
PutDoc("S");
break;
case 2:
PutDoc("B");
break;
case 3:
PutDoc("N");
break;
}
char *x[] = {"A", "S", "B", "N"};
PutDoc(x[ite->AnScaleW]);
PutDoc(" /S /");
PutDoc(ite->LocalScX != ite->LocalScY ? "A" : "P");
PutDoc(" /A [ ");
2427,7 → 2343,7
else
PutDoc("0");
PutDoc(" ] >> ");
}
}
break;
case 6:
case 5:
2436,56 → 2352,63
case 4:
PutDoc("/CA "+EncString("("+ct+")",ObjCounter-1)+" ");
break;
}
}
if (ite->Rot != 0)
PutDoc("/R "+IToStr((abs(static_cast<int>(ite->Rot)) / 90)*90)+" ");
PutDoc(">>\n");
if ((ite->AnActType != 0) || (ite->AnAAact))
{
if (ite->AnActType == 7)
{
if (ite->AnActType == 7)
{
PutDoc("/A << /Type /Action /S /GoToR\n/F "+EncString("("+Path2Relative(ite->An_Extern)+")",ObjCounter-1)+"\n");
PutDoc("/A << /Type /Action /S /GoToR\n/F "+
EncString("("+Path2Relative(ite->An_Extern)+")",ObjCounter-1)+
"\n");
PutDoc("/D ["+IToStr(ite->AnZiel)+" /XYZ "+ite->AnAction+"]\n>>\n");
}
}
if (ite->AnActType == 5)
PutDoc("/A << /Type /Action /S /ImportData\n/F "+EncString("("+ite->AnAction+")",ObjCounter-1)+" >>\n");
PutDoc("/A << /Type /Action /S /ImportData\n/F "+
EncString("("+ite->AnAction+")",ObjCounter-1)+" >>\n");
if (ite->AnActType == 4)
PutDoc("/A << /Type /Action /S /ResetForm >>\n");
if (ite->AnActType == 3)
{
PutDoc("/A << /Type /Action /S /SubmitForm\n/F << /FS /URL /F "+EncString("("+ite->AnAction+")",ObjCounter-1)+" >>\n");
{
PutDoc("/A << /Type /Action /S /SubmitForm\n/F << /FS /URL /F "+
EncString("("+ite->AnAction+")",ObjCounter-1)+" >>\n");
if (ite->AnHTML)
PutDoc("/Flags 4");
PutDoc(">>\n");
}
}
if (ite->AnActType == 1)
{
if (ite->AnAction != "")
{
if (ite->AnAction != "")
{
PutDoc("/A << /Type /Action /S /JavaScript /JS ");
PutDoc(ite->AnType > 2 ? IToStr(ObjCounter+1+IconOb) : IToStr(ObjCounter+IconOb));
PutDoc(ite->AnType > 2 ? IToStr(ObjCounter+1+IconOb) :
IToStr(ObjCounter+IconOb));
PutDoc(" 0 R >>\n");
}
}
}
if (ite->AnAAact)
{
if (ite->AnAction != "")
{
if (ite->AnAction != "")
{
PutDoc("/A << /Type /Action /S /JavaScript /JS ");
PutDoc(ite->AnType > 2 ? IToStr(ObjCounter+1+IconOb) : IToStr(ObjCounter+IconOb));
PutDoc(ite->AnType > 2 ? IToStr(ObjCounter+1+IconOb) :
IToStr(ObjCounter+IconOb));
PutDoc(" 0 R >>\n");
}
}
PutDoc("/AA ");
if (ite->AnType > 2)
PutDoc(ite->AnAction != "" ? IToStr(ObjCounter+2+IconOb) : IToStr(ObjCounter+1+IconOb));
int x = ite->AnType > 2 ? 2 : 1;
if (x == 2)
PutDoc(IToStr(ObjCounter + x + IconOb));
else
PutDoc(ite->AnAction != "" ? IToStr(ObjCounter+1+IconOb) : IToStr(ObjCounter));
PutDoc(IToStr(x == 1 ? ObjCounter + 1 + IconOb : ObjCounter));
PutDoc(" 0 R\n");
if (ite->An_C_act != "")
CalcFields.append(ObjCounter-1+IconOb);
}
}
if (ite->AnActType == 2)
{
{
PutDoc("/A << /Type /Action /S /GoTo /D /"+NDnam+IToStr(NDnum)+" >>\n");
de.Name = NDnam+IToStr(NDnum);
de.Seite = ite->AnZiel;
2492,14 → 2415,14
de.Act = ite->AnAction;
NamedDest.append(de);
NDnum++;
}
}
}
break;
}
if ((ite->AnType < 2) || (ite->AnType > 9))
PutDoc("/Border [ 0 0 0 ]\n");
switch (((abs(static_cast<int>(ite->Rot)) / 90)*90))
{
{
case 0:
break;
case 90:
2520,165 → 2443,168
x2 = ite->Xpos;
y = doc->PageH - ite->Ypos;
break;
}
}
PutDoc("/Rect [ "+FToStr(x)+" "+FToStr(y2)+" "+FToStr(x2)+" "+FToStr(y)+" ]\n");
PutDoc(">>\nendobj\n");
if ((ite->AnType == 2) && (ite->AnUseIcons))
{
if (ite->Pfile != "")
{
if (ite->Pfile != "")
{
PDF_Image(ite->InvPict, ite->Pfile, ite->LocalScX, ite->LocalScY, ite->LocalX, -ite->LocalY, true);
PDF_Image(ite->InvPict, ite->Pfile, ite->LocalScX, ite->LocalScY, ite->LocalX,
-ite->LocalY, true);
cc = IToStr(ite->pixm.width())+" 0 0 "+IToStr(ite->pixm.height())+" 0 0 cm\n";
cc += "/"+ResNam+IToStr(ResCount-1)+" Do";
PDF_xForm(ite->pixm.width(), ite->pixm.height(), cc);
}
}
if (ite->Pfile2 != "")
{
PDF_Image(ite->InvPict, ite->Pfile2, ite->LocalScX, ite->LocalScY, ite->LocalX, -ite->LocalY, true);
{
PDF_Image(ite->InvPict, ite->Pfile2, ite->LocalScX, ite->LocalScY, ite->LocalX,
-ite->LocalY, true);
cc = IToStr(img.width())+" 0 0 "+IToStr(img.height())+" 0 0 cm\n";
cc += "/"+ResNam+IToStr(ResCount-1)+" Do";
PDF_xForm(img.width(), img.height(), cc);
}
}
if (ite->Pfile3 != "")
{
PDF_Image(ite->InvPict, ite->Pfile3, ite->LocalScX, ite->LocalScY, ite->LocalX, -ite->LocalY, true);
{
PDF_Image(ite->InvPict, ite->Pfile3, ite->LocalScX, ite->LocalScY, ite->LocalX,
-ite->LocalY, true);
cc = IToStr(img2.width())+" 0 0 "+IToStr(img2.height())+" 0 0 cm\n";
cc += "/"+ResNam+IToStr(ResCount-1)+" Do";
PDF_xForm(img2.width(), img2.height(), cc);
}
}
}
if (ite->AnType == 3)
{
{
cc = "";
if (Options->UseRGB)
{
{
if (ite->Pcolor != "None")
cc += SetFarbe(ite->Pcolor, ite->Shade)+" RG\n";
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
if (ite->Pcolor != "None")
{
if (ite->Pcolor != "None")
{
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
cc += SetFarbe(ite->Pcolor, ite->Shade)+" SCN\n";
}
}
}
else
{
#endif
if (ite->Pcolor != "None")
cc += SetFarbe(ite->Pcolor, ite->Shade)+" K\n";
}
}
#ifdef HAVE_CMS
}
}
#endif
cc += FToStr(x)+" "+FToStr(y2)+" "+FToStr(x2-x)+" "+FToStr(y-y2)+" re\nf\n";
cc += "/Tx BMC\nBT\n";
if (Options->UseRGB)
{
{
if (ite->Pcolor2 != "None")
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" rg\n";
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
if (ite->Pcolor2 != "None")
{
if (ite->Pcolor2 != "None")
{
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" scn\n";
}
}
}
else
{
#endif
if (ite->Pcolor2 != "None")
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" k\n";
}
}
#ifdef HAVE_CMS
}
}
#endif
cc += ind2PDFabr[ite->AnFont];
cc += " "+FToStr(ite->ISize / 10.0)+" Tf\n";
cc += "1 0 0 1 0 0 Tm\n0 0 Td\n"+EncString("("+bm+")",ObjCounter-1)+" Tj\nET\nEMC";
PDF_Form(cc);
}
}
if (ite->AnType == 4)
{
{
cc = "q\nBT\n";
if (Options->UseRGB)
{
{
if (ite->Pcolor2 != "None")
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" rg\n";
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
if (ite->Pcolor2 != "None")
{
if (ite->Pcolor2 != "None")
{
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" scn\n";
}
}
}
else
{
#endif
if (ite->Pcolor2 != "None")
cc += SetFarbe(ite->Pcolor2, ite->Shade2)+" k\n";
}
}
#ifdef HAVE_CMS
}
}
#endif
cc += "/ZaDb "+FToStr(ite->ISize / 10.0)+" Tf\n";
cc += "0 0 Td\n("+ct+") Tj\nET\nQ";
PDF_Form(cc);
}
}
if ((ite->AnType == 5) || (ite->AnType == 6))
{
{
cc = "";
cc += "1 g\n";
cc += "0 0 "+FToStr(x2-x)+" "+FToStr(y-y2)+" re\nf\n";
cc += IToStr(ite->AnBwid)+" w\n";
if (Options->UseRGB)
{
{
if (ite->AnBColor != "None")
cc += SetFarbe(ite->AnBColor, 100)+" RG\n";
else
cc += "0 G\n";
}
}
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles))
{
if (ite->AnBColor != "None")
{
if (ite->AnBColor != "None")
{
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" cs\n";
cc += " /"+ICCProfiles[Options->SolidProf].ResName+" CS\n";
cc += SetFarbe(ite->AnBColor, 100)+" SCN\n";
}
}
else
cc += "0 G\n";
}
}
else
{
#endif
if (ite->AnBColor != "None")
cc += SetFarbe(ite->AnBColor, 100)+" K\n";
else
cc += "0 G\n";
if (ite->AnBColor != "None")
cc += SetFarbe(ite->AnBColor, 100)+" K\n";
else
cc += "0 G\n";
}
#ifdef HAVE_CMS
}
}
#endif
cc += "0 0 "+FToStr(x2-x)+" "+FToStr(y-y2)+" re\nS\n";
cc += "/Tx BMC\nq\nBT\n";
2690,62 → 2616,66
cc += EncString("("+bmst[0]+")",ObjCounter-1);
cc += " Tj\nET\nQ\nEMC";
PDF_xForm(ite->Width, ite->Height, cc);
}
}
if ((ite->AnType > 1) && ((ite->AnActType == 1) || (ite->AnAAact)) && (ite->AnAction != ""))
WritePDFStream(&ite->AnAction);
if ((ite->AnType > 1) && (ite->AnAAact))
{
{
StartObj(ObjCounter);
ObjCounter++;
PutDoc("<<\n");
if (ite->An_E_act != "")
{
{
PutDoc("/E << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_X_act != "")
{
{
PutDoc("/X << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_D_act != "")
{
{
PutDoc("/D << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_Fo_act != "")
{
{
PutDoc("/Fo << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_Bl_act != "")
{
{
PutDoc("/Bl << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
AAcoun++;
}
}
if ((ite->AnType == 3) || (ite->AnType == 5) || (ite->AnType == 6))
{
if (ite->An_K_act != "")
{
if (ite->An_K_act != "")
{
PutDoc("/K << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
PutDoc("/K << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+
" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_F_act != "")
{
PutDoc("/F << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
{
PutDoc("/F << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+
" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_V_act != "")
{
PutDoc("/V << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
{
PutDoc("/V << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+
" 0 R >>\n");
AAcoun++;
}
}
if (ite->An_C_act != "")
{
PutDoc("/C << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+" 0 R >>\n");
{
PutDoc("/C << /Type /Action /S /JavaScript /JS "+IToStr(ObjCounter+AAcoun)+
" 0 R >>\n");
AAcoun++;
}
}
}
PutDoc(">>\nendobj\n");
if (ite->An_E_act != "")
WritePDFStream(&ite->An_E_act);
2758,7 → 2688,7
if (ite->An_Bl_act != "")
WritePDFStream(&ite->An_Bl_act);
if ((ite->AnType == 3) || (ite->AnType == 5) || (ite->AnType == 6))
{
{
if (ite->An_K_act != "")
WritePDFStream(&ite->An_K_act);
if (ite->An_F_act != "")
2767,8 → 2697,8
WritePDFStream(&ite->An_V_act);
if (ite->An_C_act != "")
WritePDFStream(&ite->An_C_act);
}
}
}
}
 
void PDFlib::WritePDFStream(QString *cc)
2792,21 → 2722,21
PutDoc("/BBox [ 0 0 "+FToStr(w)+" "+FToStr(h)+" ]\n");
PutDoc("/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n");
if (Seite.XObjects.count() != 0)
{
{
PutDoc("/XObject <<\n");
QMap<QString,int>::Iterator it;
for (it = Seite.XObjects.begin(); it != Seite.XObjects.end(); ++it)
PutDoc("/"+it.key()+" "+IToStr(it.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Seite.FObjects.count() != 0)
{
{
PutDoc("/Font << \n");
QMap<QString,int>::Iterator it2;
for (it2 = Seite.FObjects.begin(); it2 != Seite.FObjects.end(); ++it2)
PutDoc("/"+it2.key()+" "+IToStr(it2.data())+" 0 R\n");
PutDoc(">>\n");
}
}
PutDoc(">>\n");
PutDoc("/Length "+IToStr(im.length())+"\n");
PutDoc(">>\nstream\n"+EncStream(&im, ObjCounter-1)+"\nendstream\nendobj\n");
2820,13 → 2750,13
PutDoc("<<\n");
PutDoc("/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n");
if (Seite.FObjects.count() != 0)
{
{
PutDoc("/Font << \n");
QMap<QString,int>::Iterator it2;
for (it2 = Seite.FObjects.begin(); it2 != Seite.FObjects.end(); ++it2)
PutDoc("/"+it2.key()+" "+IToStr(it2.data())+" 0 R\n");
PutDoc(">>\n");
}
}
PutDoc(">>\n");
PutDoc("/Length "+IToStr(im.length())+"\n");
PutDoc(">>\nstream\n"+EncStream(&im, ObjCounter-1)+"\nendstream\nendobj\n");
2852,9 → 2782,9
double aufl = Options->Resolution / 72.0;
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles2))
{
if (!ICCProfiles.contains(Profil))
{
if (!ICCProfiles.contains(Profil))
{
StartObj(ObjCounter);
ObjCounter++;
QString dataP = "";
2861,40 → 2791,41
struct ICCD dataD;
if ((Embedded) && (!Options->EmbeddedI))
#ifdef HAVE_TIFF
{
if (ext == "tif")
{
if (ext == "tif")
{
DWORD EmbedLen = 0;
LPBYTE EmbedBuffer;
DWORD EmbedLen = 0;
LPBYTE EmbedBuffer;
TIFF* tif = TIFFOpen(fn, "r");
if(tif)
{
if (TIFFGetField(tif, TIFFTAG_ICCPROFILE, &EmbedLen, &EmbedBuffer))
{
if (TIFFGetField(tif, TIFFTAG_ICCPROFILE, &EmbedLen, &EmbedBuffer))
{
for (uint el = 0; el < EmbedLen; ++el)
dataP += EmbedBuffer[el];
}
}
else
loadText(InputProfiles[Options->ImageProf], &dataP);
}
}
else
loadText(InputProfiles[Options->ImageProf], &dataP);
TIFFClose(tif);
}
}
else
loadText(InputProfiles[Options->ImageProf], &dataP);
}
}
#else
loadText(InputProfiles[Options->ImageProf], &dataP);
loadText(InputProfiles[Options->ImageProf], &dataP);
#endif
else
loadText((Embedded ? InputProfiles[Options->ImageProf] : InputProfiles[Profil]), &dataP);
loadText((Embedded ? InputProfiles[Options->ImageProf] : InputProfiles[Profil]),
&dataP);
PutDoc("<<\n");
if ((Options->Compress) && (CompAvail))
{
{
PutDoc("/Filter /FlateDecode\n");
dataP = CompressStr(&dataP);
}
}
PutDoc("/Length "+IToStr(dataP.length()+1)+"\n");
PutDoc("/N 3\n");
PutDoc(">>\nstream\n"+EncStream(&dataP, ObjCounter-1)+"\nendstream\nendobj\n");
2907,59 → 2838,60
PutDoc("endobj\n");
ResCount++;
ObjCounter++;
}
}
}
#endif
if ((ext == "eps") || (ext == "pdf"))
{
QString tmpFile = QString(getenv("HOME"))+"/.scribus/sc.png";
if (Options->RecalcPic)
{
QString tmpFile = QString(getenv("HOME"))+"/.scribus/sc.png";
if (Options->RecalcPic)
{
afl = QMIN(Options->PicRes, Options->Resolution);
aufl = afl / 72.0;
}
}
else
afl = Options->Resolution;
if (ext == "pdf")
{
cmd1 = "gs -q -dNOPAUSE -sDEVICE=png16m -r"+IToStr(afl)+" -sOutputFile="+tmpFile+" -dFirstPage=1 -dLastPage=1 ";
{
cmd1 = "gs -q -dNOPAUSE -sDEVICE=png16m -r"+IToStr(afl)+" -sOutputFile="+tmpFile+
" -dFirstPage=1 -dLastPage=1 ";
cmd2 = " -c showpage -c quit";
ret = system(cmd1 + "\"" + fn + "\"" + cmd2);
if (ret == 0)
{
{
QImage image;
image.load(tmpFile);
img = image.convertDepth(32);
img = image.convertDepth(32);
system("rm -f "+tmpFile);
}
}
}
else
{
{
QFile f(fn);
if (f.open(IO_ReadOnly))
{
{
QTextStream ts(&f);
while (!ts.atEnd())
{
{
tc = ' ';
tmp = "";
while ((tc != '\n') && (tc != '\r'))
{
{
ts >> tc;
if ((tc != '\n') && (tc != '\r'))
tmp += tc;
}
}
if (tmp.startsWith("%%BoundingBox"))
{
{
found = true;
BBox = tmp;
}
}
if (tmp.startsWith("%%EndComments"))
break;
}
}
f.close();
if (found)
{
{
QTextStream ts2(&BBox, IO_ReadOnly);
ts2 >> dummy >> x2 >> y2 >> b >> h;
x2 = x2 * aufl;
2966,31 → 2898,34
y2 = y2 * aufl;
b = b * aufl;
h = h * aufl;
cmd1 = "gs -q -dNOPAUSE -sDEVICE=png16m -r"+IToStr(afl)+" -sOutputFile="+tmpFile+" -g";
cmd1 = "gs -q -dNOPAUSE -sDEVICE=png16m -r"+IToStr(afl)+
" -sOutputFile="+tmpFile+" -g";
cmd2 = " -c showpage -c quit";
ret = system(cmd1 + tmp.setNum(qRound(b)) + "x" + tmpy.setNum(qRound(h)) + " \"" + fn + "\"" + cmd2);
ret = system(cmd1 + tmp.setNum(qRound(b)) + "x" + tmpy.setNum(qRound(h)) +
" \"" + fn + "\"" + cmd2);
if (ret == 0)
{
{
QImage image;
image.load(tmpFile);
image = image.convertDepth(32);
img = image.copy(static_cast<int>(x2), 0, static_cast<int>(b-x2), static_cast<int>(h-y2));
image = image.convertDepth(32);
img = image.copy(static_cast<int>(x2), 0, static_cast<int>(b-x2),
static_cast<int>(h-y2));
system("rm -f "+tmpFile);
}
}
}
}
}
if (Options->RecalcPic)
{
{
sxn = sx * (1.0 / aufl);
syn = sy * (1.0 / aufl);
}
}
}
else
{
{
img = LoadPict(fn);
if (Options->RecalcPic)
{
{
double afl = QMIN(Options->PicRes, Options->Resolution);
a2 = (72.0 / sx) / afl;
a1 = (72.0 / sy) / afl;
3000,15 → 2935,15
img = img.convertDepth(32);
sxn = sx * a2;
syn = sy * a1;
}
}
aufl = 1;
}
}
if (inver)
img.invertPixels();
if (Options->UseRGB)
im = ImageToTxt(&img);
else
{
{
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles2))
im = ImageToTxt(&img);
3015,14 → 2950,14
else
#endif
im = ImageToCMYK(&img);
}
}
if (!Options->RecalcPic)
{
{
sxn = sx * (1.0 / aufl);
syn = sy * (1.0 / aufl);
}
if (img.hasAlphaBuffer())
{
}
if (img.hasAlphaBuffer())
{
QImage iMask = img.createAlphaMask();
QString im2 = MaskToTxt(&iMask);
StartObj(ObjCounter);
3039,7 → 2974,7
PutDoc(">>\nstream\n"+EncStream(&im2, ObjCounter-1)+"\nendstream\nendobj\n");
Seite.XObjects[ResNam+IToStr(ResCount)] = ObjCounter-1;
ResCount++;
}
}
StartObj(ObjCounter);
ObjCounter++;
if ((Options->Compress) && (CompAvail))
3049,49 → 2984,37
PutDoc("/Height "+IToStr(img.height())+"\n");
#ifdef HAVE_CMS
if ((CMSuse) && (Options->UseProfiles2))
{
{
PutDoc("/ColorSpace "+ICCProfiles[Profil].ICCArray+"\n");
PutDoc("/Intent /");
int inte2 = Intent;
if (Options->EmbeddedI)
inte2 = Options->Intent2;
switch (inte2)
{
case 0:
PutDoc("Perceptual");
break;
case 1:
PutDoc("RelativeColorimetric");
break;
case 2:
PutDoc("Saturation");
break;
case 3:
PutDoc("AbsoluteColorimetric");
break;
}
char *t[] = {"Perceptual", "RelativeColorimetric", "Saturation", "AbsoluteColorimetric"};
PutDoc(t[inte2]);
PutDoc("\n");
}
}
else
{
{
#endif
PutDoc(Options->UseRGB ? "/ColorSpace /DeviceRGB\n" : "/ColorSpace /DeviceCMYK\n");
PutDoc(Options->UseRGB ? "/ColorSpace /DeviceRGB\n" : "/ColorSpace /DeviceCMYK\n");
#ifdef HAVE_CMS
}
}
#endif
PutDoc("/BitsPerComponent 8\n");
PutDoc("/Length "+IToStr(im.length())+"\n");
if (img.hasAlphaBuffer())
PutDoc("/Mask "+IToStr(ObjCounter-2)+" 0 R\n");
if (img.hasAlphaBuffer())
PutDoc("/Mask "+IToStr(ObjCounter-2)+" 0 R\n");
if ((Options->Compress) && (CompAvail))
PutDoc("/Filter /FlateDecode\n");
PutDoc(">>\nstream\n"+EncStream(&im, ObjCounter-1)+"\nendstream\nendobj\n");
Seite.XObjects[ResNam+IToStr(ResCount)] = ObjCounter-1;
if (!fromAN)
{
Inhalt += FToStr(img.width()*sxn)+" 0 0 "+FToStr(img.height()*syn)+" "+FToStr(x*sx)+" "+FToStr((-img.height()*syn+y*sy))+" cm\n";
{
Inhalt += FToStr(img.width()*sxn)+" 0 0 "+FToStr(img.height()*syn)+" "+FToStr(x*sx)+
" "+FToStr((-img.height()*syn+y*sy))+" cm\n";
Inhalt += "/"+ResNam+IToStr(ResCount)+" Do\n";
}
}
ResCount++;
}
 
3108,7 → 3031,7
Inha.clear();
int Bmc = 0;
if ((Bvie->childCount() != 0) && (Options->Bookmarks))
{
{
Basis = ObjCounter - 1;
Outlines.Count = Bvie->childCount();
ip = (BookMItem*)Bvie->firstChild();
3115,18 → 3038,18
pp = Bvie->firstChild();
Outlines.First = ip->ItemNr+Basis;
while (pp)
{
if (!pp->nextSibling())
{
if (!pp->nextSibling())
{
ip = (BookMItem*)pp;
Outlines.Last = ip->ItemNr+Basis;
break;
}
}
pp = pp->nextSibling();
}
}
QListViewItemIterator it(Bvie);
for ( ; it.current(); ++it)
{
{
ip = (BookMItem*)it.current();
Inhal = "";
Bmc++;
3150,57 → 3073,57
Inhal += "/Dest ["+IToStr(PageTree.Kids[ip->Seite])+" 0 R "+ip->Action+"\n";
Inhal += ">>\nendobj\n";
Inha[ip->ItemNr] = Inhal;
}
}
for (int b = 1; b < Bmc+1; ++b)
{
{
XRef.append(Dokument);
PutDoc(Inha[b]);
ObjCounter++;
}
}
}
StartObj(ObjCounter);
ResO = ObjCounter;
PutDoc("<< /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n");
if (Seite.XObjects.count() != 0)
{
{
PutDoc("/XObject <<\n");
QMap<QString,int>::Iterator it;
for (it = Seite.XObjects.begin(); it != Seite.XObjects.end(); ++it)
PutDoc("/"+it.key()+" "+IToStr(it.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Seite.FObjects.count() != 0)
{
{
PutDoc("/Font << \n");
QMap<QString,int>::Iterator it2;
for (it2 = Seite.FObjects.begin(); it2 != Seite.FObjects.end(); ++it2)
PutDoc("/"+it2.key()+" "+IToStr(it2.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Shadings.count() != 0)
{
{
PutDoc("/Shading << \n");
QMap<QString,int>::Iterator it3;
for (it3 = Shadings.begin(); it3 != Shadings.end(); ++it3)
PutDoc("/"+it3.key()+" "+IToStr(it3.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (Transpar.count() != 0)
{
{
PutDoc("/ExtGState << \n");
QMap<QString,int>::Iterator it3t;
for (it3t = Transpar.begin(); it3t != Transpar.end(); ++it3t)
PutDoc("/"+it3t.key()+" "+IToStr(it3t.data())+" 0 R\n");
PutDoc(">>\n");
}
}
if (ICCProfiles.count() != 0)
{
{
PutDoc("/ColorSpace << \n");
QMap<QString,ICCD>::Iterator it3c;
for (it3c = ICCProfiles.begin(); it3c != ICCProfiles.end(); ++it3c)
PutDoc("/"+it3c.data().ResName+" "+IToStr(it3c.data().ResNum)+" 0 R\n");
PutDoc(">>\n");
}
}
PutDoc(">>\nendobj\n");
ObjCounter++;
XRef[2] = Dokument;
3207,10 → 3130,10
PutDoc("3 0 obj\n<<\n/Type /Outlines\n");
PutDoc("/Count "+IToStr(Outlines.Count)+"\n");
if ((Bvie->childCount() != 0) && (Options->Bookmarks))
{
{
PutDoc("/First "+IToStr(Outlines.First)+" 0 R\n");
PutDoc("/Last "+IToStr(Outlines.Last)+" 0 R\n");
}
}
PutDoc(">>\nendobj\n");
XRef[3] = Dokument;
PutDoc("4 0 obj\n<<\n/Type /Pages\n/Kids [");
3223,33 → 3146,34
XRef[4] = Dokument;
PutDoc("5 0 obj\n<<\n");
if (NamedDest.count() != 0)
{
{
QValueList<Dest>::Iterator vt;
for (vt = NamedDest.begin(); vt != NamedDest.end(); ++vt)
{
{
if ((*vt).Seite < static_cast<int>(PageTree.Kids.count()))
PutDoc("/"+(*vt).Name+" ["+IToStr(PageTree.Kids[(*vt).Seite])+" 0 R /XYZ "+(*vt).Act+"]\n");
}
PutDoc("/"+(*vt).Name+" ["+IToStr(PageTree.Kids[(*vt).Seite])+
" 0 R /XYZ "+(*vt).Act+"]\n");
}
}
PutDoc(">>\nendobj\n");
XRef[5] = Dokument;
PutDoc("6 0 obj\n<< /Fields [ ");
if (Seite.FormObjects.count() != 0)
{
{
for (uint fo = 0; fo < Seite.FormObjects.count(); ++fo)
PutDoc(IToStr(Seite.FormObjects[fo])+" 0 R ");
}
}
PutDoc(" ]\n");
if (CalcFields.count() != 0)
{
{
PutDoc("/CO [ ");
for (uint foc = 0; foc < CalcFields.count(); ++foc)
PutDoc(IToStr(CalcFields[foc])+" 0 R ");
PutDoc(" ]\n");
}
}
PutDoc("/NeedAppearances true\n/DR "+IToStr(ResO)+" 0 R\n>>\nendobj\n");
if (doc->JavaScripts.count() != 0)
{
{
int Fjav0 = ObjCounter;
QMap<QString,QString>::Iterator itja0;
for (itja0 = doc->JavaScripts.begin(); itja0 != doc->JavaScripts.end(); ++itja0)
3257,24 → 3181,24
int Fjav = ObjCounter;
QMap<QString,QString>::Iterator itja;
for (itja = doc->JavaScripts.begin(); itja != doc->JavaScripts.end(); ++itja)
{
{
StartObj(ObjCounter);
ObjCounter++;
PutDoc("<< /S /JavaScript /JS "+IToStr(Fjav0)+" 0 R >>\n");
PutDoc("endobj\n");
Fjav0++;
}
}
StartObj(ObjCounter);
ObjCounter++;
PutDoc("<< /Names [ ");
QMap<QString,QString>::Iterator itja2;
for (itja2 = doc->JavaScripts.begin(); itja2 != doc->JavaScripts.end(); ++itja2)
{
{
PutDoc(EncString("("+itja2.key()+")", 6)+" "+IToStr(Fjav)+" 0 R ");
Fjav++;
}
}
PutDoc("] >>\nendobj\n");
}
}
XRef[6] = Dokument;
PutDoc("7 0 obj\n<< ");
if (doc->JavaScripts.count() != 0)
3281,15 → 3205,16
PutDoc("/JavaScript "+IToStr(ObjCounter-1)+" 0 R");
PutDoc(" >>\nendobj\n");
if (Options->Articles)
{
{
Threads.clear();
for (uint pgs = 0; pgs < view->Pages.count(); ++pgs)
{
for (uint ele = 0; ele < view->Pages.at(pgs)->Items.count(); ++ele)
{
for (uint ele = 0; ele < view->Pages.at(pgs)->Items.count(); ++ele)
PageItem* tel = view->Pages.at(pgs)->Items.at(ele);
if ((tel->PType == 4) && (tel->BackBox == 0) && (tel->NextBox != 0) &&
(!tel->Redrawn))
{
PageItem* tel = view->Pages.at(pgs)->Items.at(ele);
if ((tel->PType == 4) && (tel->BackBox == 0) && (tel->NextBox != 0) && (!tel->Redrawn))
{
StartObj(ObjCounter);
Threads.append(ObjCounter);
ObjCounter++;
3302,26 → 3227,32
int ccb = ObjCounter;
bd.Parent = ObjCounter-1;
while (tel->NextBox != 0)
{
{
bd.Next = ccb + 1;
bd.Prev = ccb - 1;
ccb++;
bd.Page = PageTree.Kids[pgs];
bd.Recht = QRect(static_cast<int>(tel->Xpos), static_cast<int>(doc->PageH - tel->Ypos), static_cast<int>(tel->Width), static_cast<int>(tel->Height));
bd.Recht = QRect(static_cast<int>(tel->Xpos),
static_cast<int>(doc->PageH - tel->Ypos),
static_cast<int>(tel->Width),
static_cast<int>(tel->Height));
tel->Redrawn = true;
tel = tel->NextBox;
Beads.append(bd);
}
}
bd.Next = ccb + 1;
bd.Prev = ccb - 1;
bd.Page = PageTree.Kids[pgs];
bd.Recht = QRect(static_cast<int>(tel->Xpos), static_cast<int>(doc->PageH - tel->Ypos), static_cast<int>(tel->Width), static_cast<int>(tel->Height));
bd.Recht = QRect(static_cast<int>(tel->Xpos),
static_cast<int>(doc->PageH - tel->Ypos),
static_cast<int>(tel->Width),
static_cast<int>(tel->Height));
tel->Redrawn = true;
Beads.append(bd);
Beads[0].Prev = fir + Beads.count()-1;
Beads[Beads.count()-1].Next = fir;
for (uint beac = 0; beac < Beads.count(); ++beac)
{
{
StartObj(ObjCounter);
ObjCounter++;
PutDoc("<< /Type /Bead\n");
3329,26 → 3260,27
PutDoc(" /N "+IToStr(Beads[beac].Next)+" 0 R\n");
PutDoc(" /V "+IToStr(Beads[beac].Prev)+" 0 R\n");
PutDoc(" /P "+IToStr(Beads[beac].Page)+" 0 R\n");
PutDoc(" /R [ "+IToStr(Beads[beac].Recht.x())+" "+IToStr(Beads[beac].Recht.y())+" ");
PutDoc(" /R [ "+IToStr(Beads[beac].Recht.x())+" "+
IToStr(Beads[beac].Recht.y())+" ");
PutDoc(IToStr(Beads[beac].Recht.bottomRight().x())+" "+IToStr(Beads[beac].Recht.y()-Beads[beac].Recht.height())+" ]\n");
PutDoc(">>\nendobj\n");
}
}
}
}
}
for (uint pgs = 0; pgs < view->Pages.count(); ++pgs)
{
{
for (uint ele = 0; ele < view->Pages.at(pgs)->Items.count(); ++ele)
view->Pages.at(pgs)->Items.at(ele)->Redrawn = false;
}
}
XRef[7] = Dokument;
PutDoc("8 0 obj\n[");
for (uint th = 0; th < Threads.count(); ++th)
PutDoc(IToStr(Threads[th])+" 0 R ");
PutDoc("]\nendobj\n");
}
}
if (Options->Version == 12)
{
{
StartObj(ObjCounter);
ObjCounter++;
QString dataP;
3355,23 → 3287,17
loadText(PrintPr, &dataP);
PutDoc("<<\n");
if ((Options->Compress) && (CompAvail))
{
{
PutDoc("/Filter /FlateDecode\n");
dataP = CompressStr(&dataP);
}
}
PutDoc("/Length "+IToStr(dataP.length()+1)+"\n");
PutDoc("/N "+IToStr(Components)+"\n");
PutDoc(">>\nstream\n"+dataP+"\nendstream\nendobj\n");
if (Options->Articles)
{
XRef[8] = Dokument;
PutDoc("9 0 obj\n");
}
else
{
XRef[7] = Dokument;
PutDoc("8 0 obj\n");
}
int p = Options->Articles ? 8 : 7;
QString m = Options->Articles ? "9" : "8";
XRef[p] = Dokument;
PutDoc(m + " 0 obj\n");
PutDoc("<<\n/Type /OutputIntent\n/S /GTS_PDFX\n");
PutDoc("/DestOutputProfile "+IToStr(ObjCounter-1)+" 0 R\n");
PutDoc("/OutputConditionIdentifier (Custom)\n");
3378,17 → 3304,17
PutDoc("/Info ("+PDFEncode(Options->Info)+")\n");
PutDoc("/OutputCondition ("+PDFEncode(Name)+")\n");
PutDoc(">>\nendobj\n");
}
}
StX = Dokument;
PutDoc("xref\n");
PutDoc("0 "+IToStr(ObjCounter)+"\n");
PutDoc("0000000000 65535 f \n");
for (uint a = 0; a < XRef.count(); ++a)
{
{
tmp.sprintf("%10d", XRef[a]);
tmp.replace(QRegExp(" "), "0");
PutDoc(tmp+" 00000 n \n");
}
}
PutDoc("trailer\n<<\n/Size "+IToStr(XRef.count()+1)+"\n");
QString IDs ="";
for (uint cl = 0; cl < 16; ++cl)
/trunk/Scribus/scribus/libpdf/pdflib.h
44,9 → 44,10
void PDF_TemplatePage(Page* pag);
void PDF_ProcessPage(Page* pag, uint PNr);
void PDF_End_Doc(QString PrintPr = "", QString Name = "", int Components = 0);
struct GlNamInd { uint Code;
QString Name;
};
struct GlNamInd {
uint Code;
QString Name;
};
typedef QMap<uint, GlNamInd> GListeInd;
QMap<QString, GListeInd> GlyphsIdxOfFont;
76,45 → 77,52
void PDF_xForm(double w, double h, QString im);
void PDF_Image(bool inver, QString fn, double sx, double sy, double x, double y, bool fromAN = false, QString Profil = "", bool Embedded = false, int Intent = 1);
QString Inhalt;
ScribusDoc* doc;
ScribusView* view;
Page* ActPageP;
PDFOpt* Options;
BookMView* Bvie;
ScribusDoc* doc;
ScribusView* view;
Page* ActPageP;
PDFOpt* Options;
BookMView* Bvie;
QFile Spool;
int Dokument;
struct Dest { QString Name;
int Seite;
QString Act;
};
struct Cata { int Outlines;
int PageTree;
int Dest;
} Catalog;
struct PagT { QValueList<int> Kids;
int Count;
} PageTree;
struct PagL { int ObjNum;
int Thumb;
QMap<QString,int> XObjects;
QMap<QString,int> FObjects;
QValueList<int> AObjects;
QValueList<int> FormObjects;
} Seite;
struct OutL { int First;
int Last;
int Count;
} Outlines;
struct Bead { int Parent;
int Next;
int Prev;
int Page;
QRect Recht;
};
struct ICCD { int ResNum;
QString ResName;
QString ICCArray;
};
struct Dest {
QString Name;
int Seite;
QString Act;
};
struct Cata {
int Outlines;
int PageTree;
int Dest;
} Catalog;
struct PagT {
QValueList<int> Kids;
int Count;
} PageTree;
struct PagL {
int ObjNum;
int Thumb;
QMap<QString,int> XObjects;
QMap<QString,int> FObjects;
QValueList<int> AObjects;
QValueList<int> FormObjects;
} Seite;
struct OutL {
int First;
int Last;
int Count;
} Outlines;
struct Bead {
int Parent;
int Next;
int Prev;
int Page;
QRect Recht;
};
struct ICCD {
int ResNum;
QString ResName;
QString ICCArray;
};
QValueList<uint> XRef;
QValueList<Dest> NamedDest;
QValueList<int> Threads;
/trunk/Scribus/scribus/scribus.h
72,11 → 72,12
Q_OBJECT
public:
/** construtor */
ScribusApp(SplashScreen *splash);
/** constructor */
ScribusApp();
/** destructor */
~ScribusApp() {};
/** init methods */
void initGui();
/** initMenuBar creates the menu_bar and inserts the menuitems */
void initMenuBar();
/** setup the statusbar */
160,6 → 161,8
QString LoadEnc;
bool singleClose;
bool ScriptRunning;
Autoforms* SCustom;
WerkToolB* WerkTools;
 
public slots:
void slotStoryEditor();
401,6 → 404,10
void TextScale(int);
 
private:
/** the splash screen */
SplashScreen * splash;
/** init methods */
void initScribus();
 
/** file_menu contains all items of the menubar entry "File" */
QPopupMenu *fileMenu;
423,7 → 430,6
QPopupMenu *ShadeMenu;
/** ShapeMenu enthaelt die Rahmenformen */
QPopupMenu *ShapeMenu;
Autoforms* SCustom;
/** FontMenu enthaelt die Fonts */
QPopupMenu *FontMenu;
FontCombo* FontSub;
432,7 → 438,6
QPopupMenu *recentMenu;
QPopupMenu *hymen;
QToolBar *WerkTools2;
WerkToolB* WerkTools;
WerkToolBP* WerkToolsP;
QToolButton* DatOpe;
QToolButton* DatSav;
/trunk/Scribus/scribus/colorm.h
23,32 → 23,34
 
class Farbmanager : public QDialog
{
Q_OBJECT
Q_OBJECT
 
public:
Farbmanager( QWidget* parent, CListe doco, bool HDoc, QString DcolSet, QStringList Cust );
~Farbmanager() {};
CListe EditColors;
QMap<QString,QString> Ersatzliste;
QToolButton* LoadColSet;
Farbmanager( QWidget* parent, CListe doco, bool HDoc, QString DcolSet, QStringList Cust );
~Farbmanager() {};
CListe EditColors;
CListe UsedC;
QMap<QString,QString> Ersatzliste;
QToolButton* LoadColSet;
QStringList CColSet;
 
private:
QListBox* ListBox1;
QGroupBox* ColorsGroup;
QGroupBox* ColsSetGroup;
QPushButton* LoadF;
QPushButton* NewF;
QPushButton* EditF;
QPushButton* DupF;
QPushButton* DelF;
QPushButton* SaveF;
QPushButton* CancF;
QLabel* textLabel1;
QPushButton* SaveColSet;
QListBox* ListBox1;
QGroupBox* ColorsGroup;
QGroupBox* ColsSetGroup;
QPushButton* LoadF;
QPushButton* NewF;
QPushButton* EditF;
QPushButton* DupF;
QPushButton* DelF;
QPushButton* DelU;
QPushButton* SaveF;
QPushButton* CancF;
QLabel* textLabel1;
QPushButton* SaveColSet;
QPopupMenu* CSets;
QString sFarbe;
QColor tmpFarbe;
QString sFarbe;
QColor tmpFarbe;
QStringList DontChange;
bool HaveDoc;
 
56,20 → 58,22
void saveDefaults();
void loadDefaults(int id);
void loadFarben();
void delFarbe();
void duplFarbe();
void neueFarbe();
void editFarbe();
void selFarbe(QListBoxItem*);
void updateCList();
void delFarbe();
void delUnused();
void duplFarbe();
void neueFarbe();
void editFarbe();
void selFarbe(QListBoxItem*);
void updateCList();
 
protected:
QVBoxLayout* Layout2;
QHBoxLayout* layout5;
QHBoxLayout* layout4;
QVBoxLayout* layout3;
QVBoxLayout* ColsSetGroupLayout;
QVBoxLayout* Layout1;
QVBoxLayout* Layout2;
QHBoxLayout* layout5;
QHBoxLayout* layout4;
QVBoxLayout* layout3;
QVBoxLayout* layout7;
QVBoxLayout* ColsSetGroupLayout;
QVBoxLayout* Layout1;
};
 
#endif // FARBMANAGER_H
/trunk/Scribus/scribus/main.cpp
23,7 → 23,6
#include <qdir.h>
#include <qtextcodec.h>
#include <cstdlib>
#include "splash.h"
#include "scribus.h"
 
#if (_MSC_VER >= 1200)
39,11 → 38,11
{
QString pfad = PREL;
pfad += "/lib/scribus/";
QApplication a(argc, argv);
QApplication app(argc, argv);
QString Arg1, lang;
lang = "";
if (argc > 1)
Arg1 = QString(a.argv()[1]);
Arg1 = QString(app.argv()[1]);
QTranslator tor( 0 );
if (argc > 1)
{
53,7 → 52,7
{
lang = QString(argv[2]);
tor.load( QString(pfad+"scribus.") + QString(argv[2]), "." );
a.installTranslator( &tor );
app.installTranslator( &tor );
}
}
else
63,7 → 62,7
else
tor.load( QString(pfad+"scribus.") + QString(QTextCodec::locale()).left(2), "." );
lang = QString(QTextCodec::locale()).left(2);
a.installTranslator( &tor );
app.installTranslator( &tor );
}
}
else
73,7 → 72,7
tor.load( QString(pfad+"scribus.") + "en_GB", "." );
else
tor.load( QString(pfad+"scribus.") + QString(QTextCodec::locale()).left(2), "." );
a.installTranslator( &tor );
app.installTranslator( &tor );
}
pfad = PREL;
pfad += "/lib/scribus/plugins/";
92,7 → 91,7
{
QTranslator *tox = new QTranslator(0);
tox->load(QString(pfad+d[dc]), ".");
a.installTranslator(tox);
app.installTranslator(tox);
}
}
}
102,7 → 101,7
if (Arg1 == "--version")
{
cout << "Scribus Version " << VERSION << endl;
// a.unlock();
// app.unlock();
return 0;
}
if (Arg1 == "--help")
117,12 → 116,12
cout << "scribus \"String\" -> Interprets \"String\" as Filename" << endl;
cout << " for a Document and tries to open it." << endl;
cout << endl;
// a.unlock();
// app.unlock();
return 0;
}
if ((Arg1 != "--lang") && (Arg1 != "--help") && (Arg1 != "--version") && (Arg1 != "--nosplash"))
{
QFileInfo fi = QFileInfo(QFile::decodeName(a.argv()[1]));
QFileInfo fi = QFileInfo(QFile::decodeName(app.argv()[1]));
if (!fi.exists())
{
cout << "File does not exist, aborting." << endl;
134,25 → 133,21
cout << "scribus \"String\" -> Interprets \"String\" as Filename" << endl;
cout << " for a Document and tries to open it." << endl;
cout << endl;
// a.unlock();
// app.unlock();
return 0;
}
}
}
SplashScreen *splash = new SplashScreen();
splash->setStatus( QObject::tr("Initializing...") );
a.processEvents();
ScribusApp *scribus = new ScribusApp(splash);
app.processEvents();
ScribusApp *scribus = new ScribusApp();
scribus->initGui();
if (scribus->NoFonts)
{
delete splash;
exit(EXIT_FAILURE);
}
a.setMainWidget(scribus);
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
splash->close();
delete splash;
app.setMainWidget(scribus);
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
 
scribus->show();
scribus->ShowSubs();
159,7 → 154,7
if (argc > 1)
{
if ((Arg1 != "--lang") && (Arg1 != "--help") && (Arg1 != "--version"))
scribus->LadeDoc(QFile::decodeName(a.argv()[1]));
scribus->LadeDoc(QFile::decodeName(app.argv()[1]));
}
return a.exec();
return app.exec();
}
/trunk/Scribus/scribus/colorm.cpp
18,6 → 18,7
#include "scribusXml.h"
#include "cmykfw.h"
#include "query.h"
#include "scribus.h"
 
#if (_MSC_VER >= 1200)
#include "win-config.h"
26,11 → 27,13
#endif
 
extern QPixmap loadIcon(QString nam);
extern ScribusApp* ScApp;
 
Farbmanager::Farbmanager( QWidget* parent, CListe doco, bool HDoc, QString DcolSet, QStringList Cust )
: QDialog( parent, "dd", true, 0 )
{
setName( "Farbmanager" );
DontChange.clear();
DontChange += "White";
DontChange += "Black";
DontChange += "Cyan";
38,22 → 41,22
DontChange += "Yellow";
HaveDoc = HDoc;
CColSet = Cust;
setSizePolicy(QSizePolicy((QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1,
sizePolicy().hasHeightForWidth() ) );
setSizeGripEnabled(true);
setCaption( tr( "Colors" ) );
setIcon(loadIcon("AppIcon.png"));
Layout2 = new QVBoxLayout( this );
Layout2->setSpacing( 6 );
Layout2->setMargin( 11 );
setSizePolicy(QSizePolicy((QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1,
sizePolicy().hasHeightForWidth() ) );
setSizeGripEnabled(true);
setCaption( tr( "Colors" ) );
setIcon(loadIcon("AppIcon.png"));
Layout2 = new QVBoxLayout( this );
Layout2->setSpacing( 6 );
Layout2->setMargin( 11 );
 
layout5 = new QHBoxLayout( 0, 0, 6, "layout5");
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3,
ListBox1->sizePolicy().hasHeightForWidth() ) );
ListBox1->setMinimumSize( QSize( 164, 228 ) );
ListBox1->setColumnMode( QListBox::FixedNumber );
layout5->addWidget( ListBox1 );
layout5 = new QHBoxLayout( 0, 0, 6, "layout5");
ListBox1 = new QListBox( this, "ListBox1" );
ListBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3,
ListBox1->sizePolicy().hasHeightForWidth() ) );
ListBox1->setMinimumSize( QSize( 164, 228 ) );
ListBox1->setColumnMode( QListBox::FixedNumber );
layout5->addWidget( ListBox1 );
 
ColorsGroup = new QGroupBox( this, "ColorsGroup" );
ColorsGroup->setTitle( tr( "Colors" ) );
63,42 → 66,47
Layout1 = new QVBoxLayout( ColorsGroup->layout() );
Layout1->setAlignment( Qt::AlignTop );
LoadF = new QPushButton( ColorsGroup, "LoadF" );
LoadF->setText( tr( "Append" ) );
Layout1->addWidget( LoadF );
NewF = new QPushButton( ColorsGroup, "NewF" );
NewF->setText( tr( "New" ) );
Layout1->addWidget( NewF );
EditF = new QPushButton( ColorsGroup, "EditF" );
EditF->setEnabled( false );
EditF->setText( tr( "Edit" ) );
EditF->setDefault( true );
Layout1->addWidget( EditF );
DupF = new QPushButton( ColorsGroup, "DupF" );
DupF->setEnabled( false );
DupF->setText( tr( "Duplicate" ) );
Layout1->addWidget( DupF );
DelF = new QPushButton( ColorsGroup, "DelF" );
DelF->setEnabled( false );
DelF->setText( tr( "Delete" ) );
Layout1->addWidget( DelF );
layout5->addWidget( ColorsGroup );
Layout2->addLayout( layout5 );
LoadF->setText( tr( "Append" ) );
Layout1->addWidget( LoadF );
NewF = new QPushButton( ColorsGroup, "NewF" );
NewF->setText( tr( "New" ) );
Layout1->addWidget( NewF );
EditF = new QPushButton( ColorsGroup, "EditF" );
EditF->setEnabled( false );
EditF->setText( tr( "Edit" ) );
EditF->setDefault( true );
Layout1->addWidget( EditF );
DupF = new QPushButton( ColorsGroup, "DupF" );
DupF->setEnabled( false );
DupF->setText( tr( "Duplicate" ) );
Layout1->addWidget( DupF );
DelF = new QPushButton( ColorsGroup, "DelF" );
DelF->setEnabled( false );
DelF->setText( tr( "Delete" ) );
Layout1->addWidget( DelF );
layout5->addWidget( ColorsGroup );
Layout2->addLayout( layout5 );
 
layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
 
layout3 = new QVBoxLayout( 0, 0, 6, "layout3");
SaveF = new QPushButton( this, "SaveF" );
SaveF->setText( tr( "Save" ) );
layout3->addWidget( SaveF );
CancF = new QPushButton( this, "CancF" );
CancF->setText( tr( "Cancel" ) );
CancF->setDefault( true );
layout3->addWidget( CancF );
layout4->addLayout( layout3 );
layout3 = new QVBoxLayout( 0, 0, 6, "layout3");
SaveF = new QPushButton( this, "SaveF" );
SaveF->setText( tr( "Save" ) );
layout3->addWidget( SaveF );
CancF = new QPushButton( this, "CancF" );
CancF->setText( tr( "Cancel" ) );
CancF->setDefault( true );
layout3->addWidget( CancF );
layout4->addLayout( layout3 );
if (HaveDoc)
{
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
layout4->addItem( spacer );
layout7 = new QVBoxLayout( 0, 0, 6, "layout3");
DelU = new QPushButton( this, "DelU" );
DelU->setText( tr( "Remove Unused" ) );
layout7->addWidget( DelU );
QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
layout7->addItem( spacer );
layout4->addLayout( layout7 );
}
else
{
134,22 → 142,24
}
Layout2->addLayout( layout4 );
Ersatzliste.clear();
EditColors = doco;
updateCList();
// signals and slots connections
EditColors = doco;
updateCList();
// signals and slots connections
if (!HaveDoc)
{
connect(CSets, SIGNAL(activated(int)), this, SLOT(loadDefaults(int)));
connect(SaveColSet, SIGNAL( clicked() ), this, SLOT( saveDefaults() ) );
connect(SaveColSet, SIGNAL( clicked() ), this, SLOT( saveDefaults() ) );
}
connect( SaveF, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( CancF, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( NewF, SIGNAL( clicked() ), this, SLOT( neueFarbe() ) );
connect( EditF, SIGNAL( clicked() ), this, SLOT( editFarbe() ) );
connect( DupF, SIGNAL( clicked() ), this, SLOT( duplFarbe() ) );
connect( DelF, SIGNAL( clicked() ), this, SLOT( delFarbe() ) );
connect( LoadF, SIGNAL( clicked() ), this, SLOT( loadFarben() ) );
connect( ListBox1, SIGNAL( highlighted(QListBoxItem*) ), this, SLOT( selFarbe(QListBoxItem*) ) );
else
connect(DelU, SIGNAL( clicked() ), this, SLOT( delUnused() ) );
connect( SaveF, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( CancF, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( NewF, SIGNAL( clicked() ), this, SLOT( neueFarbe() ) );
connect( EditF, SIGNAL( clicked() ), this, SLOT( editFarbe() ) );
connect( DupF, SIGNAL( clicked() ), this, SLOT( duplFarbe() ) );
connect( DelF, SIGNAL( clicked() ), this, SLOT( delFarbe() ) );
connect( LoadF, SIGNAL( clicked() ), this, SLOT( loadFarben() ) );
connect( ListBox1, SIGNAL( highlighted(QListBoxItem*) ), this, SLOT( selFarbe(QListBoxItem*) ) );
}
 
void Farbmanager::saveDefaults()
246,6 → 256,7
EditColors.insert(Cname, tmp);
}
fiC.close();
DontChange.clear();
}
else
{
299,13 → 310,108
DelColor *dia = new DelColor(this, EditColors, sFarbe, HaveDoc);
if (dia->exec())
{
Ersatzliste.insert(sFarbe, dia->EFarbe);
EditColors.remove(sFarbe);
updateCList();
}
Ersatzliste.insert(sFarbe, dia->EFarbe);
EditColors.remove(sFarbe);
updateCList();
}
delete dia;
}
 
void Farbmanager::delUnused()
{
PageItem* ite;
bool found;
UsedC.clear();
CListe::Iterator it;
for (it = EditColors.begin(); it != EditColors.end(); ++it)
{
found = false;
if (DontChange.contains(it.key()))
{
UsedC.insert(it.key(), it.data());
continue;
}
for (uint b = 0; b < ScApp->view->MasterPages.count(); ++b)
{
for (uint c = 0; c < ScApp->view->MasterPages.at(b)->Items.count(); ++c)
{
ite = ScApp->view->MasterPages.at(b)->Items.at(c);
if ((ite->PType == 4) || (ite->PType == 8))
{
for (uint d=0; d<ite->Ptext.count(); ++d)
{
if (it.key() == ite->Ptext.at(d)->ccolor)
found = true;
if (it.key() == ite->Ptext.at(d)->cstroke)
found = true;
if (found)
break;
}
}
if (it.key() == ite->Pcolor)
found = true;
if (it.key() == ite->Pcolor2)
found = true;
if (it.key() == ite->GrColor)
found = true;
if (it.key() == ite->GrColor2)
found = true;
if (found)
break;
}
if (found)
break;
}
if (found)
{
UsedC.insert(it.key(), it.data());
continue;
}
for (uint b = 0; b < ScApp->view->DocPages.count(); ++b)
{
for (uint c = 0; c < ScApp->view->DocPages.at(b)->Items.count(); ++c)
{
ite = ScApp->view->DocPages.at(b)->Items.at(c);
if ((ite->PType == 4) || (ite->PType == 8))
{
for (uint d=0; d<ite->Ptext.count(); ++d)
{
if (it.key() == ite->Ptext.at(d)->ccolor)
found = true;
if (it.key() == ite->Ptext.at(d)->cstroke)
found = true;
if (found)
break;
}
}
if (it.key() == ite->Pcolor)
found = true;
if (it.key() == ite->Pcolor2)
found = true;
if (it.key() == ite->GrColor)
found = true;
if (it.key() == ite->GrColor2)
found = true;
if (found)
break;
}
if (found)
break;
}
if (it.key() == ScApp->doc->CurrTextFill)
found = true;
if (it.key() == ScApp->doc->CurrTextStroke)
found = true;
if (found)
{
UsedC.insert(it.key(), it.data());
continue;
}
}
EditColors = UsedC;
updateCList();
}
 
void Farbmanager::duplFarbe()
{
QString nam;
/trunk/Scribus/scribus/po/scribus.uk.po
File deleted
Property changes:
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/po/scribus.uk.ts
===================================================================
--- trunk/Scribus/scribus/po/scribus.uk.ts (nonexistent)
+++ trunk/Scribus/scribus/po/scribus.uk.ts (revision 188)
@@ -0,0 +1,8115 @@
+<!DOCTYPE TS><TS>
+<context>
+ <name>@default</name>
+ <message>
+ <source>OK</source>
+ <translation>Гаразд</translation>
+ </message>
+ <message>
+ <source>W:</source>
+ <translation>Шир:</translation>
+ </message>
+ <message>
+ <source>Cut</source>
+ <translation>Вирізати</translation>
+ </message>
+ <message>
+ <source>New</source>
+ <translation>Новий</translation>
+ </message>
+ <message>
+ <source>Use</source>
+ <translation>Використати</translation>
+ </message>
+ <message>
+ <source>to:</source>
+ <translation>до:</translation>
+ </message>
+ <message>
+ <source>Bold</source>
+ <translation>Жирний</translation>
+ </message>
+ <message>
+ <source>Copy</source>
+ <translation>Копіювати</translation>
+ </message>
+ <message>
+ <source>Edit</source>
+ <translation>Редагування</translation>
+ </message>
+ <message>
+ <source>Face</source>
+ <translation>Гарнітура</translation>
+ </message>
+ <message>
+ <source>File</source>
+ <translation>Файл</translation>
+ </message>
+ <message>
+ <source>Font</source>
+ <translation>Шрифт</translation>
+ </message>
+ <message>
+ <source>Help</source>
+ <translation>Допомога</translation>
+ </message>
+ <message>
+ <source>Item</source>
+ <translation>Об&apos;єкт</translation>
+ </message>
+ <message>
+ <source>Line</source>
+ <translation>Лінія</translation>
+ </message>
+ <message>
+ <source>None</source>
+ <translation>Немає</translation>
+ </message>
+ <message>
+ <source>Open</source>
+ <translation>Відкрити</translation>
+ </message>
+ <message>
+ <source>Page</source>
+ <translation>Сторінка</translation>
+ </message>
+ <message>
+ <source>Quit</source>
+ <translation>Вихід</translation>
+ </message>
+ <message>
+ <source>Save</source>
+ <translation>Записати</translation>
+ </message>
+ <message>
+ <source>Size</source>
+ <translation>Розмір</translation>
+ </message>
+ <message>
+ <source>Exiting now</source>
+ <translation>Виходжу зараз</translation>
+ </message>
+ <message>
+ <source>Top:</source>
+ <translation>Верх:</translation>
+ </message>
+ <message>
+ <source>Type</source>
+ <translation>Тип</translation>
+ </message>
+ <message>
+ <source>View</source>
+ <translation>Вигляд</translation>
+ </message>
+ <message>
+ <source>Strikethru</source>
+ <translation>Перекреслення</translation>
+ </message>
+ <message>
+ <source>&amp;Font</source>
+ <translation>&amp;Шрифт</translation>
+ </message>
+ <message>
+ <source>&amp;Red:</source>
+ <translation>&amp;Червон.:</translation>
+ </message>
+ <message>
+ <source>&amp;Size</source>
+ <translation>&amp;Розмір</translation>
+ </message>
+ <message>
+ <source>Images:</source>
+ <translation>Зображення:</translation>
+ </message>
+ <message>
+ <source>Distribute/Align...</source>
+ <translation>Розташувати/Вирівняти...</translation>
+ </message>
+ <message>
+ <source>Device Settings</source>
+ <translation>Установки пристрою</translation>
+ </message>
+ <message>
+ <source>Loading aborted</source>
+ <translation>Збій загрузки</translation>
+ </message>
+ <message>
+ <source>About</source>
+ <translation>О</translation>
+ </message>
+ <message>
+ <source>Align</source>
+ <translation>Вирівняти</translation>
+ </message>
+ <message>
+ <source>Apply</source>
+ <translation>Застосувати</translation>
+ </message>
+ <message>
+ <source>Clear</source>
+ <translation>Очистити</translation>
+ </message>
+ <message>
+ <source>Close</source>
+ <translation>Закрити</translation>
+ </message>
+ <message>
+ <source>Color</source>
+ <translation>Колір</translation>
+ </message>
+ <message>
+ <source>File </source>
+ <translation>Файл </translation>
+ </message>
+ <message>
+ <source>Fonts</source>
+ <translation>Шрифти</translation>
+ </message>
+ <message>
+ <source>Frame</source>
+ <translation>Кадр</translation>
+ </message>
+ <message>
+ <source>Image</source>
+ <translation>Зображення</translation>
+ </message>
+ <message>
+ <source>Left:</source>
+ <translation>Зліва:</translation>
+ </message>
+ <message>
+ <source>Lower</source>
+ <translation>Нижче</translation>
+ </message>
+ <message>
+ <source>Print all</source>
+ <translation>Друкувати все</translation>
+ </message>
+ <message>
+ <source>Paste</source>
+ <translation>Вклеїти</translation>
+ </message>
+ <message>
+ <source>Other</source>
+ <translation>Інші</translation>
+ </message>
+ <message>
+ <source>Raise</source>
+ <translation>Вгору</translation>
+ </message>
+ <message>
+ <source>Ready</source>
+ <translation>Готовий</translation>
+ </message>
+ <message>
+ <source>Shade</source>
+ <translation>Тінь</translation>
+ </message>
+ <message>
+ <source>Shape</source>
+ <translation>Фігура</translation>
+ </message>
+ <message>
+ <source>Inside:</source>
+ <translation>Внутрі:</translation>
+ </message>
+ <message>
+ <source>instead</source>
+ <translation>замість</translation>
+ </message>
+ <message>
+ <source>Style</source>
+ <translation>Стиль</translation>
+ </message>
+ <message>
+ <source>Tools</source>
+ <translation>Інструменти</translation>
+ </message>
+ <message>
+ <source>Units</source>
+ <translation>Одиниці</translation>
+ </message>
+ <message>
+ <source>Documents (*.scd);; All Files (*)</source>
+ <translation>Документи (*.scd);; Всі файли (*)</translation>
+ </message>
+ <message>
+ <source>Snap to Guides</source>
+ <translation>Прив&apos;язка до розмітки</translation>
+ </message>
+ <message>
+ <source>Modify Textframe</source>
+ <translation>Модифікувати текстовий кадр</translation>
+ </message>
+ <message>
+ <source>Send to Back</source>
+ <translation>Послати на задній план</translation>
+ </message>
+ <message>
+ <source>Local Y-Pos:</source>
+ <translation>Локальна поз. Y:</translation>
+ </message>
+ <message>
+ <source>The following Programs are missing:</source>
+ <translation>Наступні програми відсутні:</translation>
+ </message>
+ <message>
+ <source>Major Grid Color:</source>
+ <translation>Колір основної сітки:</translation>
+ </message>
+ <message>
+ <source>Minor Grid Color:</source>
+ <translation>Колір допоміжної сітки:</translation>
+ </message>
+ <message>
+ <source>Create Textchains</source>
+ <translation>Створити текстові ланцюжки</translation>
+ </message>
+ <message>
+ <source>Local X-Pos:</source>
+ <translation>Локальна поз. X:</translation>
+ </message>
+ <message>
+ <source>Snap to Grid</source>
+ <translation>Прив&apos;язка до сітки</translation>
+ </message>
+ <message>
+ <source>Unable to create PDF-File.</source>
+ <translation>Не можу створити файл PDF.</translation>
+ </message>
+ <message>
+ <source>Automatic Text Box</source>
+ <translation>Автоматичний бокс тексту</translation>
+ </message>
+ <message>
+ <source>Path to Fontfile</source>
+ <translation>Шлях до файлів шрифтів</translation>
+ </message>
+ <message>
+ <source>&amp;Define Custom Colors &gt;&gt;</source>
+ <translation>&amp;Вибрати власні кольори &gt;&gt;</translation>
+ </message>
+ <message>
+ <source>New Document</source>
+ <translation>Новий документ</translation>
+ </message>
+ <message>
+ <source>Opens a Document</source>
+ <translation>Відкрити документ</translation>
+ </message>
+ <message>
+ <source>Horizontal</source>
+ <translation>Горизонтально</translation>
+ </message>
+ <message>
+ <source>Printing-Error</source>
+ <translation>Помилка друку</translation>
+ </message>
+ <message>
+ <source>Zooms in or out</source>
+ <translation>Збільшити або зменьшити</translation>
+ </message>
+ <message>
+ <source>Is PDF-Bookmark</source>
+ <translation>Закладка PDF</translation>
+ </message>
+ <message>
+ <source>Flip horizontal</source>
+ <translation>Перегорнути горизонтально</translation>
+ </message>
+ <message>
+ <source>Leave Anyway</source>
+ <translation>Ігнорувати</translation>
+ </message>
+ <message>
+ <source>To page:</source>
+ <translation>До сторінки:</translation>
+ </message>
+ <message>
+ <source>Error during EPS-Export</source>
+ <translation type="unfinished">Помилка під час експорту EPS файлу</translation>
+ </message>
+ <message>
+ <source>Flip vertical</source>
+ <translation>Перегорнути вертикально</translation>
+ </message>
+ <message>
+ <source>Missing Font</source>
+ <translation>Відсутній шрифт</translation>
+ </message>
+ <message>
+ <source>Hide Outline</source>
+ <translation>Сховати об&apos;єкти</translation>
+ </message>
+ <message>
+ <source>Don&apos;t change</source>
+ <translation>Не змінювати</translation>
+ </message>
+ <message>
+ <source>Sample Text</source>
+ <translation>Latin text: sample text; Українский текст: ії ґудзик є ..</translation>
+ </message>
+ <message>
+ <source>Printing aborted</source>
+ <translation>Збій друку</translation>
+ </message>
+ <message>
+ <source>Top Sides</source>
+ <translation>Верхні сторони</translation>
+ </message>
+ <message>
+ <source> saved</source>
+ <translation> записано</translation>
+ </message>
+ <message>
+ <source>Placing:</source>
+ <translation>Розміщення:</translation>
+ </message>
+ <message>
+ <source>File &amp;type:</source>
+ <translation>Тип &amp;файлу:</translation>
+ </message>
+ <message>
+ <source>File &amp;name:</source>
+ <translation>Ім&apos;я &amp;файлу:</translation>
+ </message>
+ <message>
+ <source>The Font %1 is not installed.</source>
+ <translation>Шрифт %1 не встановлен</translation>
+ </message>
+ <message>
+ <source>Scaled to </source>
+ <translation>Масштабувати до </translation>
+ </message>
+ <message>
+ <source>Grab-Radius</source>
+ <translation>Радіус захоплення об&apos;єкту</translation>
+ </message>
+ <message>
+ <source>Delete...</source>
+ <translation>Видалити...</translation>
+ </message>
+ <message>
+ <source>Small Caps</source>
+ <translation>Малі літери</translation>
+ </message>
+ <message>
+ <source>Scaling X:</source>
+ <translation>Масштабування по осі Х:</translation>
+ </message>
+ <message>
+ <source>Scaling Y:</source>
+ <translation>Масштабування по осі Y:</translation>
+ </message>
+ <message>
+ <source>Prints the current Document</source>
+ <translation>Друкувати поточний документ</translation>
+ </message>
+ <message>
+ <source>Create PDF-File</source>
+ <translation>Створити PDF файл</translation>
+ </message>
+ <message>
+ <source>Displacement</source>
+ <translation>Зсув елементів</translation>
+ </message>
+ <message>
+ <source>Multiple Duplicate</source>
+ <translation>Множинне дублювання</translation>
+ </message>
+ <message>
+ <source>Error creating PDF-File..</source>
+ <translation type="unfinished">Помилка створення файла PDF</translation>
+ </message>
+ <message>
+ <source>Insert Rectangles</source>
+ <translation>Вставити прямокутники</translation>
+ </message>
+ <message>
+ <source>Insert Ovals</source>
+ <translation>Вставити овали</translation>
+ </message>
+ <message>
+ <source>Show Outline</source>
+ <translation>Показати об&apos;єкти</translation>
+ </message>
+ <message>
+ <source>Insert Lines</source>
+ <translation>Вставити лінії</translation>
+ </message>
+ <message>
+ <source>Programming:</source>
+ <translation>Програмування:</translation>
+ </message>
+ <message>
+ <source>Insert Picture</source>
+ <translation>Вставити графіку</translation>
+ </message>
+ <message>
+ <source>Colors...</source>
+ <translation>Кольори...</translation>
+ </message>
+ <message>
+ <source>Vertical Scaling</source>
+ <translation>Вертикальне масштабування</translation>
+ </message>
+ <message>
+ <source>Thumbnails</source>
+ <translation>Мініатюрні зображення</translation>
+ </message>
+ <message>
+ <source>Resolution:</source>
+ <translation>Роздільча здатність:</translation>
+ </message>
+ <message>
+ <source>Move Page(s):</source>
+ <translation>Пересунути сторінку(и):</translation>
+ </message>
+ <message>
+ <source>Paper format</source>
+ <translation>Формат папіру</translation>
+ </message>
+ <message>
+ <source>Delete from:</source>
+ <translation>Видалити з:</translation>
+ </message>
+ <message>
+ <source>Delete Color</source>
+ <translation>Видалити колір</translation>
+ </message>
+ <message>
+ <source>Select Items</source>
+ <translation>Вибрати об&apos;єкти</translation>
+ </message>
+ <message>
+ <source>Document Setup</source>
+ <translation>Настройка опцій документу</translation>
+ </message>
+ <message>
+ <source>Select color</source>
+ <translation>Вибрати колір</translation>
+ </message>
+ <message>
+ <source>Delete Page:</source>
+ <translation>Видалити сторінку:</translation>
+ </message>
+ <message>
+ <source>Delete Pages</source>
+ <translation>Видалити сторінки</translation>
+ </message>
+ <message>
+ <source>Middles</source>
+ <translation>Середини</translation>
+ </message>
+ <message>
+ <source>Replace it with:</source>
+ <translation>Замінити це на:</translation>
+ </message>
+ <message>
+ <source>Missing</source>
+ <translation>Відсутні(й)</translation>
+ </message>
+ <message>
+ <source>Document Info...</source>
+ <translation>Інформація о документі..</translation>
+ </message>
+ <message>
+ <source>&amp;Add To Custom Colors</source>
+ <translation>&amp;Додати до власних кольорів</translation>
+ </message>
+ <message>
+ <source>Move...</source>
+ <translation>Пересунути...</translation>
+ </message>
+ <message>
+ <source>Angle:</source>
+ <translation>Кут:</translation>
+ </message>
+ <message>
+ <source>At End</source>
+ <translation>в кінці</translation>
+ </message>
+ <message>
+ <source>Append</source>
+ <translation>Додати</translation>
+ </message>
+ <message>
+ <source>Bl&amp;ue:</source>
+ <translation>Си&amp;ній:</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+ <translation>Вихід</translation>
+ </message>
+ <message>
+ <source>New Color:</source>
+ <translation>Новий колір:</translation>
+ </message>
+ <message>
+ <source>Hide Guides</source>
+ <translation>Сховати розмітку</translation>
+ </message>
+ <message>
+ <source>Colors</source>
+ <translation>Кольори</translation>
+ </message>
+ <message>
+ <source>Delete</source>
+ <translation>Видалити</translation>
+ </message>
+ <message>
+ <source>Disp.:</source>
+ <translation>Диспропорція:</translation>
+ </message>
+ <message>
+ <source>Show Guides</source>
+ <translation>Показати розмітку</translation>
+ </message>
+ <message>
+ <source>Horizontal Shift:</source>
+ <translation>Горизонтальний зсув:</translation>
+ </message>
+ <message>
+ <source>Landscape</source>
+ <translation>Горизонтальний</translation>
+ </message>
+ <message>
+ <source>Show Images</source>
+ <translation>Показати зображення</translation>
+ </message>
+ <message>
+ <source>Hide Images</source>
+ <translation>Сховати зображення</translation>
+ </message>
+ <message>
+ <source>Description:</source>
+ <translation>Опис:</translation>
+ </message>
+ <message>
+ <source>Line Color:</source>
+ <translation>Колір лінії:</translation>
+ </message>
+ <message>
+ <source>Show Colors</source>
+ <translation>Показати кольори</translation>
+ </message>
+ <message>
+ <source>Text Color:</source>
+ <translation>Колір тексту:</translation>
+ </message>
+ <message>
+ <source>Fill Color:</source>
+ <translation>Колір заповнення:</translation>
+ </message>
+ <message>
+ <source>Guides</source>
+ <translation>Розмітки</translation>
+ </message>
+ <message>
+ <source>Hide Colors</source>
+ <translation>Сховати кольори</translation>
+ </message>
+ <message>
+ <source>Edit Colors</source>
+ <translation>Редагувати кольори</translation>
+ </message>
+ <message>
+ <source>Textdistance</source>
+ <translation>Відстань у тексті</translation>
+ </message>
+ <message>
+ <source>Italic</source>
+ <translation>Курсів</translation>
+ </message>
+ <message>
+ <source>No Fill</source>
+ <translation>Без заповнення</translation>
+ </message>
+ <message>
+ <source>Font Size</source>
+ <translation>Розмір шрифту</translation>
+ </message>
+ <message>
+ <source>There are no Postscript-Fonts on your System</source>
+ <translation>Немає Postscript шрифтів у Вашій системі</translation>
+ </message>
+ <message>
+ <source>Other:</source>
+ <translation>Інші:</translation>
+ </message>
+ <message>
+ <source>Line Width:</source>
+ <translation>Ширина лінії:</translation>
+ </message>
+ <message>
+ <source>Right:</source>
+ <translation>Зправа:</translation>
+ </message>
+ <message>
+ <source>Sample</source>
+ <translation>Приклад</translation>
+ </message>
+ <message>
+ <source>Shade:</source>
+ <translation>Тінь:</translation>
+ </message>
+ <message>
+ <source>To End</source>
+ <translation>В кінець</translation>
+ </message>
+ <message>
+ <source>In the Foreground</source>
+ <translation>На передньому плані</translation>
+ </message>
+ <message>
+ <source>Look &amp;in:</source>
+ <translation>Шукати &amp;в:</translation>
+ </message>
+ <message>
+ <source>Width:</source>
+ <translation>Ширина:</translation>
+ </message>
+ <message>
+ <source>Compatibility</source>
+ <translation>Сумісність</translation>
+ </message>
+ <message>
+ <source>No Document</source>
+ <translation>Немає документу</translation>
+ </message>
+ <message>
+ <source>Right Sides</source>
+ <translation>Праві сторони</translation>
+ </message>
+ <message>
+ <source>Show Margins</source>
+ <translation>Показати межі робочої зони</translation>
+ </message>
+ <message>
+ <source>PDF-Options</source>
+ <translation>Опції PDF</translation>
+ </message>
+ <message>
+ <source>Print range</source>
+ <translation>Друкувати інтервал</translation>
+ </message>
+ <message>
+ <source>Images (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;All Files (*)</source>
+ <translation>Зображення (*.tif *.png *.jpg *.xpm);;Postscript (*.eps);;Всі файли (*)</translation>
+ </message>
+ <message>
+ <source>Columns:</source>
+ <translation>Стовпці:</translation>
+ </message>
+ <message>
+ <source>Don&apos;t print</source>
+ <translation>Не друкувати</translation>
+ </message>
+ <message>
+ <source>Edit Frame</source>
+ <translation>Редагувати кадр</translation>
+ </message>
+ <message>
+ <source>Compress Text and Vectorgraphics</source>
+ <translation>Стиснути текст та векторну графіку</translation>
+ </message>
+ <message>
+ <source>Edit Contents of Frame</source>
+ <translation>Редагувати зміст кадру</translation>
+ </message>
+ <message>
+ <source>Contents</source>
+ <translation>Зміст</translation>
+ </message>
+ <message>
+ <source>Fonts...</source>
+ <translation>Шрифти</translation>
+ </message>
+ <message>
+ <source>Left Sides</source>
+ <translation>Ліві сторони</translation>
+ </message>
+ <message>
+ <source>Font Size:</source>
+ <translation>Розмір шрифту:</translation>
+ </message>
+ <message>
+ <source>Grid Layout:</source>
+ <translation>Шар сітки:</translation>
+ </message>
+ <message>
+ <source>Open...</source>
+ <translation>Відкрити...</translation>
+ </message>
+ <message>
+ <source>Number of copies:</source>
+ <translation>Кількість копій:</translation>
+ </message>
+ <message>
+ <source>Number of Copies:</source>
+ <translation>Кількість копій:</translation>
+ </message>
+ <message>
+ <source>Options</source>
+ <translation>Опції</translation>
+ </message>
+ <message>
+ <source>Page(s)</source>
+ <translation>сторінки(ок)</translation>
+ </message>
+ <message>
+ <source>Portrait</source>
+ <translation>Вертикальний</translation>
+ </message>
+ <message>
+ <source>Contributions from:</source>
+ <translation>При співпраці з:</translation>
+ </message>
+ <message>
+ <source>Outline</source>
+ <translation>Об&apos;єкт</translation>
+ </message>
+ <message>
+ <source>Browse...</source>
+ <translation>Перегляд...</translation>
+ </message>
+ <message>
+ <source>Duplicate</source>
+ <translation>Дублювати</translation>
+ </message>
+ <message>
+ <source>Translations</source>
+ <translation>Переклад</translation>
+ </message>
+ <message>
+ <source> loaded</source>
+ <translation> завантажено</translation>
+ </message>
+ <message>
+ <source>Move Pages</source>
+ <translation>Пересунути сторінки</translation>
+ </message>
+ <message>
+ <source>Line Width</source>
+ <translation>Ширина лінії</translation>
+ </message>
+ <message>
+ <source>Hide Tools</source>
+ <translation>Сховати інструменти</translation>
+ </message>
+ <message>
+ <source>Margin Guides</source>
+ <translation>Розмітка зон документу</translation>
+ </message>
+ <message>
+ <source>Hide Margins</source>
+ <translation>Сховати межі робочої зони</translation>
+ </message>
+ <message>
+ <source>Save as...</source>
+ <translation>Записати як...</translation>
+ </message>
+ <message>
+ <source>Printer</source>
+ <translation>Принтер</translation>
+ </message>
+ <message>
+ <source>Actual Size</source>
+ <translation>Реальний розмір</translation>
+ </message>
+ <message>
+ <source>Get Picture...</source>
+ <translation>Вставити графіку ...</translation>
+ </message>
+ <message>
+ <source>Copy Here</source>
+ <translation>Копіювати тут</translation>
+ </message>
+ <message>
+ <source>Downsample Color-Images to:</source>
+ <translation>Перетворення кольорових зображень до:</translation>
+ </message>
+ <message>
+ <source>Global Fontsettings</source>
+ <translation>Глобальні установки шрифтів</translation>
+ </message>
+ <message>
+ <source>Font st&amp;yle</source>
+ <translation>&amp;Стиль шрифту</translation>
+ </message>
+ <message>
+ <source>Vertical flipped</source>
+ <translation>Вертикально перегорнутий</translation>
+ </message>
+ <message>
+ <source>Print in color if available</source>
+ <translation>Кольоровий друк якщо доступен</translation>
+ </message>
+ <message>
+ <source>locally connected</source>
+ <translation>локально підключенний</translation>
+ </message>
+ <message>
+ <source>before Page</source>
+ <translation>перед сторінкою</translation>
+ </message>
+ <message>
+ <source>Downsample Grayscale-Images to:</source>
+ <translation>Перетворення монохромних зображень до:</translation>
+ </message>
+ <message>
+ <source>CDE-Style</source>
+ <translation>Стиль CDE</translation>
+ </message>
+ <message>
+ <source>Bring to Front</source>
+ <translation>Пересунути на передній план</translation>
+ </message>
+ <message>
+ <source>Change...</source>
+ <translation>Змінити...</translation>
+ </message>
+ <message>
+ <source>The document has been changed since the last save.</source>
+ <translation>Документ був змінен після останнього запису.</translation>
+ </message>
+ <message>
+ <source>Print to file:</source>
+ <translation>Друкувати в файл:</translation>
+ </message>
+ <message>
+ <source>Print first page first</source>
+ <translation>Починати друк з першої сторінки</translation>
+ </message>
+ <message>
+ <source>Compression</source>
+ <translation>Компресія</translation>
+ </message>
+ <message>
+ <source>Ghostscript : You cannot use EPS-Images</source>
+ <translation>Ghostscript : Ви не можете використовувати EPS зображення</translation>
+ </message>
+ <message>
+ <source>Shift+Click to add Point; Ctrl+Click to delete Point</source>
+ <translation>Shift+Click щоб додати точку; Ctrl+Click щоб видалити точку</translation>
+ </message>
+ <message>
+ <source>Document Setup...</source>
+ <translation>Настройка опцій документу...</translation>
+ </message>
+ <message>
+ <source>Embed in:</source>
+ <translation>Вбудовано в:</translation>
+ </message>
+ <message>
+ <source>Save Now</source>
+ <translation>Записати зараз</translation>
+ </message>
+ <message>
+ <source>Author:</source>
+ <translation>Автор:</translation>
+ </message>
+ <message>
+ <source>Authors</source>
+ <translation>Автори</translation>
+ </message>
+ <message>
+ <source>Fit in Window</source>
+ <translation>Показати всю сторінку</translation>
+ </message>
+ <message>
+ <source>Strikeout</source>
+ <translation>Strikeout</translation>
+ </message>
+ <message>
+ <source>Print...</source>
+ <translation>Друк..</translation>
+ </message>
+ <message>
+ <source>Printer settings</source>
+ <translation>Установки принтера</translation>
+ </message>
+ <message>
+ <source>Insert Page</source>
+ <translation>Вставити сторінку</translation>
+ </message>
+ <message>
+ <source>New Color</source>
+ <translation>Новий колір</translation>
+ </message>
+ <message>
+ <source>Show Tools</source>
+ <translation>Показати інструменти</translation>
+ </message>
+ <message>
+ <source>Bottom:</source>
+ <translation>Низ:</translation>
+ </message>
+ <message>
+ <source>About Qt</source>
+ <translation>О системі QT</translation>
+ </message>
+ <message>
+ <source>Get Text/Picture...</source>
+ <translation>Вставити текст/графіку... </translation>
+ </message>
+ <message>
+ <source>Motif-Style</source>
+ <translation>Стиль Motif</translation>
+ </message>
+ <message>
+ <source>Scaling:</source>
+ <translation>Масштабування:</translation>
+ </message>
+ <message>
+ <source>Modify Pictureframe</source>
+ <translation>Модифікувати графічний кадр</translation>
+ </message>
+ <message>
+ <source>Save as</source>
+ <translation>Записати як</translation>
+ </message>
+ <message>
+ <source>Manual Kerning</source>
+ <translation>Ручна обробка</translation>
+ </message>
+ <message>
+ <source>Subscript</source>
+ <translation>Нижній індекс</translation>
+ </message>
+ <message>
+ <source>Scr&amp;ipt</source>
+ <translation>Скр&amp;іпт</translation>
+ </message>
+ <message>
+ <source>Spanish and Catalan:</source>
+ <translation>Іспанська та Каталонська:</translation>
+ </message>
+ <message>
+ <source>Superscript</source>
+ <translation>Верхній індекс</translation>
+ </message>
+ <message>
+ <source>Insert...</source>
+ <translation>Вставити..</translation>
+ </message>
+ <message>
+ <source>Inserting</source>
+ <translation>Вставка</translation>
+ </message>
+ <message>
+ <source>Rotate Item</source>
+ <translation>Повернути об&apos;єкт</translation>
+ </message>
+ <message>
+ <source>Output to File:</source>
+ <translation type="unfinished">Результат записати до файлу</translation>
+ </message>
+ <message>
+ <source>Linespacing</source>
+ <translation>Міжлінійна відстань</translation>
+ </message>
+ <message>
+ <source>Select Font</source>
+ <translation>Вибрати шрифт</translation>
+ </message>
+ <message>
+ <source>Delete Page</source>
+ <translation>Видалити сторінку</translation>
+ </message>
+ <message>
+ <source>Creates a new Document</source>
+ <translation>Створити новий документ</translation>
+ </message>
+ <message>
+ <source>Millimeters (mm)</source>
+ <translation>Міліметри (mm)</translation>
+ </message>
+ <message>
+ <source>Background Color:</source>
+ <translation>Колір фону:</translation>
+ </message>
+ <message>
+ <source>Comment</source>
+ <translation>Коментар</translation>
+ </message>
+ <message>
+ <source>Mouse-Settings</source>
+ <translation>Установки миши</translation>
+ </message>
+ <message>
+ <source>Print destination</source>
+ <translation>Друкувати розташування</translation>
+ </message>
+ <message>
+ <source>Tabloid</source>
+ <translation>Табличний</translation>
+ </message>
+ <message>
+ <source>Get Text...</source>
+ <translation>Вставити текст...</translation>
+ </message>
+ <message>
+ <source>Rectangle</source>
+ <translation>Прямокутник</translation>
+ </message>
+ <message>
+ <source>Printing...</source>
+ <translation>Друкую...</translation>
+ </message>
+ <message>
+ <source>Document </source>
+ <translation>Документ </translation>
+ </message>
+ <message>
+ <source>Underline</source>
+ <translation>Підкреслення</translation>
+ </message>
+ <message>
+ <source>&amp;Underline</source>
+ <translation>&amp;Підкреслений</translation>
+ </message>
+ <message>
+ <source>&amp;Green:</source>
+ <translation>&amp;Зелений:</translation>
+ </message>
+ <message>
+ <source>Other...</source>
+ <translation>Інші...</translation>
+ </message>
+ <message>
+ <source>Modify...</source>
+ <translation>Модифікувати ...</translation>
+ </message>
+ <message>
+ <source>Save Page as EPS...</source>
+ <translation>Записати текст як EPS...</translation>
+ </message>
+ <message>
+ <source>Points (pt)</source>
+ <translation>Точки (pt)</translation>
+ </message>
+ <message>
+ <source>Gutter Width:</source>
+ <translation>Ширина проміжку:</translation>
+ </message>
+ <message>
+ <source>Downsample Mono-Images to:</source>
+ <translation>Перетворення моно-зображень до:</translation>
+ </message>
+ <message>
+ <source>Horizontal Scaling</source>
+ <translation>Горизонтальне масштабування</translation>
+ </message>
+ <message>
+ <source>Text flows around Box</source>
+ <translation>Текст оточює навколо бокс</translation>
+ </message>
+ <message>
+ <source>Major Grid Spacing:</source>
+ <translation>Крок основної сітки</translation>
+ </message>
+ <message>
+ <source>Online-Help...</source>
+ <translation>Онлайнова допомога...</translation>
+ </message>
+ <message>
+ <source>Select all</source>
+ <translation>Виділити все</translation>
+ </message>
+ <message>
+ <source>Saves the current Document</source>
+ <translation>Записати поточний документ</translation>
+ </message>
+ <message>
+ <source>Motif-Plus-Style</source>
+ <translation>Стиль Motif-Plus</translation>
+ </message>
+ <message>
+ <source>Effects</source>
+ <translation>Ефекти</translation>
+ </message>
+ <message>
+ <source>Bottom Sides</source>
+ <translation>Нижні сторони</translation>
+ </message>
+