#include <IXMLTableParsingContext.h>
|
| enum | { kDefaultIID = IID_IXMLTABLEPARSINGCONTEXT } |
| |
Interface for tracking table specific parsing context information when importing XML content.
This interface is an addin to the kXMLParserLocatorBoss.
| virtual RowRange IXMLTableParsingContext::GetFooterRows | ( | | ) | const |
| pure virtual |
Returns the number of footer rows that we have parsed so far.
| virtual RowRange IXMLTableParsingContext::GetHeaderRows | ( | | ) | const |
| pure virtual |
Returns the range of header rows that we have parsed so far.
| virtual TextIndex IXMLTableParsingContext::GetInsertPos | ( | | ) | const |
| pure virtual |
Returns the insertion position that was current before any table parsing occurred.
| virtual GridCoord IXMLTableParsingContext::GetMaxNumOfCols | ( | | ) | const |
| pure virtual |
Returns the maximum number of columns that have been added to any row.
| virtual GridCoord IXMLTableParsingContext::GetNumOfCols | ( | | ) | const |
| pure virtual |
Returns the number of columns that we have parsed so far.
| virtual UIDRef IXMLTableParsingContext::GetTableRef | ( | | ) | const |
| pure virtual |
Returns the newly created table
| virtual RowRange IXMLTableParsingContext::GetTotalRows | ( | | ) | const |
| pure virtual |
Returns the range of total rows that we have parsed so far.
| virtual bool16 IXMLTableParsingContext::InBody | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between tbody tags.
| virtual bool16 IXMLTableParsingContext::InCell | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between column tags.
| virtual bool16 IXMLTableParsingContext::InFooter | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between tfoot tags.
| virtual bool16 IXMLTableParsingContext::InHeader | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between thead tags.
| virtual bool16 IXMLTableParsingContext::InRow | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between row tags.
| virtual bool16 IXMLTableParsingContext::InTable | ( | | ) | const |
| pure virtual |
Returns kTrue if we are between table tags.
| virtual bool16 IXMLTableParsingContext::InTableCell | ( | | ) | const |
| pure virtual |
Returns kTrue if InTable, InRow, and InCell are true. This is a more strigent test of table location.
| virtual void IXMLTableParsingContext::Reset | ( | | ) | |
| pure virtual |
Reset the table context to its intial state.
Specify the context information by copying another context.
- Parameters
| tableContext | The table context to be copied. |
| virtual void IXMLTableParsingContext::SetFooterRows | ( | int32 | start, | | | int32 | count | | ) | | |
| pure virtual |
Set the number of footer rows that have been parsed.
- Parameters
| start | The starting row number (zero based) |
| count | The count of rows from the start |
| virtual void IXMLTableParsingContext::SetHeaderRows | ( | int32 | start, | | | int32 | count | | ) | | |
| pure virtual |
Set the number of header rows that have been parsed.
- Parameters
| start | The starting row number (zero based) |
| count | The count of rows from the start |
| virtual void IXMLTableParsingContext::SetInBody | ( | bool16 | inBody | ) | |
| pure virtual |
Specify whether we are between tbody tags or not.
- Parameters
| inBody | kTrue if we are between tbody tags. |
| virtual void IXMLTableParsingContext::SetInCell | ( | bool16 | inCell | ) | |
| pure virtual |
Specify whether we are between column tags or not.
- Parameters
| inCell | kTrue if we are between column tags. |
| virtual void IXMLTableParsingContext::SetInFooter | ( | bool16 | inFooter | ) | |
| pure virtual |
Specify whether we are between tfoot tags or not.
- Parameters
| inFooter | kTrue if we are between tfoot tags. |
| virtual void IXMLTableParsingContext::SetInHeader | ( | bool16 | inHeader | ) | |
| pure virtual |
Specify whether we are between thead tags or not.
- Parameters
| inHeader | kTrue if we are between thead tags. |
| virtual void IXMLTableParsingContext::SetInRow | ( | bool16 | inRow | ) | |
| pure virtual |
Specify whether we are between row tags or not.
- Parameters
| inRow | kTrue if we are between row tags. |
| virtual void IXMLTableParsingContext::SetInsertPos | ( | TextIndex | insertPos | ) | |
| pure virtual |
Specify the insertion position at the beginning of table parsing.
- Parameters
| insertPos | The insertion position. |
| virtual void IXMLTableParsingContext::SetInTable | ( | bool16 | inTable | ) | |
| pure virtual |
Specify whether we are between table tags or not.
- Parameters
| inTable | kTrue if we are between table tags. |
| virtual void IXMLTableParsingContext::SetMaxNumOfCols | ( | GridCoord | maxNumOfCols | ) | |
| pure virtual |
Set the maximum number of columns that have been added to any row in the table.
- Parameters
| maxNumOfCols | The maximum number of columns. |
| virtual void IXMLTableParsingContext::SetNumOfCols | ( | GridCoord | numOfCols | ) | |
| pure virtual |
Set the number of columns that have been parsed.
- Parameters
| numOfCols | The number of columns that have been parsed. |
| virtual void IXMLTableParsingContext::SetTableRef | ( | const UIDRef & | tableRef | ) | |
| pure virtual |
Set the reference to the newly created table.
- Parameters
| tableRef | A reference to a table object. |
| virtual void IXMLTableParsingContext::SetTotalRows | ( | int32 | start, | | | int32 | count | | ) | | |
| pure virtual |
Set the number of total rows that have been parsed.
- Parameters
| start | The starting row number (zero based) |
| count | The count of rows from the start |