示例#1
0
 public void setColumnAttributes(CTCol fromCol, CTCol toCol) {
   if (fromCol.isSetBestFit()) toCol.setBestFit(fromCol.getBestFit());
   if (fromCol.isSetCustomWidth()) toCol.setCustomWidth(fromCol.getCustomWidth());
   if (fromCol.isSetHidden()) toCol.setHidden(fromCol.getHidden());
   if (fromCol.isSetStyle()) toCol.setStyle(fromCol.getStyle());
   if (fromCol.isSetWidth()) toCol.setWidth(fromCol.getWidth());
   if (fromCol.isSetCollapsed()) toCol.setCollapsed(fromCol.getCollapsed());
   if (fromCol.isSetPhonetic()) toCol.setPhonetic(fromCol.getPhonetic());
   if (fromCol.isSetOutlineLevel()) toCol.setOutlineLevel(fromCol.getOutlineLevel());
   toCol.setCollapsed(fromCol.isSetCollapsed());
 }
示例#2
0
 public void setColBestFit(long index, boolean bestFit) {
   CTCol col = getOrCreateColumn1Based(index + 1, false);
   col.setBestFit(bestFit);
 }