r15082 by cbradney - Add tool tips and connections back to new pdf prefs

scribus-commit scribus-commit at lists.scribus.net
Tue May 18 00:40:24 CEST 2010


Revision: 15082
Author: cbradney
Date: 2010-05-17T22:36:54.678733Z
Commit message: Add tool tips and connections back to new pdf prefs

Changeset: 
M  /trunk/Scribus/scribus/ui/prefs_pdfexport.h
M  /trunk/Scribus/scribus/ui/prefs_pdfexportbase.ui
M  /trunk/Scribus/scribus/ui/prefs_pdfexport.cpp

Diffs:
Index: scribus/ui/prefs_pdfexport.cpp
===================================================================
--- scribus/ui/prefs_pdfexport.cpp	(revision 15081)
+++ scribus/ui/prefs_pdfexport.cpp	(revision 15082)
@@ -42,6 +42,62 @@
 	connect(useEncryptionCheckBox, SIGNAL(clicked(bool)), this, SLOT(enableSecurityControls(bool)));
 	connect(useCustomRenderingCheckBox, SIGNAL(clicked()), this, SLOT(enableLPI2()));
 	connect(customRenderingColorComboBox, SIGNAL(activated(int)), this, SLOT(SelLPIcol(int)));
+
+	rotationComboBox->setToolTip( "<qt>" + tr( "Automatically rotate the exported pages" ) + "</qt>" );
+	exportAllPagesRadioButton->setToolTip( "<qt>" + tr( "Export all pages to PDF" ) + "</qt>" );
+	exportChosenPagesRadioButton->setToolTip( "<qt>" + tr( "Export a range of pages to PDF" ) );
+	exportPageListLineEdit->setToolTip( "<qt>" + tr( "Insert a comma separated list of tokens where "
+											"a token can be * for all the pages, 1-5 for "
+											"a range of pages or a single page number.") + "</qt>" );
+
+	pdfVersionComboBox->setToolTip( "<qt>" + tr( "Determines the PDF compatibility.<br/>The default is <b>PDF 1.3</b> which gives the widest compatibility.<br/>Choose <b>PDF 1.4</b> if your file uses features such as transparency or you require 128 bit encryption.<br/><b>PDF 1.5</b> is necessary when you wish to preserve objects in separate layers within the PDF.<br/><b>PDF/X-3</b> is for exporting the PDF when you want color managed RGB for commercial printing and is selectable when you have activated color management. Use only when advised by your printer or in some cases printing to a 4 color digital color laser printer.<br/><b>PDF/X-1a</b> is for blind exchange with colors strictly specified in CMYK or spot colors.<br/><b>PDF/X-4</b> is an extension of PDF/X-3 to support transparancy and layering." ) + "</qt>");
+	pageBindingComboBox->setToolTip( "<qt>" + tr( "Determines the binding of pages in the PDF. Unless you know you need to change it leave the default choice - Left." ) + "</qt>" );
+	generateThumbnailsCheckBox->setToolTip( "<qt>" + tr( "Generates thumbnails of each page in the PDF. Some viewers can use the thumbnails for navigation." ) + "</qt>" );
+	saveLinkedTextFramesAsArticlesCheckBox->setToolTip( "<qt>" + tr( "Generate PDF Articles, which is useful for navigating linked articles in a PDF." ) + "</qt>" );
+	includeLayersCheckBox->setToolTip( "<qt>" + tr( "Layers in your document are exported to the PDF Only available if PDF 1.5 is chosen." ) + "</qt>" );
+	includeBookmarksCheckBox->setToolTip( "<qt>" + tr( "Embed the bookmarks you created in your document. These are useful for navigating long PDF documents." ) + "</qt>" );
+	epsExportResolutionSpinBox->setToolTip( "<qt>" + tr( "Export resolution of text and vector graphics. This does not affect the resolution of bitmap images like photos." ) + "</qt>" );
+	embedPDFAndEPSFilesCheckBox->setToolTip( "<qt>" + tr( "Export PDFs in image frames as embedded PDFs. This does *not* yet take care of colorspaces, so you should know what you are doing before setting this to 'true'." ) + "</qt>" );
+	compressTextAndVectorGraphicsCheckBox->setToolTip( "<qt>" + tr( "Enables lossless compression of text and graphics. Unless you have a reason, leave this checked. This reduces PDF file size." ) + "</qt>" );
+	imageCompressionMethodComboBox->setToolTip( "<qt>" + tr( "Method of compression to use for images. Automatic allows Scribus to choose the best method. ZIP is lossless and good for images with solid colors. JPEG is better at creating smaller PDF files which have many photos (with slight image quality loss possible). Leave it set to Automatic unless you have a need for special compression options." ) + "</qt>");
+	imageCompressionQualityComboBox->setToolTip( "<qt>" + tr( "Compression quality levels for lossy compression methods: Minimum (25%), Low (50%), Medium (75%), High (85%), Maximum (95%). Note that a quality level does not directly determine the size of the resulting image - both size and quality loss vary from image to image at any given quality level. Even with Maximum selected, there is always some quality loss with jpeg." ) + "</qt>");
+	maxResolutionLimitCheckBox->setToolTip( "<qt>" + tr( "Limits the resolution of your bitmap images to the selected DPI. Images with a lower resolution will be left untouched. Leaving this unchecked will render them at their native resolution. Enabling this will increase memory usage and slow down export." ) + "</qt>" );
+	maxExportResolutionSpinBox->setToolTip( "<qt>" + tr( "DPI (Dots Per Inch) for image export.") + "</qt>" );
+	useEncryptionCheckBox->setToolTip( "<qt>" + tr( "Enable the security features in your exported PDF. If you selected PDF 1.3, the PDF will be protected by 40 bit encryption. If you selected PDF 1.4, the PDF will be protected by 128 bit encryption. Disclaimer: PDF encryption is not as reliable as GPG or PGP encryption and does have some limitations." ) + "</qt>" );
+	passwordOwnerLineEdit->setToolTip( "<qt>" + tr( "Choose a master password which enables or disables all the security features in your exported PDF" ) + "</qt>" );
+	passwordUserLineEdit->setToolTip( "<qt>" + tr( "Choose a password for users to be able to read your PDF." ) + "</qt>" );
+	allowPrintingCheckBox->setToolTip( "<qt>" + tr( "Allow printing of the PDF. If un-checked, printing is prevented. " ) + "</qt>" );
+	allowChangingCheckBox->setToolTip( "<qt>" + tr( "Allow modifying of the PDF. If un-checked, modifying the PDF is prevented." ) + "</qt>" );
+	allowCopyingCheckBox->setToolTip( "<qt>" + tr( "Allow copying of text or graphics from the PDF. If unchecked, text and graphics cannot be copied." ) + "</qt>" );
+	allowAnnotatingCheckBox->setToolTip( "<qt>" + tr( "Allow adding annotations and fields to the PDF. If unchecked, editing annotations and fields is prevented." ) + "</qt>" );
+	outputIntentionComboBox->setToolTip( "<qt>" + tr( "Color model for the output of your PDF. Choose Screen/Web for PDFs which are used for screen display and for printing on typical inkjets. Choose Printer when printing to a true 4 color CMYK printer. Choose Grayscale when you want a grey scale PDF." ) + "</qt>" );
+	useCustomRenderingCheckBox->setToolTip( "<qt>" + tr( "This is an advanced setting which is not enabled by default. This should only be enabled when specifically requested by your printer and they have given you the exact details needed. Otherwise, your exported PDF may not print properly and is truly not portable across systems." ) + "</qt>" );
+	useSolidColorProfileCheckBox->setToolTip( "<qt>" + tr( "Embed a color profile for solid colors" ) + "</qt>" );
+	solidColorProfileComboBox->setToolTip( "<qt>" + tr( "Color profile for solid colors" ) + "</qt>" );
+	solidColorRenderingIntentComboBox->setToolTip( "<qt>" + tr( "Rendering intent for solid colors" ) + "</qt>" );
+	useImageProfileCheckBox->setToolTip( "<qt>" + tr( "Embed a color profile for images" ) + "</qt>" );
+	doNotUseEmbeddedImageProfileCheckBox->setToolTip( "<qt>" + tr( "Do not use color profiles that are embedded in source images" ) + "</qt>" );
+	imageProfileComboBox->setToolTip( "<qt>" + tr( "Color profile for images" ) + "</qt>" );
+	imageRenderingIntentComboBox->setToolTip( "<qt>" + tr( "Rendering intent for images" ) + "</qt>" );
+	pageMirrorHorizontalToolButton->setToolTip( "<qt>" + tr( "Mirror Page(s) horizontally" ) + "</qt>" );
+	pageMirrorVerticalToolButton->setToolTip( "<qt>" + tr( "Mirror Page(s) vertically" ) + "</qt>" );
+	convertSpotsToProcessCheckBox->setToolTip("<qt>" + tr( "Enables Spot Colors to be converted to composite colors. Unless you are planning to print spot colors at a commercial printer, this is probably best left enabled." ) + "</qt>");
+	clipToPrinterMarginsCheckBox->setToolTip( "<qt>" + tr( "Do not show objects outside the margins in the exported file" ) + "</qt>" );
+	//PrePress tab
+	printCropMarksCheckBox->setToolTip( "<qt>" + tr( "Creates crop marks in the PDF indicating where the paper should be cut or trimmed after printing" ) + "</qt>" );
+	printBleedMarksCheckBox->setToolTip( "<qt>" + tr( "This creates bleed marks which are indicated by  _ . _ and show the bleed limit" ) + "</qt>" );
+	printRegistrationMarksCheckBox->setToolTip( "<qt>" + tr( "Add registration marks to each separation" ) + "</qt>" );
+	printColorBarsCheckBox->setToolTip( "<qt>" + tr( "Add color calibration bars" ) + "</qt>" );
+	printPageInfoCheckBox->setToolTip( "<qt>" + tr( "Add document information which includes the document title and page numbers" ) + "</qt>" );
+	registrationMarkOffsetSpinBox->setToolTip( "<qt>" + tr( "Indicate the distance offset for the registration marks" ) + "</qt>" );
+//	BleedTop->setToolTip( "<qt>" + tr( "Distance for bleed from the top of the physical page" ) + "</qt>" );
+//	BleedBottom->setToolTip( "<qt>" + tr( "Distance for bleed from the bottom of the physical page" ) + "</qt>" );
+//	BleedLeft->setToolTip( "<qt>" + tr( "Distance for bleed from the left of the physical page" ) + "</qt>" );
+//	BleedRight->setToolTip( "<qt>" + tr( "Distance for bleed from the right of the physical page" )  + "</qt>");
+	useDocumentBleedsCheckBox->setToolTip( "<qt>" + tr( "Use the existing bleed settings from the document preferences" ) + "</qt>" );
+	pdfx3OutputProfileComboBox->setToolTip( "<qt>" + tr( "Output profile for printing. If possible, get some guidance from your printer on profile selection." ) + "</qt>" );
+	pdfx3InfoStringLineEdit->setToolTip( "<qt>" + tr( "Mandatory string for PDF/X or the PDF will fail PDF/X conformance. We recommend you use the title of the document." ) + "</qt>" );
+
 }
 
 Prefs_PDFExport::~Prefs_PDFExport()
@@ -170,7 +226,7 @@
 	includeLayersCheckBox->setEnabled(prefsData->pdfPrefs.Version == PDFOptions::PDFVersion_15 || prefsData->pdfPrefs.Version == PDFOptions::PDFVersion_X4);
 
 	epsExportResolutionSpinBox->setValue(prefsData->pdfPrefs.Resolution);
-	embedPDFAndEPSFiles->setChecked(prefsData->pdfPrefs.embedPDF);
+	embedPDFAndEPSFilesCheckBox->setChecked(prefsData->pdfPrefs.embedPDF);
 	compressTextAndVectorGraphicsCheckBox->setChecked( prefsData->pdfPrefs.Compress );
 	imageCompressionMethodComboBox->setCurrentIndex(prefsData->pdfPrefs.CompressMethod);
 	imageCompressionQualityComboBox->setCurrentIndex(prefsData->pdfPrefs.Quality);
@@ -519,6 +575,52 @@
 		}
 		*/
 	}
+
+	if (m_doc != 0 && exportingPDF)
+	{
+		connect(embedAllButton, SIGNAL(clicked()), this, SLOT(EmbedAll()));
+		connect(availableFontsListWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(SelAFont(QListWidgetItem*)));
+		connect(embeddedFontsListWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(SelEFont(QListWidgetItem*)));
+		connect(toEmbedButton, SIGNAL(clicked()), this, SLOT(PutToEmbed()));
+		connect(fromEmbedButton, SIGNAL(clicked()), this, SLOT(RemoveEmbed()));
+		connect(outlineAllButton, SIGNAL(clicked()), this, SLOT(OutlineAll()));
+		connect(outlinedFontsListWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(SelSFont(QListWidgetItem*)));
+		connect(toOutlineButton, SIGNAL(clicked()), this, SLOT(PutToOutline()));
+		connect(fromOutlineButton, SIGNAL(clicked()), this, SLOT(RemoveOutline()));
+		connect(showPagePreviewsCheckBox, SIGNAL(clicked()), this, SLOT(PagePr()));
+		connect(effectsPageListWidget, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(SetPgEff()));
+		connect(effectTypeComboBox, SIGNAL(activated(int)), this, SLOT(SetEffOpts(int)));
+		connect(effectDirectionComboBox, SIGNAL(activated(int)), this, SLOT(ValidDI(int)));
+		connect(enabledEffectsCheckBox, SIGNAL(clicked()), this, SLOT(DoEffects()));
+		connect(applyEffectToAllPagesPushButton, SIGNAL(clicked()), this, SLOT(EffectOnAll()));
+//		connect(pdfx3InfoStringLineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(checkInfo()));
+//		connect(pdfx3InfoStringLineEdit, SIGNAL(editingFinished()), this, SLOT(checkInfo()));
+		connect(useDocumentBleedsCheckBox, SIGNAL(clicked()), this, SLOT(doDocBleeds()));
+
+		embedAllButton->setToolTip( "<qt>" + tr( "Embed fonts into the PDF. Embedding the fonts will preserve the layout and appearance of your document." ) + "</qt>");
+		enabledEffectsCheckBox->setToolTip( "<qt>" + tr( "Enables presentation effects when using Adobe&#174; Reader&#174; and other PDF viewers which support this in full screen mode." ) + "</qt>");
+		showPagePreviewsCheckBox->setToolTip( "<qt>" + tr( "Show page previews of each page listed above." ) + "</qt>");
+		effectDurationSpinBox->setToolTip( "<qt>" + tr( "Length of time the page is shown before the presentation starts on the selected page. Setting 0 will disable automatic page transition." ) + "</qt>" );
+		effectDurationSpinBox->setToolTip( "<qt>" + tr( "Length of time the effect runs. A shorter time will speed up the effect, a longer one will slow it down." ) + "</qt>" );
+		effectTypeComboBox->setToolTip( "<qt>" + tr( "Type of the display effect." ) + "</qt>" );
+		effectMovingDirectionComboBox->setToolTip( "<qt>" + tr( "Direction of the effect of moving lines for the split and blind effects." ) + "</qt>" );
+		effectInOutComboBox->setToolTip( "<qt>" + tr( "Starting position for the box and split effects." ) + "</qt>" );
+		effectDirectionComboBox->setToolTip( "<qt>" + tr( "Direction of the glitter or wipe effects." ) + "</qt>" );
+		applyEffectToAllPagesPushButton->setToolTip( "<qt>" + tr( "Apply the selected effect to all pages." ) + "</qt>" );
+		outlineAllButton->setToolTip( "<qt>" + tr("Convert all glyphs in the document to outlines.") + "</qt>");
+		singlePageRadioButton->setToolTip( "<qt>" + tr( "Show the document in single page mode" ) + "</qt>" );
+		continuousPagesRadioButton->setToolTip( "<qt>" + tr( "Show the document in single page mode with the pages displayed continuously end to end like a scroll" ) + "</qt>" );
+		doublePageLeftRadioButton->setToolTip( "<qt>" + tr( "Show the document with facing pages, starting with the first page displayed on the left" ) + "</qt>" );
+		doublePageRightRadioButton->setToolTip( "<qt>" + tr( "Show the document with facing pages, starting with the first page displayed on the right" ) + "</qt>" );
+		useViewerDefaultsRadioButton->setToolTip( "<qt>" + tr( "Use the viewer's defaults or the user's preferences if set differently from the viewer defaults" ) + "</qt>" );
+		useFullScreenRadioButton->setToolTip( "<qt>" + tr( "Enables viewing the document in full screen" ) + "</qt>" );
+		useBookmarksRadioButton->setToolTip( "<qt>" + tr( "Display the bookmarks upon opening" ) + "</qt>" );
+		useThumbnailsRadioButton->setToolTip( "<qt>" + tr( "Display the page thumbnails upon opening" ) + "</qt>" );
+		useLayersRadioButton->setToolTip( "<qt>" + tr( "Forces the displaying of layers. Useful only for PDF 1.5+." ) + "</qt>" );
+		hideViewerToolBarCheckBox->setToolTip( "<qt>" + tr( "Hides the Tool Bar which has selection and other editing capabilities" ) + "</qt>" );
+		hideViewerMenuBarCheckBox->setToolTip( "<qt>" + tr( "Hides the Menu Bar for the viewer, the PDF will display in a plain window. " ) + "</qt>" );
+		fitViewerWindowCheckBox->setToolTip( "<qt>" + tr( "Fit the document page or pages to the available space in the viewer window." ) + "</qt>" );
+	}
 }
 
 
@@ -1120,3 +1222,233 @@
 		break;
 	}
 }
+
+void Prefs_PDFExport::SelAFont(QListWidgetItem *c)
+{
+	if (c != NULL)
+	{
+		fromEmbedButton->setEnabled(false);
+		if (c->flags() & Qt::ItemIsSelectable)
+			toEmbedButton->setEnabled(true);
+		toOutlineButton->setEnabled(false);
+		fromOutlineButton->setEnabled(false);
+		embeddedFontsListWidget->clearSelection();
+		outlinedFontsListWidget->clearSelection();
+	}
+}
+
+void Prefs_PDFExport::SelEFont(QListWidgetItem *c)
+{
+	if (c != NULL)
+	{
+		if ((pdfVersionComboBox->currentIndex() < 3) && (c->flags() & Qt::ItemIsSelectable))
+			fromEmbedButton->setEnabled(true);
+		else
+			fromEmbedButton->setEnabled(false);
+		toEmbedButton->setEnabled(false);
+		if (c->flags() & Qt::ItemIsSelectable)
+			toOutlineButton->setEnabled(true);
+		fromOutlineButton->setEnabled(false);
+		availableFontsListWidget->clearSelection();
+		outlinedFontsListWidget->clearSelection();
+	}
+}
+
+void Prefs_PDFExport::SelSFont(QListWidgetItem *c)
+{
+	if (c != NULL)
+	{
+		if (pdfVersionComboBox->currentIndex() == 4)
+		{
+			if ((AllFonts[c->text()].type() == ScFace::OTF) || (AllFonts[c->text()].subset()))
+				fromOutlineButton->setEnabled(false);
+			else
+				fromOutlineButton->setEnabled(true);
+		}
+		else
+			fromOutlineButton->setEnabled(true);
+		toOutlineButton->setEnabled(false);
+		toEmbedButton->setEnabled(false);
+		fromEmbedButton->setEnabled(false);
+		embeddedFontsListWidget->clearSelection();
+		availableFontsListWidget->clearSelection();
+	}
+}
+
+void Prefs_PDFExport::PagePr()
+{
+	disconnect(effectsPageListWidget, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(SetPgEff()));
+	QString tmp;
+	QPixmap pm;
+	int ci = effectsPageListWidget->currentRow();
+	int pgMaxX = 0;
+	int pgMaxY = 0;
+	effectsPageListWidget->clear();
+	if (showPagePreviewsCheckBox->isChecked())
+	{
+		for (int pg = 0; pg < m_doc->Pages->count(); ++pg)
+		{
+			pm=QPixmap::fromImage(m_doc->view()->PageToPixmap(pg, 70));
+			pgMaxX = qMax(pgMaxX, pm.width());
+			pgMaxY = qMax(pgMaxY, pm.height());
+			new QListWidgetItem( pm, tr("Page")+" "+tmp.setNum(pg+1), effectsPageListWidget);
+		}
+		effectsPageListWidget->setIconSize(QSize(pgMaxX, pgMaxY));
+	}
+	else
+	{
+		for (int pg = 0; pg < m_doc->Pages->count(); ++pg)
+		{
+			new QListWidgetItem( tr("Page")+" "+tmp.setNum(pg+1), effectsPageListWidget);
+		}
+	}
+	if (ci != -1)
+	{
+		PgSel = ci;
+		effectsPageListWidget->setCurrentRow(ci);
+	}
+	else
+	{
+		PgSel = 0;
+		effectsPageListWidget->clearSelection();
+	}
+	connect(effectsPageListWidget, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(SetPgEff()));
+}
+
+void Prefs_PDFExport::DoDownsample()
+{
+	if (maxResolutionLimitCheckBox->isChecked())
+	{
+		maxExportResolutionSpinBox->setEnabled(true);
+		if (maxExportResolutionSpinBox->value() > epsExportResolutionSpinBox->value())
+			maxExportResolutionSpinBox->setValue(epsExportResolutionSpinBox->value());
+	}
+	else
+		maxExportResolutionSpinBox->setEnabled(false);
+}
+
+void Prefs_PDFExport::RemoveEmbed()
+{
+	FontsToEmbed.removeAll(embeddedFontsListWidget->currentItem()->text());
+	delete embeddedFontsListWidget->takeItem(embeddedFontsListWidget->currentRow());
+	embeddedFontsListWidget->clearSelection();
+	if (embeddedFontsListWidget->count() == 0)
+	{
+		fromEmbedButton->setEnabled(false);
+		toOutlineButton->setEnabled(false);
+	}
+	else
+	{
+		if (!embeddedFontsListWidget->item(embeddedFontsListWidget->currentRow())->flags() & Qt::ItemIsSelectable)
+		{
+			fromEmbedButton->setEnabled(false);
+			toOutlineButton->setEnabled(false);
+		}
+	}
+}
+
+void Prefs_PDFExport::PutToEmbed()
+{
+	if (embeddedFontsListWidget->count() != 0)
+	{
+		if (!AllFonts[availableFontsListWidget->currentItem()->text()].subset())
+		{
+			if (embeddedFontsListWidget->findItems(availableFontsListWidget->currentItem()->text(), Qt::MatchExactly).count() == 0)
+			{
+				FontsToEmbed.append(availableFontsListWidget->currentItem()->text());
+				embeddedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+				if (AnnotationFonts.contains(availableFontsListWidget->currentItem()->text()))
+					embeddedFontsListWidget->item(embeddedFontsListWidget->count()-1)->setFlags(Qt::ItemIsEnabled);
+			}
+		}
+		else
+		{
+			if (outlinedFontsListWidget->count() != 0)
+			{
+				if (outlinedFontsListWidget->findItems(availableFontsListWidget->currentItem()->text(), Qt::MatchExactly).count() == 0)
+				{
+					FontsToOutline.append(availableFontsListWidget->currentItem()->text());
+					outlinedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+				}
+			}
+			else
+			{
+				FontsToOutline.append(availableFontsListWidget->currentItem()->text());
+				outlinedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+			}
+		}
+	}
+	else
+	{
+		if ((AllFonts[availableFontsListWidget->currentItem()->text()].type() != ScFace::OTF) && (!AllFonts[availableFontsListWidget->currentItem()->text()].subset()))
+		{
+			FontsToEmbed.append(availableFontsListWidget->currentItem()->text());
+			embeddedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+			if (AnnotationFonts.contains(availableFontsListWidget->currentItem()->text()))
+				embeddedFontsListWidget->item(embeddedFontsListWidget->count()-1)->setFlags(Qt::ItemIsEnabled);
+		}
+		else
+		{
+			if (outlinedFontsListWidget->count() != 0)
+			{
+				if (outlinedFontsListWidget->findItems(availableFontsListWidget->currentItem()->text(), Qt::MatchExactly).count() == 0)
+				{
+					FontsToOutline.append(availableFontsListWidget->currentItem()->text());
+					outlinedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+				}
+			}
+			else
+			{
+				FontsToOutline.append(availableFontsListWidget->currentItem()->text());
+				outlinedFontsListWidget->addItem(availableFontsListWidget->currentItem()->text());
+			}
+		}
+	}
+}
+
+void Prefs_PDFExport::RemoveOutline()
+{
+	FontsToOutline.removeAll(outlinedFontsListWidget->currentItem()->text());
+	if ((AllFonts[outlinedFontsListWidget->currentItem()->text()].type() != ScFace::OTF) && (!AllFonts[outlinedFontsListWidget->currentItem()->text()].subset()))
+	{
+		FontsToEmbed.append(outlinedFontsListWidget->currentItem()->text());
+		embeddedFontsListWidget->addItem(outlinedFontsListWidget->currentItem()->text());
+	}
+	delete outlinedFontsListWidget->takeItem(outlinedFontsListWidget->currentRow());
+	outlinedFontsListWidget->clearSelection();
+	if (outlinedFontsListWidget->count() == 0)
+		fromOutlineButton->setEnabled(false);
+}
+
+void Prefs_PDFExport::PutToOutline()
+{
+	if (outlinedFontsListWidget->count() != 0)
+	{
+		if (outlinedFontsListWidget->findItems(embeddedFontsListWidget->currentItem()->text(), Qt::MatchExactly).count() == 0)
+		{
+			FontsToOutline.append(embeddedFontsListWidget->currentItem()->text());
+			outlinedFontsListWidget->addItem(embeddedFontsListWidget->currentItem()->text());
+		}
+	}
+	else
+	{
+		FontsToOutline.append(embeddedFontsListWidget->currentItem()->text());
+		outlinedFontsListWidget->addItem(embeddedFontsListWidget->currentItem()->text());
+	}
+	FontsToEmbed.removeAll(embeddedFontsListWidget->currentItem()->text());
+	delete embeddedFontsListWidget->takeItem(embeddedFontsListWidget->currentRow());
+	embeddedFontsListWidget->clearSelection();
+	if (embeddedFontsListWidget->count() == 0)
+	{
+		fromEmbedButton->setEnabled(false);
+		toOutlineButton->setEnabled(false);
+	}
+	else
+	{
+		if (!(embeddedFontsListWidget->currentItem()->flags() & Qt::ItemIsSelectable))
+		{
+			fromEmbedButton->setEnabled(false);
+			toOutlineButton->setEnabled(false);
+		}
+	}
+}
Index: scribus/ui/prefs_pdfexport.h
===================================================================
--- scribus/ui/prefs_pdfexport.h	(revision 15081)
+++ scribus/ui/prefs_pdfexport.h	(revision 15082)
@@ -51,8 +51,17 @@
 		void enablePGI2();
 		void enablePDFX(int);
 		void SelLPIcol(int);
+		void DoDownsample();
+		void RemoveEmbed();
+		void PutToEmbed();
+		void RemoveOutline();
+		void PutToOutline();
+		void SelAFont(QListWidgetItem*);
+		void SelEFont(QListWidgetItem*);
+		void SelSFont(QListWidgetItem*);
 		void EmbedAll();
 		void OutlineAll();
+		void PagePr();
 		void doDocBleeds();
 		void SetEffOpts(int nr);
 
Index: scribus/ui/prefs_pdfexportbase.ui
===================================================================
--- scribus/ui/prefs_pdfexportbase.ui	(revision 15081)
+++ scribus/ui/prefs_pdfexportbase.ui	(revision 15082)
@@ -344,7 +344,7 @@
           </widget>
          </item>
          <item>
-          <widget class="QCheckBox" name="embedPDFAndEPSFiles">
+          <widget class="QCheckBox" name="embedPDFAndEPSFilesCheckBox">
            <property name="text">
             <string>Embed PDF &amp;&amp; EPS Files (Experimental)</string>
            </property>
@@ -675,7 +675,7 @@
            <rect>
             <x>0</x>
             <y>0</y>
-            <width>278</width>
+            <width>602</width>
             <height>638</height>
            </rect>
           </property>
@@ -1539,7 +1539,7 @@
        <item>
         <widget class="QRadioButton" name="continuousPagesRadioButton">
          <property name="text">
-          <string>Continuous</string>
+          <string>Continuous Pages</string>
          </property>
         </widget>
        </item>




More information about the scribus-commit mailing list