]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/pdf/PDFExportPlan.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / pdf / PDFExportPlan.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.ui.pdf;
13
14 import java.io.File;
15 import java.util.ArrayList;
16 import java.util.Collection;
17 import java.util.HashSet;
18 import java.util.List;
19 import java.util.Set;
20
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;
26
27 public class PDFExportPlan {
28
29     // Input
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;
35
36     // Temporary data
37     public CollectionResult          nodes           = new CollectionResult();
38     public Set<Node>                 selectedNodeSet = new HashSet<Node>();
39
40     // Output
41     //NamedResource             model;
42     public File                      exportLocation;
43     public Collection<Node>          selectedNodes;
44
45     // I/O
46
47     /**
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.
54      */
55     public boolean                   fitContentToPageMargins    = false;
56
57     /**
58      * <code>true</code> to attach TG of the diagram and the model.
59      */
60     public boolean attachTG = false;
61
62     /**
63      * <code>true</code> to attach Wiki page.
64      */
65     public boolean attachWiki = false;
66     
67     
68     public PDFExportPlan(ISessionContext sessionContext, Collection<String> recentLocations) {
69         this.sessionContext = sessionContext;
70         this.recentLocations = recentLocations;
71     }
72
73 }