s_LaTeX_Listener::s_LaTeX_Listener | ( | PD_Document * | pDocument, | |
IE_Exp_LaTeX * | pie, | |||
const LaTeX_Analysis_Listener & | analysis | |||
) |
References _outputBabelPackage(), ChapterNumber, gchar, XAP_EncodingManager::get_instance(), fp_PageSize::getPredefinedName(), PD_Style::getProperty(), PD_Document::getStyle(), XAP_EncodingManager::getTexPrologue(), int(), fp_PageSize::isPortrait(), m_bHaveEndnote, m_DefaultFontSize, PD_Document::m_docPageSize, LaTeX_Analysis_Listener::m_hasMultiRow, LaTeX_Analysis_Listener::m_hasTable, m_pie, m_pqRect, m_pTableHelper, fp_PageSize::NameToPredefined(), fp_PageSize::psA4, fp_PageSize::psA5, fp_PageSize::psB5, fp_PageSize::psLegal, fp_PageSize::psLetter, UT_convertToPoints(), and IE_Exp::write().
s_LaTeX_Listener::~s_LaTeX_Listener | ( | ) | [virtual] |
References _closeSection(), _handleDataItems(), DELETEP, m_bHaveEndnote, m_pie, m_pqRect, m_pTableHelper, and IE_Exp::write().
void s_LaTeX_Listener::_closeBlock | ( | void | ) | [protected] |
References _closeSpan(), BT_BLOCKTEXT, BT_HEADING1, BT_HEADING2, BT_HEADING3, BT_NORMAL, BT_PLAINTEXT, CENTER, JUSTIFIED, LEFT, m_bInBlock, m_bInCell, m_bInEndnote, m_bInFootnote, m_bLineHeight, m_eJustification, m_iBlockType, m_pie, RIGHT, and IE_Exp::write().
Referenced by _closeSection(), and populateStrux().
void s_LaTeX_Listener::_closeCell | ( | void | ) | [protected] |
References ie_Table::closeCell(), m_bInCell, m_CellBot, m_CellLeft, m_CellRight, m_CellTop, m_ExpectedLeft, m_pie, m_pTableHelper, m_TableWidth, and IE_Exp::write().
Referenced by populateStrux().
void s_LaTeX_Listener::_closeList | ( | void | ) | [protected] |
References BULLETED_LIST, list_stack, list_type, m_pie, NUMBERED_LIST, and IE_Exp::write().
Referenced by _closeLists(), and _openParagraph().
void s_LaTeX_Listener::_closeLists | ( | void | ) | [protected] |
References _closeList(), list_stack, and m_bInList.
Referenced by _closeSection(), and _openParagraph().
void s_LaTeX_Listener::_closeParagraph | ( | void | ) | [protected] |
References m_bInCell, m_bInEndnote, m_bInFootnote, m_bInHeading, m_pie, and IE_Exp::write().
Referenced by populateStrux().
void s_LaTeX_Listener::_closeSection | ( | void | ) | [protected] |
References _closeBlock(), _closeLists(), m_bInList, m_bInSection, m_bMultiCols, m_pie, and IE_Exp::write().
Referenced by populateStrux(), and ~s_LaTeX_Listener().
void s_LaTeX_Listener::_closeSpan | ( | void | ) | [protected] |
References m_bInScript, m_bInSpan, m_bInSymbol, m_bOverline, m_NumCloseBrackets, m_pAP_Span, m_pie, and IE_Exp::write().
Referenced by _closeBlock(), and populate().
void s_LaTeX_Listener::_closeTable | ( | void | ) | [protected] |
References m_pie, m_pqRect, and IE_Exp::write().
Referenced by populateStrux().
void s_LaTeX_Listener::_convertColor | ( | UT_String & | szDest, | |
const char * | pszColor | |||
) | [protected] |
References UT_String_sprintf().
Referenced by _openSpan().
void s_LaTeX_Listener::_convertFontSize | ( | UT_String & | szDest, | |
const char * | pszFontSize | |||
) | [protected] |
References m_bInScript, m_DefaultFontSize, and UT_convertToPoints().
Referenced by _openSpan().
void s_LaTeX_Listener::_handleDataItems | ( | void | ) | [protected] |
Referenced by ~s_LaTeX_Listener().
void s_LaTeX_Listener::_handleImage | ( | const PP_AttrProp * | pAP | ) | [protected] |
void s_LaTeX_Listener::_openCell | ( | PT_AttrPropIndex | api | ) | [protected] |
References ie_Table::getBot(), ie_Table::getLeft(), ie_Table::getRight(), ie_Table::getTop(), UT_Rect::height, ie_Table::isNewRow(), UT_Rect::left, m_bInCell, m_CellBot, m_CellLeft, m_CellRight, m_CellTop, m_ExpectedLeft, m_index, m_pie, m_pqRect, m_pTableHelper, m_RowNuminTable, m_TableWidth, ie_Table::openCell(), size, UT_Rect::top, UT_String_sprintf(), UT_Rect::width, IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by populateStrux().
void s_LaTeX_Listener::_openParagraph | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeList(), _closeLists(), BT_NORMAL, BULLETED_LIST, ChapterNumber, DIM_MM, gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PP_AttrProp::getProperty(), list_stack, list_type, m_bInBlock, m_bInFootnote, m_bInHeading, m_bInList, m_bInSection, m_bLineHeight, m_eJustification, m_iBlockType, m_Indent, m_pDocument, m_pie, NOT_A_LIST, NUMBERED_LIST, PT_LISTID_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, UT_convertToDimension(), IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by populateStrux().
void s_LaTeX_Listener::_openSection | ( | PT_AttrPropIndex | api | ) | [protected] |
References gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bBetweenQuotes, m_bInFootnote, m_bInList, m_bMultiCols, m_pDocument, m_pie, and IE_Exp::write().
Referenced by populateStrux().
void s_LaTeX_Listener::_openSpan | ( | PT_AttrPropIndex | api | ) | [protected] |
References _convertColor(), _convertFontSize(), gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_bInBlock, m_bInHeading, m_bInScript, m_bInSpan, m_bInSymbol, m_bOverline, m_DefaultFontSize, m_NumCloseBrackets, m_pAP_Span, m_pDocument, m_pie, UT_convertToPoints(), UT_DEBUGMSG, UT_return_if_fail, and IE_Exp::write().
Referenced by populate().
void s_LaTeX_Listener::_openTable | ( | PT_AttrPropIndex | api | ) | [protected] |
References ie_Table::getNumCols(), m_ExpectedLeft, m_index, m_pie, m_pTableHelper, m_RowNuminTable, and IE_Exp::write().
Referenced by populateStrux().
void s_LaTeX_Listener::_outputBabelPackage | ( | void | ) | [protected] |
References gchar, PD_Document::getAttrProp(), UT_Language::getIndxFromCode(), UT_Language::getNthLangCode(), m_pDocument, m_pie, and IE_Exp::write().
Referenced by s_LaTeX_Listener().
void s_LaTeX_Listener::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length | |||
) | [protected] |
References _convertLettersToSymbols(), UT_String::c_str(), m_bBetweenQuotes, m_bInBlock, m_bInScript, m_bInSymbol, m_pie, m_wctomb, UT_String::reserve(), UT_String::size(), UCS_FF, UCS_LF, UCS_VTAB, UT_ASSERT, UT_Wctomb::wctomb(), IE_Exp::write(), and wvConvertUnicodeToLaTeX().
Referenced by populate().
bool s_LaTeX_Listener::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT.
virtual bool s_LaTeX_Listener::insertStrux | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) | [virtual] |
Implements PL_Listener.
bool s_LaTeX_Listener::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References _closeSpan(), _handleImage(), _openSpan(), _outputData(), UT_UTF8String::appendBuf(), convertMathMLtoLaTeX(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord_Span::getBufIndex(), PD_Document::getDataItemDataByName(), PX_ChangeRecord_Object::getField(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord_Object::getObjectType(), PD_Document::getPointer(), PX_ChangeRecord::getType(), fd_Field::getValue(), m_bInHeading, m_pDocument, m_pie, PTO_Bookmark, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_UTF8String::utf8_str(), and IE_Exp::write().
bool s_LaTeX_Listener::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _closeBlock(), _closeCell(), _closeParagraph(), _closeSection(), _closeTable(), _openCell(), _openParagraph(), _openSection(), _openTable(), ie_Table::closeTable(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord::getIndexAP(), ie_Table::getNumCols(), PX_ChangeRecord::getType(), m_bInEndnote, m_bInFootnote, m_bInSection, m_pDocument, m_pie, m_pTableHelper, m_TableWidth, ie_Table::openTable(), PTX_Block, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT, UT_TODO, and IE_Exp::write().
bool s_LaTeX_Listener::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
int s_LaTeX_Listener::ChapterNumber [protected] |
Referenced by _openParagraph(), and s_LaTeX_Listener().
std::stack<FL_ListType> s_LaTeX_Listener::list_stack [protected] |
Referenced by _closeList(), _closeLists(), and _openParagraph().
FL_ListType s_LaTeX_Listener::list_type [protected] |
Referenced by _closeList(), and _openParagraph().
bool s_LaTeX_Listener::m_bBetweenQuotes [protected] |
Referenced by _openSection(), and _outputData().
bool s_LaTeX_Listener::m_bHaveEndnote [protected] |
Referenced by s_LaTeX_Listener(), and ~s_LaTeX_Listener().
bool s_LaTeX_Listener::m_bInBlock [protected] |
Referenced by _closeBlock(), _openParagraph(), _openSpan(), and _outputData().
bool s_LaTeX_Listener::m_bInCell [protected] |
Referenced by _closeBlock(), _closeCell(), _closeParagraph(), and _openCell().
bool s_LaTeX_Listener::m_bInEndnote [protected] |
Referenced by _closeBlock(), _closeParagraph(), and populateStrux().
bool s_LaTeX_Listener::m_bInFootnote [protected] |
Referenced by _closeBlock(), _closeParagraph(), _openParagraph(), _openSection(), and populateStrux().
bool s_LaTeX_Listener::m_bInHeading [protected] |
Referenced by _closeParagraph(), _openParagraph(), _openSpan(), and populate().
bool s_LaTeX_Listener::m_bInList [protected] |
Referenced by _closeLists(), _closeSection(), _openParagraph(), and _openSection().
bool s_LaTeX_Listener::m_bInScript [protected] |
Referenced by _closeSpan(), _convertFontSize(), _openSpan(), and _outputData().
bool s_LaTeX_Listener::m_bInSection [protected] |
Referenced by _closeSection(), _openParagraph(), and populateStrux().
bool s_LaTeX_Listener::m_bInSpan [protected] |
Referenced by _closeSpan(), and _openSpan().
bool s_LaTeX_Listener::m_bInSymbol [protected] |
Referenced by _closeSpan(), _openSpan(), and _outputData().
bool s_LaTeX_Listener::m_bLineHeight [protected] |
Referenced by _closeBlock(), and _openParagraph().
bool s_LaTeX_Listener::m_bMultiCols [protected] |
Referenced by _closeSection(), and _openSection().
bool s_LaTeX_Listener::m_bOverline [protected] |
Referenced by _closeSpan(), and _openSpan().
int s_LaTeX_Listener::m_CellBot [protected] |
Referenced by _closeCell(), and _openCell().
int s_LaTeX_Listener::m_CellLeft [protected] |
Referenced by _closeCell(), and _openCell().
int s_LaTeX_Listener::m_CellRight [protected] |
Referenced by _closeCell(), and _openCell().
int s_LaTeX_Listener::m_CellTop [protected] |
Referenced by _closeCell(), and _openCell().
int s_LaTeX_Listener::m_DefaultFontSize [protected] |
Referenced by _convertFontSize(), _openSpan(), and s_LaTeX_Listener().
JustificationTypes s_LaTeX_Listener::m_eJustification [protected] |
Referenced by _closeBlock(), and _openParagraph().
int s_LaTeX_Listener::m_ExpectedLeft [protected] |
Referenced by _closeCell(), _openCell(), and _openTable().
UT_uint16 s_LaTeX_Listener::m_iBlockType [protected] |
Referenced by _closeBlock(), and _openParagraph().
int s_LaTeX_Listener::m_Indent [protected] |
Referenced by _openParagraph().
unsigned int s_LaTeX_Listener::m_index [protected] |
Referenced by _openCell(), and _openTable().
int s_LaTeX_Listener::m_NumCloseBrackets [protected] |
Referenced by _closeSpan(), and _openSpan().
const PP_AttrProp* s_LaTeX_Listener::m_pAP_Span [protected] |
Referenced by _closeSpan(), and _openSpan().
PD_Document* s_LaTeX_Listener::m_pDocument [protected] |
Referenced by _handleImage(), _openParagraph(), _openSection(), _openSpan(), _outputBabelPackage(), populate(), and populateStrux().
IE_Exp_LaTeX* s_LaTeX_Listener::m_pie [protected] |
Referenced by _closeBlock(), _closeCell(), _closeList(), _closeParagraph(), _closeSection(), _closeSpan(), _closeTable(), _handleImage(), _openCell(), _openParagraph(), _openSection(), _openSpan(), _openTable(), _outputBabelPackage(), _outputData(), populate(), populateStrux(), s_LaTeX_Listener(), and ~s_LaTeX_Listener().
std::deque<UT_Rect*>* s_LaTeX_Listener::m_pqRect [protected] |
Referenced by _closeTable(), _openCell(), s_LaTeX_Listener(), and ~s_LaTeX_Listener().
ie_Table* s_LaTeX_Listener::m_pTableHelper [protected] |
Referenced by _closeCell(), _openCell(), _openTable(), populateStrux(), s_LaTeX_Listener(), and ~s_LaTeX_Listener().
int s_LaTeX_Listener::m_RowNuminTable [protected] |
Referenced by _openCell(), and _openTable().
int s_LaTeX_Listener::m_TableWidth [protected] |
Referenced by _closeCell(), _openCell(), and populateStrux().
UT_Wctomb s_LaTeX_Listener::m_wctomb [protected] |
Referenced by _outputData().