|
|
@ -145,6 +145,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
super(workBook, fileName); |
|
|
|
super(workBook, fileName); |
|
|
|
populateReportParameterAttr(); |
|
|
|
populateReportParameterAttr(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public JWorkBook(WorkBook workBook, FILE file, Parameter[] parameters) { |
|
|
|
public JWorkBook(WorkBook workBook, FILE file, Parameter[] parameters) { |
|
|
|
super(workBook, file, parameters); |
|
|
|
super(workBook, file, parameters); |
|
|
|
populateReportParameterAttr(); |
|
|
|
populateReportParameterAttr(); |
|
|
@ -489,7 +490,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
double creatorWidth = blockCreator.getEditorBounds().width; |
|
|
|
double creatorWidth = blockCreator.getEditorBounds().width; |
|
|
|
double areaHeight = polyDezi.polyArea.getHeight(); |
|
|
|
double areaHeight = polyDezi.polyArea.getHeight(); |
|
|
|
double areaWidth = polyDezi.polyArea.getWidth(); |
|
|
|
double areaWidth = polyDezi.polyArea.getWidth(); |
|
|
|
if(AssistUtils.equals(creatorWidth,0) || AssistUtils.equals(creatorHeight,0)){ |
|
|
|
if (AssistUtils.equals(creatorWidth, 0) || AssistUtils.equals(creatorHeight, 0)) { |
|
|
|
return resolution; |
|
|
|
return resolution; |
|
|
|
} |
|
|
|
} |
|
|
|
double time = (areaHeight / creatorHeight) < (areaWidth / creatorWidth) ? (areaHeight / creatorHeight) : (areaWidth / creatorWidth); |
|
|
|
double time = (areaHeight / creatorHeight) < (areaWidth / creatorWidth) ? (areaHeight / creatorHeight) : (areaWidth / creatorWidth); |
|
|
@ -506,7 +507,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
int row = reportPane.getSelection().getSelectedRows()[0]; |
|
|
|
int row = reportPane.getSelection().getSelectedRows()[0]; |
|
|
|
double rowLength = reportPane.getSelection().getSelectedRows().length; |
|
|
|
double rowLength = reportPane.getSelection().getSelectedRows().length; |
|
|
|
double rowExtent = reportPane.getGrid().getVerticalExtent(); |
|
|
|
double rowExtent = reportPane.getGrid().getVerticalExtent(); |
|
|
|
if(AssistUtils.equals(columnLength,0) || AssistUtils.equals(rowLength,0)){ |
|
|
|
if (AssistUtils.equals(columnLength, 0) || AssistUtils.equals(rowLength, 0)) { |
|
|
|
return resolution; |
|
|
|
return resolution; |
|
|
|
} |
|
|
|
} |
|
|
|
double time = (columnExtent / columnLength) < (rowExtent / rowLength) ? (columnExtent / columnLength) : (rowExtent / rowLength); |
|
|
|
double time = (columnExtent / columnLength) < (rowExtent / rowLength) ? (columnExtent / columnLength) : (rowExtent / rowLength); |
|
|
@ -929,7 +930,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
public PreviewProvider[] supportPreview() { |
|
|
|
public PreviewProvider[] supportPreview() { |
|
|
|
PreviewProvider[] templatePreviews = super.supportPreview(); |
|
|
|
PreviewProvider[] templatePreviews = super.supportPreview(); |
|
|
|
return ArrayUtils.addAll(new PreviewProvider[]{ |
|
|
|
return ArrayUtils.addAll(new PreviewProvider[]{ |
|
|
|
new PagePreview(), new WritePreview(), new ViewPreview(), new MobilePreview(), new NewWritePreview() |
|
|
|
new PagePreview(), new WritePreview(), new ViewPreview(), new MobilePreview() |
|
|
|
}, templatePreviews); |
|
|
|
}, templatePreviews); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1212,7 +1213,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
addExtraChooseFILEFilter(fileChooser); |
|
|
|
addExtraChooseFILEFilter(fileChooser); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void addExtraChooseFILEFilter(FILEChooserPane fileChooser){ |
|
|
|
protected void addExtraChooseFILEFilter(FILEChooserPane fileChooser) { |
|
|
|
Set<ReportSupportedFileUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ReportSupportedFileUIProvider.XML_TAG); |
|
|
|
Set<ReportSupportedFileUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ReportSupportedFileUIProvider.XML_TAG); |
|
|
|
for (ReportSupportedFileUIProvider provider : providers) { |
|
|
|
for (ReportSupportedFileUIProvider provider : providers) { |
|
|
|
provider.addChooseFileFilter(fileChooser, this.suffix()); |
|
|
|
provider.addChooseFileFilter(fileChooser, this.suffix()); |
|
|
|