/** * Return the border setting for the diagonal from bottom left to top right. * <p> * Null will be returned if there is no border setting for the diagonal from * bottom left to top right. * * @return the border setting */ public Border getDiagonalBlTr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalBlTrAttribute(); String borderWidth = mElement.getStyleDiagonalBlTrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-bl-tr-width while schema use // diagonal-bl-tr-widths borderWidth = mElement.getAttribute("style:diagonal-bl-tr-width"); if (borderAttr == null || borderAttr.length() == 0) return null; border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }
/** * Return the border setting for the diagonal from bottom left to top right. * <p> * Null will be returned if there is no border setting for the diagonal from * bottom left to top right. * * @return the border setting */ public Border getDiagonalBlTr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalBlTrAttribute(); String borderWidth = mElement.getStyleDiagonalBlTrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-bl-tr-width while schema use // diagonal-bl-tr-widths borderWidth = mElement.getAttribute("style:diagonal-bl-tr-width"); if (borderAttr == null || borderAttr.length() == 0) return null; border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }
/** * Return the border setting for the diagonal from bottom left to top right. * <p> * Null will be returned if there is no border setting for the diagonal from * bottom left to top right. * * @return the border setting */ public Border getDiagonalBlTr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalBlTrAttribute(); String borderWidth = mElement.getStyleDiagonalBlTrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-bl-tr-width while schema use // diagonal-bl-tr-widths borderWidth = mElement.getAttribute("style:diagonal-bl-tr-width"); if (borderAttr == null || borderAttr.length() == 0) return null; border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }
/** * Return the border setting for the diagonal from top left to bottom right. * <p> * Null will be returned if there is no border setting for the diagonal from * top left to bottom right. * * @return the border setting */ public Border getDiagonalTlBr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalTlBrAttribute(); String borderWidth = mElement.getStyleDiagonalTlBrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-tl-br-width while schema use // diagonal-tl-br-widths borderWidth = mElement.getAttribute("style:diagonal-tl-br-width"); border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }
/** * Return the border setting for the diagonal from top left to bottom right. * <p> * Null will be returned if there is no border setting for the diagonal from * top left to bottom right. * * @return the border setting */ public Border getDiagonalTlBr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalTlBrAttribute(); String borderWidth = mElement.getStyleDiagonalTlBrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-tl-br-width while schema use // diagonal-tl-br-widths borderWidth = mElement.getAttribute("style:diagonal-tl-br-width"); border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }
/** * Return the border setting for the diagonal from top left to bottom right. * <p> * Null will be returned if there is no border setting for the diagonal from * top left to bottom right. * * @return the border setting */ public Border getDiagonalTlBr() { Border border = new Border(); String borderAttr = mElement.getStyleDiagonalTlBrAttribute(); String borderWidth = mElement.getStyleDiagonalTlBrWidthsAttribute(); if (borderWidth == null) // some ODF version uses diagonal-tl-br-width while schema use // diagonal-tl-br-widths borderWidth = mElement.getAttribute("style:diagonal-tl-br-width"); border.setBorderByDescription(borderAttr); if ((borderWidth != null) && (borderWidth.length() != 0)) { border.setDoubleLineWidthByDescription(borderWidth); } return border; }