LibreOffice Module writerfilter (master) 1
|
Class to handle events generated by TableManager::resolveCurrentTable(). More...
#include <DomainMapperTableHandler.hxx>
Public Types | |
typedef tools::SvRef< DomainMapperTableHandler > | Pointer_t |
Public Member Functions | |
DomainMapperTableHandler (css::uno::Reference< css::text::XTextAppendAndConvert > xText, DomainMapper_Impl &rDMapper_Impl) | |
~DomainMapperTableHandler () override | |
void | startTable (const TablePropertyMapPtr &pProps) |
Handle start of table. More... | |
void | ApplyParagraphPropertiesFromTableStyle (TableParagraph rParaProp, std::vector< PropertyIds > aAllTableProperties, const css::beans::PropertyValues rCellProperties) |
void | endTable (unsigned int nestedTableLevel, bool bTableStartsAtCellStart) |
Handle end of table. More... | |
void | startRow (const TablePropertyMapPtr &pProps) |
Handle start of row. More... | |
void | endRow () |
Handle end of row. More... | |
void | startCell (const css::uno::Reference< css::text::XTextRange > &start, const TablePropertyMapPtr &pProps) |
Handle start of cell. More... | |
void | endCell (const css::uno::Reference< css::text::XTextRange > &end) |
Handle end of cell. More... | |
void | setHadFootOrEndnote (bool bHadFootOrEndnote) |
DomainMapper_Impl & | getDomainMapperImpl () |
![]() | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Private Member Functions | |
TableStyleSheetEntry * | endTableGetTableStyle (TableInfo &rInfo, std::vector< css::beans::PropertyValue > &rFrameProperties, bool bConvertToFloating) |
CellPropertyValuesSeq_t | endTableGetCellProperties (TableInfo &rInfo, std::vector< HorizontallyMergedCell > &rMerges) |
css::uno::Sequence< css::beans::PropertyValues > | endTableGetRowProperties () |
Private Attributes | |
css::uno::Reference< css::text::XTextAppendAndConvert > | m_xText |
DomainMapper_Impl & | m_rDMapper_Impl |
std::vector< css::uno::Reference< css::text::XTextRange > > | m_aCellRange |
std::vector< CellSequence_t > | m_aRowRanges |
std::vector< RowSequence_t > | m_aTableRanges |
PropertyMapVector2 | m_aCellProperties |
PropertyMapVector1 | m_aRowProperties |
TablePropertyMapPtr | m_aTableProperties |
bool | m_bHadFootOrEndnote |
Did we have a foot or endnote in this table? More... | |
Additional Inherited Members | |
![]() | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Class to handle events generated by TableManager::resolveCurrentTable().
Definition at line 57 of file DomainMapperTableHandler.hxx.
typedef tools::SvRef<DomainMapperTableHandler> writerfilter::dmapper::DomainMapperTableHandler::Pointer_t |
Definition at line 80 of file DomainMapperTableHandler.hxx.
writerfilter::dmapper::DomainMapperTableHandler::DomainMapperTableHandler | ( | css::uno::Reference< css::text::XTextAppendAndConvert > | xText, |
DomainMapper_Impl & | rDMapper_Impl | ||
) |
Definition at line 87 of file DomainMapperTableHandler.cxx.
|
override |
Definition at line 96 of file DomainMapperTableHandler.cxx.
void writerfilter::dmapper::DomainMapperTableHandler::ApplyParagraphPropertiesFromTableStyle | ( | TableParagraph | rParaProp, |
std::vector< PropertyIds > | aAllTableProperties, | ||
const css::beans::PropertyValues | rCellProperties | ||
) |
Definition at line 1081 of file DomainMapperTableHandler.cxx.
References comphelper::containerToSequence(), writerfilter::dmapper::DomainMapper_Impl::GetDefaultParaStyleName(), writerfilter::dmapper::DomainMapper_Impl::GetPropertyFromStyleSheet(), writerfilter::dmapper::getPropertyName(), writerfilter::dmapper::DomainMapper_Impl::GetSettingsTable(), writerfilter::dmapper::DomainMapper_Impl::GetStyleSheetTable(), uno::Any::hasValue(), writerfilter::dmapper::isAbsent(), writerfilter::dmapper::isCharacterProperty(), writerfilter::dmapper::TableParagraph::m_pPropertyMap, m_rDMapper_Impl, writerfilter::dmapper::TableParagraph::m_rEndParagraph, writerfilter::dmapper::TableParagraph::m_rPropertySet, comphelper::makePropertyValue(), writerfilter::dmapper::PROP_CHAR_HEIGHT, writerfilter::dmapper::PROP_FILL_COLOR, writerfilter::dmapper::PROP_NUMBERING_RULES, writerfilter::dmapper::PROP_PARA_ADJUST, writerfilter::dmapper::PROP_PARA_FIRST_LINE_INDENT, writerfilter::dmapper::PROP_PARA_LEFT_MARGIN, props, TOOLS_INFO_EXCEPTION, and u.
Referenced by endTable().
void writerfilter::dmapper::DomainMapperTableHandler::endCell | ( | const css::uno::Reference< css::text::XTextRange > & | end | ) |
Handle end of cell.
rT | end handle of cell |
Definition at line 1739 of file DomainMapperTableHandler.cxx.
References writerfilter::TagLogger::chars(), comphelper::containerToSequence(), end, writerfilter::TagLogger::endElement(), writerfilter::TagLogger::getInstance(), m_aCellRange, m_aRowRanges, writerfilter::TagLogger::startElement(), and writerfilter::dmapper::XTextRangeToString().
void writerfilter::dmapper::DomainMapperTableHandler::endRow | ( | ) |
Handle end of row.
Definition at line 1700 of file DomainMapperTableHandler.cxx.
References comphelper::containerToSequence(), writerfilter::TagLogger::endElement(), writerfilter::TagLogger::getInstance(), m_aRowRanges, and m_aTableRanges.
void writerfilter::dmapper::DomainMapperTableHandler::endTable | ( | unsigned int | nestedTableLevel, |
bool | bTableStartsAtCellStart | ||
) |
Handle end of table.
Definition at line 1363 of file DomainMapperTableHandler.cxx.
References writerfilter::dmapper::AfterConvertToTextFrame(), ApplyParagraphPropertiesFromTableStyle(), writerfilter::dmapper::BeforeConvertToTextFrame(), writerfilter::TagLogger::chars(), tools::SvRef< typename T >::clear(), CNF_ALL, comphelper::containerToSequence(), writerfilter::TagLogger::endElement(), endTableGetCellProperties(), endTableGetRowProperties(), endTableGetTableStyle(), writerfilter::dmapper::DomainMapper_Impl::fillEmptyFrameProperties(), writerfilter::dmapper::FRAME, writerfilter::dmapper::DomainMapperTableManager::getCurrentParagraphs(), writerfilter::dmapper::DomainMapperTableManager::getCurrentTablePosition(), writerfilter::TagLogger::getInstance(), getLength(), writerfilter::dmapper::DomainMapper_Impl::getTableManager(), writerfilter::dmapper::DomainMapper_Impl::GetTopTextAppend(), i, writerfilter::dmapper::isCharacterProperty(), writerfilter::dmapper::DomainMapper_Impl::IsInFootOrEndnote(), writerfilter::dmapper::isParagraphProperty(), writerfilter::dmapper::lcl_convertFormulaRanges(), writerfilter::dmapper::lcl_DumpPropertyValueSeq(), m_aCellProperties, m_aRowProperties, writerfilter::dmapper::DomainMapper_Impl::m_aStoredRedlines, m_aTableProperties, m_aTableRanges, m_bHadFootOrEndnote, m_rDMapper_Impl, m_xText, comphelper::makePropertyValue(), writerfilter::dmapper::TableInfo::nNestLevel, writerfilter::dmapper::NONE, writerfilter::TagLogger::startElement(), writerfilter::dmapper::TablePropertyMap::TABLE_WIDTH, writerfilter::dmapper::TablePropertyMap::TABLE_WIDTH_TYPE, TOOLS_INFO_EXCEPTION, and u.
|
private |
Definition at line 678 of file DomainMapperTableHandler.cxx.
References writerfilter::TagLogger::attribute(), CNF_EVEN_HBAND, CNF_EVEN_VBAND, CNF_FIRST_COLUMN, CNF_FIRST_ROW, CNF_FIRST_ROW_FIRST_COLUMN, CNF_FIRST_ROW_LAST_COLUMN, CNF_LAST_COLUMN, CNF_LAST_ROW, CNF_LAST_ROW_FIRST_COLUMN, CNF_LAST_ROW_LAST_COLUMN, CNF_ODD_HBAND, CNF_ODD_VBAND, writerfilter::TagLogger::endElement(), writerfilter::dmapper::TableManager::findColumn(), writerfilter::dmapper::TableManager::findColumnCell(), tools::SvRef< typename T >::get(), writerfilter::dmapper::TableManager::getGridAfter(), writerfilter::dmapper::TableManager::getGridBefore(), writerfilter::TagLogger::getInstance(), writerfilter::dmapper::TableStyleSheetEntry::GetProperties(), writerfilter::dmapper::DomainMapper_Impl::getTableManager(), i, writerfilter::dmapper::lcl_computeCellBorders(), writerfilter::dmapper::lcl_mergeBorder(), m_aCellProperties, m_aRowProperties, writerfilter::dmapper::HorizontallyMergedCell::m_nLastCol, writerfilter::dmapper::HorizontallyMergedCell::m_nLastRow, m_rDMapper_Impl, writerfilter::dmapper::META_PROP_HORIZONTAL_BORDER, writerfilter::dmapper::META_PROP_VERTICAL_BORDER, n, writerfilter::dmapper::TableInfo::nBottomBorderDistance, writerfilter::dmapper::TableInfo::nLeftBorderDistance, writerfilter::dmapper::NONE, writerfilter::dmapper::TableInfo::nRightBorderDistance, writerfilter::dmapper::TableInfo::nTblLook, writerfilter::dmapper::TableInfo::nTopBorderDistance, writerfilter::dmapper::PROP_BOTTOM_BORDER, writerfilter::dmapper::PROP_BOTTOM_BORDER_DISTANCE, writerfilter::dmapper::PROP_HEADER_ROW_COUNT, writerfilter::dmapper::PROP_HORIZONTAL_MERGE, writerfilter::dmapper::PROP_LEFT_BORDER, writerfilter::dmapper::PROP_LEFT_BORDER_DISTANCE, writerfilter::dmapper::PROP_RIGHT_BORDER, writerfilter::dmapper::PROP_RIGHT_BORDER_DISTANCE, writerfilter::dmapper::PROP_TBL_HEADER, writerfilter::dmapper::PROP_TOP_BORDER, writerfilter::dmapper::PROP_TOP_BORDER_DISTANCE, writerfilter::dmapper::PROP_VERTICAL_MERGE, writerfilter::dmapper::TableInfo::pTableBorders, writerfilter::dmapper::TableInfo::pTableDefaults, writerfilter::dmapper::TableInfo::pTableStyle, size, and writerfilter::TagLogger::startElement().
Referenced by endTable().
|
private |
Definition at line 1024 of file DomainMapperTableHandler.cxx.
References writerfilter::TagLogger::endElement(), writerfilter::TagLogger::getInstance(), writerfilter::dmapper::lcl_DumpPropertyValues(), writerfilter::dmapper::lcl_emptyRow(), writerfilter::dmapper::lcl_hideMarks(), m_aCellProperties, m_aRowProperties, m_aTableRanges, writerfilter::dmapper::PROP_IS_SPLIT_ALLOWED, writerfilter::dmapper::PROP_SIZE_TYPE, writerfilter::dmapper::PROP_TBL_HEADER, and writerfilter::TagLogger::startElement().
Referenced by endTable().
|
private |
Definition at line 350 of file DomainMapperTableHandler.cxx.
References writerfilter::dmapper::TablePropertyMap::CELL_MAR_BOTTOM, writerfilter::dmapper::TablePropertyMap::CELL_MAR_LEFT, writerfilter::dmapper::TablePropertyMap::CELL_MAR_RIGHT, writerfilter::dmapper::TablePropertyMap::CELL_MAR_TOP, CNF_FIRST_ROW, comphelper::SequenceAsHashMap::empty(), writerfilter::TagLogger::endElement(), tools::SvRef< typename T >::get(), comphelper::SequenceAsHashMap::getAsConstPropertyValueList(), writerfilter::TagLogger::getInstance(), writerfilter::dmapper::TableStyleSheetEntry::GetProperties(), writerfilter::dmapper::DomainMapper_Impl::GetSettingsTable(), writerfilter::dmapper::DomainMapper_Impl::GetStyleSheetTable(), writerfilter::dmapper::TablePropertyMap::HORI_ORIENT, writerfilter::dmapper::lcl_debug_TableBorder(), writerfilter::dmapper::TablePropertyMap::LEFT_MARGIN, m_aCellProperties, m_aRowProperties, m_aTableProperties, m_rDMapper_Impl, writerfilter::dmapper::META_PROP_CELL_MAR_BOTTOM, writerfilter::dmapper::META_PROP_CELL_MAR_LEFT, writerfilter::dmapper::META_PROP_CELL_MAR_RIGHT, writerfilter::dmapper::META_PROP_CELL_MAR_TOP, writerfilter::dmapper::META_PROP_HORIZONTAL_BORDER, writerfilter::dmapper::META_PROP_TABLE_LOOK, writerfilter::dmapper::META_PROP_TABLE_STYLE_NAME, writerfilter::dmapper::META_PROP_VERTICAL_BORDER, writerfilter::dmapper::TableInfo::nBottomBorderDistance, writerfilter::dmapper::TableInfo::nLeftBorderDistance, nLeftMargin, writerfilter::dmapper::TableInfo::nRightBorderDistance, writerfilter::dmapper::TableInfo::nTblLook, writerfilter::dmapper::TableInfo::nTopBorderDistance, writerfilter::dmapper::PROP_BOTTOM_BORDER, writerfilter::dmapper::PROP_BOTTOM_MARGIN, writerfilter::dmapper::PROP_HEADER_ROW_COUNT, writerfilter::dmapper::PROP_HORI_ORIENT, writerfilter::dmapper::PROP_IS_SPLIT_ALLOWED, writerfilter::dmapper::PROP_IS_WIDTH_RELATIVE, writerfilter::dmapper::PROP_LEFT_BORDER, writerfilter::dmapper::PROP_LEFT_MARGIN, writerfilter::dmapper::PROP_RELATIVE_WIDTH, writerfilter::dmapper::PROP_RIGHT_BORDER, writerfilter::dmapper::PROP_SPLIT, writerfilter::dmapper::PROP_TABLE_BORDER, writerfilter::dmapper::PROP_TABLE_BORDER_DISTANCES, writerfilter::dmapper::PROP_TABLE_INTEROP_GRAB_BAG, writerfilter::dmapper::PROP_TBL_LOOK, writerfilter::dmapper::PROP_TOP_BORDER, writerfilter::dmapper::PROP_TOP_MARGIN, writerfilter::dmapper::PROP_WIDTH, writerfilter::dmapper::PROP_WRITING_MODE, writerfilter::dmapper::TableInfo::pTableDefaults, writerfilter::TagLogger::startElement(), writerfilter::dmapper::TablePropertyMap::TABLE_WIDTH, and writerfilter::dmapper::TablePropertyMap::TABLE_WIDTH_TYPE.
Referenced by endTable().
DomainMapper_Impl & writerfilter::dmapper::DomainMapperTableHandler::getDomainMapperImpl | ( | ) |
Definition at line 1760 of file DomainMapperTableHandler.cxx.
References m_rDMapper_Impl.
void writerfilter::dmapper::DomainMapperTableHandler::setHadFootOrEndnote | ( | bool | bHadFootOrEndnote | ) |
Definition at line 1755 of file DomainMapperTableHandler.cxx.
References m_bHadFootOrEndnote.
void writerfilter::dmapper::DomainMapperTableHandler::startCell | ( | const css::uno::Reference< css::text::XTextRange > & | start, |
const TablePropertyMapPtr & | pProps | ||
) |
Handle start of cell.
rT | start handle of the cell |
pProps | properties of the cell |
Definition at line 1708 of file DomainMapperTableHandler.cxx.
References writerfilter::TagLogger::chars(), writerfilter::TagLogger::endElement(), tools::SvRef< typename T >::get(), writerfilter::TagLogger::getInstance(), m_aCellProperties, m_aCellRange, m_aRowProperties, start, writerfilter::TagLogger::startElement(), and writerfilter::dmapper::XTextRangeToString().
void writerfilter::dmapper::DomainMapperTableHandler::startRow | ( | const TablePropertyMapPtr & | pProps | ) |
Handle start of row.
pProps | properties of the row |
Definition at line 1686 of file DomainMapperTableHandler.cxx.
References tools::SvRef< typename T >::get(), writerfilter::TagLogger::getInstance(), m_aCellProperties, m_aRowProperties, m_aRowRanges, and writerfilter::TagLogger::startElement().
void writerfilter::dmapper::DomainMapperTableHandler::startTable | ( | const TablePropertyMapPtr & | pProps | ) |
Handle start of table.
pProps | properties of the table |
Definition at line 100 of file DomainMapperTableHandler.cxx.
References writerfilter::TagLogger::getInstance(), m_aTableProperties, m_aTableRanges, and writerfilter::TagLogger::startElement().
|
private |
Definition at line 66 of file DomainMapperTableHandler.hxx.
Referenced by endTable(), endTableGetCellProperties(), endTableGetRowProperties(), endTableGetTableStyle(), startCell(), and startRow().
|
private |
Definition at line 61 of file DomainMapperTableHandler.hxx.
Referenced by endCell(), and startCell().
|
private |
Definition at line 67 of file DomainMapperTableHandler.hxx.
Referenced by endTable(), endTableGetCellProperties(), endTableGetRowProperties(), endTableGetTableStyle(), startCell(), and startRow().
|
private |
Definition at line 62 of file DomainMapperTableHandler.hxx.
Referenced by endCell(), endRow(), and startRow().
|
private |
Definition at line 68 of file DomainMapperTableHandler.hxx.
Referenced by endTable(), endTableGetTableStyle(), and startTable().
|
private |
Definition at line 63 of file DomainMapperTableHandler.hxx.
Referenced by endRow(), endTable(), endTableGetRowProperties(), and startTable().
|
private |
Did we have a foot or endnote in this table?
Definition at line 71 of file DomainMapperTableHandler.hxx.
Referenced by endTable(), and setHadFootOrEndnote().
|
private |
Definition at line 60 of file DomainMapperTableHandler.hxx.
Referenced by ApplyParagraphPropertiesFromTableStyle(), endTable(), endTableGetCellProperties(), endTableGetTableStyle(), and getDomainMapperImpl().
|
private |
Definition at line 59 of file DomainMapperTableHandler.hxx.
Referenced by endTable().