Class TableManager

java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.TableManager

public class TableManager extends Object
  • Field Details

    • xTextTable

      protected com.sun.star.text.XTextTable xTextTable
    • tableName

      protected String tableName
  • Constructor Details

    • TableManager

      public TableManager(com.sun.star.lang.XComponent xComponent, String tableName) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException
      Throws:
      com.sun.star.container.NoSuchElementException
      com.sun.star.lang.WrappedTargetException
  • Method Details

    • getXTextTable

      public com.sun.star.text.XTextTable getXTextTable()
    • getTableName

      public String getTableName()
    • getTablesNames

      public static List<String> getTablesNames(com.sun.star.lang.XComponent xComponent)
    • getTableByName

      public static com.sun.star.text.XTextTable getTableByName(com.sun.star.lang.XComponent xComponent, String tableName) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException
      Throws:
      com.sun.star.container.NoSuchElementException
      com.sun.star.lang.WrappedTargetException
    • findRowWithAliases

      public int findRowWithAliases()
    • findFirstEntryInRow

      public com.sun.star.text.XText findFirstEntryInRow(Pattern pattern, int row)
    • getXCell

      public com.sun.star.table.XCell getXCell(int col, int row) throws com.sun.star.lang.IndexOutOfBoundsException
      Throws:
      com.sun.star.lang.IndexOutOfBoundsException
    • selectRow

      public void selectRow(com.sun.star.frame.XController xController, int row) throws com.sun.star.uno.Exception
      Throws:
      com.sun.star.uno.Exception
    • getCellNamesForTheRow

      public List<String> getCellNamesForTheRow(int row)
      Parameters:
      row - - row order number [0..n]
      Returns:
      list of cell names for the row
    • deleteRow

      public void deleteRow(int row)
    • insertEmptyRow

      public void insertEmptyRow(int indexAfter)
    • copyRow

      public void copyRow(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XController xController, int row) throws com.sun.star.uno.Exception
      Throws:
      com.sun.star.uno.Exception
    • copy

      public void copy(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider)
    • paste

      public void paste(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider)