Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 1306 → Rev 1307

/branches/Version13x/Scribus/scribus/pdfopts.cpp
9,8 → 9,6
#include "pdfopts.h"
#include "pdfopts.moc"
 
#include <qpainter.h>
 
#include "customfdialog.h"
#include "prefsfile.h"
#include "units.h"
38,11 → 36,8
{
setCaption( tr( "Create PDF File" ) );
setIcon(loadIcon("AppIcon.png"));
FontsToEmbed.clear();
view = vie;
EffVal = Eff;
Opts = Optionen;
docUnitIndex = view->Doc->docUnitIndex;
PDFOptsLayout = new QVBoxLayout( this );
PDFOptsLayout->setSpacing( 5 );
PDFOptsLayout->setMargin( 11 );
72,724 → 67,18
FileC->setMinimumSize( QSize( 88, 24 ) );
Layout5->addWidget( FileC );
PDFOptsLayout->addLayout( Layout5 );
Options = new QTabWidget( this, "TabWidget2" );
tabGeneral = new QWidget( Options, "tabGeneral" );
tabLayout = new QVBoxLayout( tabGeneral );
tabLayout->setSpacing( 5 );
tabLayout->setMargin( 11 );
 
Layout13 = new QHBoxLayout( 0, 0, 5, "Layout13");
 
RangeGroup = new QButtonGroup( tabGeneral, "RangeGroup" );
RangeGroup->setTitle( tr( "Export Range" ) );
RangeGroup->setColumnLayout(0, Qt::Vertical );
RangeGroup->layout()->setSpacing( 5 );
RangeGroup->layout()->setMargin( 11 );
RangeGroupLayout = new QVBoxLayout( RangeGroup->layout() );
RangeGroupLayout->setAlignment( Qt::AlignTop );
AllPages = new QRadioButton( tr( "&All Pages" ), RangeGroup, "AllPages" );
AllPages->setChecked( true );
RangeGroupLayout->addWidget( AllPages );
Layout11 = new QGridLayout( 0, 1, 1, 0, 5, "Layout11");
OnlySome = new QRadioButton( tr( "C&hoose Pages" ), RangeGroup, "OnlySome" );
Layout11->addWidget( OnlySome, 0, 0 );
PageNr = new QLineEdit( RangeGroup, "PageNr" );
PageNr->setEnabled(false);
Layout11->addWidget( PageNr, 1, 0 );
RangeGroupLayout->addLayout( Layout11 );
TextLabel3 = new QLabel( tr( "&Rotation:" ), RangeGroup, "TextLabel3" );
RangeGroupLayout->addWidget( TextLabel3 );
RotateDeg = new QComboBox( true, RangeGroup, "RotateDeg" );
RotateDeg->insertItem(QString::fromUtf8("0 °"));
RotateDeg->insertItem(QString::fromUtf8("90 °"));
RotateDeg->insertItem(QString::fromUtf8("180 °"));
RotateDeg->insertItem(QString::fromUtf8("270 °"));
RotateDeg->setEditable(false);
TextLabel3->setBuddy(RotateDeg);
RotateDeg->setCurrentItem(Optionen->RotateDeg / 90);
RangeGroupLayout->addWidget( RotateDeg );
Layout11a = new QGridLayout( 0, 1, 1, 0, 5, "Layout11a");
MirrorH = new QToolButton( RangeGroup, "MirrorH" );
MirrorH->setPixmap(loadIcon("FlipH.xpm"));
MirrorH->setToggleButton( true );
MirrorH->setOn(Optionen->MirrorH);
Layout11a->addWidget( MirrorH, 0, 0 );
MirrorV = new QToolButton( RangeGroup, "MirrorH" );
MirrorV->setPixmap(loadIcon("FlipV.xpm"));
MirrorV->setToggleButton( true );
MirrorV->setOn(Optionen->MirrorV);
Layout11a->addWidget( MirrorV, 0, 1 );
RangeGroupLayout->addLayout( Layout11a );
Layout13->addWidget( RangeGroup );
 
GroupBox1 = new QGroupBox( tr( "File Options" ), tabGeneral, "GroupBox1" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 5 );
GroupBox1Layout->setMargin( 11 );
TextLabel1 = new QLabel( tr( "Compatibilit&y:" ), GroupBox1, "TextLabel1" );
TextLabel1->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel1, 0, 0 );
ComboBox1 = new QComboBox( true, GroupBox1, "ComboBox1" );
ComboBox1->insertItem("Acrobat 4.0");
ComboBox1->insertItem("Acrobat 5.0");
#ifdef HAVE_CMS
if ((CMSuse) && (CMSavail) && (!PDFXProfiles->isEmpty()))
ComboBox1->insertItem("PDF/X-3");
#endif
ComboBox1->setEditable(false);
TextLabel1->setBuddy(ComboBox1);
#ifdef HAVE_CMS
if ((CMSuse) && (CMSavail))
{
if (Optionen->Version == 12)
ComboBox1->setCurrentItem(2);
}
else
ComboBox1->setCurrentItem(0);
#endif
if (Optionen->Version == 13)
ComboBox1->setCurrentItem(0);
if (Optionen->Version == 14)
ComboBox1->setCurrentItem(1);
GroupBox1Layout->addMultiCellWidget( ComboBox1, 0, 0, 1, 2, AlignLeft );
TextLabel1x = new QLabel( tr( "&Binding:" ), GroupBox1, "TextLabel1" );
TextLabel1x->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel1x, 1, 0 );
ComboBind = new QComboBox( true, GroupBox1, "ComboBind" );
ComboBind->insertItem( tr("Left Margin"));
ComboBind->insertItem( tr("Right Margin"));
ComboBind->setEditable(false);
ComboBind->setCurrentItem(Optionen->Binding);
TextLabel1x->setBuddy(ComboBind);
GroupBox1Layout->addMultiCellWidget( ComboBind, 1, 1, 1, 2, AlignLeft );
CheckBox1 = new QCheckBox( tr( "Generate &Thumbnails" ), GroupBox1, "CheckBox1" );
CheckBox1->setChecked(Optionen->Thumbnails);
GroupBox1Layout->addMultiCellWidget( CheckBox1, 2, 2, 0, 2 );
Article = new QCheckBox( tr( "Save &Linked Text Frames as PDF Articles" ), GroupBox1, "CheckBox1" );
Article->setChecked(Optionen->Articles);
GroupBox1Layout->addMultiCellWidget( Article, 3, 3, 0, 2 );
CheckBM = new QCheckBox( tr( "&Include Bookmarks" ), GroupBox1, "E" );
CheckBM->setChecked(Optionen->Bookmarks);
GroupBox1Layout->addMultiCellWidget( CheckBM, 4, 4, 0, 2 );
Resolution = new QSpinBox( GroupBox1, "Resolution" );
Resolution->setMaxValue( 4000 );
Resolution->setMinValue( 35 );
Resolution->setValue(Optionen->Resolution);
Resolution->setSuffix( tr( " dpi" ) );
TextLabel2 = new QLabel( Resolution, tr( "&Resolution:" ), GroupBox1, "TextLabel2" );
TextLabel2->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel2, 5, 0 );
GroupBox1Layout->addWidget( Resolution, 5, 1, AlignLeft );
Layout13->addWidget( GroupBox1 );
tabLayout->addLayout( Layout13 );
Compression = new QCheckBox( tr( "Com&press Text and Vector Graphics" ), tabGeneral, "Compression" );
Compression->setChecked( Optionen->Compress );
tabLayout->addWidget( Compression );
CBox = new QGroupBox( tr( "Image Settings" ), tabGeneral, "CBox" );
CBox->setColumnLayout(0, Qt::Vertical );
CBox->layout()->setSpacing( 5 );
CBox->layout()->setMargin( 11 );
CBoxLayout = new QGridLayout( CBox->layout() );
CBoxLayout->setAlignment( Qt::AlignTop );
CMethod = new QComboBox( true, CBox, "CMethod" );
CMethod->clear();
CMethod->insertItem( tr( "Automatic" ) );
CMethod->insertItem( tr( "JPEG" ) );
CMethod->insertItem( tr( "Zip" ) );
CMethod->insertItem( tr( "None" ) );
CMethod->setEditable(false);
CMethod->setCurrentItem(Optionen->CompressMethod);
TextCom1 = new QLabel( CMethod, tr( "&Method:" ), CBox, "TextCom1" );
CBoxLayout->addWidget( TextCom1, 0, 0 ); CBoxLayout->addWidget( CMethod, 0, 1 );
TextCom2 = new QLabel( tr( "&Quality:" ), CBox, "TextCom2" );
CBoxLayout->addWidget( TextCom2, 1, 0 );
CQuality = new QComboBox( true, CBox, "CQuality" );
CQuality->clear();
CQuality->insertItem( tr( "Maximum" ) );
CQuality->insertItem( tr( "High" ) );
CQuality->insertItem( tr( "Medium" ) );
CQuality->insertItem( tr( "Low" ) );
CQuality->insertItem( tr( "Minimum" ) );
CQuality->setEditable(false);
CQuality->setCurrentItem(Optionen->Quality);
TextCom2->setBuddy(CQuality);
CBoxLayout->addWidget( CQuality, 1, 1 );
DSColor = new QCheckBox( tr( "&Downsample Images to:" ), CBox, "DSColor" );
DSColor->setChecked(Optionen->RecalcPic);
CBoxLayout->addWidget( DSColor, 2, 0 );
ValC = new QSpinBox( CBox, "ValC" );
ValC->setSuffix( tr( " dpi" ) );
ValC->setMaxValue( 4000 );
ValC->setMinValue( 35 );
ValC->setValue(Optionen->PicRes);
ValC->setEnabled(DSColor->isChecked() ? true : false);
CBoxLayout->addWidget( ValC, 2, 1, AlignLeft );
tabLayout->addWidget( CBox );
Options->insertTab( tabGeneral, tr( "&General" ) );
 
tabFonts = new QWidget( Options, "tabFonts" );
tabLayout_3 = new QVBoxLayout( tabFonts );
tabLayout_3->setSpacing( 5 );
tabLayout_3->setMargin( 11 );
EmbedFonts = new QCheckBox( tr( "&Embed all Fonts" ), tabFonts, "EmbedFonts" );
tabLayout_3->addWidget( EmbedFonts );
SubsetFonts = new QCheckBox( tr( "&Subset all Fonts" ), tabFonts, "SubsetFonts" );
tabLayout_3->addWidget( SubsetFonts );
GroupFont = new QGroupBox( tr( "Embedding" ), tabFonts, "GroupFont" );
GroupFont->setColumnLayout(0, Qt::Vertical );
GroupFont->layout()->setSpacing( 0 );
GroupFont->layout()->setMargin( 0 );
GroupFontLayout = new QHBoxLayout( GroupFont->layout() );
GroupFontLayout->setAlignment( Qt::AlignTop );
GroupFontLayout->setSpacing( 5 );
GroupFontLayout->setMargin( 11 );
Layout4_2 = new QVBoxLayout;
Layout4_2->setSpacing( 6 );
Layout4_2->setMargin( 0 );
TextFont1 = new QLabel( tr( "Available Fonts:" ), GroupFont, "TextFont1" );
Layout4_2->addWidget( TextFont1 );
AvailFlist = new QListBox( GroupFont, "AvailFlist" );
QMap<QString,QFont>::Iterator it;
for (it = DocFonts.begin(); it != DocFonts.end(); ++it)
{
if (AllFonts[it.key()]->HasMetrics)
AvailFlist->insertItem(loadIcon("ok.png"), it.key());
else
{
AvailFlist->insertItem(it.key());
AvailFlist->item(AvailFlist->count()-1)->setSelectable(false);
}
}
AvailFlist->setMinimumSize(QSize(150, 140));
Layout4_2->addWidget( AvailFlist );
GroupFontLayout->addLayout( Layout4_2 );
Layout5_2 = new QVBoxLayout;
Layout5_2->setSpacing( 5 );
Layout5_2->setMargin( 0 );
QSpacerItem* spacerS3 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Minimum );
Layout5_2->addItem( spacerS3 );
ToEmbed = new QPushButton( tr( "&>>" ), GroupFont, "ToEmbed" );
ToEmbed->setEnabled(false);
Layout5_2->addWidget( ToEmbed );
FromEmbed = new QPushButton( tr( "&<<" ), GroupFont, "FromEmbed" );
FromEmbed->setEnabled(false);
Layout5_2->addWidget( FromEmbed );
GroupFontLayout->addLayout( Layout5_2 );
Layout6 = new QVBoxLayout;
Layout6->setSpacing( 5 );
Layout6->setMargin( 0 );
TextFont1_2 = new QLabel( tr( "Fonts to embed:" ), GroupFont, "TextFont1_2" );
Layout6->addWidget( TextFont1_2 );
EmbedList = new QListBox( GroupFont, "EmbedList" );
EmbedList->setMinimumSize(QSize(150, 40));
Layout6->addWidget( EmbedList );
Layout5_2a = new QHBoxLayout;
Layout5_2a->setSpacing( 5 );
Layout5_2a->setMargin( 0 );
QSpacerItem* spacerS1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5_2a->addItem( spacerS1 );
ToSubset = new QPushButton( "", GroupFont, "ToSubset" );
ToSubset->setPixmap(loadIcon("down.png"));
ToSubset->setEnabled(false);
Layout5_2a->addWidget( ToSubset );
FromSubset = new QPushButton( "", GroupFont, "FromSubset" );
FromSubset->setPixmap(loadIcon("up.png"));
FromSubset->setEnabled(false);
Layout5_2a->addWidget( FromSubset );
QSpacerItem* spacerS2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5_2a->addItem( spacerS2 );
Layout6->addLayout( Layout5_2a );
TextFont1_2a = new QLabel( tr( "Fonts to subset:" ), GroupFont, "TextFont1_2a" );
Layout6->addWidget( TextFont1_2a );
SubsetList = new QListBox( GroupFont, "SubsetList" );
SubsetList->setMinimumSize(QSize(150, 40));
Layout6->addWidget( SubsetList );
if ((Optionen->EmbedList.count() == 0) && (Optionen->SubsetList.count() == 0))
{
EmbedFonts->setChecked(true);
EmbedAll();
}
else
{
for (uint fe = 0; fe < Optionen->EmbedList.count(); ++fe)
{
EmbedList->insertItem(Optionen->EmbedList[fe]);
FontsToEmbed.append(Optionen->EmbedList[fe]);
}
}
if (Optionen->SubsetList.count() != 0)
{
for (uint fe = 0; fe < Optionen->SubsetList.count(); ++fe)
{
SubsetList->insertItem(Optionen->SubsetList[fe]);
FontsToSubset.append(Optionen->SubsetList[fe]);
}
}
GroupFontLayout->addLayout( Layout6 );
tabLayout_3->addWidget( GroupFont );
Options->insertTab( tabFonts, tr( "&Fonts" ) );
tabPresentation = new QWidget( Options, "tabPresentation" );
tabLayout_5 = new QGridLayout( tabPresentation );
tabLayout_5->setSpacing( 5 );
tabLayout_5->setMargin( 11 );
CheckBox10 = new QCheckBox( tr( "Enable &Presentation Effects" ), tabPresentation, "CheckBox10" );
CheckBox10->setChecked(Optionen->PresentMode);
tabLayout_5->addMultiCellWidget( CheckBox10, 0, 0, 0, 1 );
Pages = new QListBox( tabPresentation, "Pages" );
Pages->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, Pages->sizePolicy().hasHeightForWidth() ) );
QString tmp;
struct PDFPresentationData ef;
if (EffVal.count() != 0)
{
for (uint pg2 = 0; pg2 < view->Doc->Pages.count(); ++pg2)
{
Pages->insertItem( tr("Page")+" "+tmp.setNum(pg2+1));
if (EffVal.count()-1 < pg2)
{
ef.pageEffectDuration = 1;
ef.pageViewDuration = 1;
ef.effectType = 0;
ef.Dm = 0;
ef.M = 0;
ef.Di = 0;
EffVal.append(ef);
}
}
}
else
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
{
Pages->insertItem( tr("Page")+" "+tmp.setNum(pg+1));
ef.pageEffectDuration = 1;
ef.pageViewDuration = 1;
ef.effectType = 0;
ef.Dm = 0;
ef.M = 0;
ef.Di = 0;
EffVal.append(ef);
}
}
tabLayout_5->addWidget( Pages, 1, 0 );
PagePrev = new QCheckBox( tr( "Show Page Pre&views" ), tabPresentation, "CheckBox10" );
PagePrev->setChecked(false);
tabLayout_5->addWidget( PagePrev, 2, 0 );
Effects = new QGroupBox( tr( "Effects" ), tabPresentation, "Effects" );
Effects->setColumnLayout(0, Qt::Vertical );
Effects->layout()->setSpacing( 0 );
Effects->layout()->setMargin( 0 );
EffectsLayout = new QGridLayout( Effects->layout() );
EffectsLayout->setAlignment( Qt::AlignTop );
EffectsLayout->setSpacing( 5 );
EffectsLayout->setMargin( 11 );
TextLabel1e = new QLabel( tr( "&Display Duration:" ), Effects, "TextLabel1_2" );
EffectsLayout->addWidget( TextLabel1e, 0, 0 );
TextLabel2e = new QLabel( tr( "Effec&t Duration:" ), Effects, "TextLabel2_2" );
EffectsLayout->addWidget( TextLabel2e, 1, 0 );
TextLabel3e = new QLabel( tr( "Effect T&ype:" ), Effects, "TextLabel3_2" );
EffectsLayout->addWidget( TextLabel3e, 2, 0 );
TextLabel4e = new QLabel( tr( "&Moving Lines:" ), Effects, "TextLabel4_2" );
EffectsLayout->addWidget( TextLabel4e, 3, 0 );
TextLabel5e = new QLabel( tr( "F&rom the:" ), Effects, "TextLabel6" );
EffectsLayout->addWidget( TextLabel5e, 4, 0 );
TextLabel6e = new QLabel( tr( "D&irection:" ), Effects, "TextLabel5" );
EffectsLayout->addWidget( TextLabel6e, 5, 0 );
PageTime = new QSpinBox( Effects, "PageTime" );
PageTime->setSuffix( tr( " sec" ) );
PageTime->setMaxValue( 3600 );
PageTime->setMinValue( 1 );
PageTime->setValue(EffVal[0].pageViewDuration);
TextLabel1e->setBuddy(PageTime);
EffectsLayout->addWidget( PageTime, 0, 1 );
EffectTime = new QSpinBox( Effects, "EffectTime" );
EffectTime->setSuffix( tr( " sec" ) );
EffectTime->setMaxValue( 3600 );
EffectTime->setMinValue( 1 );
EffectTime->setValue(EffVal[0].pageEffectDuration);
TextLabel2e->setBuddy(EffectTime);
EffectsLayout->addWidget( EffectTime, 1, 1 );
EffectType = new QComboBox( true, Effects, "EffectType" );
QString tmpc[] = { tr("No Effect"), tr("Blinds"), tr("Box"), tr("Dissolve"), tr("Glitter"), tr("Split"), tr("Wipe")};
size_t ar = sizeof(tmpc) / sizeof(*tmpc);
for (uint a = 0; a < ar; ++a)
EffectType->insertItem(tmpc[a]);
EffectType->setEditable(false);
TextLabel3e->setBuddy(EffectType);
EffectsLayout->addWidget( EffectType, 2, 1 );
EDirection = new QComboBox( true, Effects, "EDirection" );
EDirection->insertItem( tr( "Horizontal" ) );
EDirection->insertItem( tr( "Vertical" ) );
EDirection->setEditable(false);
TextLabel4e->setBuddy(EDirection);
EffectsLayout->addWidget( EDirection, 3, 1 );
EDirection_2 = new QComboBox( true, Effects, "EDirection_2" );
EDirection_2->insertItem( tr( "Inside" ) );
EDirection_2->insertItem( tr( "Outside" ) );
EDirection_2->setEditable(false);
TextLabel5e->setBuddy(EDirection_2);
EffectsLayout->addWidget( EDirection_2, 4, 1 );
EDirection_2_2 = new QComboBox( true, Effects, "EDirection_2_2" );
QString tmp_ed[] = { tr("Left to Right"), tr("Top to Bottom"), tr("Bottom to Top"), tr("Right to Left"),
tr("Top-left to Bottom-Right")};
size_t ar_ed = sizeof(tmp_ed) / sizeof(*tmp_ed);
for (uint a = 0; a < ar_ed; ++a)
EDirection_2_2->insertItem(tmp_ed[a]);
EDirection_2_2->setEditable(false);
TextLabel6e->setBuddy(EDirection_2_2);
EffectsLayout->addWidget( EDirection_2_2, 5, 1 );
EonAllPg = new QPushButton( tr( "&Apply Effect on all Pages" ), Effects, "Eon" );
EffectsLayout->addMultiCellWidget( EonAllPg, 6, 6, 0, 1 );
tabLayout_5->addMultiCellWidget( Effects, 1, 2, 1, 1 );
Options->insertTab( tabPresentation, tr( "E&xtras" ) );
 
tabSecurity = new QWidget( Options, "tabSecurity" );
tabSecurityLayout = new QVBoxLayout( tabSecurity, 11, 5, "tabSecurityLayout");
Encry = new QCheckBox( tr( "&Use Encryption" ), tabSecurity, "Enc" );
Encry->setChecked( Optionen->Encrypt );
tabSecurityLayout->addWidget( Encry );
GroupPass = new QGroupBox( tr( "Passwords" ), tabSecurity, "GroupPass" );
GroupPass->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0,
GroupPass->sizePolicy().hasHeightForWidth() ) );
GroupPass->setColumnLayout(0, Qt::Vertical );
GroupPass->layout()->setSpacing( 5 );
GroupPass->layout()->setMargin( 11 );
GroupPassLayout = new QGridLayout( GroupPass->layout() );
GroupPassLayout->setAlignment( Qt::AlignTop );
TextSec2 = new QLabel( tr( "&User:" ), GroupPass, "TextSec2" );
GroupPassLayout->addWidget( TextSec2, 1, 0 );
TextSec1 = new QLabel( tr( "&Owner:" ), GroupPass, "TextSec1" );
GroupPassLayout->addWidget( TextSec1, 0, 0 );
PassOwner = new QLineEdit( GroupPass, "PassOwner" );
PassOwner->setEchoMode( QLineEdit::Password );
PassOwner->setText(Optionen->PassOwner);
TextSec1->setBuddy(PassOwner);
GroupPassLayout->addWidget( PassOwner, 0, 1 );
PassUser = new QLineEdit( GroupPass, "PassUser" );
PassUser->setEchoMode( QLineEdit::Password );
PassUser->setText(Optionen->PassUser);
TextSec2->setBuddy(PassUser);
GroupPassLayout->addWidget( PassUser, 1, 1 );
tabSecurityLayout->addWidget( GroupPass );
 
GroupSecSet = new QGroupBox( tr( "Settings" ), tabSecurity, "GroupSecSet" );
GroupSecSet->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0,
GroupSecSet->sizePolicy().hasHeightForWidth() ) );
GroupSecSet->setColumnLayout(0, Qt::Vertical );
GroupSecSet->layout()->setSpacing( 5 );
GroupSecSet->layout()->setMargin( 11 );
GroupSecSetLayout = new QVBoxLayout( GroupSecSet->layout() );
GroupSecSetLayout->setAlignment( Qt::AlignTop );
PrintSec = new QCheckBox( tr( "Allow &Printing the Document" ), GroupSecSet, "PrintSec" );
PrintSec->setChecked( Optionen->Permissions & 4 );
GroupSecSetLayout->addWidget( PrintSec );
ModifySec = new QCheckBox( tr( "Allow &Changing the Document" ), GroupSecSet, "ModifySec" );
ModifySec->setChecked( Optionen->Permissions & 8 );
GroupSecSetLayout->addWidget( ModifySec );
CopySec = new QCheckBox( tr( "Allow Cop&ying Text and Graphics" ), GroupSecSet, "CopySec" );
CopySec->setChecked( Optionen->Permissions & 16 );
GroupSecSetLayout->addWidget( CopySec );
AddSec = new QCheckBox( tr( "Allow Adding &Annotations and Fields" ), GroupSecSet, "AddSec" );
AddSec->setChecked( Optionen->Permissions & 32 );
GroupSecSetLayout->addWidget( AddSec );
tabSecurityLayout->addWidget( GroupSecSet );
if (!Encry->isChecked())
{
GroupSecSet->setEnabled(false);
GroupPass->setEnabled(false);
}
Options->insertTab( tabSecurity, tr( "S&ecurity" ) );
 
tabColor = new QWidget( Options, "tabColor" );
tabColorLayout = new QVBoxLayout( tabColor, 11, 5, "tabColorLayout");
ColorGroup = new QGroupBox( tr( "General" ), tabColor, "ColorGroup" );
ColorGroup->setColumnLayout(0, Qt::Vertical );
ColorGroup->layout()->setSpacing( 5 );
ColorGroup->layout()->setMargin( 11 );
ColorGroupLayout = new QHBoxLayout( ColorGroup->layout() );
ColorGroupLayout->setAlignment( Qt::AlignTop );
ColorText1 = new QLabel( tr( "Output &Intended For:" ), ColorGroup, "ColorText1" );
ColorGroupLayout->addWidget( ColorText1 );
OutCombo = new QComboBox( true, ColorGroup, "OutCombo" );
OutCombo->insertItem( tr( "Screen / Web" ) );
OutCombo->insertItem( tr( "Printer" ) );
OutCombo->setEditable(false);
OutCombo->setCurrentItem(Optionen->UseRGB ? 0 : 1);
ColorText1->setBuddy(OutCombo);
ColorGroupLayout->addWidget( OutCombo );
tabColorLayout->addWidget( ColorGroup );
 
UseLPI = new QCheckBox( tr( "&Use Custom Rendering Settings" ), tabColor, "UseLPI" );
UseLPI->setChecked(Optionen->UseLPI);
tabColorLayout->addWidget( UseLPI );
LPIgroup = new QGroupBox( tr( "Rendering Settings" ), tabColor, "LPIgroup" );
LPIgroup->setColumnLayout(0, Qt::Vertical );
LPIgroup->layout()->setSpacing( 5 );
LPIgroup->layout()->setMargin( 11 );
LPIgroupLayout = new QGridLayout( LPIgroup->layout() );
LPIgroupLayout->setAlignment( Qt::AlignTop );
LPIcolor = new QComboBox( true, LPIgroup, "LPIcolor" );
LPIcolor->setEditable(false);
QMap<QString,LPIData>::Iterator itlp;
for (itlp = Optionen->LPISettings.begin(); itlp != Optionen->LPISettings.end(); ++itlp)
{
LPIcolor->insertItem( itlp.key() );
}
LPIcolor->setCurrentItem(0);
LPIgroupLayout->addWidget( LPIcolor, 0, 0 );
textLPI1 = new QLabel( tr( "Fre&quency:" ), LPIgroup, "textLPI1" );
LPIgroupLayout->addWidget( textLPI1, 0, 1 );
LPIfreq = new QSpinBox( LPIgroup, "LPIfreq" );
LPIfreq->setMinValue(10);
LPIfreq->setMaxValue(1000);
LPIfreq->setValue(Optionen->LPISettings[LPIcolor->currentText()].Frequency);
textLPI1->setBuddy(LPIfreq);
LPIgroupLayout->addWidget( LPIfreq, 0, 2 );
textLPI2 = new QLabel( tr( "&Angle:" ), LPIgroup, "textLPI2" );
LPIgroupLayout->addWidget( textLPI2, 1, 1 );
LPIangle = new QSpinBox( LPIgroup, "LPIangle" );
LPIangle->setSuffix( QString::fromUtf8(" °"));
LPIangle->setMinValue(-180);
LPIangle->setMaxValue(180);
LPIangle->setValue(Optionen->LPISettings[LPIcolor->currentText()].Angle);
textLPI2->setBuddy(LPIangle);
LPIgroupLayout->addWidget( LPIangle, 1, 2 );
textLPI3 = new QLabel( tr( "S&pot Function:" ), LPIgroup, "textLPI3" );
LPIgroupLayout->addWidget( textLPI3, 2, 1 );
LPIfunc = new QComboBox( true, LPIgroup, "LPIfunc" );
LPIfunc->setEditable(false);
LPIfunc->insertItem( tr( "Simple Dot" ) );
LPIfunc->insertItem( tr( "Line" ) );
LPIfunc->insertItem( tr( "Round" ) );
LPIfunc->insertItem( tr( "Ellipse" ) );
LPIfunc->setCurrentItem(Optionen->LPISettings[LPIcolor->currentText()].SpotFunc);
textLPI3->setBuddy(LPIfunc);
LPIgroupLayout->addWidget( LPIfunc, 2, 2 );
tabColorLayout->addWidget( LPIgroup );
SelLPIcolor = LPIcolor->currentText();
 
GroupBox9 = new QGroupBox( tr( "Solid Colors:" ), tabColor, "GroupBox9" );
GroupBox9->setColumnLayout(0, Qt::Vertical );
GroupBox9->layout()->setSpacing( 5 );
GroupBox9->layout()->setMargin( 11 );
GroupBox9Layout = new QGridLayout( GroupBox9->layout() );
GroupBox9Layout->setAlignment( Qt::AlignTop );
EmbedProfs = new QCheckBox( GroupBox9, "EmbedProfs" );
EmbedProfs->setText( tr( "Use ICC Profile" ) );
EmbedProfs->setChecked(Optionen->UseProfiles);
GroupBox9Layout->addMultiCellWidget( EmbedProfs, 0, 0, 0, 1 );
ProfsTxt1 = new QLabel(GroupBox9, "ProfsTxt1");
ProfsTxt1->setText( tr( "Profile:" ) );
GroupBox9Layout->addWidget( ProfsTxt1, 1, 0 );
ProfsTxt2 = new QLabel( GroupBox9, "ProfsTxt2_2" );
ProfsTxt2->setText( tr( "Rendering-Intent:" ) );
GroupBox9Layout->addWidget( ProfsTxt2, 1, 1 );
SolidPr = new QComboBox(true, GroupBox9, "SolidPr" );
SolidPr->setEditable(false);
GroupBox9Layout->addWidget( SolidPr, 2, 0 );
IntendS = new QComboBox( true, GroupBox9, "IntendS" );
QString tmp_ip[] = { tr("Perceptual"), tr("Relative Colorimetric"), tr("Saturation"), tr("Absolute Colorimetric")};
size_t ar_ip = sizeof(tmp_ip) / sizeof(*tmp_ip);
for (uint a = 0; a < ar_ip; ++a)
IntendS->insertItem(tmp_ip[a]);
IntendS->setEditable(false);
GroupBox9Layout->addWidget( IntendS, 2, 1 );
tabColorLayout->addWidget( GroupBox9 );
ProfsGroup = new QGroupBox( tr( "Images:" ), tabColor, "ProfsGroup" );
ProfsGroup->setColumnLayout(0, Qt::Vertical );
ProfsGroup->layout()->setSpacing( 5 );
ProfsGroup->layout()->setMargin( 11 );
ProfsGroupLayout = new QGridLayout( ProfsGroup->layout() );
ProfsGroupLayout->setAlignment( Qt::AlignTop );
EmbedProfs2 = new QCheckBox( tr( "Use ICC Profile" ), ProfsGroup, "EmbedProfs" );
EmbedProfs2->setChecked(Optionen->UseProfiles2);
ProfsGroupLayout->addMultiCellWidget( EmbedProfs2, 0, 0, 0, 1 );
NoEmbedded = new QCheckBox( ProfsGroup, "NoEmbedded" );
NoEmbedded->setText( tr( "Don't use embedded ICC profiles" ) );
NoEmbedded->setChecked(Optionen->EmbeddedI);
ProfsGroupLayout->addMultiCellWidget( NoEmbedded, 1, 1, 0, 1 );
ProfsTxt3 = new QLabel( ProfsGroup, "ProfsTxt3" );
ProfsTxt3->setText( tr( "Profile:" ) );
ProfsGroupLayout->addWidget( ProfsTxt3, 2, 0 );
ProfsTxt4 = new QLabel( ProfsGroup, "ProfsTxt2_2" );
ProfsTxt4->setText( tr( "Rendering-Intent:" ) );
ProfsGroupLayout->addWidget( ProfsTxt4, 2, 1 );
ImageP = new QComboBox( true, ProfsGroup, "ImageP" );
ImageP->setEditable(false);
ProfsGroupLayout->addWidget( ImageP, 3, 0 );
IntendI = new QComboBox( true, ProfsGroup, "IntendS" );
for (uint a = 0; a < ar_ip; ++a)
IntendI->insertItem(tmp_ip[a]);
IntendI->setEditable(false);
ProfsGroupLayout->addWidget( IntendI, 3, 1 );
tabColorLayout->addWidget( ProfsGroup );
if (Optionen->UseRGB)
{
ProfsGroup->setEnabled(false);
GroupBox9->setEnabled(false);
}
EnablePr(Optionen->UseRGB ? 0 : 1);
EnablePG();
EnablePGI();
#ifdef HAVE_CMS
 
QString tp = Optionen->SolidProf;
if (!InputProfiles.contains(tp))
tp = vie->Doc->CMSSettings.DefaultInputProfile2;
ProfilesL::Iterator itp;
for (itp = InputProfiles.begin(); itp != InputProfiles.end(); ++itp)
{
SolidPr->insertItem(itp.key());
if (itp.key() == tp)
{
if ((CMSuse) && (CMSavail))
SolidPr->setCurrentItem(SolidPr->count()-1);
}
}
if ((CMSuse) && (CMSavail))
IntendS->setCurrentItem(Optionen->Intent);
ProfilesL::Iterator itp2;
QString tp1 = Optionen->ImageProf;
if (!InputProfiles.contains(tp1))
tp1 = vie->Doc->CMSSettings.DefaultInputProfile2;
for (itp2 = InputProfiles.begin(); itp2 != InputProfiles.end(); ++itp2)
{
ImageP->insertItem(itp2.key());
if (itp2.key() == tp1)
{
if ((CMSuse) && (CMSavail))
ImageP->setCurrentItem(ImageP->count()-1);
}
}
if ((CMSuse) && (CMSavail))
IntendI->setCurrentItem(Optionen->Intent2);
if ((!CMSuse) || (!CMSavail))
{
GroupBox9->hide();
ProfsGroup->hide();
}
#else
GroupBox9->hide();
ProfsGroup->hide();
#endif
 
QSpacerItem* spacerCG = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabColorLayout->addItem( spacerCG );
Options->insertTab( tabColor, tr( "C&olor" ) );
 
tabPDFX = new QWidget( Options, "tabPDFX" );
tabPDFXLayout = new QVBoxLayout( tabPDFX, 11, 5, "tabPDFXLayout");
X3Group = new QGroupBox( tabPDFX, "X3Group" );
X3Group->setTitle( tr( "PDF/X-3 Output Intent" ) );
X3Group->setColumnLayout(0, Qt::Vertical );
X3Group->layout()->setSpacing( 6 );
X3Group->layout()->setMargin( 11 );
X3GroupLayout = new QGridLayout( X3Group->layout() );
X3GroupLayout->setAlignment( Qt::AlignTop );
PrintProfC = new QComboBox( true, X3Group, "PrintProfC" );
PrintProfC->setEditable(false);
#ifdef HAVE_CMS
 
ProfilesL::Iterator itp3;
QString tp3 = Optionen->PrintProf;
if (!PDFXProfiles->contains(tp3))
tp3 = vie->Doc->CMSSettings.DefaultPrinterProfile;
for (itp3 = PDFXProfiles->begin(); itp3 != PDFXProfiles->end(); ++itp3)
{
PrintProfC->insertItem(itp3.key());
if (itp3.key() == tp3)
PrintProfC->setCurrentItem(PrintProfC->count()-1);
}
#endif
X3GroupLayout->addWidget( PrintProfC, 0, 1 );
InfoString = new QLineEdit( X3Group, "InfoString" );
InfoString->setText(Optionen->Info);
X3GroupLayout->addWidget( InfoString, 1, 1 );
PDFX2 = new QLabel( InfoString, tr( "&Info String:" ), X3Group, "PDFX2" );
X3GroupLayout->addWidget( PDFX2, 1, 0 );
PDFX1 = new QLabel( PrintProfC, tr( "Output &Profile:" ), X3Group, "PDFX1" );
X3GroupLayout->addWidget( PDFX1, 0, 0 );
tabPDFXLayout->addWidget( X3Group );
BleedGroup = new QGroupBox( tabPDFX, "BleedGroup" );
BleedGroup->setTitle( tr( "Trim Box" ) );
BleedGroup->setColumnLayout(0, Qt::Vertical );
BleedGroup->layout()->setSpacing( 5 );
BleedGroup->layout()->setMargin( 11 );
BleedGroupLayout = new QGridLayout( BleedGroup->layout() );
BleedGroupLayout->setAlignment( Qt::AlignTop );
BleedIcon = new QLabel( BleedGroup, "BleedIcon" );
BleedIcon->setMinimumSize( QSize( 74, 84 ) );
BleedIcon->setMaximumSize( QSize( 74, 84 ) );
BleedIcon->setFrameShape( QLabel::Panel );
BleedIcon->setFrameShadow( QLabel::Sunken );
BleedIcon->setScaledContents( false );
BleedIcon->setAlignment( static_cast<int>( QLabel::AlignCenter ) );
BleedGroupLayout->addWidget( BleedIcon, 1, 2 );
BleedTop = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedTop, 0, 2 );
BleedBottom = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedBottom, 2, 2 );
BleedRight = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedRight, 1, 3 );
BleedLeft = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedLeft, 1, 1 );
QSpacerItem* spacerPX = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
BleedGroupLayout->addItem( spacerPX, 1, 0 );
QSpacerItem* spacerPX2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
BleedGroupLayout->addItem( spacerPX2, 1, 4 );
tabPDFXLayout->addWidget( BleedGroup );
Options->insertTab( tabPDFX, tr( "PDF/X-&3" ) );
QString EinTxt = unitGetSuffixFromIndex(docUnitIndex);
 
BleedTop->setSuffix( EinTxt );
BleedTop->setMinValue(0);
BleedTop->setMaxValue(view->Doc->PageH*UmReFaktor);
BleedTop->setValue(Optionen->BleedTop*UmReFaktor);
BleedBottom->setSuffix( EinTxt );
BleedBottom->setMinValue(0);
BleedBottom->setMaxValue(view->Doc->PageH*UmReFaktor);
BleedBottom->setValue(Optionen->BleedBottom*UmReFaktor);
BleedRight->setSuffix( EinTxt );
BleedRight->setMinValue(0);
BleedRight->setMaxValue(view->Doc->PageB*UmReFaktor);
BleedRight->setValue(Optionen->BleedRight*UmReFaktor);
BleedLeft->setSuffix( EinTxt );
BleedLeft->setMinValue(0);
BleedLeft->setMaxValue(view->Doc->PageB*UmReFaktor);
BleedLeft->setValue(Optionen->BleedLeft*UmReFaktor);
#ifdef HAVE_CMS
if ((!CMSuse) || (!CMSavail))
Options->setTabEnabled(tabPDFX, false);
if ((CMSuse) && (CMSavail) && (Optionen->Version == 12) && (!PDFXProfiles->isEmpty()))
EnablePDFX(2);
else
Options->setTabEnabled(tabPDFX, false);
#else
Options->setTabEnabled(tabPDFX, false);
#endif
BleedChanged();
PgSel = 0;
Pages->setCurrentItem(0);
SetEffOpts(0);
Pages->setEnabled(false);
Effects->setEnabled(false);
PagePrev->setEnabled(false);
Options = new TabPDFOptions( this,
Optionen,
AllFonts,
PDFXProfiles,
DocFonts,
Eff,
UmReFaktor,
unitGetSuffixFromIndex(vie->Doc->docUnitIndex),
vie->Doc->PageH,
vie->Doc->PageB,
vie );
PDFOptsLayout->addWidget( Options );
DoEffects();
if (CheckBox10->isChecked())
{
PageTime->setValue(EffVal[0].pageViewDuration);
EffectTime->setValue(EffVal[0].pageEffectDuration);
EffectType->setCurrentItem(EffVal[0].effectType);
EDirection->setCurrentItem(EffVal[0].Dm);
EDirection_2->setCurrentItem(EffVal[0].M);
EDirection_2_2->setCurrentItem(EffVal[0].Di);
SetEffOpts(EffectType->currentItem());
}
Layout7 = new QHBoxLayout;
Layout7->setSpacing( 5 );
Layout7->setMargin( 0 );
804,142 → 93,29
PDFOptsLayout->addLayout( Layout7 );
resize(sizeHint());
// setMaximumSize( sizeHint() );
//tab order
QWidget::setTabOrder ( AllPages, OnlySome );
QWidget::setTabOrder ( OnlySome, PageNr );
QWidget::setTabOrder ( PageNr, ComboBox1 );
QWidget::setTabOrder ( ComboBox1, ComboBind );
QWidget::setTabOrder ( ComboBind, CheckBox1 );
QWidget::setTabOrder ( CheckBox1, Article );
QWidget::setTabOrder ( Article, CheckBM );
QWidget::setTabOrder ( CheckBM, Resolution );
QWidget::setTabOrder ( Resolution, Compression );
QWidget::setTabOrder ( Compression, CMethod );
QWidget::setTabOrder ( CMethod, CQuality );
QWidget::setTabOrder ( CQuality, DSColor );
QWidget::setTabOrder ( DSColor, ValC );
 
QWidget::setTabOrder ( PrintProfC, InfoString);
QWidget::setTabOrder ( InfoString, BleedTop);
QWidget::setTabOrder ( BleedTop, BleedLeft);
QWidget::setTabOrder ( BleedLeft, BleedRight);
QWidget::setTabOrder ( BleedRight, BleedBottom);
 
//tooltips
QToolTip::add( AllPages, tr( "Export all pages to PDF" ) );
QToolTip::add( OnlySome, tr( "Export a range of pages to PDF" ) );
QToolTip::add( PageNr, tr( "Insert a comma separated list of tokens where\n"
"a token can be * for all the pages, 1-5 for\n"
"a range of pages or a single page number.") );
 
QToolTip::add( ComboBox1, tr( "Determines the PDF compatibility. The default is Acrobat 4.0 which gives the widest compatibility.\nChoose Acrobat 5.0 if your file has PDF 1.4 features such as transparency or you require 128 bit encryption.\nPDF/X-3 is for exporting the PDF for commercial printing and is selectable when you have activated color management." ) );
QToolTip::add( ComboBind, tr( "Determines the binding of pages in the PDF. Unless you know\nyou need to change it leave the default choice - Left." ) );
QToolTip::add( CheckBox1, tr( "Generates thumbnails of each page in the PDF.\nSome viewers can use the thumbnails for navigation." ) );
QToolTip::add( Article, tr( "Generate PDF Articles, which is useful for navigating linked articles in a PDF." ) );
QToolTip::add( CheckBM, tr( "Embed the bookmarks you created in your document.\nThese are useful for navigating long PDF documents." ) );
QToolTip::add( Resolution, tr( "Export resolution of text and vector graphics.\nThis does not affect the resolution of bitmap images like photos." ) );
QToolTip::add( Compression, tr( "Compression of text and graphics.\nUnless you have a reason, leave this checked. This reduces PDF size." ) );
QToolTip::add( CMethod, tr( "Version of compression for images.\nAutomatic allows Scribus to choose the best method.\nZIP is good for images with solid colors.\nJPEG is better at creating smaller PDF files which have many photos (with slight image loss possible).\nLeave it set to automatic, unless you have a need for special compression options." ) );
QToolTip::add( CQuality, tr( "Compression levels: Minimum (25%), Low (50%), Medium (75%), High (85%), Maximum (95%)" ) );
QToolTip::add( DSColor, tr( "Downsample your bitmap images to the selected DPI.\nLeaving this unchecked will render them at their native resolution." ) );
QToolTip::add( ValC, tr( "DPI (Dots Per Inch) for image export.") );
QToolTip::add( EmbedFonts, tr( "Embed fonts into the PDF. Embedding the fonts\nwill preserve the layout and appearance of your document." ) );
QToolTip::add( CheckBox10, tr( "Enables presentation effects when using Acrobat Reader in full screen mode." ) );
QToolTip::add( PagePrev, tr( "Show page previews of each page listed above." ) );
QToolTip::add( PageTime, tr( "Length of time the page is shown before the presentation starts on the selected page." ) );
QToolTip::add( EffectTime, tr( "Length of time the effect runs.\nA shorter time will speed up the effect, a longer one will slow it down." ) );
QToolTip::add( EffectType, tr( "Type of the display effect." ) );
QToolTip::add( EDirection, tr( "Direction of the effect of moving lines for the split and blind effects." ) );
QToolTip::add( EDirection_2, tr( "Starting position for the box and split effects." ) );
QToolTip::add( EDirection_2_2, tr( "Direction of the glitter or wipe effects." ) );
QToolTip::add( EonAllPg, tr( "Apply the selected effect to all pages." ) );
QToolTip::add( Encry, tr( "Enable the security features in your exported PDF.\nIf you selected Acrobat 4.0, the PDF will be protected by 40 bit encryption.\nIf you selected Acrobat 5.0, the PDF will be protected by 128 bit encryption.\nDisclaimer: PDF encryption is not as reliable as GPG or PGP encryption and does have some limitations." ) );
QToolTip::add( PassOwner, tr( "Choose a master password which enables or disables all the\nsecurity features in your exported PDF" ) );
QToolTip::add( PassUser, tr( "Choose a password for users to be able to read your PDF." ) );
QToolTip::add( PrintSec, tr( "Allow printing of the PDF. If un-checked, printing is prevented. " ) );
QToolTip::add( ModifySec, tr( "Allow modifying of the PDF. If un-checked, modifying the PDF is prevented." ) );
QToolTip::add( CopySec, tr( "Allow copying of text or graphics from the PDF. \nIf un-checked, text and graphics cannot be copied." ) );
QToolTip::add( AddSec, tr( "Allow adding annotations and fields to the PDF. \nIf un-checked, editing annotations and fileds is prevented." ) );
QToolTip::add( OutCombo, tr( "Color model for the output of your PDF.\nChoose Screen/Web for PDFs which are used for screen display and for printing on typical inkjets.\nChoose Printer when printing to a true 4 color CMYK printer." ) );
QToolTip::add( UseLPI, tr( "This is an advanced setting which is not enabled by default. This should only be enabled\nwhen specifically requested by your printer and they have given you the exact details needed.\nOtherwise, your exported PDF may not print properly and is truly not portable across systems." ) );
QToolTip::add( EmbedProfs, tr( "Embed a color profile for solid colors" ) );
QToolTip::add( SolidPr, tr( "Color profile for solid colors" ) );
QToolTip::add( IntendS, tr( "Rendering intent for solid colors" ) );
QToolTip::add( EmbedProfs2, tr( "Embed a color profile for images" ) );
QToolTip::add( NoEmbedded, tr( "Do not use color profiles that are embedded in source images" ) );
QToolTip::add( ImageP, tr( "Color profile for images" ) );
QToolTip::add( IntendI, tr( "Rendering intent for images" ) );
QToolTip::add( PrintProfC, tr( "Output profile for printing. If possible, get some guidance from your printer on profile selection." ) );
QToolTip::add( InfoString, tr( "Mandatory string for PDF/X-3 or the PDF will fail\nPDF/X-3 conformance. We recommend you use the title of the document." ) );
QToolTip::add( BleedTop, tr( "Distance for bleed from the top of the physical page" ) );
QToolTip::add( BleedBottom, tr( "Distance for bleed from the bottom of the physical page" ) );
QToolTip::add( BleedLeft, tr( "Distance for bleed from the left of the physical page" ) );
QToolTip::add( BleedRight, tr( "Distance for bleed from the right of the physical page" ) );
QToolTip::add( MirrorH, tr( "Mirror Page(s) horizontally" ) );
QToolTip::add( MirrorV, tr( "Mirror Page(s) vertically" ) );
 
// signals and slots connections
connect( FileC, SIGNAL( clicked() ), this, SLOT( ChangeFile() ) );
connect( OK, SIGNAL( clicked() ), this, SLOT( DoExport() ) );
connect( Cancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect(EmbedFonts, SIGNAL(clicked()), this, SLOT(EmbedAll()));
connect(AvailFlist, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelAFont(QListBoxItem*)));
connect(EmbedList, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelEFont(QListBoxItem*)));
connect(ToEmbed, SIGNAL(clicked()), this, SLOT(PutToEmbed()));
connect(FromEmbed, SIGNAL(clicked()), this, SLOT(RemoveEmbed()));
connect(DSColor, SIGNAL(clicked()), this, SLOT(DoDownsample()));
connect(PagePrev, SIGNAL(clicked()), this, SLOT(PagePr()));
connect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
connect(EffectType, SIGNAL(activated(int)), this, SLOT(SetEffOpts(int)));
connect(EDirection_2_2, SIGNAL(activated(int)), this, SLOT(ValidDI(int)));
connect(CheckBox10, SIGNAL(clicked()), this, SLOT(DoEffects()));
connect(MirrorH, SIGNAL(clicked()), this, SLOT(PDFMirror()));
connect(MirrorV, SIGNAL(clicked()), this, SLOT(PDFMirror()));
connect(RotateDeg, SIGNAL(activated(int)), this, SLOT(Rotation(int)));
connect(EonAllPg, SIGNAL(clicked()), this, SLOT(EffectOnAll()));
connect(AllPages, SIGNAL(toggled(bool)), this, SLOT(SelRange(bool)));
connect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
connect(EmbedProfs, SIGNAL(clicked()), this, SLOT(EnablePG()));
connect(EmbedProfs2, SIGNAL(clicked()), this, SLOT(EnablePGI()));
connect(NoEmbedded, SIGNAL(clicked()), this, SLOT(EnablePGI2()));
connect(ComboBox1, SIGNAL(activated(int)), this, SLOT(EnablePDFX(int)));
connect(BleedTop, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedBottom, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedLeft, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedRight, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(Encry, SIGNAL(clicked()), this, SLOT(ToggleEncr()));
connect(UseLPI, SIGNAL(clicked()), this, SLOT(EnableLPI2()));
connect(LPIcolor, SIGNAL(activated(int)), this, SLOT(SelLPIcol(int)));
connect(SubsetFonts, SIGNAL(clicked()), this, SLOT(SubsetAll()));
connect(SubsetList, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelSFont(QListBoxItem*)));
connect(ToSubset, SIGNAL(clicked()), this, SLOT(PutToSubset()));
connect(FromSubset, SIGNAL(clicked()), this, SLOT(RemoveSubset()));
connect(InfoString, SIGNAL(lostFocus()), this, SLOT(EnablePDFX3save()));
connect(InfoString, SIGNAL(textChanged ( const QString & )), this, SLOT(EnablePDFX3save()));
}
 
/*
* Destroys the object and frees any allocated resources
*/
PDF_Opts::~PDF_Opts()
{
// no need to delete child widgets, Qt does it all for us
}
 
void PDF_Opts::DoExport()
{
QString fn = Datei->text();
if (overwrite(this, fn))
{
EffVal[PgSel].pageViewDuration = PageTime->value();
EffVal[PgSel].pageEffectDuration = EffectTime->value();
EffVal[PgSel].effectType = EffectType->currentItem();
EffVal[PgSel].Dm = EDirection->currentItem();
EffVal[PgSel].M = EDirection_2->currentItem();
EffVal[PgSel].Di = EDirection_2_2->currentItem();
Opts->LPISettings[SelLPIcolor].Frequency = LPIfreq->value();
Opts->LPISettings[SelLPIcolor].Angle = LPIangle->value();
Opts->LPISettings[SelLPIcolor].SpotFunc = LPIfunc->currentItem();
EffVal = Options->EffVal;
EffVal[Options->PgSel].pageViewDuration = Options->PageTime->value();
EffVal[Options->PgSel].pageEffectDuration = Options->EffectTime->value();
EffVal[Options->PgSel].effectType = Options->EffectType->currentItem();
EffVal[Options->PgSel].Dm = Options->EDirection->currentItem();
EffVal[Options->PgSel].M = Options->EDirection_2->currentItem();
EffVal[Options->PgSel].Di = Options->EDirection_2_2->currentItem();
Opts->LPISettings[Options->SelLPIcolor].Frequency = Options->LPIfreq->value();
Opts->LPISettings[Options->SelLPIcolor].Angle = Options->LPIangle->value();
Opts->LPISettings[Options->SelLPIcolor].SpotFunc = Options->LPIfunc->currentItem();
accept();
}
else
946,471 → 122,6
return;
}
 
void PDF_Opts::ToggleEncr()
{
bool setter = Encry->isChecked() ? true : false;
GroupSecSet->setEnabled(setter);
GroupPass->setEnabled(setter);
}
 
void PDF_Opts::BleedChanged()
{
BleedTop->setMaxValue(view->Doc->PageH*UmReFaktor-BleedBottom->value());
BleedBottom->setMaxValue(view->Doc->PageH*UmReFaktor-BleedTop->value());
BleedRight->setMaxValue(view->Doc->PageB*UmReFaktor-BleedLeft->value());
BleedLeft->setMaxValue(view->Doc->PageB*UmReFaktor-BleedRight->value());
QPixmap pm = QPixmap(70,80);
pm.fill(white);
QPainter p;
p.begin(&pm);
p.setBrush(NoBrush);
p.setPen(black);
p.drawRect(0, 0, pm.width(), pm.height());
p.setPen(QPen(black, 1, DotLine, FlatCap, MiterJoin));
int x = qRound((BleedLeft->value() / UmReFaktor) * (70.0 / view->Doc->PageB));
int y = qRound((BleedTop->value() / UmReFaktor) * (80.0 / view->Doc->PageH));
int w =qRound((view->Doc->PageB-((BleedLeft->value()+BleedRight->value())/UmReFaktor))*
(70.0/view->Doc->PageB));
int h = qRound((view->Doc->PageH-((BleedTop->value()+BleedBottom->value())/UmReFaktor))*
(80.0/view->Doc->PageH));
p.drawRect(x, y, w, h);
BleedIcon->setPixmap(pm);
p.end();
}
 
void PDF_Opts::EnablePDFX(int a)
{
if (a != 2)
{
Options->setTabEnabled(tabPDFX, false);
Options->setTabEnabled(tabSecurity, true);
EmbedProfs2->setEnabled(true);
CheckBox10->setEnabled(true);
EmbedFonts->setEnabled(true);
OutCombo->setEnabled(true);
return;
}
EmbedFonts->setChecked(true);
EmbedAll();
CheckBox10->setChecked(false);
disconnect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
OutCombo->setCurrentItem(1);
OutCombo->setEnabled(false);
EnablePr(1);
EmbedProfs2->setChecked(true);
EmbedProfs2->setEnabled(false);
CheckBox10->setEnabled(false);
EmbedFonts->setEnabled(false);
EnablePGI();
Options->setTabEnabled(tabPDFX, true);
Options->setTabEnabled(tabSecurity, false);
if (InfoString->text() == "")
OK->setEnabled(false);
connect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
}
 
void PDF_Opts::EnablePDFX3save()
{
if (!InfoString->text().isEmpty())
OK->setEnabled(true);
else
OK->setEnabled(false);
}
 
void PDF_Opts::EnablePGI()
{
if (EmbedProfs2->isChecked())
{
NoEmbedded->setEnabled(true);
bool setter = NoEmbedded->isChecked() ? true : false;
ProfsTxt3->setEnabled(setter);
ProfsTxt4->setEnabled(setter);
ImageP->setEnabled(setter);
IntendI->setEnabled(setter);
}
else
{
ProfsTxt3->setEnabled(false);
ProfsTxt4->setEnabled(false);
ImageP->setEnabled(false);
IntendI->setEnabled(false);
NoEmbedded->setEnabled(false);
}
}
 
void PDF_Opts::EnablePGI2()
{
bool setter = NoEmbedded->isChecked() ? true : false;
ProfsTxt3->setEnabled(setter);
ProfsTxt4->setEnabled(setter);
ImageP->setEnabled(setter);
IntendI->setEnabled(setter);
}
 
void PDF_Opts::EnablePG()
{
bool setter = EmbedProfs->isChecked() ? true : false;
ProfsTxt1->setEnabled(setter);
ProfsTxt2->setEnabled(setter);
SolidPr->setEnabled(setter);
IntendS->setEnabled(setter);
}
 
void PDF_Opts::EnablePr(int a)
{
EnableLPI(a);
bool setter = a == 1 ? true : false;
GroupBox9->setEnabled(setter);
ProfsGroup->setEnabled(setter);
}
 
void PDF_Opts::EnableLPI(int a)
{
if (a == 1)
{
UseLPI->show();
if (UseLPI->isChecked())
LPIgroup->show();
else
LPIgroup->hide();
}
else
{
UseLPI->hide();
LPIgroup->hide();
}
tabColor->layout()->activate();
tabColor->updateGeometry();
adjustSize();
}
 
void PDF_Opts::EnableLPI2()
{
if (UseLPI->isChecked())
LPIgroup->show();
else
LPIgroup->hide();
tabColor->layout()->activate();
tabColor->updateGeometry();
adjustSize();
}
 
void PDF_Opts::SelLPIcol(int c)
{
Opts->LPISettings[SelLPIcolor].Frequency = LPIfreq->value();
Opts->LPISettings[SelLPIcolor].Angle = LPIangle->value();
Opts->LPISettings[SelLPIcolor].SpotFunc = LPIfunc->currentItem();
LPIfreq->setValue(Opts->LPISettings[LPIcolor->text(c)].Frequency);
LPIangle->setValue(Opts->LPISettings[LPIcolor->text(c)].Angle);
LPIfunc->setCurrentItem(Opts->LPISettings[LPIcolor->text(c)].SpotFunc);
SelLPIcolor = LPIcolor->text(c);
}
 
void PDF_Opts::SelRange(bool e)
{
bool setter = e ? false : true;
PageNr->setEnabled( setter );
if (setter == false)
CheckBM->setChecked(false);
}
 
void PDF_Opts::EffectOnAll()
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
{
EffVal[pg].pageViewDuration = PageTime->value();
EffVal[pg].pageEffectDuration = EffectTime->value();
EffVal[pg].effectType = EffectType->currentItem();
EffVal[pg].Dm = EDirection->currentItem();
EffVal[pg].M = EDirection_2->currentItem();
EffVal[pg].Di = EDirection_2_2->currentItem();
}
}
 
void PDF_Opts::PDFMirror()
{
Opts->MirrorH = MirrorH->isOn();
Opts->MirrorV = MirrorV->isOn();
}
 
void PDF_Opts::Rotation( int value )
{
Opts->RotateDeg = value * 90;
}
 
void PDF_Opts::DoEffects()
{
bool setter = CheckBox10->isChecked() ? true : false;
Pages->setEnabled(setter);
Effects->setEnabled(setter);
PagePrev->setEnabled(setter);
}
 
void PDF_Opts::ValidDI(int nr)
{
if (!EDirection_2_2->listBox()->item(nr)->isSelectable())
EDirection_2_2->setCurrentItem(0);
}
 
void PDF_Opts::SetPgEff(int nr)
{
if (nr < 0)
return;
EffVal[PgSel].pageViewDuration = PageTime->value();
EffVal[PgSel].pageEffectDuration = EffectTime->value();
EffVal[PgSel].effectType = EffectType->currentItem();
EffVal[PgSel].Dm = EDirection->currentItem();
EffVal[PgSel].M = EDirection_2->currentItem();
EffVal[PgSel].Di = EDirection_2_2->currentItem();
SetEffOpts(EffVal[nr].effectType);
PageTime->setValue(EffVal[nr].pageViewDuration);
EffectTime->setValue(EffVal[nr].pageEffectDuration);
EffectType->setCurrentItem(EffVal[nr].effectType);
EDirection->setCurrentItem(EffVal[nr].Dm);
EDirection_2->setCurrentItem(EffVal[nr].M);
EDirection_2_2->setCurrentItem(EffVal[nr].Di);
PgSel = nr;
}
 
void PDF_Opts::SetEffOpts(int nr)
{
EDirection_2_2->listBox()->item(2)->setSelectable(false);
EDirection_2_2->listBox()->item(3)->setSelectable(false);
EDirection_2_2->listBox()->item(4)->setSelectable(false);
switch (nr)
{
case 0:
case 3:
EDirection->setEnabled(false);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(false);
break;
case 1:
EDirection->setEnabled(true);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(false);
break;
case 2:
EDirection->setEnabled(false);
EDirection_2->setEnabled(true);
EDirection_2_2->setEnabled(false);
break;
case 4:
case 6:
EDirection->setEnabled(false);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(true);
if (nr == 6)
{
EDirection_2_2->listBox()->item(2)->setSelectable(true);
EDirection_2_2->listBox()->item(3)->setSelectable(true);
}
else
EDirection_2_2->listBox()->item(4)->setSelectable(true);
break;
case 5:
EDirection->setEnabled(true);
EDirection_2->setEnabled(true);
EDirection_2_2->setEnabled(false);
break;
}
}
 
void PDF_Opts::PagePr()
{
disconnect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
QString tmp;
int ci = Pages->currentItem();
if (PagePrev->isChecked())
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
Pages->changeItem(view->PageToPixmap(pg, 70), tr("Page")+" "+tmp.setNum(pg+1), pg);
}
else
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
Pages->changeItem( tr("Page")+" "+tmp.setNum(pg+1), pg);
}
if (ci != -1)
{
PgSel = ci;
Pages->setCurrentItem(ci);
}
else
{
PgSel = 0;
Pages->clearSelection();
}
connect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
}
 
void PDF_Opts::DoDownsample()
{
if (DSColor->isChecked())
{
ValC->setEnabled(true);
if (ValC->value() > Resolution->value())
ValC->setValue(Resolution->value());
ValC->setMaxValue(Resolution->value());
ValC->setMinValue(35);
}
else
ValC->setEnabled(false);
}
 
void PDF_Opts::RemoveEmbed()
{
FontsToEmbed.remove(EmbedList->currentText());
EmbedList->removeItem(EmbedList->currentItem());
EmbedList->clearSelection();
if (EmbedList->count() == 0)
{
FromEmbed->setEnabled(false);
ToSubset->setEnabled(false);
}
}
 
void PDF_Opts::PutToEmbed()
{
if (EmbedList->count() != 0)
{
if (EmbedList->findItem(AvailFlist->currentText()) == NULL)
{
FontsToEmbed.append(AvailFlist->currentText());
EmbedList->insertItem(AvailFlist->currentText());
}
}
else
{
FontsToEmbed.append(AvailFlist->currentText());
EmbedList->insertItem(AvailFlist->currentText());
}
}
 
void PDF_Opts::RemoveSubset()
{
FontsToSubset.remove(SubsetList->currentText());
FontsToEmbed.append(SubsetList->currentText());
EmbedList->insertItem(SubsetList->currentText());
SubsetList->removeItem(SubsetList->currentItem());
SubsetList->clearSelection();
if (SubsetList->count() == 0)
FromSubset->setEnabled(false);
}
 
void PDF_Opts::PutToSubset()
{
if (SubsetList->count() != 0)
{
if (SubsetList->findItem(EmbedList->currentText()) == NULL)
{
FontsToSubset.append(EmbedList->currentText());
SubsetList->insertItem(EmbedList->currentText());
}
}
else
{
FontsToSubset.append(EmbedList->currentText());
SubsetList->insertItem(EmbedList->currentText());
}
FontsToEmbed.remove(EmbedList->currentText());
EmbedList->removeItem(EmbedList->currentItem());
EmbedList->clearSelection();
if (EmbedList->count() == 0)
{
FromEmbed->setEnabled(false);
ToSubset->setEnabled(false);
}
}
 
void PDF_Opts::SelAFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromEmbed->setEnabled(false);
if (c->isSelectable())
ToEmbed->setEnabled(true);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
EmbedList->clearSelection();
SubsetList->clearSelection();
}
}
 
void PDF_Opts::SelEFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromEmbed->setEnabled(true);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(true);
FromSubset->setEnabled(false);
AvailFlist->clearSelection();
SubsetList->clearSelection();
}
}
 
void PDF_Opts::SelSFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromSubset->setEnabled(true);
ToSubset->setEnabled(false);
ToEmbed->setEnabled(false);
FromEmbed->setEnabled(false);
EmbedList->clearSelection();
AvailFlist->clearSelection();
}
}
 
void PDF_Opts::EmbedAll()
{
if (EmbedFonts->isChecked())
{
SubsetFonts->setChecked(false);
EmbedList->clear();
FontsToEmbed.clear();
SubsetList->clear();
FontsToSubset.clear();
FromEmbed->setEnabled(false);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
for (uint a=0; a < AvailFlist->count(); ++a)
{
if (AvailFlist->item(a)->isSelectable())
{
FontsToEmbed.append(AvailFlist->item(a)->text());
EmbedList->insertItem(AvailFlist->item(a)->text());
}
}
}
}
 
void PDF_Opts::SubsetAll()
{
if (SubsetFonts->isChecked())
{
EmbedFonts->setChecked(false);
EmbedList->clear();
FontsToEmbed.clear();
SubsetList->clear();
FontsToSubset.clear();
FromEmbed->setEnabled(false);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
for (uint a=0; a < AvailFlist->count(); ++a)
{
if (AvailFlist->item(a)->isSelectable())
{
FontsToSubset.append(AvailFlist->item(a)->text());
SubsetList->insertItem(AvailFlist->item(a)->text());
}
}
}
}
 
void PDF_Opts::ChangeFile()
{
QString fn;
/branches/Version13x/Scribus/scribus/tabpdfoptions.h
0,0 → 1,230
#ifndef TABPDF_OPTS_H
#define TABPDF_OPTS_H
#include <qtabwidget.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qlistbox.h>
#include <qmap.h>
#include <qvaluelist.h>
#include <qbuttongroup.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qradiobutton.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qpushbutton.h>
#include <qtoolbutton.h>
#include <qlineedit.h>
#include <qlabel.h>
#include "bookmwin.h"
#include "mspinbox.h"
 
class TabPDFOptions : public QTabWidget
{
Q_OBJECT
 
public:
TabPDFOptions( QWidget* parent,
PDFOptions *Optionen,
SCFonts &AllFonts,
ProfilesL *PDFXProfiles,
QMap<QString,QFont> DocFonts,
QValueList<PDFPresentationData> Eff,
double unitBase,
QString unit,
double PageH,
double PageB,
ScribusView *vie = 0 );
~TabPDFOptions() {};
 
QWidget* tabGeneral;
QWidget* tabFonts;
QWidget* tabPresentation;
QWidget* tabSecurity;
QWidget* tabColor;
QWidget* tabPDFX;
QLabel* TextLabel1;
QSpinBox* Resolution;
QCheckBox* Article;
QCheckBox* Compression;
QCheckBox* DSColor;
QSpinBox* ValC;
QGroupBox* CBox;
QLabel* TextCom1;
QLabel* TextCom2;
QComboBox* CQuality;
QComboBox* CMethod;
QGroupBox* GroupBox1;
QLabel* TextLabel2;
QComboBox* ComboBox1;
QLabel* TextLabel1x;
QComboBox* ComboBind;
QCheckBox* CheckBox1;
QToolButton* MirrorH;
QToolButton* MirrorV;
QComboBox* RotateDeg;
QLabel* TextLabel3;
QCheckBox* CheckBox10;
QPushButton* EonAllPg;
 
QLabel* TextLabel1e;
QLabel* TextLabel2e;
QLabel* TextLabel3e;
QLabel* TextLabel4e;
QLabel* TextLabel5e;
QLabel* TextLabel6e;
QComboBox* EffectType;
QComboBox* EDirection;
QComboBox* EDirection_2;
QComboBox* EDirection_2_2;
QSpinBox* PageTime;
QSpinBox* EffectTime;
QListBox* Pages;
QGroupBox* Effects;
QCheckBox* PagePrev;
QCheckBox* CheckBM;
QCheckBox* EmbedFonts;
QGroupBox* GroupFont;
QLabel* TextFont1;
QListBox* AvailFlist;
QPushButton* ToEmbed;
QPushButton* FromEmbed;
QLabel* TextFont1_2;
QLabel* TextFont1_2a;
QButtonGroup* RangeGroup;
QRadioButton* AllPages;
QRadioButton* OnlySome;
QLineEdit* PageNr;
QListBox* EmbedList;
QPushButton* ToSubset;
QPushButton* FromSubset;
QListBox* SubsetList;
QCheckBox* SubsetFonts;
QGroupBox* ColorGroup;
QGroupBox* GroupBox9;
QLabel* ColorText1;
QComboBox* OutCombo;
QCheckBox* EmbedProfs;
QCheckBox* EmbedProfs2;
QGroupBox* ProfsGroup;
QComboBox* SolidPr;
QLabel* ProfsTxt1;
QComboBox* ImageP;
QCheckBox* NoEmbedded;
QLabel* ProfsTxt3;
QLabel* ProfsTxt4;
QLabel* ProfsTxt2;
QComboBox* IntendS;
QComboBox* IntendI;
QGroupBox* X3Group;
QComboBox* PrintProfC;
QLineEdit* InfoString;
QLabel* PDFX2;
QLabel* PDFX1;
QGroupBox* BleedGroup;
QLabel* BleedIcon;
MSpinBox* BleedTop;
MSpinBox* BleedBottom;
MSpinBox* BleedRight;
MSpinBox* BleedLeft;
QGroupBox* GroupPass;
QLabel* TextSec2;
QLabel* TextSec1;
QLineEdit* PassOwner;
QLineEdit* PassUser;
QGroupBox* GroupSecSet;
QCheckBox* PrintSec;
QCheckBox* PrintSec2;
QCheckBox* ModifySec;
QCheckBox* CopySec;
QCheckBox* AddSec;
QCheckBox* Encry;
QGroupBox* LPIgroup;
QCheckBox* UseLPI;
QSpinBox* LPIfreq;
QSpinBox* LPIangle;
QLabel* textLPI1;
QLabel* textLPI2;
QLabel* textLPI3;
QComboBox* LPIcolor;
QComboBox* LPIfunc;
QValueList<QString> FontsToEmbed;
QValueList<QString> FontsToSubset;
ScribusView *view;
QValueList<PDFPresentationData> EffVal;
int PgSel;
QString SelLPIcolor;
PDFOptions *Opts;
double pageH;
double pageB;
double unitConv;
bool cms;
 
public slots:
void ToggleEncr();
void BleedChanged();
void EnablePDFX(int a);
void DoDownsample();
void RemoveEmbed();
void PutToEmbed();
void RemoveSubset();
void PutToSubset();
void SelAFont(QListBoxItem*);
void SelEFont(QListBoxItem*);
void SelSFont(QListBoxItem*);
void EmbedAll();
void SubsetAll();
void PagePr();
void SetPgEff(int nr);
void SetEffOpts(int nr);
void ValidDI(int nr);
void PDFMirror();
void Rotation(int value);
void DoEffects();
void EffectOnAll();
void SelRange(bool e);
void EnablePr(int a);
void EnablePG();
void EnablePGI();
void EnablePGI2();
void EnableLPI(int a);
void EnableLPI2();
void SelLPIcol(int);
void enableCMS(bool enable);
 
protected:
QGridLayout* CBoxLayout;
QVBoxLayout* tabLayout;
QVBoxLayout* Layout3;
QHBoxLayout* Layout2;
QVBoxLayout* tabLayout_3;
QHBoxLayout* GroupFontLayout;
QVBoxLayout* Layout4_2;
QVBoxLayout* Layout5_2;
QHBoxLayout* Layout5_2a;
QVBoxLayout* Layout6;
QGridLayout* GroupBox1Layout;
QGridLayout* GroupBox9Layout;
QGridLayout* GroupBox2Layout;
QGridLayout* tabLayout_5;
QGridLayout* tabOptionsGridLayout;
QGridLayout* EffectsLayout;
QHBoxLayout* Layout13;
QVBoxLayout* RangeGroupLayout;
QGridLayout* Layout11;
QGridLayout* Layout11a;
QVBoxLayout* tabColorLayout;
QHBoxLayout* ColorGroupLayout;
QGridLayout* ProfsGroupLayout;
QVBoxLayout* tabPDFXLayout;
QGridLayout* X3GroupLayout;
QGridLayout* BleedGroupLayout;
QVBoxLayout* tabSecurityLayout;
QGridLayout* GroupPassLayout;
QVBoxLayout* GroupSecSetLayout;
QGridLayout* LPIgroupLayout;
};
#endif
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/Makefile.am
===================================================================
--- branches/Version13x/Scribus/scribus/Makefile.am (revision 1306)
+++ branches/Version13x/Scribus/scribus/Makefile.am (revision 1307)
@@ -1,7 +1,7 @@
bin_PROGRAMS = scribus
-scribus_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp prefsfile.cpp prefscontext.cpp prefsreader.cpp prefstable.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
-SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp libpdf/pdflib.cpp libpostscript/pslib.cpp plugins/libchar/charselect.cpp libprefs/prefs.cpp libabout/about.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
+scribus_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabpdfoptions.cpp tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp prefsfile.cpp prefscontext.cpp prefsreader.cpp prefstable.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
+SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabpdfoptions.cpp tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp libpdf/pdflib.cpp libpostscript/pslib.cpp plugins/libchar/charselect.cpp libprefs/prefs.cpp libabout/about.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
INTERFACES =
TRANSLATIONS =
@@ -8,7 +8,7 @@
SUBDIRS = dicts doc icons libabout libpdf libpostscript libprefs manpages plugins po profiles qm templates
-EXTRA_DIST = main.cpp scribus.cpp scribus.h scribusdoc.cpp scribusdoc.h scribusview.cpp scribusview.h newfile.h newfile.cpp pageitem.cpp pageitem.h hruler.cpp hruler.h vruler.cpp vruler.h colorm.cpp colorm.h query.cpp query.h dcolor.cpp dcolor.h cpalette.cpp cpalette.h mdup.cpp mdup.h docinfo.cpp docinfo.h reformdoc.cpp reformdoc.h serializer.cpp serializer.h align.cpp align.h fmitem.cpp fmitem.h fontprefs.cpp fontprefs.h missing.cpp missing.h tree.cpp tree.h pdfopts.cpp pdfopts.h inspage.cpp inspage.h delpages.cpp delpages.h movepage.cpp movepage.h mspinbox.cpp mspinbox.h helpbrowser.cpp helpbrowser.h icons5.h linkbutton.cpp linkbutton.h icons6.h linecombo.cpp linecombo.h scribusXml.cpp scribusXml.h cmykfw.cpp cmykfw.h cmykcolor.cpp cmykcolor.h util.cpp colorchart.cpp colorchart.h druck.cpp druck.h editformats.cpp editformats.h edit1format.cpp edit1format.h spalette.cpp spalette.h frameedit.cpp frameedit.h scfonts.cpp scfonts.h scrap.cpp scrap.h scfonts_ttf.cpp scfonts_ttf.h muster.cpp muster.h applytemplate.cpp applytemplate.h newtemp.cpp newtemp.h picstatus.cpp picstatus.h picsearch.cpp picsearch.h customfdialog.cpp customfdialog.h cmsprefs.cpp cmsprefs.h bookmwin.cpp bookmwin.h annot.cpp annot.h navigator.cpp navigator.h keymanager.cpp keymanager.h werktoolb.cpp werktoolb.h mpalette.h mpalette.cpp polyprops.cpp polyprops.h layers.cpp layers.h page.cpp page.h editor.cpp editor.h selfield.cpp selfield.h javadocs.cpp javadocs.h buttonicon.cpp buttonicon.h annota.cpp annota.h fpoint.cpp fpoint.h fpointarray.cpp fpointarray.h seiten.cpp seiten.h hysettings.cpp hysettings.h hnjalloc.c hnjalloc.h hyask.cpp hyask.h hyphen.c hyphen.h hyphenator.cpp hyphenator.h scribuswin.cpp scribuswin.h guidemanager.cpp guidemanager.h cupsoptions.cpp cupsoptions.h md5.c md5.h rc4.c rc4.h mergedoc.cpp mergedoc.h bookpalette.cpp bookpalette.h splash.h fontcombo.h scpainter.cpp scpainter.h vgradient.cpp vgradient.h story.cpp story.h autoform.cpp autoform.h fparser.cpp fparser.h tabmanager.cpp tabmanager.h search.cpp search.h styleselect.cpp styleselect.h alignselect.cpp alignselect.h shadebutton.cpp shadebutton.h pageselector.cpp color.h gtaction.cpp gtaction.h gtwriter.cpp gtwriter.h gtfont.cpp gtfont.h gtdialogs.cpp gtdialogs.h gtstyle.cpp gtstyle.h gtframestyle.cpp gtframestyle.h gtparagraphstyle.cpp gtparagraphstyle.h gtmeasure.cpp gtmeasure.h undomanager.cpp undomanager.h undostate.cpp undostate.h undoobject.cpp undoobject.h undogui.cpp undogui.h prefsfile.cpp prefsfile.h prefscontext.cpp prefscontext.h prefsreader.cpp prefsreader.h prefstable.cpp prefstable.h langmgr.h langmgr.cpp polygonwidget.cpp polygonwidget.h fileloader.cpp fileloader.h prefsdialogbase.cpp prefsdialogbase.h gradienteditor.cpp gradienteditor.h pageselector.h insertTable.cpp insertTable.h tabtools.cpp tabtools.h tabguides.cpp tabguides.h tabtypography.cpp tabtypography.h tabcheckdoc.cpp tabcheckdoc.h arrowchooser.cpp arrowchooser.h charselect.cpp charselect.h filewatcher.cpp filewatcher.h checkDocument.cpp checkDocument.h art_kmisc.c art_kmisc.h art_render_misc.c art_render_misc.h art_render_pattern.c art_render_pattern.h art_rgb.c art_rgb.h art_rgb_affine_private.c art_rgb_affine_private.h art_rgb_svp.c art_rgb_svp.h art_rgba_affine.c art_rgba_affine.h gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-private.h gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlib.h gdk-pixbuf-xlibrgb.c gdk-pixbuf-xlibrgb.h LoremIpsum.txt rgbscribus.txt rgbscribusgreys.txt rgbscribusgnome.txt rgbsvg.txt units.h units.cpp scribusstructs.h scraction.cpp scraction.h menumanager.cpp menumanager.h scmenu.cpp scmenu.h
+EXTRA_DIST = main.cpp scribus.cpp scribus.h scribusdoc.cpp scribusdoc.h scribusview.cpp scribusview.h newfile.h newfile.cpp pageitem.cpp pageitem.h hruler.cpp hruler.h vruler.cpp vruler.h colorm.cpp colorm.h query.cpp query.h dcolor.cpp dcolor.h cpalette.cpp cpalette.h mdup.cpp mdup.h docinfo.cpp docinfo.h reformdoc.cpp reformdoc.h serializer.cpp serializer.h align.cpp align.h fmitem.cpp fmitem.h fontprefs.cpp fontprefs.h missing.cpp missing.h tree.cpp tree.h pdfopts.cpp pdfopts.h inspage.cpp inspage.h delpages.cpp delpages.h movepage.cpp movepage.h mspinbox.cpp mspinbox.h helpbrowser.cpp helpbrowser.h icons5.h linkbutton.cpp linkbutton.h icons6.h linecombo.cpp linecombo.h scribusXml.cpp scribusXml.h cmykfw.cpp cmykfw.h cmykcolor.cpp cmykcolor.h util.cpp colorchart.cpp colorchart.h druck.cpp druck.h editformats.cpp editformats.h edit1format.cpp edit1format.h spalette.cpp spalette.h frameedit.cpp frameedit.h scfonts.cpp scfonts.h scrap.cpp scrap.h scfonts_ttf.cpp scfonts_ttf.h muster.cpp muster.h applytemplate.cpp applytemplate.h newtemp.cpp newtemp.h picstatus.cpp picstatus.h picsearch.cpp picsearch.h customfdialog.cpp customfdialog.h cmsprefs.cpp cmsprefs.h bookmwin.cpp bookmwin.h annot.cpp annot.h navigator.cpp navigator.h keymanager.cpp keymanager.h werktoolb.cpp werktoolb.h mpalette.h mpalette.cpp polyprops.cpp polyprops.h layers.cpp layers.h page.cpp page.h editor.cpp editor.h selfield.cpp selfield.h javadocs.cpp javadocs.h buttonicon.cpp buttonicon.h annota.cpp annota.h fpoint.cpp fpoint.h fpointarray.cpp fpointarray.h seiten.cpp seiten.h hysettings.cpp hysettings.h hnjalloc.c hnjalloc.h hyask.cpp hyask.h hyphen.c hyphen.h hyphenator.cpp hyphenator.h scribuswin.cpp scribuswin.h guidemanager.cpp guidemanager.h cupsoptions.cpp cupsoptions.h md5.c md5.h rc4.c rc4.h mergedoc.cpp mergedoc.h bookpalette.cpp bookpalette.h splash.h fontcombo.h scpainter.cpp scpainter.h vgradient.cpp vgradient.h story.cpp story.h autoform.cpp autoform.h fparser.cpp fparser.h tabmanager.cpp tabmanager.h search.cpp search.h styleselect.cpp styleselect.h alignselect.cpp alignselect.h shadebutton.cpp shadebutton.h pageselector.cpp color.h gtaction.cpp gtaction.h gtwriter.cpp gtwriter.h gtfont.cpp gtfont.h gtdialogs.cpp gtdialogs.h gtstyle.cpp gtstyle.h gtframestyle.cpp gtframestyle.h gtparagraphstyle.cpp gtparagraphstyle.h gtmeasure.cpp gtmeasure.h undomanager.cpp undomanager.h undostate.cpp undostate.h undoobject.cpp undoobject.h undogui.cpp undogui.h prefsfile.cpp prefsfile.h prefscontext.cpp prefscontext.h prefsreader.cpp prefsreader.h prefstable.cpp prefstable.h langmgr.h langmgr.cpp polygonwidget.cpp polygonwidget.h fileloader.cpp fileloader.h prefsdialogbase.cpp prefsdialogbase.h gradienteditor.cpp gradienteditor.h pageselector.h insertTable.cpp insertTable.h tabtools.cpp tabtools.h tabguides.cpp tabguides.h tabtypography.cpp tabtypography.h tabcheckdoc.cpp tabcheckdoc.h tabpdfoptions.cpp tabpdfoptions.h arrowchooser.cpp arrowchooser.h charselect.cpp charselect.h filewatcher.cpp filewatcher.h checkDocument.cpp checkDocument.h art_kmisc.c art_kmisc.h art_render_misc.c art_render_misc.h art_render_pattern.c art_render_pattern.h art_rgb.c art_rgb.h art_rgb_affine_private.c art_rgb_affine_private.h art_rgb_svp.c art_rgb_svp.h art_rgba_affine.c art_rgba_affine.h gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-private.h gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlib.h gdk-pixbuf-xlibrgb.c gdk-pixbuf-xlibrgb.h LoremIpsum.txt rgbscribus.txt rgbscribusgreys.txt rgbscribusgnome.txt rgbsvg.txt units.h units.cpp scribusstructs.h scraction.cpp scraction.h menumanager.cpp menumanager.h scmenu.cpp scmenu.h
install-data-local:
$(mkinstalldirs) $(prefix)/share/scribus/samples/
/branches/Version13x/Scribus/scribus/libprefs/prefs.cpp
13,6 → 13,7
#include <qrect.h>
#include <qwmatrix.h>
#include <cmath>
#include "units.h"
#include "langmgr.h"
#include "tabtypography.h"
#include "tabguides.h"
22,6 → 23,7
#include "tabtools.h"
#include "undomanager.h"
#include "tabcheckdoc.h"
#include "tabpdfoptions.h"
 
using namespace std;
 
375,6 → 377,20
tabColorManagement = new CMSPrefs(prefsWidgets, &prefsData->DCMSset, &InputProfiles, &ap->PrinterProfiles, &ap->MonitorProfiles);
addItem( tr("Color Management"), loadIcon("blend.png"), tabColorManagement);
}
QMap<QString,QFont> DocFonts;
DocFonts.clear();
tabPDF = new TabPDFOptions( prefsWidgets,
&prefsData->PDF_Optionen,
ap->Prefs.AvailFonts,
&ap->PDFXProfiles,
DocFonts,
prefsData->PDF_Optionen.PresentVals,
Umrech,
unitGetSuffixFromIndex(prefsData->docUnitIndex),
prefsData->PageHoehe,
prefsData->PageBreite,
0 );
addItem( tr("PDF Export"), loadIcon("acroread.png"), tabPDF);
 
tabKeys = new KeyManager(this, prefsData->KeyActions);
addItem( tr("Keyboard Shortcuts"), loadIcon("key_bindings.png"), tabKeys);
686,6 → 702,8
connect(FileC4, SIGNAL(clicked()), this, SLOT(changeTemplates()));
connect(CaliSlider, SIGNAL(valueChanged(int)), this, SLOT(setDisScale()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(setActionHistoryLength()));
if (CMSavail)
connect(tabColorManagement, SIGNAL(cmsOn(bool )), this, SLOT(switchCMS(bool )));
setSize(prefsData->PageFormat);
setOrien(prefsData->Ausrichtung);
pageWidth->setValue(prefsData->PageBreite * Umrech);
1039,6 → 1057,10
bottomScratch->setSuffix(einh);
leftScratch->setSuffix(einh);
rightScratch->setSuffix(einh);
tabPDF->BleedBottom->setSuffix(einh);
tabPDF->BleedTop->setSuffix(einh);
tabPDF->BleedRight->setSuffix(einh);
tabPDF->BleedLeft->setSuffix(einh);
pageWidth->setValues(oldB * Umrech, oldBM * Umrech, decimals, Pagebr * Umrech);
pageHeight->setValues(oldH * Umrech, oldHM * Umrech, decimals, Pageho * Umrech);
TopR->setValues(0, pageHeight->value() - RandB * Umrech, decimals, RandT * Umrech);
1067,6 → 1089,15
leftScratch->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
rightScratch->getValues(&oldMin, &oldMax, &decimalsOld, &val);
rightScratch->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
tabPDF->BleedBottom->getValues(&oldMin, &oldMax, &decimalsOld, &val);
tabPDF->BleedBottom->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
tabPDF->BleedTop->getValues(&oldMin, &oldMax, &decimalsOld, &val);
tabPDF->BleedTop->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
tabPDF->BleedRight->getValues(&oldMin, &oldMax, &decimalsOld, &val);
tabPDF->BleedRight->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
tabPDF->BleedLeft->getValues(&oldMin, &oldMax, &decimalsOld, &val);
tabPDF->BleedLeft->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
tabPDF->unitConv = Umrech;
drawRuler();
connect(pageWidth, SIGNAL(valueChanged(int)), this, SLOT(setPageWidth(int)));
connect(pageHeight, SIGNAL(valueChanged(int)), this, SLOT(setPageHeight(int)));
1181,3 → 1212,8
UndoManager::instance()->setHistoryLength(urSpinBox->value());
}
 
void Preferences::switchCMS(bool enable)
{
tabPDF->enableCMS(enable);
}
 
/branches/Version13x/Scribus/scribus/libprefs/prefs.h
32,6 → 32,7
class TabGuides;
class TabTools;
class TabCheckDoc;
class TabPDFOptions;
 
#include "langmgr.h"
 
103,6 → 104,7
HySettings* tabHyphenator;
TabCheckDoc* tabDocChecker;
CMSPrefs* tabColorManagement;
TabPDFOptions* tabPDF;
KeyManager* tabKeys;
 
QLabel* textLabelP;
192,6 → 194,7
void changePapColor();
void unitChange();
void setDisScale();
void switchCMS(bool enable);
 
protected:
QGridLayout* tabLayout;
/branches/Version13x/Scribus/scribus/tabpdfoptions.cpp
0,0 → 1,1398
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "tabpdfoptions.h"
#include "tabpdfoptions.moc"
 
#include <qpainter.h>
#include "units.h"
 
#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#include "win-config.h"
#endif
#else
#include "config.h"
#endif
 
extern QPixmap loadIcon(QString nam);
extern ProfilesL InputProfiles;
#ifdef HAVE_CMS
extern bool CMSuse;
#endif
extern bool CMSavail;
#include "scribus.h"
extern ScribusApp* ScApp;
 
 
TabPDFOptions::TabPDFOptions( QWidget* parent,
PDFOptions *Optionen,
SCFonts &AllFonts,
ProfilesL *PDFXProfiles,
QMap<QString,QFont> DocFonts,
QValueList<PDFPresentationData> Eff,
double unitBase,
QString unit,
double PageH,
double PageB,
ScribusView *vie )
: QTabWidget( parent, "pdf" )
{
FontsToEmbed.clear();
view = vie;
EffVal = Eff;
Opts = Optionen;
pageH = PageH;
pageB = PageB;
unitConv = unitBase;
tabGeneral = new QWidget( this, "tabGeneral" );
tabLayout = new QVBoxLayout( tabGeneral );
tabLayout->setSpacing( 5 );
tabLayout->setMargin( 10 );
Layout13 = new QHBoxLayout( 0, 0, 5, "Layout13");
RangeGroup = new QButtonGroup( tabGeneral, "RangeGroup" );
RangeGroup->setTitle( tr( "Export Range" ) );
RangeGroup->setColumnLayout(0, Qt::Vertical );
RangeGroup->layout()->setSpacing( 5 );
RangeGroup->layout()->setMargin( 10 );
RangeGroupLayout = new QVBoxLayout( RangeGroup->layout() );
RangeGroupLayout->setAlignment( Qt::AlignTop );
AllPages = new QRadioButton( tr( "&All Pages" ), RangeGroup, "AllPages" );
AllPages->setChecked( true );
RangeGroupLayout->addWidget( AllPages );
Layout11 = new QGridLayout( 0, 1, 1, 0, 5, "Layout11");
OnlySome = new QRadioButton( tr( "C&hoose Pages" ), RangeGroup, "OnlySome" );
Layout11->addWidget( OnlySome, 0, 0 );
PageNr = new QLineEdit( RangeGroup, "PageNr" );
PageNr->setEnabled(false);
Layout11->addWidget( PageNr, 1, 0 );
RangeGroupLayout->addLayout( Layout11 );
TextLabel3 = new QLabel( tr( "&Rotation:" ), RangeGroup, "TextLabel3" );
RangeGroupLayout->addWidget( TextLabel3 );
RotateDeg = new QComboBox( true, RangeGroup, "RotateDeg" );
RotateDeg->insertItem(QString::fromUtf8("0 °"));
RotateDeg->insertItem(QString::fromUtf8("90 °"));
RotateDeg->insertItem(QString::fromUtf8("180 °"));
RotateDeg->insertItem(QString::fromUtf8("270 °"));
RotateDeg->setEditable(false);
TextLabel3->setBuddy(RotateDeg);
RotateDeg->setCurrentItem(Optionen->RotateDeg / 90);
RangeGroupLayout->addWidget( RotateDeg );
Layout11a = new QGridLayout( 0, 1, 1, 0, 5, "Layout11a");
MirrorH = new QToolButton( RangeGroup, "MirrorH" );
MirrorH->setPixmap(loadIcon("FlipH.xpm"));
MirrorH->setToggleButton( true );
MirrorH->setOn(Optionen->MirrorH);
Layout11a->addWidget( MirrorH, 0, 0 );
MirrorV = new QToolButton( RangeGroup, "MirrorH" );
MirrorV->setPixmap(loadIcon("FlipV.xpm"));
MirrorV->setToggleButton( true );
MirrorV->setOn(Optionen->MirrorV);
Layout11a->addWidget( MirrorV, 0, 1 );
RangeGroupLayout->addLayout( Layout11a );
Layout13->addWidget( RangeGroup );
 
GroupBox1 = new QGroupBox( tr( "File Options" ), tabGeneral, "GroupBox1" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 5 );
GroupBox1Layout->setMargin( 10 );
TextLabel1 = new QLabel( tr( "Compatibilit&y:" ), GroupBox1, "TextLabel1" );
TextLabel1->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel1, 0, 0 );
ComboBox1 = new QComboBox( true, GroupBox1, "ComboBox1" );
ComboBox1->insertItem("Acrobat 4.0");
ComboBox1->insertItem("Acrobat 5.0");
#ifdef HAVE_CMS
if ((CMSuse) && (CMSavail) && (!PDFXProfiles->isEmpty()))
ComboBox1->insertItem("PDF/X-3");
#endif
ComboBox1->setEditable(false);
TextLabel1->setBuddy(ComboBox1);
#ifdef HAVE_CMS
if ((CMSuse) && (CMSavail))
{
if (Optionen->Version == 12)
ComboBox1->setCurrentItem(2);
}
else
ComboBox1->setCurrentItem(0);
#endif
cms = CMSuse && CMSavail;
if (Optionen->Version == 13)
ComboBox1->setCurrentItem(0);
if (Optionen->Version == 14)
ComboBox1->setCurrentItem(1);
GroupBox1Layout->addMultiCellWidget( ComboBox1, 0, 0, 1, 2, AlignLeft );
TextLabel1x = new QLabel( tr( "&Binding:" ), GroupBox1, "TextLabel1" );
TextLabel1x->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel1x, 1, 0 );
ComboBind = new QComboBox( true, GroupBox1, "ComboBind" );
ComboBind->insertItem( tr("Left Margin"));
ComboBind->insertItem( tr("Right Margin"));
ComboBind->setEditable(false);
ComboBind->setCurrentItem(Optionen->Binding);
TextLabel1x->setBuddy(ComboBind);
GroupBox1Layout->addMultiCellWidget( ComboBind, 1, 1, 1, 2, AlignLeft );
CheckBox1 = new QCheckBox( tr( "Generate &Thumbnails" ), GroupBox1, "CheckBox1" );
CheckBox1->setChecked(Optionen->Thumbnails);
GroupBox1Layout->addMultiCellWidget( CheckBox1, 2, 2, 0, 2 );
Article = new QCheckBox( tr( "Save &Linked Text Frames as PDF Articles" ), GroupBox1, "CheckBox1" );
Article->setChecked(Optionen->Articles);
GroupBox1Layout->addMultiCellWidget( Article, 3, 3, 0, 2 );
CheckBM = new QCheckBox( tr( "&Include Bookmarks" ), GroupBox1, "E" );
CheckBM->setChecked(Optionen->Bookmarks);
GroupBox1Layout->addMultiCellWidget( CheckBM, 4, 4, 0, 2 );
Resolution = new QSpinBox( GroupBox1, "Resolution" );
Resolution->setMaxValue( 4000 );
Resolution->setMinValue( 35 );
Resolution->setValue(Optionen->Resolution);
Resolution->setSuffix( tr( " dpi" ) );
TextLabel2 = new QLabel( Resolution, tr( "&Resolution:" ), GroupBox1, "TextLabel2" );
TextLabel2->setAlignment( static_cast<int>( QLabel::AlignVCenter | QLabel::AlignLeft ) );
GroupBox1Layout->addWidget( TextLabel2, 5, 0 );
GroupBox1Layout->addWidget( Resolution, 5, 1, AlignLeft );
Layout13->addWidget( GroupBox1 );
tabLayout->addLayout( Layout13 );
Compression = new QCheckBox( tr( "Com&press Text and Vector Graphics" ), tabGeneral, "Compression" );
Compression->setChecked( Optionen->Compress );
tabLayout->addWidget( Compression );
CBox = new QGroupBox( tr( "Image Settings" ), tabGeneral, "CBox" );
CBox->setColumnLayout(0, Qt::Vertical );
CBox->layout()->setSpacing( 5 );
CBox->layout()->setMargin( 11 );
CBoxLayout = new QGridLayout( CBox->layout() );
CBoxLayout->setAlignment( Qt::AlignTop );
CMethod = new QComboBox( true, CBox, "CMethod" );
CMethod->clear();
CMethod->insertItem( tr( "Automatic" ) );
CMethod->insertItem( tr( "JPEG" ) );
CMethod->insertItem( tr( "Zip" ) );
CMethod->insertItem( tr( "None" ) );
CMethod->setEditable(false);
CMethod->setCurrentItem(Optionen->CompressMethod);
TextCom1 = new QLabel( CMethod, tr( "&Method:" ), CBox, "TextCom1" );
CBoxLayout->addWidget( TextCom1, 0, 0 ); CBoxLayout->addWidget( CMethod, 0, 1 );
TextCom2 = new QLabel( tr( "&Quality:" ), CBox, "TextCom2" );
CBoxLayout->addWidget( TextCom2, 1, 0 );
CQuality = new QComboBox( true, CBox, "CQuality" );
CQuality->clear();
CQuality->insertItem( tr( "Maximum" ) );
CQuality->insertItem( tr( "High" ) );
CQuality->insertItem( tr( "Medium" ) );
CQuality->insertItem( tr( "Low" ) );
CQuality->insertItem( tr( "Minimum" ) );
CQuality->setEditable(false);
CQuality->setCurrentItem(Optionen->Quality);
TextCom2->setBuddy(CQuality);
CBoxLayout->addWidget( CQuality, 1, 1 );
DSColor = new QCheckBox( tr( "&Downsample Images to:" ), CBox, "DSColor" );
DSColor->setChecked(Optionen->RecalcPic);
CBoxLayout->addWidget( DSColor, 2, 0 );
ValC = new QSpinBox( CBox, "ValC" );
ValC->setSuffix( tr( " dpi" ) );
ValC->setMaxValue( 4000 );
ValC->setMinValue( 35 );
ValC->setValue(Optionen->PicRes);
ValC->setEnabled(DSColor->isChecked() ? true : false);
CBoxLayout->addWidget( ValC, 2, 1, AlignLeft );
tabLayout->addWidget( CBox );
insertTab( tabGeneral, tr( "&General" ) );
if (vie != 0)
{
tabFonts = new QWidget( this, "tabFonts" );
tabLayout_3 = new QVBoxLayout( tabFonts );
tabLayout_3->setSpacing( 5 );
tabLayout_3->setMargin( 11 );
EmbedFonts = new QCheckBox( tr( "&Embed all Fonts" ), tabFonts, "EmbedFonts" );
tabLayout_3->addWidget( EmbedFonts );
SubsetFonts = new QCheckBox( tr( "&Subset all Fonts" ), tabFonts, "SubsetFonts" );
tabLayout_3->addWidget( SubsetFonts );
GroupFont = new QGroupBox( tr( "Embedding" ), tabFonts, "GroupFont" );
GroupFont->setColumnLayout(0, Qt::Vertical );
GroupFont->layout()->setSpacing( 0 );
GroupFont->layout()->setMargin( 0 );
GroupFontLayout = new QHBoxLayout( GroupFont->layout() );
GroupFontLayout->setAlignment( Qt::AlignTop );
GroupFontLayout->setSpacing( 5 );
GroupFontLayout->setMargin( 10 );
Layout4_2 = new QVBoxLayout;
Layout4_2->setSpacing( 5 );
Layout4_2->setMargin( 0 );
TextFont1 = new QLabel( tr( "Available Fonts:" ), GroupFont, "TextFont1" );
Layout4_2->addWidget( TextFont1 );
AvailFlist = new QListBox( GroupFont, "AvailFlist" );
QMap<QString,QFont>::Iterator it;
for (it = DocFonts.begin(); it != DocFonts.end(); ++it)
{
if (AllFonts[it.key()]->HasMetrics)
AvailFlist->insertItem(loadIcon("ok.png"), it.key());
else
{
AvailFlist->insertItem(it.key());
AvailFlist->item(AvailFlist->count()-1)->setSelectable(false);
}
}
AvailFlist->setMinimumSize(QSize(150, 140));
Layout4_2->addWidget( AvailFlist );
GroupFontLayout->addLayout( Layout4_2 );
Layout5_2 = new QVBoxLayout;
Layout5_2->setSpacing( 5 );
Layout5_2->setMargin( 0 );
QSpacerItem* spacerS3 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Minimum );
Layout5_2->addItem( spacerS3 );
ToEmbed = new QPushButton( tr( "&>>" ), GroupFont, "ToEmbed" );
ToEmbed->setEnabled(false);
Layout5_2->addWidget( ToEmbed );
FromEmbed = new QPushButton( tr( "&<<" ), GroupFont, "FromEmbed" );
FromEmbed->setEnabled(false);
Layout5_2->addWidget( FromEmbed );
GroupFontLayout->addLayout( Layout5_2 );
Layout6 = new QVBoxLayout;
Layout6->setSpacing( 5 );
Layout6->setMargin( 0 );
TextFont1_2 = new QLabel( tr( "Fonts to embed:" ), GroupFont, "TextFont1_2" );
Layout6->addWidget( TextFont1_2 );
EmbedList = new QListBox( GroupFont, "EmbedList" );
EmbedList->setMinimumSize(QSize(150, 40));
Layout6->addWidget( EmbedList );
Layout5_2a = new QHBoxLayout;
Layout5_2a->setSpacing( 5 );
Layout5_2a->setMargin( 0 );
QSpacerItem* spacerS1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5_2a->addItem( spacerS1 );
ToSubset = new QPushButton( "", GroupFont, "ToSubset" );
ToSubset->setPixmap(loadIcon("down.png"));
ToSubset->setEnabled(false);
Layout5_2a->addWidget( ToSubset );
FromSubset = new QPushButton( "", GroupFont, "FromSubset" );
FromSubset->setPixmap(loadIcon("up.png"));
FromSubset->setEnabled(false);
Layout5_2a->addWidget( FromSubset );
QSpacerItem* spacerS2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout5_2a->addItem( spacerS2 );
Layout6->addLayout( Layout5_2a );
TextFont1_2a = new QLabel( tr( "Fonts to subset:" ), GroupFont, "TextFont1_2a" );
Layout6->addWidget( TextFont1_2a );
SubsetList = new QListBox( GroupFont, "SubsetList" );
SubsetList->setMinimumSize(QSize(150, 40));
Layout6->addWidget( SubsetList );
if ((Optionen->EmbedList.count() == 0) && (Optionen->SubsetList.count() == 0))
{
EmbedFonts->setChecked(true);
EmbedAll();
}
else
{
for (uint fe = 0; fe < Optionen->EmbedList.count(); ++fe)
{
EmbedList->insertItem(Optionen->EmbedList[fe]);
FontsToEmbed.append(Optionen->EmbedList[fe]);
}
}
if (Optionen->SubsetList.count() != 0)
{
for (uint fe = 0; fe < Optionen->SubsetList.count(); ++fe)
{
SubsetList->insertItem(Optionen->SubsetList[fe]);
FontsToSubset.append(Optionen->SubsetList[fe]);
}
}
GroupFontLayout->addLayout( Layout6 );
tabLayout_3->addWidget( GroupFont );
insertTab( tabFonts, tr( "&Fonts" ) );
tabPresentation = new QWidget( this, "tabPresentation" );
tabLayout_5 = new QGridLayout( tabPresentation );
tabLayout_5->setSpacing( 5 );
tabLayout_5->setMargin( 11 );
CheckBox10 = new QCheckBox( tr( "Enable &Presentation Effects" ), tabPresentation, "CheckBox10" );
CheckBox10->setChecked(Optionen->PresentMode);
tabLayout_5->addMultiCellWidget( CheckBox10, 0, 0, 0, 1 );
Pages = new QListBox( tabPresentation, "Pages" );
Pages->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, Pages->sizePolicy().hasHeightForWidth() ) );
QString tmp;
struct PDFPresentationData ef;
if (EffVal.count() != 0)
{
for (uint pg2 = 0; pg2 < view->Doc->Pages.count(); ++pg2)
{
Pages->insertItem( tr("Page")+" "+tmp.setNum(pg2+1));
if (EffVal.count()-1 < pg2)
{
ef.pageEffectDuration = 1;
ef.pageViewDuration = 1;
ef.effectType = 0;
ef.Dm = 0;
ef.M = 0;
ef.Di = 0;
EffVal.append(ef);
}
}
}
else
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
{
Pages->insertItem( tr("Page")+" "+tmp.setNum(pg+1));
ef.pageEffectDuration = 1;
ef.pageViewDuration = 1;
ef.effectType = 0;
ef.Dm = 0;
ef.M = 0;
ef.Di = 0;
EffVal.append(ef);
}
}
tabLayout_5->addWidget( Pages, 1, 0 );
PagePrev = new QCheckBox( tr( "Show Page Pre&views" ), tabPresentation, "CheckBox10" );
PagePrev->setChecked(false);
tabLayout_5->addWidget( PagePrev, 2, 0 );
Effects = new QGroupBox( tr( "Effects" ), tabPresentation, "Effects" );
Effects->setColumnLayout(0, Qt::Vertical );
Effects->layout()->setSpacing( 0 );
Effects->layout()->setMargin( 0 );
EffectsLayout = new QGridLayout( Effects->layout() );
EffectsLayout->setAlignment( Qt::AlignTop );
EffectsLayout->setSpacing( 5 );
EffectsLayout->setMargin( 11 );
TextLabel1e = new QLabel( tr( "&Display Duration:" ), Effects, "TextLabel1_2" );
EffectsLayout->addWidget( TextLabel1e, 0, 0 );
TextLabel2e = new QLabel( tr( "Effec&t Duration:" ), Effects, "TextLabel2_2" );
EffectsLayout->addWidget( TextLabel2e, 1, 0 );
TextLabel3e = new QLabel( tr( "Effect T&ype:" ), Effects, "TextLabel3_2" );
EffectsLayout->addWidget( TextLabel3e, 2, 0 );
TextLabel4e = new QLabel( tr( "&Moving Lines:" ), Effects, "TextLabel4_2" );
EffectsLayout->addWidget( TextLabel4e, 3, 0 );
TextLabel5e = new QLabel( tr( "F&rom the:" ), Effects, "TextLabel6" );
EffectsLayout->addWidget( TextLabel5e, 4, 0 );
TextLabel6e = new QLabel( tr( "D&irection:" ), Effects, "TextLabel5" );
EffectsLayout->addWidget( TextLabel6e, 5, 0 );
PageTime = new QSpinBox( Effects, "PageTime" );
PageTime->setSuffix( tr( " sec" ) );
PageTime->setMaxValue( 3600 );
PageTime->setMinValue( 1 );
PageTime->setValue(EffVal[0].pageViewDuration);
TextLabel1e->setBuddy(PageTime);
EffectsLayout->addWidget( PageTime, 0, 1 );
EffectTime = new QSpinBox( Effects, "EffectTime" );
EffectTime->setSuffix( tr( " sec" ) );
EffectTime->setMaxValue( 3600 );
EffectTime->setMinValue( 1 );
EffectTime->setValue(EffVal[0].pageEffectDuration);
TextLabel2e->setBuddy(EffectTime);
EffectsLayout->addWidget( EffectTime, 1, 1 );
EffectType = new QComboBox( true, Effects, "EffectType" );
QString tmpc[] = { tr("No Effect"), tr("Blinds"), tr("Box"), tr("Dissolve"), tr("Glitter"), tr("Split"), tr("Wipe")};
size_t ar = sizeof(tmpc) / sizeof(*tmpc);
for (uint a = 0; a < ar; ++a)
EffectType->insertItem(tmpc[a]);
EffectType->setEditable(false);
TextLabel3e->setBuddy(EffectType);
EffectsLayout->addWidget( EffectType, 2, 1 );
EDirection = new QComboBox( true, Effects, "EDirection" );
EDirection->insertItem( tr( "Horizontal" ) );
EDirection->insertItem( tr( "Vertical" ) );
EDirection->setEditable(false);
TextLabel4e->setBuddy(EDirection);
EffectsLayout->addWidget( EDirection, 3, 1 );
EDirection_2 = new QComboBox( true, Effects, "EDirection_2" );
EDirection_2->insertItem( tr( "Inside" ) );
EDirection_2->insertItem( tr( "Outside" ) );
EDirection_2->setEditable(false);
TextLabel5e->setBuddy(EDirection_2);
EffectsLayout->addWidget( EDirection_2, 4, 1 );
EDirection_2_2 = new QComboBox( true, Effects, "EDirection_2_2" );
QString tmp_ed[] = { tr("Left to Right"), tr("Top to Bottom"), tr("Bottom to Top"), tr("Right to Left"),
tr("Top-left to Bottom-Right")};
size_t ar_ed = sizeof(tmp_ed) / sizeof(*tmp_ed);
for (uint a = 0; a < ar_ed; ++a)
EDirection_2_2->insertItem(tmp_ed[a]);
EDirection_2_2->setEditable(false);
TextLabel6e->setBuddy(EDirection_2_2);
EffectsLayout->addWidget( EDirection_2_2, 5, 1 );
EonAllPg = new QPushButton( tr( "&Apply Effect on all Pages" ), Effects, "Eon" );
EffectsLayout->addMultiCellWidget( EonAllPg, 6, 6, 0, 1 );
tabLayout_5->addMultiCellWidget( Effects, 1, 2, 1, 1 );
insertTab( tabPresentation, tr( "E&xtras" ) );
}
tabSecurity = new QWidget( this, "tabSecurity" );
tabSecurityLayout = new QVBoxLayout( tabSecurity, 11, 5, "tabSecurityLayout");
Encry = new QCheckBox( tr( "&Use Encryption" ), tabSecurity, "Enc" );
Encry->setChecked( Optionen->Encrypt );
tabSecurityLayout->addWidget( Encry );
GroupPass = new QGroupBox( tr( "Passwords" ), tabSecurity, "GroupPass" );
GroupPass->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0,
GroupPass->sizePolicy().hasHeightForWidth() ) );
GroupPass->setColumnLayout(0, Qt::Vertical );
GroupPass->layout()->setSpacing( 5 );
GroupPass->layout()->setMargin( 10 );
GroupPassLayout = new QGridLayout( GroupPass->layout() );
GroupPassLayout->setAlignment( Qt::AlignTop );
TextSec2 = new QLabel( tr( "&User:" ), GroupPass, "TextSec2" );
GroupPassLayout->addWidget( TextSec2, 1, 0 );
TextSec1 = new QLabel( tr( "&Owner:" ), GroupPass, "TextSec1" );
GroupPassLayout->addWidget( TextSec1, 0, 0 );
PassOwner = new QLineEdit( GroupPass, "PassOwner" );
PassOwner->setEchoMode( QLineEdit::Password );
PassOwner->setText(Optionen->PassOwner);
TextSec1->setBuddy(PassOwner);
GroupPassLayout->addWidget( PassOwner, 0, 1 );
PassUser = new QLineEdit( GroupPass, "PassUser" );
PassUser->setEchoMode( QLineEdit::Password );
PassUser->setText(Optionen->PassUser);
TextSec2->setBuddy(PassUser);
GroupPassLayout->addWidget( PassUser, 1, 1 );
tabSecurityLayout->addWidget( GroupPass );
 
GroupSecSet = new QGroupBox( tr( "Settings" ), tabSecurity, "GroupSecSet" );
GroupSecSet->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0,
GroupSecSet->sizePolicy().hasHeightForWidth() ) );
GroupSecSet->setColumnLayout(0, Qt::Vertical );
GroupSecSet->layout()->setSpacing( 5 );
GroupSecSet->layout()->setMargin( 10 );
GroupSecSetLayout = new QVBoxLayout( GroupSecSet->layout() );
GroupSecSetLayout->setAlignment( Qt::AlignTop );
PrintSec = new QCheckBox( tr( "Allow &Printing the Document" ), GroupSecSet, "PrintSec" );
PrintSec->setChecked( Optionen->Permissions & 4 );
GroupSecSetLayout->addWidget( PrintSec );
ModifySec = new QCheckBox( tr( "Allow &Changing the Document" ), GroupSecSet, "ModifySec" );
ModifySec->setChecked( Optionen->Permissions & 8 );
GroupSecSetLayout->addWidget( ModifySec );
CopySec = new QCheckBox( tr( "Allow Cop&ying Text and Graphics" ), GroupSecSet, "CopySec" );
CopySec->setChecked( Optionen->Permissions & 16 );
GroupSecSetLayout->addWidget( CopySec );
AddSec = new QCheckBox( tr( "Allow Adding &Annotations and Fields" ), GroupSecSet, "AddSec" );
AddSec->setChecked( Optionen->Permissions & 32 );
GroupSecSetLayout->addWidget( AddSec );
tabSecurityLayout->addWidget( GroupSecSet );
if (!Encry->isChecked())
{
GroupSecSet->setEnabled(false);
GroupPass->setEnabled(false);
}
insertTab( tabSecurity, tr( "S&ecurity" ) );
 
tabColor = new QWidget( this, "tabColor" );
tabColorLayout = new QVBoxLayout( tabColor, 11, 5, "tabColorLayout");
ColorGroup = new QGroupBox( tr( "General" ), tabColor, "ColorGroup" );
ColorGroup->setColumnLayout(0, Qt::Vertical );
ColorGroup->layout()->setSpacing( 5 );
ColorGroup->layout()->setMargin( 10 );
ColorGroupLayout = new QHBoxLayout( ColorGroup->layout() );
ColorGroupLayout->setAlignment( Qt::AlignTop );
ColorText1 = new QLabel( tr( "Output &Intended For:" ), ColorGroup, "ColorText1" );
ColorGroupLayout->addWidget( ColorText1 );
OutCombo = new QComboBox( true, ColorGroup, "OutCombo" );
OutCombo->insertItem( tr( "Screen / Web" ) );
OutCombo->insertItem( tr( "Printer" ) );
OutCombo->setEditable(false);
OutCombo->setCurrentItem(Optionen->UseRGB ? 0 : 1);
ColorText1->setBuddy(OutCombo);
ColorGroupLayout->addWidget( OutCombo );
tabColorLayout->addWidget( ColorGroup );
 
UseLPI = new QCheckBox( tr( "&Use Custom Rendering Settings" ), tabColor, "UseLPI" );
UseLPI->setChecked(Optionen->UseLPI);
tabColorLayout->addWidget( UseLPI );
LPIgroup = new QGroupBox( tr( "Rendering Settings" ), tabColor, "LPIgroup" );
LPIgroup->setColumnLayout(0, Qt::Vertical );
LPIgroup->layout()->setSpacing( 5 );
LPIgroup->layout()->setMargin( 10 );
LPIgroupLayout = new QGridLayout( LPIgroup->layout() );
LPIgroupLayout->setAlignment( Qt::AlignTop );
LPIcolor = new QComboBox( true, LPIgroup, "LPIcolor" );
LPIcolor->setEditable(false);
QMap<QString,LPIData>::Iterator itlp;
for (itlp = Optionen->LPISettings.begin(); itlp != Optionen->LPISettings.end(); ++itlp)
{
LPIcolor->insertItem( itlp.key() );
}
LPIcolor->setCurrentItem(0);
LPIgroupLayout->addWidget( LPIcolor, 0, 0 );
textLPI1 = new QLabel( tr( "Fre&quency:" ), LPIgroup, "textLPI1" );
LPIgroupLayout->addWidget( textLPI1, 0, 1 );
LPIfreq = new QSpinBox( LPIgroup, "LPIfreq" );
LPIfreq->setMinValue(10);
LPIfreq->setMaxValue(1000);
LPIfreq->setValue(Optionen->LPISettings[LPIcolor->currentText()].Frequency);
textLPI1->setBuddy(LPIfreq);
LPIgroupLayout->addWidget( LPIfreq, 0, 2 );
textLPI2 = new QLabel( tr( "&Angle:" ), LPIgroup, "textLPI2" );
LPIgroupLayout->addWidget( textLPI2, 1, 1 );
LPIangle = new QSpinBox( LPIgroup, "LPIangle" );
LPIangle->setSuffix( QString::fromUtf8(" °"));
LPIangle->setMinValue(-180);
LPIangle->setMaxValue(180);
LPIangle->setValue(Optionen->LPISettings[LPIcolor->currentText()].Angle);
textLPI2->setBuddy(LPIangle);
LPIgroupLayout->addWidget( LPIangle, 1, 2 );
textLPI3 = new QLabel( tr( "S&pot Function:" ), LPIgroup, "textLPI3" );
LPIgroupLayout->addWidget( textLPI3, 2, 1 );
LPIfunc = new QComboBox( true, LPIgroup, "LPIfunc" );
LPIfunc->setEditable(false);
LPIfunc->insertItem( tr( "Simple Dot" ) );
LPIfunc->insertItem( tr( "Line" ) );
LPIfunc->insertItem( tr( "Round" ) );
LPIfunc->insertItem( tr( "Ellipse" ) );
LPIfunc->setCurrentItem(Optionen->LPISettings[LPIcolor->currentText()].SpotFunc);
textLPI3->setBuddy(LPIfunc);
LPIgroupLayout->addWidget( LPIfunc, 2, 2 );
tabColorLayout->addWidget( LPIgroup );
SelLPIcolor = LPIcolor->currentText();
 
GroupBox9 = new QGroupBox( tr( "Solid Colors:" ), tabColor, "GroupBox9" );
GroupBox9->setColumnLayout(0, Qt::Vertical );
GroupBox9->layout()->setSpacing( 5 );
GroupBox9->layout()->setMargin( 10 );
GroupBox9Layout = new QGridLayout( GroupBox9->layout() );
GroupBox9Layout->setAlignment( Qt::AlignTop );
EmbedProfs = new QCheckBox( GroupBox9, "EmbedProfs" );
EmbedProfs->setText( tr( "Use ICC Profile" ) );
EmbedProfs->setChecked(Optionen->UseProfiles);
GroupBox9Layout->addMultiCellWidget( EmbedProfs, 0, 0, 0, 1 );
ProfsTxt1 = new QLabel(GroupBox9, "ProfsTxt1");
ProfsTxt1->setText( tr( "Profile:" ) );
GroupBox9Layout->addWidget( ProfsTxt1, 1, 0 );
ProfsTxt2 = new QLabel( GroupBox9, "ProfsTxt2_2" );
ProfsTxt2->setText( tr( "Rendering-Intent:" ) );
GroupBox9Layout->addWidget( ProfsTxt2, 1, 1 );
SolidPr = new QComboBox(true, GroupBox9, "SolidPr" );
SolidPr->setEditable(false);
GroupBox9Layout->addWidget( SolidPr, 2, 0 );
IntendS = new QComboBox( true, GroupBox9, "IntendS" );
QString tmp_ip[] = { tr("Perceptual"), tr("Relative Colorimetric"), tr("Saturation"), tr("Absolute Colorimetric")};
size_t ar_ip = sizeof(tmp_ip) / sizeof(*tmp_ip);
for (uint a = 0; a < ar_ip; ++a)
IntendS->insertItem(tmp_ip[a]);
IntendS->setEditable(false);
GroupBox9Layout->addWidget( IntendS, 2, 1 );
tabColorLayout->addWidget( GroupBox9 );
ProfsGroup = new QGroupBox( tr( "Images:" ), tabColor, "ProfsGroup" );
ProfsGroup->setColumnLayout(0, Qt::Vertical );
ProfsGroup->layout()->setSpacing( 5 );
ProfsGroup->layout()->setMargin( 10 );
ProfsGroupLayout = new QGridLayout( ProfsGroup->layout() );
ProfsGroupLayout->setAlignment( Qt::AlignTop );
EmbedProfs2 = new QCheckBox( tr( "Use ICC Profile" ), ProfsGroup, "EmbedProfs" );
EmbedProfs2->setChecked(Optionen->UseProfiles2);
ProfsGroupLayout->addMultiCellWidget( EmbedProfs2, 0, 0, 0, 1 );
NoEmbedded = new QCheckBox( ProfsGroup, "NoEmbedded" );
NoEmbedded->setText( tr( "Don't use embedded ICC profiles" ) );
NoEmbedded->setChecked(Optionen->EmbeddedI);
ProfsGroupLayout->addMultiCellWidget( NoEmbedded, 1, 1, 0, 1 );
ProfsTxt3 = new QLabel( ProfsGroup, "ProfsTxt3" );
ProfsTxt3->setText( tr( "Profile:" ) );
ProfsGroupLayout->addWidget( ProfsTxt3, 2, 0 );
ProfsTxt4 = new QLabel( ProfsGroup, "ProfsTxt2_2" );
ProfsTxt4->setText( tr( "Rendering-Intent:" ) );
ProfsGroupLayout->addWidget( ProfsTxt4, 2, 1 );
ImageP = new QComboBox( true, ProfsGroup, "ImageP" );
ImageP->setEditable(false);
ProfsGroupLayout->addWidget( ImageP, 3, 0 );
IntendI = new QComboBox( true, ProfsGroup, "IntendS" );
for (uint a = 0; a < ar_ip; ++a)
IntendI->insertItem(tmp_ip[a]);
IntendI->setEditable(false);
ProfsGroupLayout->addWidget( IntendI, 3, 1 );
tabColorLayout->addWidget( ProfsGroup );
if (Optionen->UseRGB)
{
ProfsGroup->setEnabled(false);
GroupBox9->setEnabled(false);
}
EnablePr(Optionen->UseRGB ? 0 : 1);
EnablePG();
EnablePGI();
#ifdef HAVE_CMS
 
QString tp = Optionen->SolidProf;
if (!InputProfiles.contains(tp))
{
if (vie != 0)
tp = vie->Doc->CMSSettings.DefaultInputProfile2;
else
tp = ScApp->Prefs.DCMSset.DefaultInputProfile2;
}
ProfilesL::Iterator itp;
for (itp = InputProfiles.begin(); itp != InputProfiles.end(); ++itp)
{
SolidPr->insertItem(itp.key());
if (itp.key() == tp)
{
if ((CMSuse) && (CMSavail))
SolidPr->setCurrentItem(SolidPr->count()-1);
}
}
if ((CMSuse) && (CMSavail))
IntendS->setCurrentItem(Optionen->Intent);
ProfilesL::Iterator itp2;
QString tp1 = Optionen->ImageProf;
if (!InputProfiles.contains(tp1))
{
if (vie != 0)
tp1 = vie->Doc->CMSSettings.DefaultInputProfile2;
else
tp1 = ScApp->Prefs.DCMSset.DefaultInputProfile2;
}
for (itp2 = InputProfiles.begin(); itp2 != InputProfiles.end(); ++itp2)
{
ImageP->insertItem(itp2.key());
if (itp2.key() == tp1)
{
if ((CMSuse) && (CMSavail))
ImageP->setCurrentItem(ImageP->count()-1);
}
}
if ((CMSuse) && (CMSavail))
IntendI->setCurrentItem(Optionen->Intent2);
if ((!CMSuse) || (!CMSavail))
{
GroupBox9->hide();
ProfsGroup->hide();
}
#else
GroupBox9->hide();
ProfsGroup->hide();
#endif
 
QSpacerItem* spacerCG = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabColorLayout->addItem( spacerCG );
insertTab( tabColor, tr( "C&olor" ) );
 
tabPDFX = new QWidget( this, "tabPDFX" );
tabPDFXLayout = new QVBoxLayout( tabPDFX, 11, 5, "tabPDFXLayout");
X3Group = new QGroupBox( tabPDFX, "X3Group" );
X3Group->setTitle( tr( "PDF/X-3 Output Intent" ) );
X3Group->setColumnLayout(0, Qt::Vertical );
X3Group->layout()->setSpacing( 5 );
X3Group->layout()->setMargin( 10 );
X3GroupLayout = new QGridLayout( X3Group->layout() );
X3GroupLayout->setAlignment( Qt::AlignTop );
PrintProfC = new QComboBox( true, X3Group, "PrintProfC" );
PrintProfC->setEditable(false);
#ifdef HAVE_CMS
 
ProfilesL::Iterator itp3;
QString tp3 = Optionen->PrintProf;
if (!PDFXProfiles->contains(tp3))
{
if (vie != 0)
tp3 = vie->Doc->CMSSettings.DefaultPrinterProfile;
else
tp3 = ScApp->Prefs.DCMSset.DefaultPrinterProfile;
}
for (itp3 = PDFXProfiles->begin(); itp3 != PDFXProfiles->end(); ++itp3)
{
PrintProfC->insertItem(itp3.key());
if (itp3.key() == tp3)
PrintProfC->setCurrentItem(PrintProfC->count()-1);
}
#endif
X3GroupLayout->addWidget( PrintProfC, 0, 1 );
InfoString = new QLineEdit( X3Group, "InfoString" );
InfoString->setText(Optionen->Info);
X3GroupLayout->addWidget( InfoString, 1, 1 );
PDFX2 = new QLabel( InfoString, tr( "&Info String:" ), X3Group, "PDFX2" );
X3GroupLayout->addWidget( PDFX2, 1, 0 );
PDFX1 = new QLabel( PrintProfC, tr( "Output &Profile:" ), X3Group, "PDFX1" );
X3GroupLayout->addWidget( PDFX1, 0, 0 );
tabPDFXLayout->addWidget( X3Group );
BleedGroup = new QGroupBox( tabPDFX, "BleedGroup" );
BleedGroup->setTitle( tr( "Trim Box" ) );
BleedGroup->setColumnLayout(0, Qt::Vertical );
BleedGroup->layout()->setSpacing( 5 );
BleedGroup->layout()->setMargin( 11 );
BleedGroupLayout = new QGridLayout( BleedGroup->layout() );
BleedGroupLayout->setAlignment( Qt::AlignTop );
BleedIcon = new QLabel( BleedGroup, "BleedIcon" );
BleedIcon->setMinimumSize( QSize( 74, 84 ) );
BleedIcon->setMaximumSize( QSize( 74, 84 ) );
BleedIcon->setFrameShape( QLabel::Panel );
BleedIcon->setFrameShadow( QLabel::Sunken );
BleedIcon->setScaledContents( false );
BleedIcon->setAlignment( static_cast<int>( QLabel::AlignCenter ) );
BleedGroupLayout->addWidget( BleedIcon, 1, 2 );
BleedTop = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedTop, 0, 2 );
BleedBottom = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedBottom, 2, 2 );
BleedRight = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedRight, 1, 3 );
BleedLeft = new MSpinBox( BleedGroup, 2 );
BleedGroupLayout->addWidget( BleedLeft, 1, 1 );
QSpacerItem* spacerPX = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
BleedGroupLayout->addItem( spacerPX, 1, 0 );
QSpacerItem* spacerPX2 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
BleedGroupLayout->addItem( spacerPX2, 1, 4 );
tabPDFXLayout->addWidget( BleedGroup );
insertTab( tabPDFX, tr( "PDF/X-&3" ) );
BleedTop->setSuffix( unit );
BleedTop->setMinValue(0);
BleedTop->setMaxValue(PageH*unitBase);
BleedTop->setValue(Optionen->BleedTop*unitBase);
BleedBottom->setSuffix( unit );
BleedBottom->setMinValue(0);
BleedBottom->setMaxValue(PageH*unitBase);
BleedBottom->setValue(Optionen->BleedBottom*unitBase);
BleedRight->setSuffix( unit );
BleedRight->setMinValue(0);
BleedRight->setMaxValue(PageB*unitBase);
BleedRight->setValue(Optionen->BleedRight*unitBase);
BleedLeft->setSuffix( unit );
BleedLeft->setMinValue(0);
BleedLeft->setMaxValue(PageB*unitBase);
BleedLeft->setValue(Optionen->BleedLeft*unitBase);
#ifdef HAVE_CMS
if ((!CMSuse) || (!CMSavail))
setTabEnabled(tabPDFX, false);
if ((CMSuse) && (CMSavail) && (Optionen->Version == 12) && (!PDFXProfiles->isEmpty()))
EnablePDFX(2);
else
setTabEnabled(tabPDFX, false);
#else
setTabEnabled(tabPDFX, false);
#endif
BleedChanged();
if (vie != 0)
{
PgSel = 0;
Pages->setCurrentItem(0);
SetEffOpts(0);
Pages->setEnabled(false);
Effects->setEnabled(false);
PagePrev->setEnabled(false);
DoEffects();
if (CheckBox10->isChecked())
{
PageTime->setValue(EffVal[0].pageViewDuration);
EffectTime->setValue(EffVal[0].pageEffectDuration);
EffectType->setCurrentItem(EffVal[0].effectType);
EDirection->setCurrentItem(EffVal[0].Dm);
EDirection_2->setCurrentItem(EffVal[0].M);
EDirection_2_2->setCurrentItem(EffVal[0].Di);
SetEffOpts(EffectType->currentItem());
}
connect(EmbedFonts, SIGNAL(clicked()), this, SLOT(EmbedAll()));
connect(AvailFlist, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelAFont(QListBoxItem*)));
connect(EmbedList, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelEFont(QListBoxItem*)));
connect(ToEmbed, SIGNAL(clicked()), this, SLOT(PutToEmbed()));
connect(FromEmbed, SIGNAL(clicked()), this, SLOT(RemoveEmbed()));
connect(SubsetFonts, SIGNAL(clicked()), this, SLOT(SubsetAll()));
connect(SubsetList, SIGNAL(clicked(QListBoxItem*)), this, SLOT(SelSFont(QListBoxItem*)));
connect(ToSubset, SIGNAL(clicked()), this, SLOT(PutToSubset()));
connect(FromSubset, SIGNAL(clicked()), this, SLOT(RemoveSubset()));
connect(PagePrev, SIGNAL(clicked()), this, SLOT(PagePr()));
connect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
connect(EffectType, SIGNAL(activated(int)), this, SLOT(SetEffOpts(int)));
connect(EDirection_2_2, SIGNAL(activated(int)), this, SLOT(ValidDI(int)));
connect(CheckBox10, SIGNAL(clicked()), this, SLOT(DoEffects()));
connect(EonAllPg, SIGNAL(clicked()), this, SLOT(EffectOnAll()));
QToolTip::add( EmbedFonts, tr( "Embed fonts into the PDF. Embedding the fonts\nwill preserve the layout and appearance of your document." ) );
QToolTip::add( CheckBox10, tr( "Enables presentation effects when using Acrobat Reader in full screen mode." ) );
QToolTip::add( PagePrev, tr( "Show page previews of each page listed above." ) );
QToolTip::add( PageTime, tr( "Length of time the page is shown before the presentation starts on the selected page." ) );
QToolTip::add( EffectTime, tr( "Length of time the effect runs.\nA shorter time will speed up the effect, a longer one will slow it down." ) );
QToolTip::add( EffectType, tr( "Type of the display effect." ) );
QToolTip::add( EDirection, tr( "Direction of the effect of moving lines for the split and blind effects." ) );
QToolTip::add( EDirection_2, tr( "Starting position for the box and split effects." ) );
QToolTip::add( EDirection_2_2, tr( "Direction of the glitter or wipe effects." ) );
QToolTip::add( EonAllPg, tr( "Apply the selected effect to all pages." ) );
}
connect(AllPages, SIGNAL(toggled(bool)), this, SLOT(SelRange(bool)));
connect(DSColor, SIGNAL(clicked()), this, SLOT(DoDownsample()));
connect(MirrorH, SIGNAL(clicked()), this, SLOT(PDFMirror()));
connect(MirrorV, SIGNAL(clicked()), this, SLOT(PDFMirror()));
connect(RotateDeg, SIGNAL(activated(int)), this, SLOT(Rotation(int)));
connect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
connect(EmbedProfs, SIGNAL(clicked()), this, SLOT(EnablePG()));
connect(EmbedProfs2, SIGNAL(clicked()), this, SLOT(EnablePGI()));
connect(NoEmbedded, SIGNAL(clicked()), this, SLOT(EnablePGI2()));
connect(ComboBox1, SIGNAL(activated(int)), this, SLOT(EnablePDFX(int)));
connect(BleedTop, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedBottom, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedLeft, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(BleedRight, SIGNAL(valueChanged(int)), this, SLOT(BleedChanged()));
connect(Encry, SIGNAL(clicked()), this, SLOT(ToggleEncr()));
connect(UseLPI, SIGNAL(clicked()), this, SLOT(EnableLPI2()));
connect(LPIcolor, SIGNAL(activated(int)), this, SLOT(SelLPIcol(int)));
//tooltips
QToolTip::add( AllPages, tr( "Export all pages to PDF" ) );
QToolTip::add( OnlySome, tr( "Export a range of pages to PDF" ) );
QToolTip::add( PageNr, tr( "Insert a comma separated list of tokens where\n"
"a token can be * for all the pages, 1-5 for\n"
"a range of pages or a single page number.") );
 
QToolTip::add( ComboBox1, tr( "Determines the PDF compatibility. The default is Acrobat 4.0 which gives the widest compatibility.\nChoose Acrobat 5.0 if your file has PDF 1.4 features such as transparency or you require 128 bit encryption.\nPDF/X-3 is for exporting the PDF for commercial printing and is selectable when you have activated color management." ) );
QToolTip::add( ComboBind, tr( "Determines the binding of pages in the PDF. Unless you know\nyou need to change it leave the default choice - Left." ) );
QToolTip::add( CheckBox1, tr( "Generates thumbnails of each page in the PDF.\nSome viewers can use the thumbnails for navigation." ) );
QToolTip::add( Article, tr( "Generate PDF Articles, which is useful for navigating linked articles in a PDF." ) );
QToolTip::add( CheckBM, tr( "Embed the bookmarks you created in your document.\nThese are useful for navigating long PDF documents." ) );
QToolTip::add( Resolution, tr( "Export resolution of text and vector graphics.\nThis does not affect the resolution of bitmap images like photos." ) );
QToolTip::add( Compression, tr( "Compression of text and graphics.\nUnless you have a reason, leave this checked. This reduces PDF size." ) );
QToolTip::add( CMethod, tr( "Version of compression for images.\nAutomatic allows Scribus to choose the best method.\nZIP is good for images with solid colors.\nJPEG is better at creating smaller PDF files which have many photos (with slight image loss possible).\nLeave it set to automatic, unless you have a need for special compression options." ) );
QToolTip::add( CQuality, tr( "Compression levels: Minimum (25%), Low (50%), Medium (75%), High (85%), Maximum (95%)" ) );
QToolTip::add( DSColor, tr( "Downsample your bitmap images to the selected DPI.\nLeaving this unchecked will render them at their native resolution." ) );
QToolTip::add( ValC, tr( "DPI (Dots Per Inch) for image export.") );
QToolTip::add( Encry, tr( "Enable the security features in your exported PDF.\nIf you selected Acrobat 4.0, the PDF will be protected by 40 bit encryption.\nIf you selected Acrobat 5.0, the PDF will be protected by 128 bit encryption.\nDisclaimer: PDF encryption is not as reliable as GPG or PGP encryption and does have some limitations." ) );
QToolTip::add( PassOwner, tr( "Choose a master password which enables or disables all the\nsecurity features in your exported PDF" ) );
QToolTip::add( PassUser, tr( "Choose a password for users to be able to read your PDF." ) );
QToolTip::add( PrintSec, tr( "Allow printing of the PDF. If un-checked, printing is prevented. " ) );
QToolTip::add( ModifySec, tr( "Allow modifying of the PDF. If un-checked, modifying the PDF is prevented." ) );
QToolTip::add( CopySec, tr( "Allow copying of text or graphics from the PDF. \nIf un-checked, text and graphics cannot be copied." ) );
QToolTip::add( AddSec, tr( "Allow adding annotations and fields to the PDF. \nIf un-checked, editing annotations and fileds is prevented." ) );
QToolTip::add( OutCombo, tr( "Color model for the output of your PDF.\nChoose Screen/Web for PDFs which are used for screen display and for printing on typical inkjets.\nChoose Printer when printing to a true 4 color CMYK printer." ) );
QToolTip::add( UseLPI, tr( "This is an advanced setting which is not enabled by default. This should only be enabled\nwhen specifically requested by your printer and they have given you the exact details needed.\nOtherwise, your exported PDF may not print properly and is truly not portable across systems." ) );
QToolTip::add( EmbedProfs, tr( "Embed a color profile for solid colors" ) );
QToolTip::add( SolidPr, tr( "Color profile for solid colors" ) );
QToolTip::add( IntendS, tr( "Rendering intent for solid colors" ) );
QToolTip::add( EmbedProfs2, tr( "Embed a color profile for images" ) );
QToolTip::add( NoEmbedded, tr( "Do not use color profiles that are embedded in source images" ) );
QToolTip::add( ImageP, tr( "Color profile for images" ) );
QToolTip::add( IntendI, tr( "Rendering intent for images" ) );
QToolTip::add( PrintProfC, tr( "Output profile for printing. If possible, get some guidance from your printer on profile selection." ) );
QToolTip::add( InfoString, tr( "Mandatory string for PDF/X-3 or the PDF will fail\nPDF/X-3 conformance. We recommend you use the title of the document." ) );
QToolTip::add( BleedTop, tr( "Distance for bleed from the top of the physical page" ) );
QToolTip::add( BleedBottom, tr( "Distance for bleed from the bottom of the physical page" ) );
QToolTip::add( BleedLeft, tr( "Distance for bleed from the left of the physical page" ) );
QToolTip::add( BleedRight, tr( "Distance for bleed from the right of the physical page" ) );
QToolTip::add( MirrorH, tr( "Mirror Page(s) horizontally" ) );
QToolTip::add( MirrorV, tr( "Mirror Page(s) vertically" ) );
}
 
void TabPDFOptions::ToggleEncr()
{
bool setter = Encry->isChecked() ? true : false;
GroupSecSet->setEnabled(setter);
GroupPass->setEnabled(setter);
}
 
void TabPDFOptions::BleedChanged()
{
BleedTop->setMaxValue(pageH*unitConv-BleedBottom->value());
BleedBottom->setMaxValue(pageH*unitConv-BleedTop->value());
BleedRight->setMaxValue(pageB*unitConv-BleedLeft->value());
BleedLeft->setMaxValue(pageB*unitConv-BleedRight->value());
QPixmap pm = QPixmap(70,80);
pm.fill(white);
QPainter p;
p.begin(&pm);
p.setBrush(NoBrush);
p.setPen(black);
p.drawRect(0, 0, pm.width(), pm.height());
p.setPen(QPen(black, 1, DotLine, FlatCap, MiterJoin));
int x = qRound((BleedLeft->value() / unitConv) * (70.0 / pageB));
int y = qRound((BleedTop->value() / unitConv) * (80.0 / pageH));
int w =qRound((pageB-((BleedLeft->value()+BleedRight->value())/unitConv))*(70.0/pageB));
int h = qRound((pageH-((BleedTop->value()+BleedBottom->value())/unitConv))*(80.0/pageH));
p.drawRect(x, y, w, h);
BleedIcon->setPixmap(pm);
p.end();
}
 
void TabPDFOptions::enableCMS(bool enable)
{
disconnect(ComboBox1, SIGNAL(activated(int)), this, SLOT(EnablePDFX(int)));
int a = ComboBox1->currentItem();
ComboBox1->clear();
ComboBox1->insertItem("Acrobat 4.0");
ComboBox1->insertItem("Acrobat 5.0");
if (enable)
{
cms = true;
ComboBox1->insertItem("PDF/X-3");
}
else
{
cms = false;
a = QMIN(a, 2);
}
ComboBox1->setCurrentItem(a);
EnablePr(1);
connect(ComboBox1, SIGNAL(activated(int)), this, SLOT(EnablePDFX(int)));
}
 
void TabPDFOptions::EnablePDFX(int a)
{
if (a != 2)
{
setTabEnabled(tabPDFX, false);
setTabEnabled(tabSecurity, true);
OutCombo->setEnabled(true);
EmbedProfs2->setEnabled(true);
if (view != 0)
{
CheckBox10->setEnabled(true);
EmbedFonts->setEnabled(true);
}
return;
}
disconnect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
OutCombo->setCurrentItem(1);
OutCombo->setEnabled(false);
EnablePr(1);
EmbedProfs2->setChecked(true);
EmbedProfs2->setEnabled(false);
if (view != 0)
{
EmbedFonts->setChecked(true);
EmbedAll();
CheckBox10->setChecked(false);
CheckBox10->setEnabled(false);
EmbedFonts->setEnabled(false);
}
EnablePGI();
setTabEnabled(tabPDFX, true);
setTabEnabled(tabSecurity, false);
connect(OutCombo, SIGNAL(activated(int)), this, SLOT(EnablePr(int)));
}
 
void TabPDFOptions::EnablePGI()
{
if (EmbedProfs2->isChecked())
{
NoEmbedded->setEnabled(true);
bool setter = NoEmbedded->isChecked() ? true : false;
ProfsTxt3->setEnabled(setter);
ProfsTxt4->setEnabled(setter);
ImageP->setEnabled(setter);
IntendI->setEnabled(setter);
}
else
{
ProfsTxt3->setEnabled(false);
ProfsTxt4->setEnabled(false);
ImageP->setEnabled(false);
IntendI->setEnabled(false);
NoEmbedded->setEnabled(false);
}
}
 
void TabPDFOptions::EnablePGI2()
{
bool setter = NoEmbedded->isChecked() ? true : false;
ProfsTxt3->setEnabled(setter);
ProfsTxt4->setEnabled(setter);
ImageP->setEnabled(setter);
IntendI->setEnabled(setter);
}
 
void TabPDFOptions::EnablePG()
{
bool setter = EmbedProfs->isChecked() ? true : false;
ProfsTxt1->setEnabled(setter);
ProfsTxt2->setEnabled(setter);
SolidPr->setEnabled(setter);
IntendS->setEnabled(setter);
}
 
void TabPDFOptions::EnablePr(int a)
{
EnableLPI(a);
bool setter = a == 1 ? true : false;
GroupBox9->setEnabled(setter);
ProfsGroup->setEnabled(setter);
}
 
void TabPDFOptions::EnableLPI(int a)
{
if (a == 1)
{
#ifdef HAVE_CMS
QString tp = Opts->SolidProf;
if (!InputProfiles.contains(tp))
{
if (view != 0)
tp = view->Doc->CMSSettings.DefaultInputProfile2;
else
tp = ScApp->Prefs.DCMSset.DefaultInputProfile2;
}
ProfilesL::Iterator itp;
SolidPr->clear();
for (itp = InputProfiles.begin(); itp != InputProfiles.end(); ++itp)
{
SolidPr->insertItem(itp.key());
if (itp.key() == tp)
{
if (cms)
SolidPr->setCurrentItem(SolidPr->count()-1);
}
}
if (cms)
IntendS->setCurrentItem(Opts->Intent);
ProfilesL::Iterator itp2;
QString tp1 = Opts->ImageProf;
if (!InputProfiles.contains(tp1))
{
if (view != 0)
tp1 = view->Doc->CMSSettings.DefaultInputProfile2;
else
tp1 = ScApp->Prefs.DCMSset.DefaultInputProfile2;
}
ImageP->clear();
for (itp2 = InputProfiles.begin(); itp2 != InputProfiles.end(); ++itp2)
{
ImageP->insertItem(itp2.key());
if (itp2.key() == tp1)
{
if (cms)
ImageP->setCurrentItem(ImageP->count()-1);
}
}
if (cms)
IntendI->setCurrentItem(Opts->Intent2);
#endif
if (cms)
{
GroupBox9->show();
ProfsGroup->show();
}
else
{
GroupBox9->hide();
ProfsGroup->hide();
UseLPI->show();
if (UseLPI->isChecked())
LPIgroup->show();
else
LPIgroup->hide();
}
}
else
{
UseLPI->hide();
LPIgroup->hide();
}
}
 
void TabPDFOptions::EnableLPI2()
{
if (UseLPI->isChecked())
LPIgroup->show();
else
LPIgroup->hide();
}
 
void TabPDFOptions::SelLPIcol(int c)
{
Opts->LPISettings[SelLPIcolor].Frequency = LPIfreq->value();
Opts->LPISettings[SelLPIcolor].Angle = LPIangle->value();
Opts->LPISettings[SelLPIcolor].SpotFunc = LPIfunc->currentItem();
LPIfreq->setValue(Opts->LPISettings[LPIcolor->text(c)].Frequency);
LPIangle->setValue(Opts->LPISettings[LPIcolor->text(c)].Angle);
LPIfunc->setCurrentItem(Opts->LPISettings[LPIcolor->text(c)].SpotFunc);
SelLPIcolor = LPIcolor->text(c);
}
 
void TabPDFOptions::SelRange(bool e)
{
bool setter = e ? false : true;
PageNr->setEnabled( setter );
if (setter == false)
CheckBM->setChecked(false);
}
 
void TabPDFOptions::EffectOnAll()
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
{
EffVal[pg].pageViewDuration = PageTime->value();
EffVal[pg].pageEffectDuration = EffectTime->value();
EffVal[pg].effectType = EffectType->currentItem();
EffVal[pg].Dm = EDirection->currentItem();
EffVal[pg].M = EDirection_2->currentItem();
EffVal[pg].Di = EDirection_2_2->currentItem();
}
}
 
void TabPDFOptions::PDFMirror()
{
Opts->MirrorH = MirrorH->isOn();
Opts->MirrorV = MirrorV->isOn();
}
 
void TabPDFOptions::Rotation( int value )
{
Opts->RotateDeg = value * 90;
}
 
void TabPDFOptions::DoEffects()
{
bool setter = CheckBox10->isChecked() ? true : false;
Pages->setEnabled(setter);
Effects->setEnabled(setter);
PagePrev->setEnabled(setter);
}
 
void TabPDFOptions::ValidDI(int nr)
{
if (!EDirection_2_2->listBox()->item(nr)->isSelectable())
EDirection_2_2->setCurrentItem(0);
}
 
void TabPDFOptions::SetPgEff(int nr)
{
if (nr < 0)
return;
EffVal[PgSel].pageViewDuration = PageTime->value();
EffVal[PgSel].pageEffectDuration = EffectTime->value();
EffVal[PgSel].effectType = EffectType->currentItem();
EffVal[PgSel].Dm = EDirection->currentItem();
EffVal[PgSel].M = EDirection_2->currentItem();
EffVal[PgSel].Di = EDirection_2_2->currentItem();
SetEffOpts(EffVal[nr].effectType);
PageTime->setValue(EffVal[nr].pageViewDuration);
EffectTime->setValue(EffVal[nr].pageEffectDuration);
EffectType->setCurrentItem(EffVal[nr].effectType);
EDirection->setCurrentItem(EffVal[nr].Dm);
EDirection_2->setCurrentItem(EffVal[nr].M);
EDirection_2_2->setCurrentItem(EffVal[nr].Di);
PgSel = nr;
}
 
void TabPDFOptions::SetEffOpts(int nr)
{
EDirection_2_2->listBox()->item(2)->setSelectable(false);
EDirection_2_2->listBox()->item(3)->setSelectable(false);
EDirection_2_2->listBox()->item(4)->setSelectable(false);
switch (nr)
{
case 0:
case 3:
EDirection->setEnabled(false);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(false);
break;
case 1:
EDirection->setEnabled(true);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(false);
break;
case 2:
EDirection->setEnabled(false);
EDirection_2->setEnabled(true);
EDirection_2_2->setEnabled(false);
break;
case 4:
case 6:
EDirection->setEnabled(false);
EDirection_2->setEnabled(false);
EDirection_2_2->setEnabled(true);
if (nr == 6)
{
EDirection_2_2->listBox()->item(2)->setSelectable(true);
EDirection_2_2->listBox()->item(3)->setSelectable(true);
}
else
EDirection_2_2->listBox()->item(4)->setSelectable(true);
break;
case 5:
EDirection->setEnabled(true);
EDirection_2->setEnabled(true);
EDirection_2_2->setEnabled(false);
break;
}
}
 
void TabPDFOptions::PagePr()
{
disconnect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
QString tmp;
int ci = Pages->currentItem();
if (PagePrev->isChecked())
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
Pages->changeItem(view->PageToPixmap(pg, 70), tr("Page")+" "+tmp.setNum(pg+1), pg);
}
else
{
for (uint pg = 0; pg < view->Doc->Pages.count(); ++pg)
Pages->changeItem( tr("Page")+" "+tmp.setNum(pg+1), pg);
}
if (ci != -1)
{
PgSel = ci;
Pages->setCurrentItem(ci);
}
else
{
PgSel = 0;
Pages->clearSelection();
}
connect(Pages, SIGNAL(highlighted(int)), this, SLOT(SetPgEff(int)));
}
 
void TabPDFOptions::DoDownsample()
{
if (DSColor->isChecked())
{
ValC->setEnabled(true);
if (ValC->value() > Resolution->value())
ValC->setValue(Resolution->value());
ValC->setMaxValue(Resolution->value());
ValC->setMinValue(35);
}
else
ValC->setEnabled(false);
}
 
void TabPDFOptions::RemoveEmbed()
{
FontsToEmbed.remove(EmbedList->currentText());
EmbedList->removeItem(EmbedList->currentItem());
EmbedList->clearSelection();
if (EmbedList->count() == 0)
{
FromEmbed->setEnabled(false);
ToSubset->setEnabled(false);
}
}
 
void TabPDFOptions::PutToEmbed()
{
if (EmbedList->count() != 0)
{
if (EmbedList->findItem(AvailFlist->currentText()) == NULL)
{
FontsToEmbed.append(AvailFlist->currentText());
EmbedList->insertItem(AvailFlist->currentText());
}
}
else
{
FontsToEmbed.append(AvailFlist->currentText());
EmbedList->insertItem(AvailFlist->currentText());
}
}
 
void TabPDFOptions::RemoveSubset()
{
FontsToSubset.remove(SubsetList->currentText());
FontsToEmbed.append(SubsetList->currentText());
EmbedList->insertItem(SubsetList->currentText());
SubsetList->removeItem(SubsetList->currentItem());
SubsetList->clearSelection();
if (SubsetList->count() == 0)
FromSubset->setEnabled(false);
}
 
void TabPDFOptions::PutToSubset()
{
if (SubsetList->count() != 0)
{
if (SubsetList->findItem(EmbedList->currentText()) == NULL)
{
FontsToSubset.append(EmbedList->currentText());
SubsetList->insertItem(EmbedList->currentText());
}
}
else
{
FontsToSubset.append(EmbedList->currentText());
SubsetList->insertItem(EmbedList->currentText());
}
FontsToEmbed.remove(EmbedList->currentText());
EmbedList->removeItem(EmbedList->currentItem());
EmbedList->clearSelection();
if (EmbedList->count() == 0)
{
FromEmbed->setEnabled(false);
ToSubset->setEnabled(false);
}
}
 
void TabPDFOptions::SelAFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromEmbed->setEnabled(false);
if (c->isSelectable())
ToEmbed->setEnabled(true);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
EmbedList->clearSelection();
SubsetList->clearSelection();
}
}
 
void TabPDFOptions::SelEFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromEmbed->setEnabled(true);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(true);
FromSubset->setEnabled(false);
AvailFlist->clearSelection();
SubsetList->clearSelection();
}
}
 
void TabPDFOptions::SelSFont(QListBoxItem *c)
{
if ((c != NULL) && (!EmbedFonts->isChecked()))
{
FromSubset->setEnabled(true);
ToSubset->setEnabled(false);
ToEmbed->setEnabled(false);
FromEmbed->setEnabled(false);
EmbedList->clearSelection();
AvailFlist->clearSelection();
}
}
 
void TabPDFOptions::EmbedAll()
{
if (EmbedFonts->isChecked())
{
SubsetFonts->setChecked(false);
EmbedList->clear();
FontsToEmbed.clear();
SubsetList->clear();
FontsToSubset.clear();
FromEmbed->setEnabled(false);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
for (uint a=0; a < AvailFlist->count(); ++a)
{
if (AvailFlist->item(a)->isSelectable())
{
FontsToEmbed.append(AvailFlist->item(a)->text());
EmbedList->insertItem(AvailFlist->item(a)->text());
}
}
}
}
 
void TabPDFOptions::SubsetAll()
{
if (SubsetFonts->isChecked())
{
EmbedFonts->setChecked(false);
EmbedList->clear();
FontsToEmbed.clear();
SubsetList->clear();
FontsToSubset.clear();
FromEmbed->setEnabled(false);
ToEmbed->setEnabled(false);
ToSubset->setEnabled(false);
FromSubset->setEnabled(false);
for (uint a=0; a < AvailFlist->count(); ++a)
{
if (AvailFlist->item(a)->isSelectable())
{
FontsToSubset.append(AvailFlist->item(a)->text());
SubsetList->insertItem(AvailFlist->item(a)->text());
}
}
}
}
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/reformdoc.cpp
===================================================================
--- branches/Version13x/Scribus/scribus/reformdoc.cpp (revision 1306)
+++ branches/Version13x/Scribus/scribus/reformdoc.cpp (revision 1307)
@@ -12,6 +12,7 @@
#include "units.h"
#include "mspinbox.h"
#include "scribus.h"
+#include "tabpdfoptions.h"
extern QPixmap loadIcon(QString nam);
extern double UmReFaktor;
@@ -316,6 +317,19 @@
tabDocChecker = new TabCheckDoc( prefsWidgets, doc->checkerProfiles, doc->curCheckProfile);
addItem( tr("Doc-Checker"), loadIcon("checkdoc.png"), tabDocChecker);
+
+ tabPDF = new TabPDFOptions( prefsWidgets,
+ &doc->PDF_Optionen,
+ ap->Prefs.AvailFonts,
+ &ap->PDFXProfiles,
+ doc->UsedFonts,
+ doc->PDF_Optionen.PresentVals,
+ UmReFaktor,
+ ein,
+ doc->PageH,
+ doc->PageB,
+ 0 );
+ addItem( tr("PDF Export"), loadIcon("acroread.png"), tabPDF);
int cmsTab = 0;
if (CMSavail)
@@ -351,7 +365,10 @@
connect(unitCombo, SIGNAL(activated(int)), this, SLOT(unitChange()));
if (CMSavail)
+ {
prefsWidgets->raiseWidget(cmsTab);
+ connect(tabColorManagement, SIGNAL(cmsOn(bool )), this, SLOT(switchCMS(bool )));
+ }
arrangeIcons();
resize( minimumSizeHint() );
clearWState( WState_Polished );
@@ -409,6 +426,10 @@
bottomScratch->setSuffix(einh);
leftScratch->setSuffix(einh);
rightScratch->setSuffix(einh);
+ tabPDF->BleedBottom->setSuffix(einh);
+ tabPDF->BleedTop->setSuffix(einh);
+ tabPDF->BleedRight->setSuffix(einh);
+ tabPDF->BleedLeft->setSuffix(einh);
double invUnitConversion = 1.0 / AltUmrech * Umrech;
@@ -444,7 +465,15 @@
leftScratch->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
rightScratch->getValues(&oldMin, &oldMax, &decimalsOld, &val);
rightScratch->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
-
+ tabPDF->BleedBottom->getValues(&oldMin, &oldMax, &decimalsOld, &val);
+ tabPDF->BleedBottom->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
+ tabPDF->BleedTop->getValues(&oldMin, &oldMax, &decimalsOld, &val);
+ tabPDF->BleedTop->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
+ tabPDF->BleedRight->getValues(&oldMin, &oldMax, &decimalsOld, &val);
+ tabPDF->BleedRight->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
+ tabPDF->BleedLeft->getValues(&oldMin, &oldMax, &decimalsOld, &val);
+ tabPDF->BleedLeft->setValues(oldMin * invUnitConversion, oldMax * invUnitConversion, decimals, val * invUnitConversion);
+ tabPDF->unitConv = Umrech;
pageWidth = docc->PageB * Umrech;
pageHeight = docc->PageH * Umrech;
rightR->setMaxValue(pageWidth - leftR->value());
@@ -505,3 +534,8 @@
firstPage->setEnabled(false);
}
}
+
+void ReformDoc::switchCMS(bool enable)
+{
+ tabPDF->enableCMS(enable);
+}
/branches/Version13x/Scribus/scribus/scribusdoc.cpp
193,46 → 193,46
currentParaStyle = 0;
TotalItems = 0;
TemplateMode = false;
PDF_Optionen.Thumbnails = false;
PDF_Optionen.Articles = false;
PDF_Optionen.Compress = true;
PDF_Optionen.CompressMethod = 0;
PDF_Optionen.Quality = 0;
PDF_Optionen.RecalcPic = false;
PDF_Optionen.Bookmarks = false;
PDF_Optionen.PicRes = 300;
PDF_Optionen.Version = 14;
PDF_Optionen.Resolution = 300;
PDF_Optionen.Binding = 0;
PDF_Optionen.EmbedList.clear();
PDF_Optionen.SubsetList.clear();
PDF_Optionen.MirrorH = false;
PDF_Optionen.MirrorV = false;
PDF_Optionen.RotateDeg = 0;
PDF_Optionen.PresentMode = false;
PDF_Optionen.Datei = "";
PDF_Optionen.PresentVals.clear();
PDF_Optionen.UseRGB = true;
PDF_Optionen.UseProfiles = false;
PDF_Optionen.UseProfiles2 = false;
PDF_Optionen.SolidProf = "";
PDF_Optionen.SComp = 3;
PDF_Optionen.ImageProf = "";
PDF_Optionen.PrintProf = "";
PDF_Optionen.Info = "";
PDF_Optionen.Intent = 0;
PDF_Optionen.Intent2 = 0;
PDF_Optionen.BleedTop = 0;
PDF_Optionen.BleedLeft = 0;
PDF_Optionen.BleedRight = 0;
PDF_Optionen.BleedBottom = 0;
PDF_Optionen.EmbeddedI = false;
PDF_Optionen.Encrypt = false;
PDF_Optionen.PassOwner = "";
PDF_Optionen.PassUser = "";
PDF_Optionen.Permissions = -4;
PDF_Optionen.UseLPI = false;
PDF_Optionen.LPISettings.clear();
PDF_Optionen.Thumbnails = prefsData->PDF_Optionen.Thumbnails;
PDF_Optionen.Articles = prefsData->PDF_Optionen.Articles;
PDF_Optionen.Compress = prefsData->PDF_Optionen.Compress;
PDF_Optionen.CompressMethod = prefsData->PDF_Optionen.CompressMethod;
PDF_Optionen.Quality = prefsData->PDF_Optionen.Quality;
PDF_Optionen.RecalcPic = prefsData->PDF_Optionen.RecalcPic;
PDF_Optionen.Bookmarks = prefsData->PDF_Optionen.Bookmarks;
PDF_Optionen.PicRes = prefsData->PDF_Optionen.PicRes;
PDF_Optionen.Version = prefsData->PDF_Optionen.Version;
PDF_Optionen.Resolution = prefsData->PDF_Optionen.Resolution;
PDF_Optionen.Binding = prefsData->PDF_Optionen.Binding;
PDF_Optionen.EmbedList = prefsData->PDF_Optionen.EmbedList;
PDF_Optionen.SubsetList = prefsData->PDF_Optionen.SubsetList;
PDF_Optionen.MirrorH = prefsData->PDF_Optionen.MirrorH;
PDF_Optionen.MirrorV = prefsData->PDF_Optionen.MirrorV;
PDF_Optionen.RotateDeg = prefsData->PDF_Optionen.RotateDeg;
PDF_Optionen.PresentMode = prefsData->PDF_Optionen.PresentMode;
PDF_Optionen.Datei = prefsData->PDF_Optionen.Datei;
PDF_Optionen.PresentVals = prefsData->PDF_Optionen.PresentVals;
PDF_Optionen.UseRGB = prefsData->PDF_Optionen.UseRGB;
PDF_Optionen.UseProfiles = prefsData->PDF_Optionen.UseProfiles;
PDF_Optionen.UseProfiles2 = prefsData->PDF_Optionen.UseProfiles2;
PDF_Optionen.SolidProf = prefsData->PDF_Optionen.SolidProf;
PDF_Optionen.SComp = prefsData->PDF_Optionen.SComp;
PDF_Optionen.ImageProf = prefsData->PDF_Optionen.ImageProf;
PDF_Optionen.PrintProf = prefsData->PDF_Optionen.PrintProf;
PDF_Optionen.Info = prefsData->PDF_Optionen.Info;
PDF_Optionen.Intent = prefsData->PDF_Optionen.Intent;
PDF_Optionen.Intent2 = prefsData->PDF_Optionen.Intent2;
PDF_Optionen.BleedTop = prefsData->PDF_Optionen.BleedTop;
PDF_Optionen.BleedLeft = prefsData->PDF_Optionen.BleedLeft;
PDF_Optionen.BleedRight = prefsData->PDF_Optionen.BleedRight;
PDF_Optionen.BleedBottom = prefsData->PDF_Optionen.BleedBottom;
PDF_Optionen.EmbeddedI = prefsData->PDF_Optionen.EmbeddedI;
PDF_Optionen.Encrypt = prefsData->PDF_Optionen.Encrypt;
PDF_Optionen.PassOwner = prefsData->PDF_Optionen.PassOwner;
PDF_Optionen.PassUser = prefsData->PDF_Optionen.PassUser;
PDF_Optionen.Permissions = prefsData->PDF_Optionen.Permissions;
PDF_Optionen.UseLPI = prefsData->PDF_Optionen.UseLPI;
PDF_Optionen.LPISettings = prefsData->PDF_Optionen.LPISettings;
RePos = false;
BookMarks.clear();
OldBM = false;
/branches/Version13x/Scribus/scribus/pdfopts.h
2,25 → 2,15
#define PDF_OPTS_H
 
#include <qdialog.h>
#include <qbuttongroup.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include <qtoolbutton.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qmap.h>
#include <qvaluelist.h>
#include <qlistbox.h>
#include "bookmwin.h"
#include "mspinbox.h"
#include "tabpdfoptions.h"
 
class PDF_Opts : public QDialog
{
29,203 → 19,25
public:
PDF_Opts( QWidget* parent, QString Fname, QMap<QString,QFont> DocFonts, ScribusView *vie, PDFOptions *Optionen,
QValueList<PDFPresentationData> Eff, ProfilesL *PDFXProfiles, SCFonts &AllFonts );
~PDF_Opts();
~PDF_Opts() {};
 
QWidget* tabGeneral;
QWidget* tabFonts;
QWidget* tabPresentation;
QWidget* tabSecurity;
QWidget* tabColor;
QWidget* tabPDFX;
 
QLabel* Name;
QLabel* TextLabel1;
QTabWidget* Options;
QSpinBox* Resolution;
QCheckBox* Article;
QCheckBox* Compression;
QCheckBox* DSColor;
QSpinBox* ValC;
QGroupBox* CBox;
QLabel* TextCom1;
QLabel* TextCom2;
QComboBox* CQuality;
QComboBox* CMethod;
TabPDFOptions* Options;
QToolButton* FileC;
QPushButton* OK;
QPushButton* Cancel;
QLineEdit* Datei;
QGroupBox* GroupBox1;
QLabel* TextLabel2;
QComboBox* ComboBox1;
QLabel* TextLabel1x;
QComboBox* ComboBind;
QCheckBox* CheckBox1;
QToolButton* MirrorH;
QToolButton* MirrorV;
QComboBox* RotateDeg;
QLabel* TextLabel3;
QCheckBox* CheckBox10;
QPushButton* EonAllPg;
 
QLabel* TextLabel1e;
QLabel* TextLabel2e;
QLabel* TextLabel3e;
QLabel* TextLabel4e;
QLabel* TextLabel5e;
QLabel* TextLabel6e;
QComboBox* EffectType;
QComboBox* EDirection;
QComboBox* EDirection_2;
QComboBox* EDirection_2_2;
QSpinBox* PageTime;
QSpinBox* EffectTime;
QListBox* Pages;
QGroupBox* Effects;
QCheckBox* PagePrev;
QCheckBox* CheckBM;
QCheckBox* EmbedFonts;
QGroupBox* GroupFont;
QLabel* TextFont1;
QListBox* AvailFlist;
QPushButton* ToEmbed;
QPushButton* FromEmbed;
QLabel* TextFont1_2;
QLabel* TextFont1_2a;
QButtonGroup* RangeGroup;
QRadioButton* AllPages;
QRadioButton* OnlySome;
QLineEdit* PageNr;
QListBox* EmbedList;
QPushButton* ToSubset;
QPushButton* FromSubset;
QListBox* SubsetList;
QCheckBox* SubsetFonts;
QGroupBox* ColorGroup;
QGroupBox* GroupBox9;
QLabel* ColorText1;
QComboBox* OutCombo;
QCheckBox* EmbedProfs;
QCheckBox* EmbedProfs2;
QGroupBox* ProfsGroup;
QComboBox* SolidPr;
QLabel* ProfsTxt1;
QComboBox* ImageP;
QCheckBox* NoEmbedded;
QLabel* ProfsTxt3;
QLabel* ProfsTxt4;
QLabel* ProfsTxt2;
QComboBox* IntendS;
QComboBox* IntendI;
QGroupBox* X3Group;
QComboBox* PrintProfC;
QLineEdit* InfoString;
QLabel* PDFX2;
QLabel* PDFX1;
QGroupBox* BleedGroup;
QLabel* BleedIcon;
MSpinBox* BleedTop;
MSpinBox* BleedBottom;
MSpinBox* BleedRight;
MSpinBox* BleedLeft;
QGroupBox* GroupPass;
QLabel* TextSec2;
QLabel* TextSec1;
QLineEdit* PassOwner;
QLineEdit* PassUser;
QGroupBox* GroupSecSet;
QCheckBox* PrintSec;
QCheckBox* PrintSec2;
QCheckBox* ModifySec;
QCheckBox* CopySec;
QCheckBox* AddSec;
QCheckBox* Encry;
QGroupBox* LPIgroup;
QCheckBox* UseLPI;
QSpinBox* LPIfreq;
QSpinBox* LPIangle;
QLabel* textLPI1;
QLabel* textLPI2;
QLabel* textLPI3;
QComboBox* LPIcolor;
QComboBox* LPIfunc;
QValueList<QString> FontsToEmbed;
QValueList<QString> FontsToSubset;
ScribusView *view;
QValueList<PDFPresentationData> EffVal;
int PgSel;
int docUnitIndex;
QString SelLPIcolor;
PDFOptions *Opts;
 
public slots:
void DoExport();
void ToggleEncr();
void BleedChanged();
void EnablePDFX(int a);
void DoDownsample();
void RemoveEmbed();
void PutToEmbed();
void RemoveSubset();
void PutToSubset();
void SelAFont(QListBoxItem*);
void SelEFont(QListBoxItem*);
void SelSFont(QListBoxItem*);
void EmbedAll();
void SubsetAll();
void ChangeFile();
void PagePr();
void SetPgEff(int nr);
void SetEffOpts(int nr);
void ValidDI(int nr);
void PDFMirror();
void Rotation(int value);
void DoEffects();
void EffectOnAll();
void SelRange(bool e);
void EnablePr(int a);
void EnablePG();
void EnablePGI();
void EnablePGI2();
void EnableLPI(int a);
void EnableLPI2();
void SelLPIcol(int);
void EnablePDFX3save();
 
protected:
QGridLayout* CBoxLayout;
QVBoxLayout* PDFOptsLayout;
QHBoxLayout* Layout5;
QVBoxLayout* tabLayout;
QVBoxLayout* Layout3;
QHBoxLayout* Layout2;
QVBoxLayout* tabLayout_3;
QHBoxLayout* GroupFontLayout;
QVBoxLayout* Layout4_2;
QVBoxLayout* Layout5_2;
QHBoxLayout* Layout5_2a;
QVBoxLayout* Layout6;
QHBoxLayout* Layout7;
QGridLayout* GroupBox1Layout;
QGridLayout* GroupBox9Layout;
QGridLayout* GroupBox2Layout;
QGridLayout* tabLayout_5;
QGridLayout* tabOptionsGridLayout;
QGridLayout* EffectsLayout;
QHBoxLayout* Layout13;
QVBoxLayout* RangeGroupLayout;
QGridLayout* Layout11;
QGridLayout* Layout11a;
QVBoxLayout* tabColorLayout;
QHBoxLayout* ColorGroupLayout;
QGridLayout* ProfsGroupLayout;
QVBoxLayout* tabPDFXLayout;
QGridLayout* X3GroupLayout;
QGridLayout* BleedGroupLayout;
QVBoxLayout* tabSecurityLayout;
QGridLayout* GroupPassLayout;
QVBoxLayout* GroupSecSetLayout;
QGridLayout* LPIgroupLayout;
};
 
#endif // PDF_OPTS_H
/branches/Version13x/Scribus/scribus/scribusXml.cpp
3109,6 → 3109,51
QDomElement cosd=docu.createElement("DCOLORSET");
cosd.setAttribute("NAME",Vor->DColorSet);
elem.appendChild(cosd);
QDomElement pdf = docu.createElement("PDF");
pdf.setAttribute("Thumbnails", static_cast<int>(Vor->PDF_Optionen.Thumbnails));
pdf.setAttribute("Articles", static_cast<int>(Vor->PDF_Optionen.Articles));
pdf.setAttribute("Bookmarks", static_cast<int>(Vor->PDF_Optionen.Bookmarks));
pdf.setAttribute("Compress", static_cast<int>(Vor->PDF_Optionen.Compress));
pdf.setAttribute("CMethod", Vor->PDF_Optionen.CompressMethod);
pdf.setAttribute("Quality", Vor->PDF_Optionen.Quality);
pdf.setAttribute("MirrorH", static_cast<int>(Vor->PDF_Optionen.MirrorH));
pdf.setAttribute("MirrorV", static_cast<int>(Vor->PDF_Optionen.MirrorV));
pdf.setAttribute("RotateDeg", static_cast<int>(Vor->PDF_Optionen.RotateDeg));
pdf.setAttribute("PresentMode", static_cast<int>(Vor->PDF_Optionen.PresentMode));
pdf.setAttribute("RecalcPic", static_cast<int>(Vor->PDF_Optionen.RecalcPic));
pdf.setAttribute("RGBMode", static_cast<int>(Vor->PDF_Optionen.UseRGB));
pdf.setAttribute("UseProfiles", static_cast<int>(Vor->PDF_Optionen.UseProfiles));
pdf.setAttribute("UseProfiles2", static_cast<int>(Vor->PDF_Optionen.UseProfiles2));
pdf.setAttribute("Binding", Vor->PDF_Optionen.Binding);
pdf.setAttribute("PicRes", Vor->PDF_Optionen.PicRes);
pdf.setAttribute("Resolution", Vor->PDF_Optionen.Resolution);
pdf.setAttribute("Version", Vor->PDF_Optionen.Version);
pdf.setAttribute("Intent", Vor->PDF_Optionen.Intent);
pdf.setAttribute("Intent2", Vor->PDF_Optionen.Intent2);
pdf.setAttribute("SolidP", Vor->PDF_Optionen.SolidProf);
pdf.setAttribute("ImageP", Vor->PDF_Optionen.ImageProf);
pdf.setAttribute("PrintP", Vor->PDF_Optionen.PrintProf);
pdf.setAttribute("InfoString", Vor->PDF_Optionen.Info);
pdf.setAttribute("BTop", Vor->PDF_Optionen.BleedTop);
pdf.setAttribute("BLeft", Vor->PDF_Optionen.BleedLeft);
pdf.setAttribute("BRight", Vor->PDF_Optionen.BleedRight);
pdf.setAttribute("BBottom", Vor->PDF_Optionen.BleedBottom);
pdf.setAttribute("ImagePr", static_cast<int>(Vor->PDF_Optionen.EmbeddedI));
pdf.setAttribute("PassOwner", Vor->PDF_Optionen.PassOwner);
pdf.setAttribute("PassUser", Vor->PDF_Optionen.PassUser);
pdf.setAttribute("Permissions", Vor->PDF_Optionen.Permissions);
pdf.setAttribute("Encrypt", static_cast<int>(Vor->PDF_Optionen.Encrypt));
pdf.setAttribute("UseLpi", static_cast<int>(Vor->PDF_Optionen.UseLPI));
QMap<QString,LPIData>::Iterator itlp;
for (itlp = Vor->PDF_Optionen.LPISettings.begin(); itlp != Vor->PDF_Optionen.LPISettings.end(); ++itlp)
{
QDomElement pdf4 = docu.createElement("LPI");
pdf4.setAttribute("Color", itlp.key());
pdf4.setAttribute("Frequency", itlp.data().Frequency);
pdf4.setAttribute("Angle", itlp.data().Angle);
pdf4.setAttribute("SpotFunction", itlp.data().SpotFunc);
pdf.appendChild(pdf4);
}
QFile f(ho);
if(!f.open(IO_WriteOnly))
return;
3415,12 → 3460,9
{
if (Vorein->AvailFonts.find(dc.attribute("NAME")))
{
Vorein->AvailFonts[dc.attribute("NAME")]->EmbedPS =
static_cast<bool>(QStoInt(dc.attribute("EMBED")));
Vorein->AvailFonts[dc.attribute("NAME")]->UseFont &=
static_cast<bool>(QStoInt(dc.attribute("USE","1")));
Vorein->AvailFonts[dc.attribute("NAME")]->Subset =
static_cast<bool>(QStoInt(dc.attribute("SUBSET","0")));
Vorein->AvailFonts[dc.attribute("NAME")]->EmbedPS = static_cast<bool>(QStoInt(dc.attribute("EMBED")));
Vorein->AvailFonts[dc.attribute("NAME")]->UseFont &= static_cast<bool>(QStoInt(dc.attribute("USE","1")));
Vorein->AvailFonts[dc.attribute("NAME")]->Subset = static_cast<bool>(QStoInt(dc.attribute("SUBSET","0")));
}
}
if (dc.tagName()=="COLOR")
3437,6 → 3479,58
Vorein->CustomColorSets.append(dc.attribute("NAME"));
if (dc.tagName()=="DCOLORSET")
Vorein->DColorSet = dc.attribute("NAME");
if(dc.tagName()=="PDF")
{
Vorein->PDF_Optionen.Articles = static_cast<bool>(QStoInt(dc.attribute("Articles")));
Vorein->PDF_Optionen.Thumbnails = static_cast<bool>(QStoInt(dc.attribute("Thumbnails")));
Vorein->PDF_Optionen.Compress = static_cast<bool>(QStoInt(dc.attribute("Compress")));
Vorein->PDF_Optionen.CompressMethod = QStoInt(dc.attribute("CMethod","0"));
Vorein->PDF_Optionen.Quality = QStoInt(dc.attribute("Quality","0"));
Vorein->PDF_Optionen.RecalcPic = static_cast<bool>(QStoInt(dc.attribute("RecalcPic")));
Vorein->PDF_Optionen.Bookmarks = static_cast<bool>(QStoInt(dc.attribute("Bookmarks")));
Vorein->PDF_Optionen.MirrorH = static_cast<bool>(QStoInt(dc.attribute("MirrorH")));
Vorein->PDF_Optionen.MirrorV = static_cast<bool>(QStoInt(dc.attribute("MirrorV")));
Vorein->PDF_Optionen.RotateDeg = QStoInt(dc.attribute("RotateDeg","0"));
Vorein->PDF_Optionen.PresentMode = static_cast<bool>(QStoInt(dc.attribute("PresentMode")));
Vorein->PDF_Optionen.PicRes = QStoInt(dc.attribute("PicRes"));
Vorein->PDF_Optionen.Version = QStoInt(dc.attribute("Version"));
Vorein->PDF_Optionen.Resolution = QStoInt(dc.attribute("Resolution"));
Vorein->PDF_Optionen.Binding = QStoInt(dc.attribute("Binding"));
Vorein->PDF_Optionen.Datei = "";
Vorein->PDF_Optionen.UseRGB = static_cast<bool>(QStoInt(dc.attribute("RGBMode","0")));
Vorein->PDF_Optionen.UseProfiles = static_cast<bool>(QStoInt(dc.attribute("UseProfiles","0")));
Vorein->PDF_Optionen.UseProfiles2 = static_cast<bool>(QStoInt(dc.attribute("UseProfiles2","0")));
Vorein->PDF_Optionen.Intent = QStoInt(dc.attribute("Intent","1"));
Vorein->PDF_Optionen.Intent2 = QStoInt(dc.attribute("Intent2","1"));
Vorein->PDF_Optionen.SolidProf = dc.attribute("SolidP", "");
Vorein->PDF_Optionen.ImageProf = dc.attribute("ImageP", "");
Vorein->PDF_Optionen.PrintProf = dc.attribute("PrintP", "");
Vorein->PDF_Optionen.Info = dc.attribute("InfoString", "");
Vorein->PDF_Optionen.BleedTop = QStodouble(dc.attribute("BTop","0"));
Vorein->PDF_Optionen.BleedLeft = QStodouble(dc.attribute("BLeft","0"));
Vorein->PDF_Optionen.BleedRight = QStodouble(dc.attribute("BRight","0"));
Vorein->PDF_Optionen.BleedBottom = QStodouble(dc.attribute("BBottom","0"));
Vorein->PDF_Optionen.EmbeddedI = static_cast<bool>(QStoInt(dc.attribute("ImagePr","0")));
Vorein->PDF_Optionen.PassOwner = dc.attribute("PassOwner", "");
Vorein->PDF_Optionen.PassUser = dc.attribute("PassUser", "");
Vorein->PDF_Optionen.Permissions = QStoInt(dc.attribute("Permissions","-4"));
Vorein->PDF_Optionen.Encrypt = static_cast<bool>(QStoInt(dc.attribute("Encrypt","0")));
Vorein->PDF_Optionen.UseLPI = static_cast<bool>(QStoInt(dc.attribute("UseLpi","0")));
QDomNode PFO = DOC.firstChild();
while(!PFO.isNull())
{
QDomElement pdfF = PFO.toElement();
if(pdfF.tagName() == "LPI")
{
struct LPIData lpo;
lpo.Angle = QStoInt(pdfF.attribute("Angle"));
lpo.Frequency = QStoInt(pdfF.attribute("Frequency"));
lpo.SpotFunc = QStoInt(pdfF.attribute("SpotFunction"));
Vorein->PDF_Optionen.LPISettings[pdfF.attribute("Color")] = lpo;
}
PFO = PFO.nextSibling();
}
}
DOC=DOC.nextSibling();
}
if (Vorein->GUI != "Default")
/branches/Version13x/Scribus/scribus/icons/acroread.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/icons/Makefile.am
===================================================================
--- branches/Version13x/Scribus/scribus/icons/Makefile.am (revision 1306)
+++ branches/Version13x/Scribus/scribus/icons/Makefile.am (revision 1307)
@@ -1,8 +1,9 @@
-EXTRA_DIST = checkdoc.png vectorgfx.png ooo_draw.png ooo_writer.png key_bindings.png blend.png hyphenate.png scrap.png misc.png tools.png page.png guides.png font.png screen.png nftabout.xpm nftinfo.xpm dist.png tab.png view.png Kreuz.xpm Bild.xpm Editm.xpm Kreise.xpm Lock.xpm Lupe.xpm Rechtecke.xpm Rotieren.xpm Stift.xpm Text.xpm Unlock.xpm DateiClose.png DateiNeu.xpm DateiOpen.xpm DateiPrint.xpm DateiSave2.png AppIcon2.png AppIcon.png LupeZ.xpm Gross.xpm Klein.xpm DragPix.xpm Rotieren2.xpm HandC.xpm scribus_logo.jpg DateiClos16.png DateiNeu16.png DateiOpen16.png DateiPrint16.png DateiSave16.png editcopy.png editcut.png editdelete.png editpaste.png exit.png doc.png image.png pdf.png postscript.png txt.png Zeichen.xpm Hoch.xpm Kapital.xpm Strike.xpm Tief.xpm Unter.xpm Kern.xpm Spacing.xpm Corner.xpm FlipH.xpm FlipV.xpm Winkel.xpm acrobat.png scribusicon.png text_block.png text_center.png text_left.png text_right.png Text2.xpm spline.png triangle.png Stiftalt.xpm beziertool.png AddNode.png DeleteNode.png MoveAsym.png MoveKontrol.png MoveNode.png MoveSym.png BevelJoin.png ButtCap.png MiterJoin.png RoundJoin.png SquareCap.png ResetNode.png RoundCap.png Reset1Node.png BezierClose.png PolyCut.png AddPoint.png DelPoint.png Split.png Deletelayer.png Layervisible.xpm Lowerlayer.png Newlayer.png Raiselayer.png checkbox.png combobox.png listbox.png pushbutton.png textview.png charset.png goto.png document2.png trashcan.png trashcan2.png gohome.png bottom.png down.png top.png up.png irreg.png text_force.png ok.png ok22.png Revers.png hmirror.png vmirror.png shear_right.png shear_left.png shear_up.png shear_down.png Splash.png back.png start.png forward.png finish.png penciladd.png pencilsub.png outlined.png fill.png NoPrint.png unlock.png locked.png signature.png rotate_cw.png rotate_ccw.png crop.png expand.png frameresize.png framenoresize.png testfill.png frame_table.png scribusdoc.png documentinfo.png filesaveas.png revert.png reload.png compfile.png reload16.png compfile16.png find.png find16.png addf.png removef.png launch.png launch16.png u_undo.png u_redo.png u_undo16.png u_redo16.png u_margins.png u_margins_locked.png u_align.png u_move.png u_resize.png u_rotate.png u_group.png u_fill.png u_shade.png u_lock.png u_unlock.png
+EXTRA_DIST = acroread.png checkdoc.png vectorgfx.png ooo_draw.png ooo_writer.png key_bindings.png blend.png hyphenate.png scrap.png misc.png tools.png page.png guides.png font.png screen.png nftabout.xpm nftinfo.xpm dist.png tab.png view.png Kreuz.xpm Bild.xpm Editm.xpm Kreise.xpm Lock.xpm Lupe.xpm Rechtecke.xpm Rotieren.xpm Stift.xpm Text.xpm Unlock.xpm DateiClose.png DateiNeu.xpm DateiOpen.xpm DateiPrint.xpm DateiSave2.png AppIcon2.png AppIcon.png LupeZ.xpm Gross.xpm Klein.xpm DragPix.xpm Rotieren2.xpm HandC.xpm scribus_logo.jpg DateiClos16.png DateiNeu16.png DateiOpen16.png DateiPrint16.png DateiSave16.png editcopy.png editcut.png editdelete.png editpaste.png exit.png doc.png image.png pdf.png postscript.png txt.png Zeichen.xpm Hoch.xpm Kapital.xpm Strike.xpm Tief.xpm Unter.xpm Kern.xpm Spacing.xpm Corner.xpm FlipH.xpm FlipV.xpm Winkel.xpm acrobat.png scribusicon.png text_block.png text_center.png text_left.png text_right.png Text2.xpm spline.png triangle.png Stiftalt.xpm beziertool.png AddNode.png DeleteNode.png MoveAsym.png MoveKontrol.png MoveNode.png MoveSym.png BevelJoin.png ButtCap.png MiterJoin.png RoundJoin.png SquareCap.png ResetNode.png RoundCap.png Reset1Node.png BezierClose.png PolyCut.png AddPoint.png DelPoint.png Split.png Deletelayer.png Layervisible.xpm Lowerlayer.png Newlayer.png Raiselayer.png checkbox.png combobox.png listbox.png pushbutton.png textview.png charset.png goto.png document2.png trashcan.png trashcan2.png gohome.png bottom.png down.png top.png up.png irreg.png text_force.png ok.png ok22.png Revers.png hmirror.png vmirror.png shear_right.png shear_left.png shear_up.png shear_down.png Splash.png back.png start.png forward.png finish.png penciladd.png pencilsub.png outlined.png fill.png NoPrint.png unlock.png locked.png signature.png rotate_cw.png rotate_ccw.png crop.png expand.png frameresize.png framenoresize.png testfill.png frame_table.png scribusdoc.png documentinfo.png filesaveas.png revert.png reload.png compfile.png reload16.png compfile16.png find.png find16.png addf.png removef.png launch.png launch16.png u_undo.png u_redo.png u_undo16.png u_redo16.png u_margins.png u_margins_locked.png u_align.png u_move.png u_resize.png u_rotate.png u_group.png u_fill.png u_shade.png u_lock.png u_unlock.png
install-data-local:
$(mkinstalldirs) $(prefix)/share/scribus/icons/
$(mkinstalldirs) $(prefix)/share/pixmaps/
+ $(INSTALL_DATA) $(srcdir)/acroread.png $(prefix)/share/scribus/icons/acroread.png
$(INSTALL_DATA) $(srcdir)/vectorgfx.png $(prefix)/share/scribus/icons/vectorgfx.png
$(INSTALL_DATA) $(srcdir)/ooo_writer.png $(prefix)/share/scribus/icons/ooo_writer.png
$(INSTALL_DATA) $(srcdir)/ooo_draw.png $(prefix)/share/scribus/icons/ooo_draw.png
@@ -375,4 +376,5 @@
-rm -f $(prefix)/share/scribus/icons/u_lock.png
-rm -f $(prefix)/share/scribus/icons/u_unlock.png
-rm -f $(prefix)/share/scribus/icons/checkdoc.png
+ -rm -f $(prefix)/share/scribus/icons/acroread.png
/branches/Version13x/Scribus/scribus/scribusstructs.h
452,6 → 452,7
windowPrefs pagePalSettings;
windowPrefs bookmPalSettings;
windowPrefs checkPalSettings;
PDFOptions PDF_Optionen;
bool SepalT;
bool SepalN;
int PSize;
/branches/Version13x/Scribus/scribus/cmsprefs.cpp
200,5 → 200,6
slotSimula();
else
gamutC->setEnabled(setter);
emit cmsOn(setter);
}
 
/branches/Version13x/Scribus/scribus/reformdoc.h
26,6 → 26,7
class TabGuides;
class TabTools;
class TabCheckDoc;
class TabPDFOptions;
 
class ReformDoc : public PrefsDialogBase
{
79,6 → 80,7
HySettings* tabHyphenator;
TabCheckDoc* tabDocChecker;
CMSPrefs* tabColorManagement;
TabPDFOptions* tabPDF;
QLabel* textLabel9;
QPushButton* backColor;
QButtonGroup* pageBackground;
123,6 → 125,7
virtual void setBottom(int v);
virtual void setLeft(int v);
virtual void setRight(int v);
virtual void switchCMS(bool enable);
};
 
#endif // REFORMDOC_H
/branches/Version13x/Scribus/scribus/scribusdoc.h
212,7 → 212,7
bool Automatic;
bool AutoCheck;
bool TemplateMode;
struct PDFOptions PDF_Optionen;
PDFOptions PDF_Optionen;
bool RePos;
struct BookMa {
QString Title;
/branches/Version13x/Scribus/scribus/libabout/about.cpp
65,7 → 65,7
tabLayout1->addWidget( pixmapLabel1 );
buildID = new QLabel( tab, "BB" );
buildID->setAlignment(Qt::AlignCenter);
QString bu = tr("%1. %2 %3 ").arg("28").arg("January").arg("2005");
QString bu = tr("%1. %2 %3 ").arg("29").arg("January").arg("2005");
#ifdef HAVE_CMS
bu += "C";
#else
/branches/Version13x/Scribus/scribus/cmsprefs.h
11,43 → 11,46
#include "scribusstructs.h"
 
class CMSPrefs : public QWidget
{
Q_OBJECT
{
Q_OBJECT
 
public:
CMSPrefs( QWidget* parent, CMSData *Vor, ProfilesL *InputProfiles, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
~CMSPrefs() {};
CMSPrefs( QWidget* parent, CMSData *Vor, ProfilesL *InputProfiles, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
~CMSPrefs() {};
 
QCheckBox* checkBox1;
QGroupBox* sysProfiles;
QLabel* text2;
QLabel* text1;
QLabel* text3;
QLabel* text4;
QComboBox* inputP;
QComboBox* inputP2;
QComboBox* monitorP;
QComboBox* printerP;
QGroupBox* render;
QLabel* text22;
QComboBox* monitorI;
QComboBox* printerI;
QLabel* text21;
QCheckBox* simulate;
QCheckBox* checkBox1;
QGroupBox* sysProfiles;
QLabel* text2;
QLabel* text1;
QLabel* text3;
QLabel* text4;
QComboBox* inputP;
QComboBox* inputP2;
QComboBox* monitorP;
QComboBox* printerP;
QGroupBox* render;
QLabel* text22;
QComboBox* monitorI;
QComboBox* printerI;
QLabel* text21;
QCheckBox* simulate;
QCheckBox* gamutC;
QCheckBox* blackP;
CMSData *prefs;
bool changed;
CMSData *prefs;
bool changed;
 
public slots:
virtual void slotCMSon();
virtual void setValues();
virtual void slotCMSon();
virtual void setValues();
virtual void slotSimula();
 
signals:
void cmsOn(bool);
 
protected:
QVBoxLayout* cmsPrefsLayout;
QGridLayout* sysProfilesLayout;
QGridLayout* renderLayout;
QVBoxLayout* cmsPrefsLayout;
QGridLayout* sysProfilesLayout;
QGridLayout* renderLayout;
};
 
#endif // CMSPREFS_H
/branches/Version13x/Scribus/scribus/scribus.cpp
86,6 → 86,7
#include "charselect.h"
#include "checkDocument.h"
#include "tabcheckdoc.h"
#include "tabpdfoptions.h"
#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#include "win-config.h"
559,6 → 560,46
checkerSettings.minResolution = 144.0;
Prefs.checkerProfiles.insert( tr("PDF/X-3"), checkerSettings);
Prefs.curCheckProfile = tr("Postscript");
Prefs.PDF_Optionen.Thumbnails = false;
Prefs.PDF_Optionen.Articles = false;
Prefs.PDF_Optionen.Compress = true;
Prefs.PDF_Optionen.CompressMethod = 0;
Prefs.PDF_Optionen.Quality = 0;
Prefs.PDF_Optionen.RecalcPic = false;
Prefs.PDF_Optionen.Bookmarks = false;
Prefs.PDF_Optionen.PicRes = 300;
Prefs.PDF_Optionen.Version = 14;
Prefs.PDF_Optionen.Resolution = 300;
Prefs.PDF_Optionen.Binding = 0;
Prefs.PDF_Optionen.EmbedList.clear();
Prefs.PDF_Optionen.SubsetList.clear();
Prefs.PDF_Optionen.MirrorH = false;
Prefs.PDF_Optionen.MirrorV = false;
Prefs.PDF_Optionen.RotateDeg = 0;
Prefs.PDF_Optionen.PresentMode = false;
Prefs.PDF_Optionen.Datei = "";
Prefs.PDF_Optionen.PresentVals.clear();
Prefs.PDF_Optionen.UseRGB = true;
Prefs.PDF_Optionen.UseProfiles = false;
Prefs.PDF_Optionen.UseProfiles2 = false;
Prefs.PDF_Optionen.SolidProf = "";
Prefs.PDF_Optionen.SComp = 3;
Prefs.PDF_Optionen.ImageProf = "";
Prefs.PDF_Optionen.PrintProf = "";
Prefs.PDF_Optionen.Info = "";
Prefs.PDF_Optionen.Intent = 0;
Prefs.PDF_Optionen.Intent2 = 0;
Prefs.PDF_Optionen.BleedTop = 0;
Prefs.PDF_Optionen.BleedLeft = 0;
Prefs.PDF_Optionen.BleedRight = 0;
Prefs.PDF_Optionen.BleedBottom = 0;
Prefs.PDF_Optionen.EmbeddedI = false;
Prefs.PDF_Optionen.Encrypt = false;
Prefs.PDF_Optionen.PassOwner = "";
Prefs.PDF_Optionen.PassUser = "";
Prefs.PDF_Optionen.Permissions = -4;
Prefs.PDF_Optionen.UseLPI = false;
Prefs.PDF_Optionen.LPISettings.clear();
}
 
 
3280,6 → 3321,71
FProg->reset();
}
}
doc->PDF_Optionen.Thumbnails = dia->tabPDF->CheckBox1->isChecked();
doc->PDF_Optionen.Compress = dia->tabPDF->Compression->isChecked();
doc->PDF_Optionen.CompressMethod = dia->tabPDF->CMethod->currentItem();
doc->PDF_Optionen.Quality = dia->tabPDF->CQuality->currentItem();
doc->PDF_Optionen.Resolution = dia->tabPDF->Resolution->value();
doc->PDF_Optionen.RecalcPic = dia->tabPDF->DSColor->isChecked();
doc->PDF_Optionen.PicRes = dia->tabPDF->ValC->value();
doc->PDF_Optionen.Bookmarks = dia->tabPDF->CheckBM->isChecked();
doc->PDF_Optionen.Binding = dia->tabPDF->ComboBind->currentItem();
doc->PDF_Optionen.MirrorH = dia->tabPDF->MirrorH->isOn();
doc->PDF_Optionen.MirrorV = dia->tabPDF->MirrorV->isOn();
doc->PDF_Optionen.RotateDeg = dia->tabPDF->RotateDeg->currentItem() * 90;
doc->PDF_Optionen.Articles = dia->tabPDF->Article->isChecked();
doc->PDF_Optionen.Encrypt = dia->tabPDF->Encry->isChecked();
doc->PDF_Optionen.UseLPI = dia->tabPDF->UseLPI->isChecked();
doc->PDF_Optionen.BleedBottom = dia->tabPDF->BleedBottom->value() / UmReFaktor;
doc->PDF_Optionen.BleedTop = dia->tabPDF->BleedTop->value() / UmReFaktor;
doc->PDF_Optionen.BleedLeft = dia->tabPDF->BleedLeft->value() / UmReFaktor;
doc->PDF_Optionen.BleedRight = dia->tabPDF->BleedRight->value() / UmReFaktor;
if (dia->tabPDF->Encry->isChecked())
{
int Perm = -64;
if (dia->tabPDF->ComboBox1->currentItem() == 1)
Perm &= ~0x00240000;
if (dia->tabPDF->PrintSec->isChecked())
Perm += 4;
if (dia->tabPDF->ModifySec->isChecked())
Perm += 8;
if (dia->tabPDF->CopySec->isChecked())
Perm += 16;
if (dia->tabPDF->AddSec->isChecked())
Perm += 32;
doc->PDF_Optionen.Permissions = Perm;
doc->PDF_Optionen.PassOwner = dia->tabPDF->PassOwner->text();
doc->PDF_Optionen.PassUser = dia->tabPDF->PassUser->text();
}
if (dia->tabPDF->ComboBox1->currentItem() == 0)
doc->PDF_Optionen.Version = 13;
if (dia->tabPDF->ComboBox1->currentItem() == 1)
doc->PDF_Optionen.Version = 14;
if (dia->tabPDF->ComboBox1->currentItem() == 2)
doc->PDF_Optionen.Version = 12;
if (dia->tabPDF->OutCombo->currentItem() == 0)
{
doc->PDF_Optionen.UseRGB = true;
doc->PDF_Optionen.UseProfiles = false;
doc->PDF_Optionen.UseProfiles2 = false;
}
else
{
doc->PDF_Optionen.UseRGB = false;
#ifdef HAVE_CMS
if (CMSuse)
{
doc->PDF_Optionen.UseProfiles = dia->tabPDF->EmbedProfs->isChecked();
doc->PDF_Optionen.UseProfiles2 = dia->tabPDF->EmbedProfs2->isChecked();
doc->PDF_Optionen.Intent = dia->tabPDF->IntendS->currentItem();
doc->PDF_Optionen.Intent2 = dia->tabPDF->IntendI->currentItem();
doc->PDF_Optionen.EmbeddedI = dia->tabPDF->NoEmbedded->isChecked();
doc->PDF_Optionen.SolidProf = dia->tabPDF->SolidPr->currentText();
doc->PDF_Optionen.ImageProf = dia->tabPDF->ImageP->currentText();
doc->PDF_Optionen.PrintProf = dia->tabPDF->PrintProfC->currentText();
}
#endif
}
scrActions["viewShowMargins"]->setOn(doc->guidesSettings.marginsShown);
scrActions["viewShowFrames"]->setOn(doc->guidesSettings.framesShown);
scrActions["viewShowGrid"]->setOn(doc->guidesSettings.gridShown);
3299,10 → 3405,6
// Sepal->RebuildPage();
slotDocCh();
ret = true;
doc->PDF_Optionen.BleedBottom = doc->PageM.Bottom;
doc->PDF_Optionen.BleedTop = doc->PageM.Top;
doc->PDF_Optionen.BleedLeft = doc->PageM.Left;
doc->PDF_Optionen.BleedRight = doc->PageM.Right;
}
delete dia;
return ret;
7849,6 → 7951,71
Prefs.HyCount = dia->tabHyphenator->maxCount->value();
if (CMSavail)
dia->tabColorManagement->setValues();
Prefs.PDF_Optionen.Thumbnails = dia->tabPDF->CheckBox1->isChecked();
Prefs.PDF_Optionen.Compress = dia->tabPDF->Compression->isChecked();
Prefs.PDF_Optionen.CompressMethod = dia->tabPDF->CMethod->currentItem();
Prefs.PDF_Optionen.Quality = dia->tabPDF->CQuality->currentItem();
Prefs.PDF_Optionen.Resolution = dia->tabPDF->Resolution->value();
Prefs.PDF_Optionen.RecalcPic = dia->tabPDF->DSColor->isChecked();
Prefs.PDF_Optionen.PicRes = dia->tabPDF->ValC->value();
Prefs.PDF_Optionen.Bookmarks = dia->tabPDF->CheckBM->isChecked();
Prefs.PDF_Optionen.Binding = dia->tabPDF->ComboBind->currentItem();
Prefs.PDF_Optionen.MirrorH = dia->tabPDF->MirrorH->isOn();
Prefs.PDF_Optionen.MirrorV = dia->tabPDF->MirrorV->isOn();
Prefs.PDF_Optionen.RotateDeg = dia->tabPDF->RotateDeg->currentItem() * 90;
Prefs.PDF_Optionen.Articles = dia->tabPDF->Article->isChecked();
Prefs.PDF_Optionen.Encrypt = dia->tabPDF->Encry->isChecked();
Prefs.PDF_Optionen.UseLPI = dia->tabPDF->UseLPI->isChecked();
Prefs.PDF_Optionen.BleedBottom = dia->tabPDF->BleedBottom->value() / UmReFaktor;
Prefs.PDF_Optionen.BleedTop = dia->tabPDF->BleedTop->value() / UmReFaktor;
Prefs.PDF_Optionen.BleedLeft = dia->tabPDF->BleedLeft->value() / UmReFaktor;
Prefs.PDF_Optionen.BleedRight = dia->tabPDF->BleedRight->value() / UmReFaktor;
if (dia->tabPDF->Encry->isChecked())
{
int Perm = -64;
if (dia->tabPDF->ComboBox1->currentItem() == 1)
Perm &= ~0x00240000;
if (dia->tabPDF->PrintSec->isChecked())
Perm += 4;
if (dia->tabPDF->ModifySec->isChecked())
Perm += 8;
if (dia->tabPDF->CopySec->isChecked())
Perm += 16;
if (dia->tabPDF->AddSec->isChecked())
Perm += 32;
Prefs.PDF_Optionen.Permissions = Perm;
Prefs.PDF_Optionen.PassOwner = dia->tabPDF->PassOwner->text();
Prefs.PDF_Optionen.PassUser = dia->tabPDF->PassUser->text();
}
if (dia->tabPDF->ComboBox1->currentItem() == 0)
Prefs.PDF_Optionen.Version = 13;
if (dia->tabPDF->ComboBox1->currentItem() == 1)
Prefs.PDF_Optionen.Version = 14;
if (dia->tabPDF->ComboBox1->currentItem() == 2)
Prefs.PDF_Optionen.Version = 12;
if (dia->tabPDF->OutCombo->currentItem() == 0)
{
Prefs.PDF_Optionen.UseRGB = true;
Prefs.PDF_Optionen.UseProfiles = false;
Prefs.PDF_Optionen.UseProfiles2 = false;
}
else
{
Prefs.PDF_Optionen.UseRGB = false;
#ifdef HAVE_CMS
if (CMSuse)
{
Prefs.PDF_Optionen.UseProfiles = dia->tabPDF->EmbedProfs->isChecked();
Prefs.PDF_Optionen.UseProfiles2 = dia->tabPDF->EmbedProfs2->isChecked();
Prefs.PDF_Optionen.Intent = dia->tabPDF->IntendS->currentItem();
Prefs.PDF_Optionen.Intent2 = dia->tabPDF->IntendI->currentItem();
Prefs.PDF_Optionen.EmbeddedI = dia->tabPDF->NoEmbedded->isChecked();
Prefs.PDF_Optionen.SolidProf = dia->tabPDF->SolidPr->currentText();
Prefs.PDF_Optionen.ImageProf = dia->tabPDF->ImageP->currentText();
Prefs.PDF_Optionen.PrintProf = dia->tabPDF->PrintProfC->currentText();
}
#endif
}
GetCMSProfiles();
Prefs.KeyActions = dia->tabKeys->getNewKeyMap();
SetShortCut();
8262,49 → 8429,49
qApp->setOverrideCursor(QCursor(waitCursor), true);
fn = dia->Datei->text();
doc->PDF_Optionen.Datei = fn;
doc->PDF_Optionen.Thumbnails = dia->CheckBox1->isChecked();
doc->PDF_Optionen.Compress = dia->Compression->isChecked();
doc->PDF_Optionen.CompressMethod = dia->CMethod->currentItem();
doc->PDF_Optionen.Quality = dia->CQuality->currentItem();
doc->PDF_Optionen.Resolution = dia->Resolution->value();
doc->PDF_Optionen.EmbedList = dia->FontsToEmbed;
doc->PDF_Optionen.SubsetList = dia->FontsToSubset;
doc->PDF_Optionen.RecalcPic = dia->DSColor->isChecked();
doc->PDF_Optionen.PicRes = dia->ValC->value();
doc->PDF_Optionen.Bookmarks = dia->CheckBM->isChecked();
doc->PDF_Optionen.Binding = dia->ComboBind->currentItem();
doc->PDF_Optionen.MirrorH = dia->MirrorH->isOn();
doc->PDF_Optionen.MirrorV = dia->MirrorV->isOn();
doc->PDF_Optionen.RotateDeg = dia->RotateDeg->currentItem() * 90;
doc->PDF_Optionen.PresentMode = dia->CheckBox10->isChecked();
doc->PDF_Optionen.Thumbnails = dia->Options->CheckBox1->isChecked();
doc->PDF_Optionen.Compress = dia->Options->Compression->isChecked();
doc->PDF_Optionen.CompressMethod = dia->Options->CMethod->currentItem();
doc->PDF_Optionen.Quality = dia->Options->CQuality->currentItem();
doc->PDF_Optionen.Resolution = dia->Options->Resolution->value();
doc->PDF_Optionen.EmbedList = dia->Options->FontsToEmbed;
doc->PDF_Optionen.SubsetList = dia->Options->FontsToSubset;
doc->PDF_Optionen.RecalcPic = dia->Options->DSColor->isChecked();
doc->PDF_Optionen.PicRes = dia->Options->ValC->value();
doc->PDF_Optionen.Bookmarks = dia->Options->CheckBM->isChecked();
doc->PDF_Optionen.Binding = dia->Options->ComboBind->currentItem();
doc->PDF_Optionen.MirrorH = dia->Options->MirrorH->isOn();
doc->PDF_Optionen.MirrorV = dia->Options->MirrorV->isOn();
doc->PDF_Optionen.RotateDeg = dia->Options->RotateDeg->currentItem() * 90;
doc->PDF_Optionen.PresentMode = dia->Options->CheckBox10->isChecked();
doc->PDF_Optionen.PresentVals = dia->EffVal;
doc->PDF_Optionen.Articles = dia->Article->isChecked();
doc->PDF_Optionen.Encrypt = dia->Encry->isChecked();
doc->PDF_Optionen.UseLPI = dia->UseLPI->isChecked();
if (dia->Encry->isChecked())
doc->PDF_Optionen.Articles = dia->Options->Article->isChecked();
doc->PDF_Optionen.Encrypt = dia->Options->Encry->isChecked();
doc->PDF_Optionen.UseLPI = dia->Options->UseLPI->isChecked();
if (dia->Options->Encry->isChecked())
{
int Perm = -64;
if (dia->ComboBox1->currentItem() == 1)
if (dia->Options->ComboBox1->currentItem() == 1)
Perm &= ~0x00240000;
if (dia->PrintSec->isChecked())
if (dia->Options->PrintSec->isChecked())
Perm += 4;
if (dia->ModifySec->isChecked())
if (dia->Options->ModifySec->isChecked())
Perm += 8;
if (dia->CopySec->isChecked())
if (dia->Options->CopySec->isChecked())
Perm += 16;
if (dia->AddSec->isChecked())
if (dia->Options->AddSec->isChecked())
Perm += 32;
doc->PDF_Optionen.Permissions = Perm;
doc->PDF_Optionen.PassOwner = dia->PassOwner->text();
doc->PDF_Optionen.PassUser = dia->PassUser->text();
doc->PDF_Optionen.PassOwner = dia->Options->PassOwner->text();
doc->PDF_Optionen.PassUser = dia->Options->PassUser->text();
}
if (dia->ComboBox1->currentItem() == 0)
if (dia->Options->ComboBox1->currentItem() == 0)
doc->PDF_Optionen.Version = 13;
if (dia->ComboBox1->currentItem() == 1)
if (dia->Options->ComboBox1->currentItem() == 1)
doc->PDF_Optionen.Version = 14;
if (dia->ComboBox1->currentItem() == 2)
if (dia->Options->ComboBox1->currentItem() == 2)
doc->PDF_Optionen.Version = 12;
if (dia->OutCombo->currentItem() == 0)
if (dia->Options->OutCombo->currentItem() == 0)
{
doc->PDF_Optionen.UseRGB = true;
doc->PDF_Optionen.UseProfiles = false;
8316,14 → 8483,14
#ifdef HAVE_CMS
if (CMSuse)
{
doc->PDF_Optionen.UseProfiles = dia->EmbedProfs->isChecked();
doc->PDF_Optionen.UseProfiles2 = dia->EmbedProfs2->isChecked();
doc->PDF_Optionen.Intent = dia->IntendS->currentItem();
doc->PDF_Optionen.Intent2 = dia->IntendI->currentItem();
doc->PDF_Optionen.EmbeddedI = dia->NoEmbedded->isChecked();
doc->PDF_Optionen.SolidProf = dia->SolidPr->currentText();
doc->PDF_Optionen.ImageProf = dia->ImageP->currentText();
doc->PDF_Optionen.PrintProf = dia->PrintProfC->currentText();
doc->PDF_Optionen.UseProfiles = dia->Options->EmbedProfs->isChecked();
doc->PDF_Optionen.UseProfiles2 = dia->Options->EmbedProfs2->isChecked();
doc->PDF_Optionen.Intent = dia->Options->IntendS->currentItem();
doc->PDF_Optionen.Intent2 = dia->Options->IntendI->currentItem();
doc->PDF_Optionen.EmbeddedI = dia->Options->NoEmbedded->isChecked();
doc->PDF_Optionen.SolidProf = dia->Options->SolidPr->currentText();
doc->PDF_Optionen.ImageProf = dia->Options->ImageP->currentText();
doc->PDF_Optionen.PrintProf = dia->Options->PrintProfC->currentText();
if (doc->PDF_Optionen.Version == 12)
{
const char *Descriptor;
8338,11 → 8505,11
if (static_cast<int>(cmsGetColorSpace(hIn)) == icSigCmyData)
Components = 3;
cmsCloseProfile(hIn);
doc->PDF_Optionen.Info = dia->InfoString->text();
doc->PDF_Optionen.BleedTop = dia->BleedTop->value()/UmReFaktor;
doc->PDF_Optionen.BleedLeft = dia->BleedLeft->value()/UmReFaktor;
doc->PDF_Optionen.BleedRight = dia->BleedRight->value()/UmReFaktor;
doc->PDF_Optionen.BleedBottom = dia->BleedBottom->value()/UmReFaktor;
doc->PDF_Optionen.Info = dia->Options->InfoString->text();
doc->PDF_Optionen.BleedTop = dia->Options->BleedTop->value()/UmReFaktor;
doc->PDF_Optionen.BleedLeft = dia->Options->BleedLeft->value()/UmReFaktor;
doc->PDF_Optionen.BleedRight = dia->Options->BleedRight->value()/UmReFaktor;
doc->PDF_Optionen.BleedBottom = dia->Options->BleedBottom->value()/UmReFaktor;
doc->PDF_Optionen.Encrypt = false;
doc->PDF_Optionen.MirrorH = false;
doc->PDF_Optionen.MirrorV = false;
8362,10 → 8529,10
#endif
 
}
if (dia->AllPages->isChecked())
if (dia->Options->AllPages->isChecked())
parsePagesString("*", &pageNs, doc->PageC);
else
parsePagesString(dia->PageNr->text(), &pageNs, doc->PageC);
parsePagesString(dia->Options->PageNr->text(), &pageNs, doc->PageC);
QMap<int,QPixmap> thumbs;
for (uint ap = 0; ap < pageNs.size(); ++ap)
{
/branches/Version13x/Scribus/scribus/plugins/Makefile.am
3,8 → 3,7
pyt = scriptplugin
endif
 
SUBDIRS = svgexplugin svgimplugin psimport printpreview fontpreview pixmapexport newfromtemplateplugin saveastemplateplugin gettext fileloader $(pyt)
SUBDIRS = short-words svgexplugin svgimplugin psimport printpreview fontpreview pixmapexport newfromtemplateplugin saveastemplateplugin gettext fileloader $(pyt)
 
#short-words
 
####### kdevelop will overwrite this part!!! (end)############
/branches/Version13x/Scribus/scribus/plugins/short-words/Makefile.am
1,7 → 1,22
pluginsdir = $(libdir)/scribus/plugins
 
AM_CPPFLAGS = \
-I$(top_builddir)/scribus \
-DDOCDIR=\"$(datadir)/scribus/doc/\" \
-DICONDIR=\"$(datadir)/scribus/icons/\" \
-DSAMPLESDIR=\"$(datadir)/scribus/samples/\" \
-DSCRIPTSDIR=\"$(datadir)/scribus/scripts/\" \
-DTEMPLATEDIR=\"$(datadir)/scribus/templates/\" \
-DLIBDIR=\"$(libdir)/scribus/\" \
-DPLUGINDIR=\"$(libdir)/scribus/plugins/\"
 
plugins_LTLIBRARIES = libscribusshortwords.la
 
if COMPILE_DEBUG
linkflag =
else
linkflag = -s
endif
INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
 
libscribusshortwords_la_LDFLAGS = -version-info 0:0:0