LibreOffice Module xmloff (master) 1
Public Member Functions | Public Attributes | List of all members
XMLTableImportContext Class Reference
Inheritance diagram for XMLTableImportContext:
[legend]
Collaboration diagram for XMLTableImportContext:
[legend]

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)
 
SvXMLImportContextImportRow (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
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 136 of file XMLTableImport.cxx.

Constructor & Destructor Documentation

◆ XMLTableImportContext()

XMLTableImportContext::XMLTableImportContext ( const rtl::Reference< XMLTableImport > &  xThis,
Reference< XColumnRowRange > const &  xColumnRowRange 
)

Definition at line 349 of file XMLTableImport.cxx.

Member Function Documentation

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTableImportContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual

◆ endFastElement()

void XMLTableImportContext::endFastElement ( sal_Int32  Element)
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.

◆ GetDefaultCellStyleName()

OUString XMLTableImportContext::GetDefaultCellStyleName ( ) const

Definition at line 576 of file XMLTableImport.cxx.

References maColumnInfos, mnCurrentColumn, and msDefaultCellStyleName.

Referenced by ImportCell().

◆ ImportCell()

SvXMLImportContextRef XMLTableImportContext::ImportCell ( sal_Int32  nElement,
const Reference< XFastAttributeList > &  xAttrList 
)

◆ ImportColumn()

SvXMLImportContextRef XMLTableImportContext::ImportColumn ( const Reference< XFastAttributeList > &  xAttrList)

◆ ImportRow()

SvXMLImportContext * XMLTableImportContext::ImportRow ( const Reference< XFastAttributeList > &  xAttrList)

◆ InitColumns()

void XMLTableImportContext::InitColumns ( )

Member Data Documentation

◆ maColumnInfos

std::vector< std::shared_ptr< ColumnInfo > > XMLTableImportContext::maColumnInfos

Definition at line 159 of file XMLTableImport.cxx.

Referenced by GetDefaultCellStyleName(), ImportColumn(), and InitColumns().

◆ maMergeInfos

std::vector< std::shared_ptr< MergeInfo > > XMLTableImportContext::maMergeInfos

Definition at line 166 of file XMLTableImport.cxx.

Referenced by endFastElement(), and ImportCell().

◆ mnCurrentColumn

sal_Int32 XMLTableImportContext::mnCurrentColumn

Definition at line 161 of file XMLTableImport.cxx.

Referenced by GetDefaultCellStyleName(), ImportCell(), and ImportRow().

◆ mnCurrentRow

sal_Int32 XMLTableImportContext::mnCurrentRow

Definition at line 160 of file XMLTableImport.cxx.

Referenced by ImportCell(), ImportColumn(), and ImportRow().

◆ msDefaultCellStyleName

OUString XMLTableImportContext::msDefaultCellStyleName

Definition at line 164 of file XMLTableImport.cxx.

Referenced by GetDefaultCellStyleName(), and ImportRow().

◆ mxColumns

Reference< XTableColumns > XMLTableImportContext::mxColumns

Definition at line 156 of file XMLTableImport.cxx.

Referenced by ImportCell(), ImportColumn(), and InitColumns().

◆ mxRows

Reference< XTableRows > XMLTableImportContext::mxRows

Definition at line 157 of file XMLTableImport.cxx.

Referenced by ImportRow().

◆ mxTable

css::uno::Reference< css::table::XTable > XMLTableImportContext::mxTable

Definition at line 155 of file XMLTableImport.cxx.

Referenced by endFastElement(), and ImportCell().


The documentation for this class was generated from the following file: