/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DocumentMergerFactory.java,v $ * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ package org.openoffice.xmerge; /** *

All plug-in implementations of the PluginFactory * interface that also support merging must also implement * this interface.

* *

Merge is useful when an OfficeDocument * is converted to a "Device" Document format, * and the "Device" Document version is modified. * Those changes can be merged back into the original * OfficeDocument with the merger. The merger is capable * of doing this even if the "Device" format is lossy in * comparison to the OfficeDocument format.

* * @see PluginFactory * @see DocumentMerger * @see ConverterCapabilities * */ public interface DocumentMergerFactory { /** *

Create a DocumentMerger object given a * Document object.

* * @param doc Document object that the created * DocumentMerger object uses as a base * Document for merging changes into. * * @return A DocumentMerger object or null if none * exists. */ public DocumentMerger createDocumentMerger(Document doc); }