#include <ie_Table.h>
IE_Imp_TableHelper::IE_Imp_TableHelper | ( | PD_Document * | pDocument, | |
pf_Frag_Strux * | pfsInsertionPoint, | |||
const char * | style | |||
) |
References UT_GenericVector< T >::clear(), m_pDocument, m_tbody, m_tfoot, m_thead, and UT_DEBUGMSG.
IE_Imp_TableHelper::~IE_Imp_TableHelper | ( | ) |
References UT_GenericVector< T >::getItemCount(), m_tbody, m_tfoot, m_thead, and UT_VECTOR_PURGEALL.
bool IE_Imp_TableHelper::Block | ( | PTStruxType | pts, | |
const PP_PropertyVector & | attributes | |||
) |
References getDoc(), PD_Document::insertStruxBeforeFrag(), m_bBlockInsertedForCell, m_bCaptionOn, m_pfsInsertionPoint, m_pfsTableStart, and PTX_Block.
Referenced by IE_Imp_TableHelperStack::Block(), BlockFormat(), Inline(), InlineFormat(), Object(), and setCaptionOn().
bool IE_Imp_TableHelper::BlockFormat | ( | const PP_PropertyVector & | attributes | ) |
CellHelper * IE_Imp_TableHelper::getCellAtRowCol | ( | UT_GenericVector< CellHelper * > & | vecCells, | |
UT_sint32 | row, | |||
UT_sint32 | col | |||
) | const |
Get a cellHelper at the specified row and column. Return NULL if none found. Optimized to find or not find cells near the end of the specifed vector.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), CellHelper::m_bottom, CellHelper::m_left, CellHelper::m_right, and CellHelper::m_top.
PD_Document* IE_Imp_TableHelper::getDoc | ( | void | ) | const [inline, private] |
Referenced by Block(), BlockFormat(), Inline(), InlineFormat(), Object(), tableStart(), tdEnd(), and tdStart().
pf_Frag_Strux* IE_Imp_TableHelper::getInsertionPoint | ( | ) | const [inline] |
Referenced by IE_Imp_TableHelperStack::push().
bool IE_Imp_TableHelper::Inline | ( | const UT_UCSChar * | ucs4_str, | |
UT_sint32 | length | |||
) |
References Block(), getDoc(), PD_Document::insertSpanBeforeFrag(), m_bBlockInsertedForCell, m_bCaptionOn, m_pfsInsertionPoint, m_pfsTableStart, PTX_Block, and UT_DEBUGMSG.
Referenced by IE_Imp_TableHelperStack::Inline().
bool IE_Imp_TableHelper::InlineFormat | ( | const PP_PropertyVector & | attributes | ) |
References Block(), getDoc(), PD_Document::insertFmtMarkBeforeFrag(), m_bBlockInsertedForCell, m_bCaptionOn, m_pfsInsertionPoint, m_pfsTableStart, and PTX_Block.
Referenced by IE_Imp_TableHelperStack::InlineFormat().
bool IE_Imp_TableHelper::Object | ( | PTObjectType | pto, | |
const PP_PropertyVector & | attributes | |||
) |
References Block(), getDoc(), PD_Document::insertObjectBeforeFrag(), m_bBlockInsertedForCell, m_bCaptionOn, m_pfsInsertionPoint, m_pfsTableStart, and PTX_Block.
Referenced by IE_Imp_TableHelperStack::Object().
void IE_Imp_TableHelper::padAllRowsWithCells | ( | UT_GenericVector< CellHelper * > & | vecCells, | |
UT_sint32 | extra | |||
) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), CellHelper::m_top, and padRowWithCells().
Referenced by trEnd().
void IE_Imp_TableHelper::padRowWithCells | ( | UT_GenericVector< CellHelper * > & | vecCells, | |
UT_sint32 | row, | |||
UT_sint32 | extra | |||
) |
Pad out the supplied row with the requested number of cells at the end of the vector.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_current, CellHelper::m_next, CellHelper::m_pfsCell, m_pfsCellPoint, CellHelper::m_top, CellHelper::m_tzone, m_tzone, and tdStart().
Referenced by padAllRowsWithCells(), and trEnd().
bool IE_Imp_TableHelper::setCaptionOff | ( | void | ) |
References m_bCaptionOn, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by IE_Imp_TableHelperStack::setCaptionOff().
bool IE_Imp_TableHelper::setCaptionOn | ( | void | ) |
References Block(), m_bCaptionOn, PTX_Block, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by IE_Imp_TableHelperStack::setCaptionOn().
bool IE_Imp_TableHelper::tableEnd | ( | ) |
References m_pfsCellPoint, m_pfsInsertionPoint, m_pfsTableEnd, tdPending(), and UT_DEBUGMSG.
Referenced by IE_Imp_TableHelperStack::tableEnd().
bool IE_Imp_TableHelper::tableStart | ( | void | ) |
References PD_Document::appendStrux(), getDoc(), PD_Document::getLastFrag(), PD_Document::getPrevStruxOfType(), PD_Document::insertStruxBeforeFrag(), m_pfsCellPoint, m_pfsInsertionPoint, m_pfsTableEnd, m_pfsTableStart, m_style, PTX_EndTable, PTX_SectionTable, and tbodyStart().
Referenced by IE_Imp_TableHelperStack::tableStart().
bool IE_Imp_TableHelper::tbodyStart | ( | const char * | style = 0 |
) |
References m_col_next, m_row_next, m_rows_body, m_style_tzone, m_tzone, and tdPending().
Referenced by tableStart(), and IE_Imp_TableHelperStack::tbodyStart().
bool IE_Imp_TableHelper::tdEnd | ( | void | ) | const |
Handle tag. In there is no content, write a blank block
References getDoc(), PD_Document::insertStruxBeforeFrag(), m_bBlockInsertedForCell, m_pfsInsertionPoint, and PTX_Block.
Referenced by IE_Imp_TableHelperStack::tdEnd().
bool IE_Imp_TableHelper::tdPending | ( | ) | const [private] |
Referenced by tableEnd(), tbodyStart(), tfootStart(), and theadStart().
bool IE_Imp_TableHelper::tdStart | ( | UT_sint32 | rowspan, | |
UT_sint32 | colspan, | |||
const char * | style, | |||
pf_Frag_Strux * | pfsThis | |||
) |
Handle the
tag. Insert a cell.
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::findItem(), getCellAtRowCol(), getDoc(), UT_GenericVector< T >::getItemCount(), PD_Document::getPrevStruxOfType(), UT_GenericVector< T >::insertItemAt(), PD_Document::insertStruxBeforeFrag(), m_bBlockInsertedForCell, CellHelper::m_bottom, m_col_next, CellHelper::m_colspan, m_current, CellHelper::m_left, CellHelper::m_next, CellHelper::m_pfsCell, m_pfsCellPoint, m_pfsInsertionPoint, CellHelper::m_right, m_row_next, CellHelper::m_rowspan, CellHelper::m_sCellProps, CellHelper::m_style, m_tbody, m_tfoot, m_thead, CellHelper::m_top, m_tzone, CellHelper::m_tzone, PTX_Block, PTX_EndCell, PTX_SectionCell, CellHelper::setProp(), tz_body, tz_foot, tz_head, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by padRowWithCells(), and IE_Imp_TableHelperStack::tdStart().
bool IE_Imp_TableHelper::tfootStart | ( | const char * | style | ) |
References m_col_next, m_row_next, m_rows_foot, m_style_tzone, m_tzone, and tdPending().
Referenced by IE_Imp_TableHelperStack::tfootStart().
bool IE_Imp_TableHelper::theadStart | ( | const char * | style | ) |
References m_col_next, m_row_next, m_rows_head, m_style_tzone, m_tzone, and tdPending().
Referenced by IE_Imp_TableHelperStack::theadStart().
void IE_Imp_TableHelper::trClean | ( | ) | [private] |
bool IE_Imp_TableHelper::trEnd | ( | ) | [private] |
References getCellAtRowCol(), m_col_next, m_cols_max, CellHelper::m_right, m_row_next, m_rows_body, m_rows_body_max, m_rows_foot, m_rows_foot_max, m_rows_head, m_rows_head_max, m_tbody, m_tfoot, m_thead, m_tzone, padAllRowsWithCells(), padRowWithCells(), tz_body, tz_foot, and tz_head.
Referenced by trStart().
bool IE_Imp_TableHelper::trStart | ( | const char * | style | ) |
References m_bCaptionOn, m_current, m_style, trEnd(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by IE_Imp_TableHelperStack::trStart().
bool IE_Imp_TableHelper::m_bBlockInsertedForCell [private] |
Referenced by Block(), BlockFormat(), Inline(), InlineFormat(), Object(), tdEnd(), and tdStart().
bool IE_Imp_TableHelper::m_bCaptionOn [private] |
Referenced by Block(), BlockFormat(), Inline(), InlineFormat(), Object(), setCaptionOff(), setCaptionOn(), and trStart().
UT_sint32 IE_Imp_TableHelper::m_col_next [private] |
Referenced by tbodyStart(), tdStart(), tfootStart(), theadStart(), and trEnd().
UT_sint32 IE_Imp_TableHelper::m_cols [private] |
UT_sint32 IE_Imp_TableHelper::m_cols_max [private] |
Referenced by trEnd().
CellHelper* IE_Imp_TableHelper::m_current [private] |
Referenced by padRowWithCells(), tdStart(), and trStart().
PD_Document* IE_Imp_TableHelper::m_pDocument [private] |
Referenced by IE_Imp_TableHelper().
pf_Frag_Strux* IE_Imp_TableHelper::m_pfsCellPoint [private] |
Referenced by padRowWithCells(), tableEnd(), tableStart(), and tdStart().
Referenced by Block(), BlockFormat(), Inline(), InlineFormat(), Object(), tableEnd(), tableStart(), tdEnd(), and tdStart().
pf_Frag_Strux* IE_Imp_TableHelper::m_pfsTableEnd [private] |
Referenced by tableEnd(), and tableStart().
pf_Frag_Strux* IE_Imp_TableHelper::m_pfsTableStart [private] |
Referenced by Block(), BlockFormat(), Inline(), InlineFormat(), Object(), and tableStart().
UT_sint32 IE_Imp_TableHelper::m_row_next [private] |
Referenced by tbodyStart(), tdStart(), tfootStart(), theadStart(), and trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows [private] |
UT_sint32 IE_Imp_TableHelper::m_rows_body [private] |
Referenced by tbodyStart(), and trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows_body_max [private] |
Referenced by trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows_foot [private] |
Referenced by tfootStart(), and trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows_foot_max [private] |
Referenced by trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows_head [private] |
Referenced by theadStart(), and trEnd().
UT_sint32 IE_Imp_TableHelper::m_rows_head_max [private] |
Referenced by trEnd().
std::string IE_Imp_TableHelper::m_style [private] |
Referenced by tableStart(), and trStart().
std::string IE_Imp_TableHelper::m_style_table [private] |
std::string IE_Imp_TableHelper::m_style_tzone [private] |
Referenced by tbodyStart(), tfootStart(), and theadStart().
UT_GenericVector<CellHelper *> IE_Imp_TableHelper::m_tbody [private] |
Referenced by IE_Imp_TableHelper(), tdStart(), trEnd(), and ~IE_Imp_TableHelper().
UT_GenericVector<CellHelper *> IE_Imp_TableHelper::m_tfoot [private] |
Referenced by IE_Imp_TableHelper(), tdStart(), trEnd(), and ~IE_Imp_TableHelper().
UT_GenericVector<CellHelper *> IE_Imp_TableHelper::m_thead [private] |
Referenced by IE_Imp_TableHelper(), tdStart(), trEnd(), and ~IE_Imp_TableHelper().
TableZone IE_Imp_TableHelper::m_tzone [private] |
Referenced by padRowWithCells(), tbodyStart(), tdStart(), tfootStart(), theadStart(), and trEnd().