LibreOffice Module dbaccess (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaxml::ODBFilter Class Reference

#include <xmlfilter.hxx>

Inheritance diagram for dbaxml::ODBFilter:
[legend]
Collaboration diagram for dbaxml::ODBFilter:
[legend]

Public Types

typedef std::map< OUString, Sequence< PropertyValue > > TPropertyNameMap
 

Public Member Functions

SvXMLImportContextCreateStylesContext (bool bIsAutoStyle)
 
 ODBFilter (const Reference< XComponentContext > &_rxContext)
 
virtual sal_Bool SAL_CALL filter (const Sequence< PropertyValue > &rDescriptor) override
 
virtual void SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) override
 
virtual void SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps) override
 
const Reference< XPropertySet > & getDataSource () const
 
const TPropertyNameMapgetQuerySettings () const
 
rtl::Reference< XMLPropertySetMapper > const & GetTableStylesPropertySetMapper () const
 
rtl::Reference< XMLPropertySetMapper > const & GetColumnStylesPropertySetMapper () const
 
rtl::Reference< XMLPropertySetMapper > const & GetCellStylesPropertySetMapper () const
 
void addInfo (const css::beans::PropertyValue &_rInfo)
 add an Info to the sequence which will be appended to the data source More...
 
void setPropertyInfo ()
 
bool isNewFormat () const
 
void setNewFormat (bool _bNewFormat)
 

Static Public Member Functions

static OUString getImplementationName_Static ()
 

Protected Member Functions

virtual SvXMLImportContextCreateFastContext (sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual ~ODBFilter () noexcept override
 

Private Member Functions

bool implImport (const Sequence< PropertyValue > &rDescriptor)
 

Static Private Member Functions

static void fillPropertyMap (const Any &_rValue, TPropertyNameMap &_rMap)
 fills the map with the Properties More...
 

Private Attributes

TPropertyNameMap m_aQuerySettings
 
TPropertyNameMap m_aTablesSettings
 
std::vector< css::beans::PropertyValue > m_aInfoSequence
 
rtl::Reference< XMLPropertySetMapperm_xTableStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperm_xColumnStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperm_xCellStylesPropertySetMapper
 
Reference< XPropertySetm_xDataSource
 
bool m_bNewFormat
 

Detailed Description

Definition at line 48 of file xmlfilter.hxx.

Member Typedef Documentation

◆ TPropertyNameMap

typedef std::map< OUString, Sequence<PropertyValue> > dbaxml::ODBFilter::TPropertyNameMap

Definition at line 51 of file xmlfilter.hxx.

Constructor & Destructor Documentation

◆ ~ODBFilter()

dbaxml::ODBFilter::~ODBFilter ( )
overrideprotectedvirtualnoexcept

Definition at line 189 of file xmlfilter.cxx.

◆ ODBFilter()

dbaxml::ODBFilter::ODBFilter ( const Reference< XComponentContext > &  _rxContext)
explicit

Definition at line 172 of file xmlfilter.cxx.

References GetXMLToken(), XML_N_DB, XML_N_DB_OASIS, and XML_NAMESPACE_DB.

Member Function Documentation

◆ addInfo()

void dbaxml::ODBFilter::addInfo ( const css::beans::PropertyValue &  _rInfo)
inline

◆ CreateFastContext()

SvXMLImportContext * dbaxml::ODBFilter::CreateFastContext ( sal_Int32  Element,
const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual

◆ CreateStylesContext()

SvXMLImportContext * dbaxml::ODBFilter::CreateStylesContext ( bool  bIsAutoStyle)

Definition at line 544 of file xmlfilter.cxx.

◆ fillPropertyMap()

void dbaxml::ODBFilter::fillPropertyMap ( const Any &  _rValue,
TPropertyNameMap _rMap 
)
staticprivate

fills the map with the Properties

Parameters
_rValueThe Any where the sequence resists in.
_rMapThe map to fill.

Definition at line 529 of file xmlfilter.cxx.

Referenced by SetViewSettings().

◆ filter()

sal_Bool SAL_CALL dbaxml::ODBFilter::filter ( const Sequence< PropertyValue > &  rDescriptor)
overridevirtual

Definition at line 225 of file xmlfilter.cxx.

References implImport().

◆ GetCellStylesPropertySetMapper()

rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetCellStylesPropertySetMapper ( ) const

◆ GetColumnStylesPropertySetMapper()

rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetColumnStylesPropertySetMapper ( ) const

◆ getDataSource()

const Reference< XPropertySet > & dbaxml::ODBFilter::getDataSource ( ) const
inline

◆ getImplementationName_Static()

OUString dbaxml::ODBFilter::getImplementationName_Static ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 195 of file xmlfilter.cxx.

◆ getQuerySettings()

const TPropertyNameMap & dbaxml::ODBFilter::getQuerySettings ( ) const
inline

Definition at line 99 of file xmlfilter.hxx.

References m_aQuerySettings.

Referenced by dbaxml::OXMLQuery::setProperties().

◆ GetTableStylesPropertySetMapper()

rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetTableStylesPropertySetMapper ( ) const

◆ implImport()

bool dbaxml::ODBFilter::implImport ( const Sequence< PropertyValue > &  rDescriptor)
private

◆ isNewFormat()

bool dbaxml::ODBFilter::isNewFormat ( ) const
inline

◆ SetConfigurationSettings()

void dbaxml::ODBFilter::SetConfigurationSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aConfigProps)
overridevirtual

Definition at line 511 of file xmlfilter.cxx.

References Any, getDataSource(), and PROPERTY_LAYOUTINFORMATION().

◆ setNewFormat()

void dbaxml::ODBFilter::setNewFormat ( bool  _bNewFormat)
inline

Definition at line 116 of file xmlfilter.hxx.

References m_bNewFormat.

Referenced by dbaxml::OXMLConnectionData::OXMLConnectionData().

◆ setPropertyInfo()

void dbaxml::ODBFilter::setPropertyInfo ( )

◆ SetViewSettings()

void dbaxml::ODBFilter::SetViewSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aViewProps)
overridevirtual

Definition at line 493 of file xmlfilter.cxx.

References fillPropertyMap(), m_aQuerySettings, and m_aTablesSettings.

Member Data Documentation

◆ m_aInfoSequence

std::vector< css::beans::PropertyValue> dbaxml::ODBFilter::m_aInfoSequence
private

Definition at line 55 of file xmlfilter.hxx.

Referenced by addInfo(), and setPropertyInfo().

◆ m_aQuerySettings

TPropertyNameMap dbaxml::ODBFilter::m_aQuerySettings
private

Definition at line 53 of file xmlfilter.hxx.

Referenced by getQuerySettings(), and SetViewSettings().

◆ m_aTablesSettings

TPropertyNameMap dbaxml::ODBFilter::m_aTablesSettings
private

Definition at line 54 of file xmlfilter.hxx.

Referenced by SetViewSettings().

◆ m_bNewFormat

bool dbaxml::ODBFilter::m_bNewFormat
private

Definition at line 61 of file xmlfilter.hxx.

Referenced by isNewFormat(), and setNewFormat().

◆ m_xCellStylesPropertySetMapper

rtl::Reference< XMLPropertySetMapper > dbaxml::ODBFilter::m_xCellStylesPropertySetMapper
mutableprivate

Definition at line 59 of file xmlfilter.hxx.

Referenced by GetCellStylesPropertySetMapper().

◆ m_xColumnStylesPropertySetMapper

rtl::Reference< XMLPropertySetMapper > dbaxml::ODBFilter::m_xColumnStylesPropertySetMapper
mutableprivate

Definition at line 58 of file xmlfilter.hxx.

Referenced by GetColumnStylesPropertySetMapper().

◆ m_xDataSource

Reference<XPropertySet> dbaxml::ODBFilter::m_xDataSource
private

Definition at line 60 of file xmlfilter.hxx.

Referenced by getDataSource(), and implImport().

◆ m_xTableStylesPropertySetMapper

rtl::Reference< XMLPropertySetMapper > dbaxml::ODBFilter::m_xTableStylesPropertySetMapper
mutableprivate

Definition at line 57 of file xmlfilter.hxx.

Referenced by GetTableStylesPropertySetMapper().


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