|
|
@ -3,34 +3,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package com.fr.design.mainframe; |
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.AWTEvent; |
|
|
|
import com.fr.base.*; |
|
|
|
import java.awt.Adjustable; |
|
|
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
import java.awt.Image; |
|
|
|
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
|
|
|
import java.awt.datatransfer.Clipboard; |
|
|
|
|
|
|
|
import java.awt.datatransfer.DataFlavor; |
|
|
|
|
|
|
|
import java.awt.datatransfer.Transferable; |
|
|
|
|
|
|
|
import java.awt.event.*; |
|
|
|
|
|
|
|
import java.lang.reflect.Constructor; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractAction; |
|
|
|
|
|
|
|
import javax.swing.ActionMap; |
|
|
|
|
|
|
|
import javax.swing.Icon; |
|
|
|
|
|
|
|
import javax.swing.InputMap; |
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
|
|
|
|
import javax.swing.JScrollBar; |
|
|
|
|
|
|
|
import javax.swing.KeyStroke; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
|
|
|
import com.fr.base.DynamicUnitList; |
|
|
|
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
|
|
|
import com.fr.base.Formula; |
|
|
|
|
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
|
|
|
|
import com.fr.base.Style; |
|
|
|
|
|
|
|
import com.fr.design.DesignState; |
|
|
|
import com.fr.design.DesignState; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
@ -39,30 +12,8 @@ import com.fr.design.actions.ExitAuthorityEditAction; |
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.actions.cell.BorderAction; |
|
|
|
import com.fr.design.actions.cell.BorderAction; |
|
|
|
import com.fr.design.actions.cell.CleanAuthorityAction; |
|
|
|
import com.fr.design.actions.cell.CleanAuthorityAction; |
|
|
|
import com.fr.design.actions.cell.style.AlignmentAction; |
|
|
|
import com.fr.design.actions.cell.style.*; |
|
|
|
import com.fr.design.actions.cell.style.ReportFontBoldAction; |
|
|
|
import com.fr.design.actions.columnrow.*; |
|
|
|
import com.fr.design.actions.cell.style.ReportFontForegroundAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.cell.style.ReportFontItalicAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.cell.style.ReportFontNameAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.cell.style.ReportFontSizeAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.cell.style.ReportFontUnderlineAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.cell.style.StyleBackgroundAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.CancelColumnAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.CancelRowAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.ColumnHideAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.ColumnWidthAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.DeleteColumnAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.DeleteRowAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.FootColumnAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.FootRowAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.HeadColumnAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.HeadRowAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.InsertColumnAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.InsertRowAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.ResetColumnHideAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.ResetRowHideAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.RowHeightAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.columnrow.RowHideAction; |
|
|
|
|
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
import com.fr.design.actions.edit.CopyAction; |
|
|
|
import com.fr.design.actions.edit.CopyAction; |
|
|
|
import com.fr.design.actions.edit.CutAction; |
|
|
|
import com.fr.design.actions.edit.CutAction; |
|
|
@ -74,6 +25,7 @@ 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.cell.editor.*; |
|
|
|
import com.fr.design.cell.editor.*; |
|
|
|
|
|
|
|
import com.fr.design.cell.editor.CellEditor; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.designer.EditingState; |
|
|
|
import com.fr.design.designer.EditingState; |
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
@ -83,11 +35,7 @@ import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.imenu.UIPopupMenu; |
|
|
|
import com.fr.design.gui.imenu.UIPopupMenu; |
|
|
|
import com.fr.design.mainframe.cell.QuickEditorRegion; |
|
|
|
import com.fr.design.mainframe.cell.QuickEditorRegion; |
|
|
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
|
|
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
|
|
|
import com.fr.design.menu.KeySetUtils; |
|
|
|
import com.fr.design.menu.*; |
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
|
|
|
|
import com.fr.design.menu.NameSeparator; |
|
|
|
|
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
|
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
|
|
|
|
import com.fr.design.selection.QuickEditor; |
|
|
|
import com.fr.design.selection.QuickEditor; |
|
|
|
import com.fr.design.selection.Selectedable; |
|
|
|
import com.fr.design.selection.Selectedable; |
|
|
|
import com.fr.design.selection.SelectionEvent; |
|
|
|
import com.fr.design.selection.SelectionEvent; |
|
|
@ -95,11 +43,7 @@ import com.fr.design.selection.SelectionListener; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.FRLogger; |
|
|
|
import com.fr.general.FRLogger; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.grid.Grid; |
|
|
|
import com.fr.grid.*; |
|
|
|
import com.fr.grid.GridColumn; |
|
|
|
|
|
|
|
import com.fr.grid.GridCorner; |
|
|
|
|
|
|
|
import com.fr.grid.GridRow; |
|
|
|
|
|
|
|
import com.fr.grid.GridUtils; |
|
|
|
|
|
|
|
import com.fr.grid.dnd.ElementCasePaneDropTarget; |
|
|
|
import com.fr.grid.dnd.ElementCasePaneDropTarget; |
|
|
|
import com.fr.grid.selection.CellSelection; |
|
|
|
import com.fr.grid.selection.CellSelection; |
|
|
|
import com.fr.grid.selection.Selection; |
|
|
|
import com.fr.grid.selection.Selection; |
|
|
@ -119,9 +63,17 @@ import com.fr.report.elementcase.ElementCase; |
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ColumnRow; |
|
|
|
import com.fr.stable.ColumnRow; |
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
|
|
|
import com.fr.stable.unit.FU; |
|
|
|
import com.fr.stable.unit.FU; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
import java.awt.datatransfer.Clipboard; |
|
|
|
|
|
|
|
import java.awt.datatransfer.DataFlavor; |
|
|
|
|
|
|
|
import java.awt.datatransfer.Transferable; |
|
|
|
|
|
|
|
import java.awt.event.*; |
|
|
|
|
|
|
|
import java.lang.reflect.Constructor; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -243,7 +195,6 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getMenuState() { |
|
|
|
public int getMenuState() { |
|
|
|
return DesignState.WORK_SHEET; |
|
|
|
return DesignState.WORK_SHEET; |
|
|
|
} |
|
|
|
} |
|
|
@ -1267,11 +1218,7 @@ public abstract class ElementCasePane<T extends TemplateElementCase> extends Tar |
|
|
|
|
|
|
|
|
|
|
|
protected ToolBarDef createAlignmentToolBar() { |
|
|
|
protected ToolBarDef createAlignmentToolBar() { |
|
|
|
return ShortCut.asToolBarDef(new ShortCut[]{ |
|
|
|
return ShortCut.asToolBarDef(new ShortCut[]{ |
|
|
|
new AlignmentAction(this, new Icon[]{ |
|
|
|
new AlignmentAction(this)} |
|
|
|
BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_left_normal.png"), |
|
|
|
|
|
|
|
BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_center_normal.png"), |
|
|
|
|
|
|
|
BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/h_right_normal.png")}, |
|
|
|
|
|
|
|
new Integer[]{Constants.LEFT, Constants.CENTER, Constants.RIGHT})} |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|