LibreOffice Module xmerge (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
org.openoffice.xmerge.merger.merge.SheetMerge Class Reference

This class extends the DocumentMerge class. More...

Inheritance diagram for org.openoffice.xmerge.merger.merge.SheetMerge:
[legend]
Collaboration diagram for org.openoffice.xmerge.merger.merge.SheetMerge:
[legend]

Public Member Functions

 SheetMerge (ConverterCapabilities cc, NodeMergeAlgorithm merge)
 Constructor. More...
 
- Public Member Functions inherited from org.openoffice.xmerge.merger.merge.DocumentMerge
 DocumentMerge (ConverterCapabilities cc, NodeMergeAlgorithm merge)
 Constructor. More...
 
void applyDifference (Iterator orgSeq, Iterator modSeq, Difference[] differences) throws MergeException
 This method is to merge the difference to an Iterator. More...
 
void applyDifference (Iterator orgSeq, Iterator modSeq, Difference[] differences) throws MergeException
 This method is to merge the difference to an Iterator. More...
 

Protected Member Functions

void removeNode (Node node)
 Remove specified Node. More...
 
void removeNode (Node node)
 Removes the specified Node. More...
 

Private Member Functions

void clearRow (Node node)
 Clear the row corresponding to the Node. More...
 

Additional Inherited Members

- Protected Attributes inherited from org.openoffice.xmerge.merger.merge.DocumentMerge
ConverterCapabilities cc_
 The capabilities of this converter. More...
 

Detailed Description

This class extends the DocumentMerge class.

This class will merge two spreadsheet documents.

The main difference between this implementation and DocumentMerge is that this merge will try to maintain unsupported features by examining the cell node objects one by one when it removes a node from the original Iterator.

Definition at line 37 of file SheetMerge.java.

Constructor & Destructor Documentation

◆ SheetMerge()

org.openoffice.xmerge.merger.merge.SheetMerge.SheetMerge ( ConverterCapabilities  cc,
NodeMergeAlgorithm  merge 
)
inline

Constructor.

Parameters
ccThe ConverterCapabilities.
mergeThe NodeMergeAlgorithm.

Definition at line 45 of file SheetMerge.java.

Member Function Documentation

◆ clearRow()

void org.openoffice.xmerge.merger.merge.SheetMerge.clearRow ( Node  node)
inlineprivate

Clear the row corresponding to the Node.

Parameters
nodeNode containing the row to clear.

Definition at line 64 of file SheetMerge.java.

References org.openoffice.xmerge.merger.merge.DocumentMerge.cc_, org.openoffice.xmerge.merger.merge.SheetUtil.emptyCell(), and i.

Referenced by org.openoffice.xmerge.merger.merge.SheetMerge.removeNode().

◆ removeNode()

void org.openoffice.xmerge.merger.merge.SheetMerge.removeNode ( Node  node)
inlineprotected

Remove specified Node.

Parameters
nodeNode to remove.

Reimplemented from org.openoffice.xmerge.merger.merge.DocumentMerge.

Definition at line 55 of file SheetMerge.java.

References org.openoffice.xmerge.merger.merge.SheetMerge.clearRow().


The documentation for this class was generated from the following file: