Class TableManager
java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.TableManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider) void
copyRow
(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XController xController, int row) void
deleteRow
(int row) com.sun.star.text.XText
findFirstEntryInRow
(Pattern pattern, int row) int
getCellNamesForTheRow
(int row) static com.sun.star.text.XTextTable
getTableByName
(com.sun.star.lang.XComponent xComponent, String tableName) getTablesNames
(com.sun.star.lang.XComponent xComponent) com.sun.star.table.XCell
getXCell
(int col, int row) com.sun.star.text.XTextTable
void
insertEmptyRow
(int indexAfter) void
paste
(com.sun.star.frame.XDispatchHelper xDispatchHelper, com.sun.star.frame.XDispatchProvider xDispatchProvider) void
selectRow
(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.NoSuchElementException
com.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.NoSuchElementException
com.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)
-