Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.cpp
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Line(s) | 342 | { | |||
---|---|---|---|---|---|
349 | content.setAttribute(QLatin1String("xmlns:svg"), QLatin1String("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0")); | 349 | content.setAttribute(QLatin1String("xmlns:svg"), QLatin1String("urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0")); | ||
350 | 350 | | |||
351 | doc.appendChild(content); | 351 | doc.appendChild(content); | ||
352 | 352 | | |||
353 | //title | 353 | //title | ||
354 | content.appendChild(propertyToElement(&doc, d->title)); | 354 | content.appendChild(propertyToElement(&doc, d->title)); | ||
355 | 355 | | |||
356 | #ifdef KREPORT_SCRIPTING | 356 | #ifdef KREPORT_SCRIPTING | ||
357 | if (d->originalInterpreter.isEmpty()) { | ||||
358 | d->originalInterpreter = QLatin1String("javascript"); | ||||
359 | } | ||||
357 | saveInterpreter = d->originalInterpreter; | 360 | saveInterpreter = d->originalInterpreter; | ||
358 | 361 | | |||
359 | if (!d->script->value().toString().isEmpty()) { | 362 | if (!d->script->value().toString().isEmpty()) { | ||
360 | if (d->script->value().toString() != d->originalScript || d->originalInterpreter == QLatin1String("qtscript") || d->originalInterpreter.isEmpty() ) { | 363 | if (d->script->value().toString() != d->originalScript || d->originalInterpreter == QLatin1String("qtscript") || d->originalInterpreter.isEmpty() ) { | ||
361 | //The script has changed so force interpreter to 'javascript'. Also set if was using qtscript | 364 | //The script has changed so force interpreter to 'javascript'. Also set if was using qtscript | ||
362 | saveInterpreter = QLatin1String("javascript"); | 365 | saveInterpreter = QLatin1String("javascript"); | ||
363 | } | 366 | } | ||
364 | } | 367 | } | ||
▲ Show 20 Lines • Show All 1162 Lines • Show Last 20 Lines |