【问题标题】:Retrieve TextTable from TextTableCursor with LibreOffice 4.1 Writer Basic使用 LibreOffice 4.1 Writer Basic 从 TextTableCursor 中检索 TextTable
【发布时间】:2013-11-16 12:04:20
【问题描述】:

我想编写一个适用于所选表的宏。

表格中的选择

当我选择一个表时,ThisComponent.CurrentSelection 返回的对象是SwXTextTableCursor 类型。我将它统称为TextTableCursor

根据DBG_methods,它提供了遍历选定单元格并合并或拆分单元格的方法,但它似乎没有提供访问实际表格本身的方法。相反,ThisComponent.TextTables 返回表格。

据我所知,无法确定是选择了部分单元格还是选择了整个表格。

问题

有没有办法从 TextTableCursor 中检索 TextTable?

【问题讨论】:

    标签: macros libreoffice word-processor libreoffice-basic


    【解决方案1】:

    要获取当前选定的 TextTable,请使用

    ThisComponent.CurrentController.ViewCursor.TextTable
    

    【讨论】:

      猜你喜欢
      • 2013-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多