LibreOffice Module xmloff (master) 1
|
Public Member Functions | |
XMLTableImportContext (const rtl::Reference< XMLTableImport > &xThis, Reference< XColumnRowRange > const &xColumnRowRange) | |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
void | InitColumns () |
SvXMLImportContextRef | ImportColumn (const Reference< XFastAttributeList > &xAttrList) |
SvXMLImportContext * | ImportRow (const Reference< XFastAttributeList > &xAttrList) |
SvXMLImportContextRef | ImportCell (sal_Int32 nElement, const Reference< XFastAttributeList > &xAttrList) |
OUString | GetDefaultCellStyleName () const |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endFastElement (sal_Int32 Element) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Public Attributes | |
css::uno::Reference< css::table::XTable > | mxTable |
Reference< XTableColumns > | mxColumns |
Reference< XTableRows > | mxRows |
std::vector< std::shared_ptr< ColumnInfo > > | maColumnInfos |
sal_Int32 | mnCurrentRow |
sal_Int32 | mnCurrentColumn |
OUString | msDefaultCellStyleName |
std::vector< std::shared_ptr< MergeInfo > > | maMergeInfos |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Definition at line 136 of file XMLTableImport.cxx.
XMLTableImportContext::XMLTableImportContext | ( | const rtl::Reference< XMLTableImport > & | xThis, |
Reference< XColumnRowRange > const & | xColumnRowRange | ||
) |
Definition at line 349 of file XMLTableImport.cxx.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 535 of file XMLTableImport.cxx.
References SvXMLImportContext::GetImport(), ImportCell(), ImportColumn(), ImportRow(), SAL_WARN, TABLE, xmloff::token::XML_COVERED_TABLE_CELL, XML_ELEMENT, xmloff::token::XML_TABLE_CELL, xmloff::token::XML_TABLE_COLUMN, xmloff::token::XML_TABLE_COLUMNS, xmloff::token::XML_TABLE_ROW, and xmloff::token::XML_TABLE_ROWS.
|
overridevirtual |
endFastElement is called before a context will be destructed, but after an elements context has been parsed.
It may be used for actions that require virtual methods. The default is to do nothing.
Reimplemented from SvXMLImportContext.
Definition at line 559 of file XMLTableImport.cxx.
References Exception, maMergeInfos, mxTable, and TOOLS_WARN_EXCEPTION.
OUString XMLTableImportContext::GetDefaultCellStyleName | ( | ) | const |
Definition at line 576 of file XMLTableImport.cxx.
References maColumnInfos, mnCurrentColumn, and msDefaultCellStyleName.
Referenced by ImportCell().
SvXMLImportContextRef XMLTableImportContext::ImportCell | ( | sal_Int32 | nElement, |
const Reference< XFastAttributeList > & | xAttrList | ||
) |
Definition at line 502 of file XMLTableImport.cxx.
References Exception, GetDefaultCellStyleName(), SvXMLImportContext::GetImport(), maMergeInfos, mnCurrentColumn, mnCurrentRow, mxColumns, mxTable, and TOOLS_WARN_EXCEPTION.
Referenced by createFastChildContext().
SvXMLImportContextRef XMLTableImportContext::ImportColumn | ( | const Reference< XFastAttributeList > & | xAttrList | ) |
Definition at line 359 of file XMLTableImport.cxx.
References sax_fastparser::castToFastAttributeList(), Exception, maColumnInfos, mnCurrentRow, mxColumns, TABLE, TOOLS_WARN_EXCEPTION, xmloff::token::XML_DEFAULT_CELL_STYLE_NAME, XML_ELEMENT, xmloff::token::XML_ID, xmloff::token::XML_NUMBER_COLUMNS_REPEATED, and xmloff::token::XML_STYLE_NAME.
Referenced by createFastChildContext().
SvXMLImportContext * XMLTableImportContext::ImportRow | ( | const Reference< XFastAttributeList > & | xAttrList | ) |
Definition at line 443 of file XMLTableImport.cxx.
References sax_fastparser::castToFastAttributeList(), SvXMLStylesContext::FindStyleChildContext(), SvXMLImportContext::GetImport(), InitColumns(), mnCurrentColumn, mnCurrentRow, msDefaultCellStyleName, mxRows, nCount, TABLE, TABLE_ROW, xmloff::token::XML_DEFAULT_CELL_STYLE_NAME, XML_ELEMENT, xmloff::token::XML_ID, and xmloff::token::XML_STYLE_NAME.
Referenced by createFastChildContext().
void XMLTableImportContext::InitColumns | ( | ) |
Definition at line 404 of file XMLTableImport.cxx.
References Exception, SvXMLStylesContext::FindStyleChildContext(), SvXMLImportContext::GetImport(), maColumnInfos, mxColumns, TABLE_COLUMN, and TOOLS_WARN_EXCEPTION.
Referenced by ImportRow().
std::vector< std::shared_ptr< ColumnInfo > > XMLTableImportContext::maColumnInfos |
Definition at line 159 of file XMLTableImport.cxx.
Referenced by GetDefaultCellStyleName(), ImportColumn(), and InitColumns().
std::vector< std::shared_ptr< MergeInfo > > XMLTableImportContext::maMergeInfos |
Definition at line 166 of file XMLTableImport.cxx.
Referenced by endFastElement(), and ImportCell().
sal_Int32 XMLTableImportContext::mnCurrentColumn |
Definition at line 161 of file XMLTableImport.cxx.
Referenced by GetDefaultCellStyleName(), ImportCell(), and ImportRow().
sal_Int32 XMLTableImportContext::mnCurrentRow |
Definition at line 160 of file XMLTableImport.cxx.
Referenced by ImportCell(), ImportColumn(), and ImportRow().
OUString XMLTableImportContext::msDefaultCellStyleName |
Definition at line 164 of file XMLTableImport.cxx.
Referenced by GetDefaultCellStyleName(), and ImportRow().
Reference< XTableColumns > XMLTableImportContext::mxColumns |
Definition at line 156 of file XMLTableImport.cxx.
Referenced by ImportCell(), ImportColumn(), and InitColumns().
Reference< XTableRows > XMLTableImportContext::mxRows |
Definition at line 157 of file XMLTableImport.cxx.
Referenced by ImportRow().
css::uno::Reference< css::table::XTable > XMLTableImportContext::mxTable |
Definition at line 155 of file XMLTableImport.cxx.
Referenced by endFastElement(), and ImportCell().