@ -1,33 +1,35 @@
package com.fr.grid.selection ;
package com.fr.grid.selection ;
import java.awt.Toolkit ;
import javax.swing.JPopupMenu ;
import com.fr.base.BaseUtils ;
import com.fr.base.BaseUtils ;
import com.fr.base.FRContext ;
import com.fr.base.FRContext ;
import com.fr.design.actions.cell.CleanAuthorityAction ;
import com.fr.design.actions.cell.CleanAuthorityAction ;
import com.fr.design.actions.cell.FloatStyleAction ;
import com.fr.design.actions.cell.FloatStyleAction ;
import com.fr.design.actions.core.ActionFactory ;
import com.fr.design.actions.core.ActionFactory ;
import com.fr.design.actions.edit.* ;
import com.fr.design.actions.edit.* ;
import com.fr.design.actions.utils.DeprecatedActionManager ;
import com.fr.design.actions.edit.order.BringFloatElementForwardAction ;
import com.fr.design.actions.edit.order.BringFloatElementToFrontAction ;
import com.fr.design.actions.edit.order.SendFloatElementBackwardAction ;
import com.fr.design.actions.edit.order.SendFloatElementToBackAction ;
import com.fr.design.cell.clipboard.CellElementsClip ;
import com.fr.design.cell.clipboard.CellElementsClip ;
import com.fr.design.cell.clipboard.ElementsTransferable ;
import com.fr.design.cell.clipboard.ElementsTransferable ;
import com.fr.design.cell.clipboard.FloatElementsClip ;
import com.fr.design.cell.clipboard.FloatElementsClip ;
import com.fr.design.designer.TargetComponent ;
import com.fr.design.designer.TargetComponent ;
import com.fr.design.gui.imenu.UIPopupMenu ;
import com.fr.design.gui.imenu.UIPopupMenu ;
import com.fr.design.mainframe.CellElementPropertyPane ;
import com.fr.design.mainframe.CellElementPropertyPane ;
import com.fr.general.ComparatorUtils ;
import com.fr.general.Inter ;
import com.fr.design.mainframe.ElementCasePane ;
import com.fr.design.mainframe.ElementCasePane ;
import com.fr.design.mainframe.ElementCasePane.Clear ;
import com.fr.design.mainframe.ElementCasePane.Clear ;
import com.fr.design.selection.QuickEditor ;
import com.fr.design.utils.DesignUtils ;
import com.fr.general.ComparatorUtils ;
import com.fr.general.Inter ;
import com.fr.report.cell.FloatElement ;
import com.fr.report.cell.FloatElement ;
import com.fr.report.elementcase.TemplateElementCase ;
import com.fr.report.elementcase.TemplateElementCase ;
import com.fr.design.selection.QuickEditor ;
import com.fr.stable.ColumnRow ;
import com.fr.stable.ColumnRow ;
import com.fr.stable.unit.FU ;
import com.fr.stable.unit.FU ;
import com.fr.stable.unit.OLDPIX ;
import com.fr.stable.unit.OLDPIX ;
import com.fr.design.utils.DesignUtils ;
import javax.swing.* ;
import java.awt.* ;
/ * *
/ * *
* the float selection
* the float selection
* @editor zhou
* @editor zhou
@ -120,19 +122,23 @@ public class FloatSelection extends Selection {
popup . add ( new CleanAuthorityAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new CleanAuthorityAction ( ePane ) . createMenuItem ( ) ) ;
return popup ;
return popup ;
}
}
popup . add ( DeprecatedActionManager . getCellMenu ( ePane ) . createJMenu ( ) ) ;
popup . add ( new FloatStyleAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new FloatStyleAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new HyperlinkAction ( ) . createMenuItem ( ) ) ;
popup . add ( new HyperlinkAction ( ) . createMenuItem ( ) ) ;
// cut, copy and paste
// cut, copy and paste
popup . addSeparator ( ) ;
popup . addSeparator ( ) ;
popup . add ( new CutAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new CutAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new CopyAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new CopyAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new PasteAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new PasteAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new DeleteAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new DeleteAction ( ePane ) . createMenuItem ( ) ) ;
popup . addSeparator ( ) ;
popup . add ( new BringFloatElementToFrontAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new SendFloatElementToBackAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new BringFloatElementForwardAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new SendFloatElementBackwardAction ( ePane ) . createMenuItem ( ) ) ;
popup . addSeparator ( ) ;
popup . addSeparator ( ) ;
popup . add ( DeprecatedActionManager . getOrderMenu ( ePane ) ) ;
popup . add ( new EditFloatElementNameAction ( ePane ) . createMenuItem ( ) ) ;
popup . add ( new EditFloatElementNameAction ( ePane ) . createMenuItem ( ) ) ;
return popup ;
return popup ;