X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.editors.win32%2Fsrc%2Forg%2Fsimantics%2Feditors%2Fwin32%2Fole%2FWordDefinition.java;h=282febc9217a4b93a5ba393b2215740351fbc470;hp=28edef9e4de512b60fd331ef5634b951f1b4cd06;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/WordDefinition.java b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/WordDefinition.java index 28edef9e4..282febc92 100644 --- a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/WordDefinition.java +++ b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/WordDefinition.java @@ -1,50 +1,50 @@ -/******************************************************************************* - * 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.editors.win32.ole; - -import org.eclipse.swt.ole.win32.OleAutomation; -import org.eclipse.swt.ole.win32.OleClientSite; -import org.eclipse.swt.ole.win32.OleFrame; - -/** - * Word documents - * - * @author Marko Luukkainen - * - */ -public class WordDefinition implements EditorDefinition{ - - @Override - public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) { - return null; - } - - @Override - public String getProgID() { - return null; //"Word.Document" - } - - @Override - public boolean supportSuffix(String suffix) { - return suffix.equals("doc") || suffix.equals("docx"); - } - - @Override - public boolean useBrowser() { - return false; - } - - @Override - public boolean useFileInput() { - return true; - } -} +/******************************************************************************* + * 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.editors.win32.ole; + +import org.eclipse.swt.ole.win32.OleAutomation; +import org.eclipse.swt.ole.win32.OleClientSite; +import org.eclipse.swt.ole.win32.OleFrame; + +/** + * Word documents + * + * @author Marko Luukkainen + * + */ +public class WordDefinition implements EditorDefinition{ + + @Override + public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) { + return null; + } + + @Override + public String getProgID() { + return null; //"Word.Document" + } + + @Override + public boolean supportSuffix(String suffix) { + return suffix.equals("doc") || suffix.equals("docx"); + } + + @Override + public boolean useBrowser() { + return false; + } + + @Override + public boolean useFileInput() { + return true; + } +}