How to get Table's keyValuePairs?
I have an observer that observes tables. I manage to get ITableSuite interface when a user selects table-cell.
InterfacePtr<ITableSuite> tableSuite(fCurrentSelection, UseDefaultIID());
I generate IDML myself and I've attached custom KeyValuePairs (script labels) for a table element as below:
<Table Self="table17250" HeaderRowCount="0" FooterRowCount="0" BodyRowCount="3" ColumnCount="13" AppliedTableStyle="TableStyle/Datatable" TableDirection="LeftToRightDirection">
<Properties>
<Label>
<KeyValuePair Key="tabletype" Value="BT_PA_WA_6_16A" />
<KeyValuePair Key="pg" Value="17250" />
<KeyValuePair Key="pg2" Value="" />
</Label>
</Properties>
...
How can I get an access to those KeyValuePairs from the observer?
I know I need to get IScript interface somehow but from where and how?
Thx!