2016-03-25 34 views
1

我有一个表:Property ='Images'。
我想写一个检查,如果我的ViewCursor存在于这个表中或没有。
您可以使用此代码得到ViewCursor的位置:
openoffice-writer检查表中的查看器

vViewCursor = ThisComponent.getCurrentController().getViewCursor() 

但我不知道如何检查vViewCursor是否在该表:“形象”与否。
有没有人有一个想法如何做到这一点?

我在Openoffice Basic中编写了宏。该表位于OpenOffice Writer中。

回答

1

检查光标的TextTable属性。例如:

If Not IsEmpty(oVC.TextTable) Then tableName = oVC.TextTable.getName() 

参见Andrew Pitonyak's macro document的列表8.3。

+0

谢谢,它的工作! – 476rick