r13824 by jghali - save "Embed PDF & EPS" option correctly when editing prefs

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 9 14:25:33 CEST 2009


Revision: 13824
Author: jghali
Date: 2009-08-09T12:24:48.351767Z
Commit message: save "Embed PDF & EPS" option correctly when editing prefs

Changeset: 
M  /trunk/Scribus/scribus/prefsmanager.cpp
M  /trunk/Scribus/scribus/ui/reformdoc.cpp

Diffs:
Index: scribus/prefsmanager.cpp
===================================================================
--- scribus/prefsmanager.cpp	(revision 13823)
+++ scribus/prefsmanager.cpp	(revision 13824)
@@ -431,6 +431,7 @@
 	appPrefs.PDF_Options.CompressMethod = PDFOptions::Compression_Auto;
 	appPrefs.PDF_Options.Quality = 0;
 	appPrefs.PDF_Options.RecalcPic = false;
+	appPrefs.PDF_Options.embedPDF  = false;
 	appPrefs.PDF_Options.Bookmarks = false;
 	appPrefs.PDF_Options.PicRes = 300;
 	appPrefs.PDF_Options.Version = PDFOptions::PDFVersion_14;
@@ -1594,6 +1595,7 @@
 	pdf.setAttribute("Compress", static_cast<int>(appPrefs.PDF_Options.Compress));
 	pdf.setAttribute("CMethod", appPrefs.PDF_Options.CompressMethod);
 	pdf.setAttribute("Quality", appPrefs.PDF_Options.Quality);
+	pdf.setAttribute("EmbedPDF", static_cast<int>(appPrefs.PDF_Options.embedPDF));
 	pdf.setAttribute("MirrorH", static_cast<int>(appPrefs.PDF_Options.MirrorH));
 	pdf.setAttribute("MirrorV", static_cast<int>(appPrefs.PDF_Options.MirrorV));
 	pdf.setAttribute("Clip", static_cast<int>(appPrefs.PDF_Options.doClip));
@@ -2230,6 +2232,7 @@
 			appPrefs.PDF_Options.Compress = static_cast<bool>(dc.attribute("Compress").toInt());
 			appPrefs.PDF_Options.CompressMethod = (PDFOptions::PDFCompression) dc.attribute("CMethod", "0").toInt();
 			appPrefs.PDF_Options.Quality = dc.attribute("Quality", "0").toInt();
+			appPrefs.PDF_Options.embedPDF  = dc.attribute("EmbedPDF", "0").toInt();
 			appPrefs.PDF_Options.RecalcPic = static_cast<bool>(dc.attribute("RecalcPic").toInt());
 			appPrefs.PDF_Options.Bookmarks = static_cast<bool>(dc.attribute("Bookmarks").toInt());
 			appPrefs.PDF_Options.MirrorH = static_cast<bool>(dc.attribute("MirrorH").toInt());
Index: scribus/ui/reformdoc.cpp
===================================================================
--- scribus/ui/reformdoc.cpp	(revision 13823)
+++ scribus/ui/reformdoc.cpp	(revision 13824)
@@ -536,6 +536,7 @@
 	currDoc->PDF_Options.Compress = tabPDF->Compression->isChecked();
 	currDoc->PDF_Options.CompressMethod = (PDFOptions::PDFCompression) tabPDF->CMethod->currentIndex();
 	currDoc->PDF_Options.Quality = tabPDF->CQuality->currentIndex();
+	currDoc->PDF_Options.embedPDF = tabPDF->EmbedPDF->isChecked();
 	currDoc->PDF_Options.Resolution = tabPDF->Resolution->value();
 	currDoc->PDF_Options.RecalcPic = tabPDF->DSColor->isChecked();
 	currDoc->PDF_Options.PicRes = tabPDF->ValC->value();




More information about the scribus-commit mailing list