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

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


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

Changeset: 
M  /branches/Version135/Scribus/scribus/prefsmanager.cpp
M  /branches/Version135/Scribus/scribus/reformdoc.cpp

Diffs:
Index: scribus/prefsmanager.cpp
===================================================================
--- scribus/prefsmanager.cpp	(revision 13822)
+++ scribus/prefsmanager.cpp	(revision 13823)
@@ -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;
@@ -1598,6 +1599,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));
@@ -2234,6 +2236,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/reformdoc.cpp
===================================================================
--- scribus/reformdoc.cpp	(revision 13822)
+++ scribus/reformdoc.cpp	(revision 13823)
@@ -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