View | Details | Raw Unified | Return to bug 52701
Collapse All | Expand All

(-)src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java (+15 lines)
Lines 36-41 Link Here
36
import org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth;
36
import org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth;
37
import org.openxmlformats.schemas.drawingml.x2006.main.STPenAlignment;
37
import org.openxmlformats.schemas.drawingml.x2006.main.STPenAlignment;
38
import org.openxmlformats.schemas.drawingml.x2006.main.STPresetLineDashVal;
38
import org.openxmlformats.schemas.drawingml.x2006.main.STPresetLineDashVal;
39
import org.openxmlformats.schemas.drawingml.x2006.main.STTextAnchoringType;
39
40
40
/**
41
/**
41
 * Represents a cell of a table in a .pptx presentation
42
 * Represents a cell of a table in a .pptx presentation
Lines 299-302 Link Here
299
    void setVMerge(boolean merge_) {
300
    void setVMerge(boolean merge_) {
300
    	getXmlObject().setVMerge(merge_);
301
    	getXmlObject().setVMerge(merge_);
301
    }
302
    }
303
    
304
    @Override
305
    public void setVerticalAlignment(VerticalAlignment anchor){
306
    	CTTableCellProperties cellProps = getXmlObject().getTcPr();
307
    	if(cellProps != null) {
308
    		if(anchor == null) {
309
    			if(cellProps.isSetAnchor()) {
310
    				cellProps.unsetAnchor();
311
    			}
312
    		} else {
313
				cellProps.setAnchor(STTextAnchoringType.Enum.forInt(anchor.ordinal() + 1));
314
			}
315
    	}
316
    }
302
}
317
}

Return to bug 52701