|
|
@ -87,6 +87,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
private static final String SHARE_SUFFIX = "_share"; |
|
|
|
private static final String SHARE_SUFFIX = "_share"; |
|
|
|
private static final String SHARE_FOLDER = "share"; |
|
|
|
private static final String SHARE_FOLDER = "share"; |
|
|
|
private static final int TOOLBARPANEDIMHEIGHT = 26; |
|
|
|
private static final int TOOLBARPANEDIMHEIGHT = 26; |
|
|
|
|
|
|
|
private static final double MIN_TIME = 0.4; |
|
|
|
|
|
|
|
|
|
|
|
private UIModeControlContainer centerPane; |
|
|
|
private UIModeControlContainer centerPane; |
|
|
|
public ReportComponentComposite reportComposite; |
|
|
|
public ReportComponentComposite reportComposite; |
|
|
@ -364,6 +365,12 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
ElementCasePane elementCasePane = reportComposite.centerCardPane.editingComponet.elementCasePane; |
|
|
|
ElementCasePane elementCasePane = reportComposite.centerCardPane.editingComponet.elementCasePane; |
|
|
|
PolyDesigner polyDezi = reportComposite.centerCardPane.getPolyDezi(); |
|
|
|
PolyDesigner polyDezi = reportComposite.centerCardPane.getPolyDezi(); |
|
|
|
if (elementCasePane != null) { |
|
|
|
if (elementCasePane != null) { |
|
|
|
|
|
|
|
//分页线
|
|
|
|
|
|
|
|
if (resolution < ScreenResolution.getScreenResolution() * MIN_TIME) { |
|
|
|
|
|
|
|
elementCasePane.getGrid().setShowGridLine(false); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
elementCasePane.getGrid().setShowGridLine(true); |
|
|
|
|
|
|
|
} |
|
|
|
elementCasePane.setResolution(resolution); |
|
|
|
elementCasePane.setResolution(resolution); |
|
|
|
elementCasePane.getGrid().getGridMouseAdapter().setResolution(resolution); |
|
|
|
elementCasePane.getGrid().getGridMouseAdapter().setResolution(resolution); |
|
|
|
elementCasePane.getGrid().setResolution(resolution); |
|
|
|
elementCasePane.getGrid().setResolution(resolution); |
|
|
@ -389,6 +396,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
} |
|
|
|
} |
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().fireTargetModified(); |
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().fireTargetModified(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int selfAdaptUpdate() { |
|
|
|
public int selfAdaptUpdate() { |
|
|
|
PolyDesigner polyDezi = reportComposite.centerCardPane.getPolyDezi(); |
|
|
|
PolyDesigner polyDezi = reportComposite.centerCardPane.getPolyDezi(); |
|
|
@ -414,6 +422,9 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
|
|
|
|
|
|
|
|
} else if (elementCasePane != null) { |
|
|
|
} else if (elementCasePane != null) { |
|
|
|
ElementCasePane reportPane = elementCasePane.getGrid().getElementCasePane(); |
|
|
|
ElementCasePane reportPane = elementCasePane.getGrid().getElementCasePane(); |
|
|
|
|
|
|
|
if (reportPane.getSelection().getSelectedColumns().length == 0) { |
|
|
|
|
|
|
|
return resolution; |
|
|
|
|
|
|
|
} |
|
|
|
int column = reportPane.getSelection().getSelectedColumns()[0]; |
|
|
|
int column = reportPane.getSelection().getSelectedColumns()[0]; |
|
|
|
double columnLength = reportPane.getSelection().getSelectedColumns().length; |
|
|
|
double columnLength = reportPane.getSelection().getSelectedColumns().length; |
|
|
|
double columnExtent = reportPane.getGrid().getHorizontalExtent(); |
|
|
|
double columnExtent = reportPane.getGrid().getHorizontalExtent(); |
|
|
@ -790,7 +801,6 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
* 是否支持预览 |
|
|
|
* 是否支持预览 |
|
|
|
* |
|
|
|
* |
|
|
|
* @return 预览接口 |
|
|
|
* @return 预览接口 |
|
|
|
* |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public PreviewProvider[] supportPreview() { |
|
|
|
public PreviewProvider[] supportPreview() { |
|
|
|
Set<PreviewProvider> set = ExtraDesignClassManager.getInstance().getArray(PreviewProvider.MARK_STRING); |
|
|
|
Set<PreviewProvider> set = ExtraDesignClassManager.getInstance().getArray(PreviewProvider.MARK_STRING); |
|
|
|