|
|
|
@ -3,6 +3,7 @@ package com.fr.design.mainframe.theme.utils;
|
|
|
|
|
import com.fr.base.NameStyle; |
|
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
import com.fr.base.theme.settings.ThemedCellStyle; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.report.cell.DefaultTemplateCellElement; |
|
|
|
@ -37,7 +38,7 @@ public class DefaultThemedTemplateCellElementCase {
|
|
|
|
|
ThemedCellStyle themedCellStyle = theme.getCellStyleList().getUse4Default(); |
|
|
|
|
if (themedCellStyle != null) { |
|
|
|
|
NameStyle nameStyle = NameStyle.getPassiveInstance(themedCellStyle.getName(), themedCellStyle.getStyle()); |
|
|
|
|
cellElement.setStyle(nameStyle); |
|
|
|
|
cellElement.setStyle(DesignModeContext.isDuchampMode() ? nameStyle.getRealStyle() : nameStyle); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return cellElement; |
|
|
|
|