1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.ui.pdf;
15 import java.util.ArrayList;
16 import java.util.Collection;
17 import java.util.HashSet;
18 import java.util.List;
21 import org.simantics.db.common.NamedResource;
22 import org.simantics.db.management.ISessionContext;
23 import org.simantics.modeling.requests.CollectionResult;
24 import org.simantics.modeling.requests.Node;
25 import org.simantics.project.IProject;
27 public class PDFExportPlan {
30 public ISessionContext sessionContext;
31 public IProject project;
32 public List<NamedResource> selectableModels = new ArrayList<NamedResource>();
33 public NamedResource selection;
34 public Collection<String> recentLocations;
37 public CollectionResult nodes = new CollectionResult();
38 public Set<Node> selectedNodeSet = new HashSet<Node>();
41 //NamedResource model;
42 public File exportLocation;
43 public Collection<Node> selectedNodes;
48 * <code>false</code> to print content as is regardless of whether it goes
49 * outside printed page boundaries. <code>true</code> to scale the content
50 * so that it fills the printed page size and the specified margins. If the
51 * content goes over page boundaries, it is shrunk and if it doesn't fill
52 * the page boundaries, it is scaled up uniformly to fill them either
53 * horizontally or vertically.
55 public boolean fitContentToPageMargins = false;
58 * <code>true</code> to attach TG of the diagram and the model.
60 public boolean attachTG = false;
63 * <code>true</code> to attach Wiki page.
65 public boolean attachWiki = false;
68 public PDFExportPlan(ISessionContext sessionContext, Collection<String> recentLocations) {
69 this.sessionContext = sessionContext;
70 this.recentLocations = recentLocations;