|
|
|
@ -26,6 +26,9 @@ import com.fr.base.BaseUtils;
|
|
|
|
|
import com.fr.base.GraphHelper; |
|
|
|
|
|
|
|
|
|
import com.fr.base.svg.IconUtils; |
|
|
|
|
import com.fr.base.theme.ReportTheme; |
|
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
import com.fr.base.theme.TemplateThemeCompatible; |
|
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
@ -807,7 +810,15 @@ public class SheetNameTabPane extends JComponent implements MouseListener, Mouse
|
|
|
|
|
scrollIndex++; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
reportComposite.getEditingWorkBook().addReport(insertPos, newTemplateReport()); |
|
|
|
|
JTemplate<?,?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
TemplateTheme theme = template.getTemplateTheme(); |
|
|
|
|
|
|
|
|
|
TemplateReport templateReport = newTemplateReport(); |
|
|
|
|
if (theme instanceof ReportTheme) { |
|
|
|
|
templateReport.onTemplateUsingThemeChange((ReportTheme) theme, TemplateThemeCompatible.NONE); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
reportComposite.getEditingWorkBook().addReport(insertPos, templateReport); |
|
|
|
|
setSelectedIndex(insertPos); |
|
|
|
|
|
|
|
|
|
// sheet名字的公式也需要做相应的变化.
|
|
|
|
|