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, sal_uInt16 nPrfx, const OUString &rLName, Reference< XColumnRowRange > const &xColumnRowRange)
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const Reference< XAttributeList > &xAttrList) override
 
virtual void StartElement (const Reference< XAttributeList > &xAttrList) override
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
void InitColumns ()
 
SvXMLImportContextRef ImportColumn (sal_uInt16 nPrefix, const OUString &rLocalName, const Reference< XAttributeList > &xAttrList)
 
SvXMLImportContextImportRow (sal_uInt16 nPrefix, const OUString &rLocalName, const Reference< XAttributeList > &xAttrList)
 
SvXMLImportContextRef ImportCell (sal_uInt16 nPrefix, const OUString &rLocalName, const Reference< XAttributeList > &xAttrList)
 
OUString GetDefaultCellStyleName () const
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 Create a children element context. More...
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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
 
MergeInfoVector maMergeInfos
 

Additional Inherited Members

- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 96 of file XMLTableImport.cxx.

Constructor & Destructor Documentation

XMLTableImportContext::XMLTableImportContext ( const rtl::Reference< XMLTableImport > &  xThis,
sal_uInt16  nPrfx,
const OUString &  rLName,
Reference< XColumnRowRange > const &  xColumnRowRange 
)

Definition at line 363 of file XMLTableImport.cxx.

Member Function Documentation

SvXMLImportContextRef XMLTableImportContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const Reference< XAttributeList > &  xAttrList 
)
overridevirtual
void XMLTableImportContext::EndElement ( )
overridevirtual

EndElement 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 595 of file XMLTableImport.cxx.

References Exception, maMergeInfos, mxTable, and TOOLS_WARN_EXCEPTION.

OUString XMLTableImportContext::GetDefaultCellStyleName ( ) const

Definition at line 612 of file XMLTableImport.cxx.

References maColumnInfos, mnCurrentColumn, and msDefaultCellStyleName.

Referenced by ImportCell().

SvXMLImportContextRef XMLTableImportContext::ImportCell ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const Reference< XAttributeList > &  xAttrList 
)
SvXMLImportContextRef XMLTableImportContext::ImportColumn ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const Reference< XAttributeList > &  xAttrList 
)
SvXMLImportContext * XMLTableImportContext::ImportRow ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const Reference< XAttributeList > &  xAttrList 
)
void XMLTableImportContext::InitColumns ( )
void XMLTableImportContext::StartElement ( const Reference< XAttributeList > &  xAttrList)
overridevirtual

Definition at line 591 of file XMLTableImport.cxx.

Member Data Documentation

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

Definition at line 119 of file XMLTableImport.cxx.

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

MergeInfoVector XMLTableImportContext::maMergeInfos

Definition at line 126 of file XMLTableImport.cxx.

Referenced by EndElement(), and ImportCell().

sal_Int32 XMLTableImportContext::mnCurrentColumn

Definition at line 121 of file XMLTableImport.cxx.

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

sal_Int32 XMLTableImportContext::mnCurrentRow

Definition at line 120 of file XMLTableImport.cxx.

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

OUString XMLTableImportContext::msDefaultCellStyleName

Definition at line 124 of file XMLTableImport.cxx.

Referenced by GetDefaultCellStyleName(), and ImportRow().

Reference< XTableColumns > XMLTableImportContext::mxColumns

Definition at line 116 of file XMLTableImport.cxx.

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

Reference< XTableRows > XMLTableImportContext::mxRows

Definition at line 117 of file XMLTableImport.cxx.

Referenced by ImportRow().

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

Definition at line 115 of file XMLTableImport.cxx.

Referenced by EndElement(), and ImportCell().


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