/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ 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.
Create a DocumentMerger
object given a
* Document
object.
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);
}