Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 12280 → Rev 12278

/trunk/Scribus/scribus/util.cpp
782,6 → 782,40
} while (!tmp.isEmpty());
}
 
/*
int findParagraphStyle(ScribusDoc* doc, const ParagraphStyle& parStyle)
{
bool named = !parStyle.name().isEmpty();
//qDebug(QString("looking up %1/ %2").arg(parStyle.name()).arg(parStyle.alignment()));
if (named) {
for (int i=0; i < doc->paragraphStyles().count(); ++i)
{
//qDebug(QString("%1 %2").arg(i).arg(doc->paragraphStyles()[i].name()));
if (parStyle.name() == doc->paragraphStyles()[i].name()) {
return i;
}
}
assert(false);
return -1;
}
else {
return -1;
}
}
 
int findParagraphStyle(ScribusDoc* doc, const QString &name)
{
for (int i=0; i < doc->paragraphStyles().count(); ++i)
{
if (name == doc->paragraphStyles()[i].name()) {
return i;
}
}
assert(false);
return -1;
}
*/
 
void tDebug(QString message)
{
QDateTime debugTime;
/trunk/Scribus/scribus/util.h
130,7 → 130,12
const QString SCRIBUS_API arabicToRoman(uint i);
const QString SCRIBUS_API numberToLetterSequence(uint i);
void SCRIBUS_API parsePagesString(QString pages, std::vector<int>* pageNs, int sourcePageCount);
 
/*
#ifndef NLS_CONFORMANCE
int SCRIBUS_API findParagraphStyle(ScribusDoc* doc, const ParagraphStyle& parStyle);
int SCRIBUS_API findParagraphStyle(ScribusDoc* doc, const QString &name);
#endif
*/
/*! \brief performance measurements.
It prints given message with it current timestamp.
Useful for duration holes finding.