Package com._1c.g5.v8.dt.qw.ui.utils
Class SpreadsheetDocumentTemplateBuilder
java.lang.Object
com._1c.g5.v8.dt.qw.ui.utils.SpreadsheetDocumentTemplateBuilder
Spreadsheet document template builder for
output query result
-
Constructor Summary
ConstructorsConstructorDescriptionSpreadsheetDocumentTemplateBuilder
(QueryWizardSource source, QueryTextResultProcessing.ResultProcessingParams params) -
Method Summary
Modifier and TypeMethodDescriptionbuildSpreadsheetDocument
(org.eclipse.emf.ecore.EObject mdObject, boolean isReplaceTemplate) Build spreadsheet documentvoid
fillSpreadsheetDocument
(SpreadsheetDocument spreadsheetDocument, List<QuerySchemaTotalControlPoint> totals, List<QuerySchemaExpression> totalsExpressions, List<QuerySchemaExpression> allFields, boolean isCommonTotals) Fill spreadsheet documentstatic BasicTemplate
findTemplateWithName
(org.eclipse.emf.ecore.EObject mdObject, String templateName) Find template with name
-
Constructor Details
-
SpreadsheetDocumentTemplateBuilder
public SpreadsheetDocumentTemplateBuilder(QueryWizardSource source, QueryTextResultProcessing.ResultProcessingParams params) - Parameters:
source
- - query wizard sourceparams
- - result processing parameters
-
-
Method Details
-
findTemplateWithName
public static BasicTemplate findTemplateWithName(org.eclipse.emf.ecore.EObject mdObject, String templateName) Find template with name- Parameters:
mdObject
- - MdObjecttemplateName
- - template name- Returns:
- template or null
-
buildSpreadsheetDocument
public Pair<SpreadsheetDocument,BasicTemplate> buildSpreadsheetDocument(org.eclipse.emf.ecore.EObject mdObject, boolean isReplaceTemplate) Build spreadsheet document- Parameters:
mdObject
- - parent MDObject, used for generate templateisReplaceTemplate
- - if false, if template with name exist will be generated new name, otherwise template will be replaced- Returns:
- pair with spreadsheet document and template
-
fillSpreadsheetDocument
public void fillSpreadsheetDocument(SpreadsheetDocument spreadsheetDocument, List<QuerySchemaTotalControlPoint> totals, List<QuerySchemaExpression> totalsExpressions, List<QuerySchemaExpression> allFields, boolean isCommonTotals) Fill spreadsheet document- Parameters:
spreadsheetDocument
- - spreadsheet documenttotals
- - totals controls pointstotalsExpressions
- - totals expressionsallFields
- - selected fields in first operatorisCommonTotals
- - is common totals
-