Revision 1594 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameText.java
FFrameText.java | ||
---|---|---|
41 | 41 |
import org.gvsig.andami.PluginServices; |
42 | 42 |
import org.gvsig.app.project.documents.Document; |
43 | 43 |
import org.gvsig.app.project.documents.layout.FLayoutUtilities; |
44 |
import org.gvsig.app.project.documents.layout.report.LayoutReportAction; |
|
44 |
import org.gvsig.app.project.documents.layout.report.LayoutReportActionImpl;
|
|
45 | 45 |
import org.gvsig.compat.print.PrintAttributes; |
46 | 46 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator; |
47 | 47 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager; |
... | ... | |
803 | 803 |
try { |
804 | 804 |
ExpressionEvaluatorManager expressionManager = ExpressionEvaluatorLocator.getExpressionEvaluatorManager(); |
805 | 805 |
String ss1 = StringUtils.join(this.m_text, "\n"); |
806 |
if( !expressionManager.isDynamicText(ss1) || !FutureUtils.use("DYNAMIC_TEXTS_IN_LAYOUT") ) {
|
|
806 |
if( !expressionManager.isDynamicText(ss1) || !FutureUtils.use("LAYOUT_REPORT") ) {
|
|
807 | 807 |
return this.m_text; |
808 | 808 |
} |
809 | 809 |
|
810 | 810 |
Document doc = this.getDocument(); |
811 |
LayoutReportAction report = (LayoutReportAction) doc.getProperty("$REPORT");
|
|
811 |
LayoutReportActionImpl report = (LayoutReportActionImpl) doc.getProperty("$REPORT");
|
|
812 | 812 |
if( report == null ) { |
813 |
report = LayoutReportAction.createFakeLayoutReportAction(doc); |
|
813 |
report = LayoutReportActionImpl.createFakeLayoutReportAction(doc);
|
|
814 | 814 |
} |
815 | 815 |
String ss2 = report.evaluateDynamicText(ss1); |
816 | 816 |
List<String> texts = Arrays.asList(StringUtils.split(ss2, '\n')); |
Also available in: Unified diff