--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.modeling.ui.pdf;\r
+\r
+import java.io.File;\r
+import java.util.ArrayList;\r
+import java.util.Collection;\r
+import java.util.HashSet;\r
+import java.util.List;\r
+import java.util.Set;\r
+\r
+import org.simantics.db.common.NamedResource;\r
+import org.simantics.db.management.ISessionContext;\r
+import org.simantics.modeling.requests.CollectionResult;\r
+import org.simantics.modeling.requests.Node;\r
+import org.simantics.project.IProject;\r
+\r
+public class PDFExportPlan {\r
+\r
+ // Input\r
+ public ISessionContext sessionContext;\r
+ public IProject project;\r
+ public List<NamedResource> selectableModels = new ArrayList<NamedResource>();\r
+ public NamedResource selection;\r
+ public Collection<String> recentLocations;\r
+\r
+ // Temporary data\r
+ public CollectionResult nodes = new CollectionResult();\r
+ public Set<Node> selectedNodeSet = new HashSet<Node>();\r
+\r
+ // Output\r
+ //NamedResource model;\r
+ public File exportLocation;\r
+ public Collection<Node> selectedNodes;\r
+\r
+ // I/O\r
+\r
+ /**\r
+ * <code>false</code> to print content as is regardless of whether it goes\r
+ * outside printed page boundaries. <code>true</code> to scale the content\r
+ * so that it fills the printed page size and the specified margins. If the\r
+ * content goes over page boundaries, it is shrunk and if it doesn't fill\r
+ * the page boundaries, it is scaled up uniformly to fill them either\r
+ * horizontally or vertically.\r
+ */\r
+ public boolean fitContentToPageMargins = false;\r
+\r
+ /**\r
+ * <code>true</code> to attach TG of the diagram and the model.\r
+ */\r
+ public boolean attachTG = false;\r
+\r
+ /**\r
+ * <code>true</code> to attach Wiki page.\r
+ */\r
+ public boolean attachWiki = false;\r
+ \r
+ \r
+ public PDFExportPlan(ISessionContext sessionContext, Collection<String> recentLocations) {\r
+ this.sessionContext = sessionContext;\r
+ this.recentLocations = recentLocations;\r
+ }\r
+\r
+}\r