Class TableManager
java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.TableManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider) voidcopyRow(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XController xController, int row) voiddeleteRow(int row) com.sun.star.text.XTextfindFirstEntryInRow(Pattern pattern, int row) intgetCellNamesForTheRow(int row) static com.sun.star.text.XTextTablegetTableByName(com.sun.star.lang.XComponent xComponent, String tableName) getTablesNames(com.sun.star.lang.XComponent xComponent) com.sun.star.table.XCellgetXCell(int col, int row) com.sun.star.text.XTextTablevoidinsertEmptyRow(int indexAfter) voidpaste(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider) voidselectRow(com.sun.star.frame.XController xController, int row)
-
Field Details
-
xTextTable
protected com.sun.star.text.XTextTable xTextTable -
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.NoSuchElementExceptioncom.sun.star.lang.WrappedTargetException
-
-
Method Details
-
getXTextTable
public com.sun.star.text.XTextTable getXTextTable() -
getTableName
-
getTablesNames
-
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.NoSuchElementExceptioncom.sun.star.lang.WrappedTargetException
-
findRowWithAliases
public int findRowWithAliases() -
findFirstEntryInRow
-
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
- 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)
-