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