Examples of removeAttributeNS()


Examples of org.odftoolkit.odfdom.dom.element.OdfStylableElement.removeAttributeNS()

        node = node.getNextSibling();
      }
      // change the parentNode to default style
      // here we don't know the default style name, so here just
      // remove the text:style-name attribute
      pStyleNode.removeAttributeNS(OdfDocumentNamespace.TEXT.getUri(), "style-name");
    }
  }

  /*
   * Delete the <code>pNode<code> from the <code>fromIndex</code> text, and
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawFrameElement.removeAttributeNS()

      chart.setUseLegend(true);
      chart.setChartData(dataset);
      DrawFrameElement drawFrame = getChartFrame();
      drawFrame.setProperty(StyleGraphicPropertiesElement.OleDrawAspect, "1");
      drawFrame.setPresentationUserTransformedAttribute(true);
      drawFrame.removeAttributeNS(OdfDocumentNamespace.PRESENTATION.getUri(), "placeholder");
      if (rect != null) {
        drawFrame.setSvgXAttribute(new Integer(rect.x).toString());
        drawFrame.setSvgYAttribute(new Integer(rect.y).toString());
        drawFrame.setSvgWidthAttribute(new Integer(rect.width).toString());
        drawFrame.setSvgHeightAttribute(new Integer(rect.height).toString());
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.draw.DrawPageElement.removeAttributeNS()

      Assert.assertEquals(slideEle4.getDrawNameAttribute(), "page5");
      DrawPageElement slideEle8 = (DrawPageElement) slideNodes.item(8);
      slideEle8.setDrawNameAttribute("page5");
      Slide slide7 = doc.getSlideByIndex(7);
      DrawPageElement slideEle7 = (DrawPageElement) slideNodes.item(7);
      slideEle7.removeAttributeNS(OdfDocumentNamespace.DRAW.getUri(), "name");

      Slide slide4 = doc.getSlideByIndex(4);
      Assert.assertTrue(slide4.getSlideName().equals("page5"));
      Slide slide8 = doc.getSlideByIndex(8);
      Assert.assertFalse(slide8.getSlideName().equals("page5"));
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableCoveredTableCellElement.removeAttributeNS()

              .newOdfElement((OdfFileDom) mTableElement.getOwnerDocument(), OdfName.newName(
                  OdfDocumentNamespace.TABLE, "covered-table-cell"));
          if (columnsRepeatedNumber > 1) {
            newCellEle.setTableNumberColumnsRepeatedAttribute(columnsRepeatedNumber);
          } else {
            newCellEle.removeAttributeNS(OdfDocumentNamespace.TABLE.getUri(), "number-columns-repeated");
          }
          aRow.appendChild(newCellEle);
        }

        coveredLength = aCellEle.getTableNumberColumnsSpannedAttribute() - columnsRepeatedNumber;
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableCoveredTableCellElement.removeAttributeNS()

          coveredLength -= newCellEle.getTableNumberColumnsRepeatedAttribute();
        } else {
          TableTableCellElement coveredCell = (TableTableCellElement) refCell.getCoverCell().getOdfElement();
          TableTableCellElement newCellEle = (TableTableCellElement) coveredCell.cloneNode(true);
          cleanCell(newCellEle);
          newCellEle.removeAttributeNS(OdfDocumentNamespace.TABLE.getUri(), "number-rows-spanned");
          aRow.appendChild(newCellEle);
          coveredLength = coveredCell.getTableNumberColumnsSpannedAttribute() - columnsRepeatedNumber;
        }
        i = i + columnsRepeatedNumber;
      }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElement.removeAttributeNS()

            }
            // find the cover cell, now start cell clone.
            if (coverCellEle instanceof TableTableCellElement) {
              TableTableCellElement newCellEle = (TableTableCellElement) (coverCellEle.cloneNode(true));
              cleanCell(newCellEle);
              newCellEle.removeAttributeNS(tableNameSpace, "number-rows-spanned");
              newRow.appendChild(newCellEle);
              // deal with the following covered cell, spread
              // sheet need change these covered cell to cell.
              if (mIsSpreadsheet) {
                // update column repeated number.
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElement.removeAttributeNS()

              // deal with the following covered cell, spread
              // sheet need change these covered cell to cell.
              if (mIsSpreadsheet) {
                // update column repeated number.
                int columnsSpannedNumber = newCellEle.getTableNumberColumnsSpannedAttribute();
                newCellEle.removeAttributeNS(tableNameSpace, "number-columns-spanned");
                int newColumnRepeatedNumber = newCellEle.getTableNumberColumnsRepeatedAttribute()
                    * columnsSpannedNumber;
                if (newColumnRepeatedNumber > 1) {
                  newCellEle.setTableNumberColumnsRepeatedAttribute(newColumnRepeatedNumber);
                } else {
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElement.removeAttributeNS()

                int newColumnRepeatedNumber = newCellEle.getTableNumberColumnsRepeatedAttribute()
                    * columnsSpannedNumber;
                if (newColumnRepeatedNumber > 1) {
                  newCellEle.setTableNumberColumnsRepeatedAttribute(newColumnRepeatedNumber);
                } else {
                  newCellEle.removeAttributeNS(tableNameSpace, "number-columns-repeated");
                }
                // ignore the following covered cell of
                // reference row.
                // added by Daisy because of a bug in demo4
                // cellElement is a covered cell. coverCellEle
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElement.removeAttributeNS()

          i += tableNumberColumnsRepeated * tableNumberColumnsSpanned;
          cellElement = (TableTableCellElementBase) cellElement.getNextSibling();
          if (tableNumberColumnsSpanned > 1) {
            int j = 1;
            if (mIsSpreadsheet) {
              newCellEle.removeAttributeNS(tableNameSpace, "number-columns-spanned");
              int newColumnRepeatedNumber = tableNumberColumnsRepeated * tableNumberColumnsSpanned;
              if (newColumnRepeatedNumber > 1) {
                newCellEle.setTableNumberColumnsRepeatedAttribute(newColumnRepeatedNumber);
              } else {
                newCellEle.removeAttributeNS(tableNameSpace, "number-columns-repeated");
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.table.TableTableCellElement.removeAttributeNS()

              newCellEle.removeAttributeNS(tableNameSpace, "number-columns-spanned");
              int newColumnRepeatedNumber = tableNumberColumnsRepeated * tableNumberColumnsSpanned;
              if (newColumnRepeatedNumber > 1) {
                newCellEle.setTableNumberColumnsRepeatedAttribute(newColumnRepeatedNumber);
              } else {
                newCellEle.removeAttributeNS(tableNameSpace, "number-columns-repeated");
              }
              // cellElement is not a covered cell.
              // below codes will count
              // (newColumnRepeatedNumber-1) covered cell.
              int tempi = newColumnRepeatedNumber;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.