LibreOffice Module dbaccess (master) 1
|
#include <xmlfilter.hxx>
Public Types | |
typedef std::map< OUString, Sequence< PropertyValue > > | TPropertyNameMap |
Public Member Functions | |
SvXMLImportContext * | CreateStylesContext (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 TPropertyNameMap & | getQuerySettings () 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 SvXMLImportContext * | CreateFastContext (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< XMLPropertySetMapper > | m_xTableStylesPropertySetMapper |
rtl::Reference< XMLPropertySetMapper > | m_xColumnStylesPropertySetMapper |
rtl::Reference< XMLPropertySetMapper > | m_xCellStylesPropertySetMapper |
Reference< XPropertySet > | m_xDataSource |
bool | m_bNewFormat |
Definition at line 48 of file xmlfilter.hxx.
typedef std::map< OUString, Sequence<PropertyValue> > dbaxml::ODBFilter::TPropertyNameMap |
Definition at line 51 of file xmlfilter.hxx.
|
overrideprotectedvirtualnoexcept |
Definition at line 189 of file xmlfilter.cxx.
|
explicit |
Definition at line 172 of file xmlfilter.cxx.
References GetXMLToken(), XML_N_DB, XML_N_DB_OASIS, and XML_NAMESPACE_DB.
|
inline |
add an Info to the sequence which will be appended to the data source
_rInfo | The property to append. |
Definition at line 108 of file xmlfilter.hxx.
References m_aInfoSequence.
Referenced by dbaxml::OXMLDataSourceSetting::endFastElement(), dbaxml::OXMLConnectionResource::OXMLConnectionResource(), dbaxml::OXMLDataSource::OXMLDataSource(), dbaxml::OXMLDataSourceInfo::OXMLDataSourceInfo(), dbaxml::OXMLFileBasedDatabase::OXMLFileBasedDatabase(), dbaxml::OXMLLogin::OXMLLogin(), and dbaxml::OXMLServerDatabase::OXMLServerDatabase().
|
overrideprotectedvirtual |
Definition at line 467 of file xmlfilter.cxx.
References OFFICE, PROGRESS_BAR_STEP, XML_DOCUMENT_CONTENT, XML_DOCUMENT_SETTINGS, XML_DOCUMENT_STYLES, and XML_ELEMENT.
SvXMLImportContext * dbaxml::ODBFilter::CreateStylesContext | ( | bool | bIsAutoStyle | ) |
Definition at line 544 of file xmlfilter.cxx.
|
staticprivate |
fills the map with the Properties
_rValue | The Any where the sequence resists in. |
_rMap | The map to fill. |
Definition at line 529 of file xmlfilter.cxx.
Referenced by SetViewSettings().
|
overridevirtual |
Definition at line 225 of file xmlfilter.cxx.
References implImport().
rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetCellStylesPropertySetMapper | ( | ) | const |
Definition at line 576 of file xmlfilter.cxx.
References dbaxml::OXMLHelper::GetCellStylesPropertySetMapper(), and m_xCellStylesPropertySetMapper.
rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetColumnStylesPropertySetMapper | ( | ) | const |
Definition at line 566 of file xmlfilter.cxx.
References dbaxml::OXMLHelper::GetColumnStylesPropertySetMapper(), and m_xColumnStylesPropertySetMapper.
|
inline |
Definition at line 97 of file xmlfilter.hxx.
References m_xDataSource.
Referenced by dbaxml::OXMLConnectionResource::OXMLConnectionResource(), dbaxml::OXMLDataSource::OXMLDataSource(), dbaxml::OXMLFileBasedDatabase::OXMLFileBasedDatabase(), dbaxml::OXMLLogin::OXMLLogin(), dbaxml::OXMLServerDatabase::OXMLServerDatabase(), SetConfigurationSettings(), and setPropertyInfo().
|
static |
css::uno::RuntimeException |
Definition at line 195 of file xmlfilter.cxx.
|
inline |
Definition at line 99 of file xmlfilter.hxx.
References m_aQuerySettings.
Referenced by dbaxml::OXMLQuery::setProperties().
rtl::Reference< XMLPropertySetMapper > const & dbaxml::ODBFilter::GetTableStylesPropertySetMapper | ( | ) | const |
Definition at line 556 of file xmlfilter.cxx.
References dbaxml::OXMLHelper::GetTableStylesPropertySetMapper(), and m_xTableStylesPropertySetMapper.
|
private |
RuntimeException |
Definition at line 237 of file xmlfilter.cxx.
References Any, ERRCODE_IO_BROKENPACKAGE, ERRCODE_NONE, Exception, comphelper::NamedValueCollection::getOrDefault(), ErrorHandler::HandleError(), comphelper::NamedValueCollection::has(), ErrCode::IsWarning(), m_xDataSource, PROPERTY_NUMBERFORMATSSUPPLIER(), dbaxml::ReadThroughComponent(), SAL_WARN, and xModel.
Referenced by filter().
|
inline |
Definition at line 115 of file xmlfilter.hxx.
References m_bNewFormat.
Referenced by dbaxml::OXMLDataSource::OXMLDataSource(), and dbaxml::OXMLDataSourceInfo::OXMLDataSourceInfo().
|
overridevirtual |
Definition at line 511 of file xmlfilter.cxx.
References Any, getDataSource(), and PROPERTY_LAYOUTINFORMATION().
|
inline |
Definition at line 116 of file xmlfilter.hxx.
References m_bNewFormat.
Referenced by dbaxml::OXMLConnectionData::OXMLConnectionData().
void dbaxml::ODBFilter::setPropertyInfo | ( | ) |
Definition at line 586 of file xmlfilter.cxx.
References Any, comphelper::containerToSequence(), DBG_UNHANDLED_EXCEPTION, Exception, getDataSource(), connectivity::DriversConfig::getProperties(), m_aInfoSequence, comphelper::NamedValueCollection::merge(), PROPERTY_INFO(), and PROPERTY_URL().
Referenced by dbaxml::OXMLDatabase::endFastElement().
|
overridevirtual |
Definition at line 493 of file xmlfilter.cxx.
References fillPropertyMap(), m_aQuerySettings, and m_aTablesSettings.
|
private |
Definition at line 55 of file xmlfilter.hxx.
Referenced by addInfo(), and setPropertyInfo().
|
private |
Definition at line 53 of file xmlfilter.hxx.
Referenced by getQuerySettings(), and SetViewSettings().
|
private |
Definition at line 54 of file xmlfilter.hxx.
Referenced by SetViewSettings().
|
private |
Definition at line 61 of file xmlfilter.hxx.
Referenced by isNewFormat(), and setNewFormat().
|
mutableprivate |
Definition at line 59 of file xmlfilter.hxx.
Referenced by GetCellStylesPropertySetMapper().
|
mutableprivate |
Definition at line 58 of file xmlfilter.hxx.
Referenced by GetColumnStylesPropertySetMapper().
|
private |
Definition at line 60 of file xmlfilter.hxx.
Referenced by getDataSource(), and implImport().
|
mutableprivate |
Definition at line 57 of file xmlfilter.hxx.
Referenced by GetTableStylesPropertySetMapper().