|
|
|
@ -1,19 +1,18 @@
|
|
|
|
|
package com.fr.plugin.cell.highlight.fun; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.Style; |
|
|
|
|
import com.fr.intelli.record.Focus; |
|
|
|
|
import com.fr.intelli.record.Original; |
|
|
|
|
import com.fr.plugin.PluginLicense; |
|
|
|
|
import com.fr.plugin.PluginLicenseManager; |
|
|
|
|
import com.fr.record.analyzer.EnableMetrics; |
|
|
|
|
import com.fr.report.cell.CellElement; |
|
|
|
|
import com.fr.report.cell.cellattr.highlight.AbstractStyleHighlightAction; |
|
|
|
|
import com.fr.script.Calculator; |
|
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fanruan.api.report.cell.AbstractStyleHighlightAction; |
|
|
|
|
import com.fanruan.api.macro.Constants; |
|
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
|
import com.fanruan.api.util.AssistKit; |
|
|
|
|
import com.fanruan.api.runtime.PluginKit; |
|
|
|
|
//import com.fanruan.api.design.ui.layout.Style;
|
|
|
|
|
//import com.fanruan.api.design.ui.layout.AbstractStyleHighlightAction;
|
|
|
|
|
/** |
|
|
|
|
* @author richie |
|
|
|
|
* @date 2015-03-26 |
|
|
|
@ -37,16 +36,15 @@ public class AlignHighlightAction extends AbstractStyleHighlightAction {
|
|
|
|
|
return align; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void action(CellElement cellElement, Calculator calculator) { |
|
|
|
|
super.action(cellElement, calculator); |
|
|
|
|
} |
|
|
|
|
// @Override
|
|
|
|
|
// public void action(CellElement cellElement, Calculator calculator) {
|
|
|
|
|
// super.action(cellElement, calculator);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Focus(id = AlignHighlightConstants.PLUGIN_ID, text = "Plugin-Highlight_Align", source = Original.PLUGIN) |
|
|
|
|
protected Style modStyle(Style style) { |
|
|
|
|
PluginLicense pluginLicense = PluginLicenseManager.getInstance().getPluginLicenseByID(AlignHighlightConstants.PLUGIN_ID); |
|
|
|
|
if (pluginLicense != null && pluginLicense.isAvailable()) { |
|
|
|
|
if (PluginKit.isCurrentPluginAvailable()) { |
|
|
|
|
return style.deriveHorizontalAlignment(align); |
|
|
|
|
} |
|
|
|
|
return style; |
|
|
|
|