X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Fpdf%2FPDFExportPlan.java;fp=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Fpdf%2FPDFExportPlan.java;h=430fa0e66bb6af4268b0825e6e9312caabed5c54;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFExportPlan.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFExportPlan.java new file mode 100644 index 000000000..430fa0e66 --- /dev/null +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFExportPlan.java @@ -0,0 +1,73 @@ +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.modeling.ui.pdf; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import org.simantics.db.common.NamedResource; +import org.simantics.db.management.ISessionContext; +import org.simantics.modeling.requests.CollectionResult; +import org.simantics.modeling.requests.Node; +import org.simantics.project.IProject; + +public class PDFExportPlan { + + // Input + public ISessionContext sessionContext; + public IProject project; + public List selectableModels = new ArrayList(); + public NamedResource selection; + public Collection recentLocations; + + // Temporary data + public CollectionResult nodes = new CollectionResult(); + public Set selectedNodeSet = new HashSet(); + + // Output + //NamedResource model; + public File exportLocation; + public Collection selectedNodes; + + // I/O + + /** + * false to print content as is regardless of whether it goes + * outside printed page boundaries. true to scale the content + * so that it fills the printed page size and the specified margins. If the + * content goes over page boundaries, it is shrunk and if it doesn't fill + * the page boundaries, it is scaled up uniformly to fill them either + * horizontally or vertically. + */ + public boolean fitContentToPageMargins = false; + + /** + * true to attach TG of the diagram and the model. + */ + public boolean attachTG = false; + + /** + * true to attach Wiki page. + */ + public boolean attachWiki = false; + + + public PDFExportPlan(ISessionContext sessionContext, Collection recentLocations) { + this.sessionContext = sessionContext; + this.recentLocations = recentLocations; + } + +}