X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.wiki.ui%2Fsrc%2Forg%2Fsimantics%2Fwiki%2Fui%2Feditor%2FIExportable.java;h=492fd1928ef89ab1632f3fe0a792b5c17f4af89f;hb=ee806e3464c8255db525712f1d87d46dcb97c1d1;hp=88315b2f0385b3a64a115460613d9f5d46b2751a;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.wiki.ui/src/org/simantics/wiki/ui/editor/IExportable.java b/bundles/org.simantics.wiki.ui/src/org/simantics/wiki/ui/editor/IExportable.java index 88315b2f0..492fd1928 100644 --- a/bundles/org.simantics.wiki.ui/src/org/simantics/wiki/ui/editor/IExportable.java +++ b/bundles/org.simantics.wiki.ui/src/org/simantics/wiki/ui/editor/IExportable.java @@ -1,20 +1,26 @@ -/******************************************************************************* - * 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.wiki.ui.editor; - -import com.lowagie.text.Document; -import com.lowagie.text.DocumentException; -import com.lowagie.text.pdf.PdfWriter; - -public interface IExportable { - public void export(Document doc, PdfWriter writer) throws DocumentException; -} +/******************************************************************************* + * 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.wiki.ui.editor; + +import com.lowagie.text.Document; +import com.lowagie.text.DocumentException; +import com.lowagie.text.pdf.PdfWriter; + +public interface IExportable { + /** + * @param doc + * @param writer + * @return the amount of PDF pages exported + * @throws DocumentException + */ + public int export(Document doc, PdfWriter writer) throws DocumentException; +}