Index: Scribus/scribus/checkDocument.cpp
===================================================================
--- Scribus/scribus/checkDocument.cpp (wersja 15812)
+++ Scribus/scribus/checkDocument.cpp (kopia robocza)
@@ -269,6 +269,10 @@
item->setText(COLUMN_PROBLEM, textOverflow);
item->setIcon(COLUMN_ITEM, onlyWarning );
break;
+ case RGBtext:
+ item->setText(COLUMN_PROBLEM, textRGB);
+ item->setIcon(COLUMN_ITEM, onlyWarning );
+ break;
case ObjectNotOnPage:
item->setText(COLUMN_PROBLEM, notOnPage);
item->setIcon(COLUMN_ITEM, onlyWarning );
@@ -682,6 +686,7 @@
rasterPDF = tr("Object is a placed PDF");
isGIF = tr("Image is GIF");
WrongFont = tr("Annotation uses a non TrueType font");
+ textRGB = tr("Text with RGB color");
//isGIFtoolTip = "" + tr("GIF images are not reccomended for print. See the online docs for more info") + "";
}
Index: Scribus/scribus/checkDocument.h
===================================================================
--- Scribus/scribus/checkDocument.h (wersja 15812)
+++ Scribus/scribus/checkDocument.h (kopia robocza)
@@ -119,6 +119,7 @@
//! \brief Strings for common texts in GUI dialog tree
QString missingGlyph;
QString textOverflow;
+ QString textRGB;
QString notOnPage;
QString missingImg;
QString emptyImg;
Index: Scribus/scribus/documentchecker.cpp
===================================================================
--- Scribus/scribus/documentchecker.cpp (wersja 15812)
+++ Scribus/scribus/documentchecker.cpp (kopia robocza)
@@ -192,6 +192,18 @@
if ((!currItem->itemText.charStyle(e).font().canRender(chr)) && (checkerSettings.checkGlyphs))
itemError.insert(MissingGlyph, 0);
}
+ for (int e = currItem->firstInFrame(); e <= currItem->lastInFrame(); ++e)
+ {
+ if (!currItem->itemText.paragraphStyle(e).isDefaultStyle())
+ {
+ ScColor col = currDoc->PageColors.value(currItem->itemText.charStyle(e).fillColor());
+ if (col.getColorModel() == colorModelRGB || col.isRegistrationColor())
+ {
+ itemError.insert(RGBtext,0);
+ break;
+ }
+ }
+ }
#endif
}
if (itemError.count() != 0)
@@ -310,6 +322,18 @@
if ((!currItem->itemText.charStyle(e).font().canRender(chr)) && (checkerSettings.checkGlyphs))
itemError.insert(MissingGlyph, 0);
}
+ for (int e = currItem->firstInFrame(); e <= currItem->lastInFrame(); ++e)
+ {
+ if (!currItem->itemText.paragraphStyle(e).isDefaultStyle())
+ {
+ ScColor col = currDoc->PageColors.value(currItem->itemText.charStyle(e).fillColor());
+ if (col.getColorModel() == colorModelRGB || col.isRegistrationColor())
+ {
+ itemError.insert(RGBtext,0);
+ break;
+ }
+ }
+ }
#endif
}
if (itemError.count() != 0)
Index: Scribus/scribus/scribusstructs.h
===================================================================
--- Scribus/scribus/scribusstructs.h (wersja 15812)
+++ Scribus/scribus/scribusstructs.h (kopia robocza)
@@ -390,7 +390,8 @@
ImageIsGIF=10,
BlendMode=11,
WrongFontInAnnotation=12,
- OffConflictLayers=17
+ OffConflictLayers=17,
+ RGBtext=18
} PreflightError;
typedef QMap errorCodes;