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