Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.cpp
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Line(s) | 376 | { | |||
---|---|---|---|---|---|
383 | content.setAttribute(QLatin1String("xmlns:svg"), QLatin1String("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0")); | 383 | content.setAttribute(QLatin1String("xmlns:svg"), QLatin1String("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0")); | ||
384 | 384 | | |||
385 | doc.appendChild(content); | 385 | doc.appendChild(content); | ||
386 | 386 | | |||
387 | //title | 387 | //title | ||
388 | content.appendChild(propertyToElement(&doc, d->title)); | 388 | content.appendChild(propertyToElement(&doc, d->title)); | ||
389 | 389 | | |||
390 | #ifdef KREPORT_SCRIPTING | 390 | #ifdef KREPORT_SCRIPTING | ||
391 | if (d->originalInterpreter.isEmpty()) { | ||||
392 | d->originalInterpreter = QLatin1String("javascript"); | ||||
393 | } | ||||
391 | saveInterpreter = d->originalInterpreter; | 394 | saveInterpreter = d->originalInterpreter; | ||
392 | 395 | | |||
393 | if (!d->script->value().toString().isEmpty()) { | 396 | if (!d->script->value().toString().isEmpty()) { | ||
394 | if (d->script->value().toString() != d->originalScript || d->originalInterpreter == QLatin1String("qtscript") || d->originalInterpreter.isEmpty() ) { | 397 | if (d->script->value().toString() != d->originalScript || d->originalInterpreter == QLatin1String("qtscript") || d->originalInterpreter.isEmpty() ) { | ||
395 | //The script has changed so force interpreter to 'javascript'. Also set if was using qtscript | 398 | //The script has changed so force interpreter to 'javascript'. Also set if was using qtscript | ||
396 | saveInterpreter = QLatin1String("javascript"); | 399 | saveInterpreter = QLatin1String("javascript"); | ||
397 | } | 400 | } | ||
398 | } | 401 | } | ||
▲ Show 20 Lines • Show All 1157 Lines • Show Last 20 Lines |