Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 11306 → Rev 11318

/branches/Version133x/Scribus/scribus/pdflib.cpp
4975,7 → 4975,7
PDF_xForm(ite->width(), ite->height(), cc);
}
if ((ite->annotation().Type() > 1) && ((ite->annotation().ActionType() == 1) || (ite->annotation().AAact())) && (!ite->annotation().Action().isEmpty()))
WritePDFStream(ite->annotation().Action());
WritePDFString(ite->annotation().Action());
if ((ite->annotation().Type() > 1) && (ite->annotation().AAact()))
{
StartObj(ObjCounter);
5036,25 → 5036,25
}
PutDoc(">>\nendobj\n");
if (!ite->annotation().E_act().isEmpty())
WritePDFStream(ite->annotation().E_act());
WritePDFString(ite->annotation().E_act());
if (!ite->annotation().X_act().isEmpty())
WritePDFStream(ite->annotation().X_act());
WritePDFString(ite->annotation().X_act());
if (!ite->annotation().D_act().isEmpty())
WritePDFStream(ite->annotation().D_act());
WritePDFString(ite->annotation().D_act());
if (!ite->annotation().Fo_act().isEmpty())
WritePDFStream(ite->annotation().Fo_act());
WritePDFString(ite->annotation().Fo_act());
if (!ite->annotation().Bl_act().isEmpty())
WritePDFStream(ite->annotation().Bl_act());
WritePDFString(ite->annotation().Bl_act());
if ((ite->annotation().Type() == 3) || (ite->annotation().Type() == 5) || (ite->annotation().Type() == 6))
{
if (!ite->annotation().K_act().isEmpty())
WritePDFStream(ite->annotation().K_act());
WritePDFString(ite->annotation().K_act());
if (!ite->annotation().F_act().isEmpty())
WritePDFStream(ite->annotation().F_act());
WritePDFString(ite->annotation().F_act());
if (!ite->annotation().V_act().isEmpty())
WritePDFStream(ite->annotation().V_act());
WritePDFString(ite->annotation().V_act());
if (!ite->annotation().C_act().isEmpty())
WritePDFStream(ite->annotation().C_act());
WritePDFString(ite->annotation().C_act());
}
}
}
5072,6 → 5072,23
PutDoc(" >>\nstream\n"+EncStream(tmp, ObjCounter-1)+"\nendstream\nendobj\n");
}
 
void PDFlib::WritePDFString(const QString& cc)
{
QString tmp;
for (uint i = 0; i < cc.length(); ++i)
{
if (cc[i].unicode() > 255)
{
tmp += "\\u";
tmp += toHex(cc[i].row());
tmp += toHex(cc[i].cell());
}
else
tmp += cc[i];
}
WritePDFStream(tmp);
}
 
void PDFlib::PDF_xForm(double w, double h, QString im)
{
StartObj(ObjCounter);
5814,7 → 5831,7
int Fjav0 = ObjCounter;
QMap<QString,QString>::Iterator itja0;
for (itja0 = doc.JavaScripts.begin(); itja0 != doc.JavaScripts.end(); ++itja0)
WritePDFStream(itja0.data());
WritePDFString(itja0.data());
int Fjav = ObjCounter;
QMap<QString,QString>::Iterator itja;
for (itja = doc.JavaScripts.begin(); itja != doc.JavaScripts.end(); ++itja)
/branches/Version133x/Scribus/scribus/pdflib.h
104,6 → 104,7
void PutPage(const QString & in) { Inhalt += in; }
void StartObj(int nr);
void WritePDFStream(const QString& cc);
void WritePDFString(const QString& cc);
QString PDFEncode(const QString & in);
QByteArray ComputeMD5(const QString& in);
void PDF_Bookmark(PageItem *currItem, double ypos);