LibreOffice Module reportdesign (master) 1
|
#include <xmlfilter.hxx>
Public Types | |
typedef std::map< OUString, Sequence< PropertyValue > > | TPropertyNameMap |
typedef std::map< OUString, Reference< XFunction > > | TGroupFunctionMap |
Public Member Functions | |
SvXMLImportContext * | CreateStylesContext (bool bIsAutoStyle) |
SvXMLImportContext * | CreateMetaContext (const sal_Int32 nElement) |
SvXMLImportContext * | CreateFontDeclsContext () |
ORptFilter (const Reference< XComponentContext > &_rxContext, OUString const &rImplementationName, SvXMLImportFlags nImportFlags) | |
virtual sal_Bool SAL_CALL | filter (const Sequence< PropertyValue > &rDescriptor) override |
const Reference< XReportDefinition > & | getReportDefinition () const |
void | FinishStyles () |
virtual void SAL_CALL | startDocument () override |
virtual void SAL_CALL | endDocument () override |
const rtl::Reference< XMLPropertySetMapper > & | GetCellStylesPropertySetMapper () const |
const rtl::Reference< XMLPropertySetMapper > & | GetColumnStylesPropertySetMapper () const |
const rtl::Reference< XMLPropertySetMapper > & | GetRowStylesPropertySetMapper () const |
void | insertFunction (const css::uno::Reference< css::report::XFunction > &_xFunction) |
inserts a new function More... | |
void | removeFunction (const OUString &_sFunctionName) |
const TGroupFunctionMap & | getFunctions () const |
bool | isOldFormat () const |
Static Public Member Functions | |
static const OUString & | convertFormula (const OUString &_sFormula) |
Protected Member Functions | |
virtual SvXMLImportContext * | CreateFastContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual XMLShapeImportHelper * | CreateShapeImport () override |
virtual | ~ORptFilter () noexcept override |
Private Member Functions | |
bool | implImport (const Sequence< PropertyValue > &rDescriptor) |
Private Attributes | |
TGroupFunctionMap | m_aFunctions |
rtl::Reference< XMLPropertyHandlerFactory > | m_xPropHdlFactory |
rtl::Reference< XMLPropertySetMapper > | m_xCellStylesPropertySetMapper |
rtl::Reference< XMLPropertySetMapper > | m_xColumnStylesPropertySetMapper |
rtl::Reference< XMLPropertySetMapper > | m_xRowStylesPropertySetMapper |
Reference< XReportDefinition > | m_xReportDefinition |
std::shared_ptr< rptui::OReportModel > | m_pReportModel |
Definition at line 52 of file xmlfilter.hxx.
typedef std::map< OUString, Reference<XFunction> > rptxml::ORptFilter::TGroupFunctionMap |
Definition at line 56 of file xmlfilter.hxx.
typedef std::map< OUString, Sequence<PropertyValue> > rptxml::ORptFilter::TPropertyNameMap |
Definition at line 55 of file xmlfilter.hxx.
|
overrideprotectedvirtualnoexcept |
Definition at line 315 of file xmlfilter.cxx.
rptxml::ORptFilter::ORptFilter | ( | const Reference< XComponentContext > & | _rxContext, |
OUString const & | rImplementationName, | ||
SvXMLImportFlags | nImportFlags | ||
) |
Definition at line 295 of file xmlfilter.cxx.
References rptxml::OXMLHelper::GetCellStylePropertyMap(), rptxml::OXMLHelper::GetColumnStyleProps(), rptxml::OXMLHelper::GetRowStyleProps(), GetXMLToken(), m_xCellStylesPropertySetMapper, m_xColumnStylesPropertySetMapper, m_xPropHdlFactory, m_xRowStylesPropertySetMapper, XML_N_RPT, XML_N_RPT_OASIS, and XML_NAMESPACE_REPORT.
|
static |
Definition at line 691 of file xmlfilter.cxx.
|
overrideprotectedvirtual |
Definition at line 633 of file xmlfilter.cxx.
References CreateMetaContext(), OFFICE, PROGRESS_BAR_STEP, XML_DOCUMENT_CONTENT, XML_DOCUMENT_META, XML_DOCUMENT_SETTINGS, XML_DOCUMENT_STYLES, and XML_ELEMENT.
SvXMLImportContext * rptxml::ORptFilter::CreateFontDeclsContext | ( | ) |
Definition at line 672 of file xmlfilter.cxx.
SvXMLImportContext * rptxml::ORptFilter::CreateMetaContext | ( | const sal_Int32 | nElement | ) |
Definition at line 733 of file xmlfilter.cxx.
Referenced by CreateFastContext().
|
overrideprotectedvirtual |
Definition at line 680 of file xmlfilter.cxx.
SvXMLImportContext * rptxml::ORptFilter::CreateStylesContext | ( | bool | bIsAutoStyle | ) |
Definition at line 658 of file xmlfilter.cxx.
|
overridevirtual |
Definition at line 705 of file xmlfilter.cxx.
|
overridevirtual |
Definition at line 328 of file xmlfilter.cxx.
References vcl::Window::EnterWait(), Application::GetFocusWindow(), implImport(), and vcl::Window::LeaveWait().
void rptxml::ORptFilter::FinishStyles | ( | ) |
Definition at line 685 of file xmlfilter.cxx.
|
inline |
Definition at line 100 of file xmlfilter.hxx.
References m_xCellStylesPropertySetMapper.
Referenced by rptxml::OReportStylesContext::GetImportPropertyMapper().
|
inline |
Definition at line 103 of file xmlfilter.hxx.
References m_xColumnStylesPropertySetMapper.
Referenced by rptxml::OReportStylesContext::GetImportPropertyMapper().
|
inline |
Definition at line 116 of file xmlfilter.hxx.
References m_aFunctions.
|
inline |
Definition at line 92 of file xmlfilter.hxx.
References m_xReportDefinition.
Referenced by rptxml::OXMLGroup::createFastChildContext(), and rptxml::RptXMLDocumentBodyContext::createFastChildContext().
|
inline |
Definition at line 106 of file xmlfilter.hxx.
References m_xRowStylesPropertySetMapper.
Referenced by rptxml::OReportStylesContext::GetImportPropertyMapper().
|
private |
RuntimeException |
Definition at line 345 of file xmlfilter.cxx.
References aSeq, ERRCODE_IO_BROKENPACKAGE, ERRCODE_NONE, Exception, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), ErrorHandler::HandleError(), tools::SvRef< typename T >::is(), ErrCode::IsWarning(), m_xReportDefinition, utl::MediaDescriptor::PROP_DOCUMENTBASEURL, rptxml::ReadThroughComponent(), SERVICE_CONTENTIMPORTER, SERVICE_METAIMPORTER, SERVICE_SETTINGSIMPORTER, SERVICE_STYLESIMPORTER, sHierarchicalDocumentName, u, and xModel.
Referenced by filter().
void rptxml::ORptFilter::insertFunction | ( | const css::uno::Reference< css::report::XFunction > & | _xFunction | ) |
inserts a new function
_xFunction |
Definition at line 728 of file xmlfilter.cxx.
References m_aFunctions.
Referenced by rptxml::OXMLFunction::endFastElement().
bool rptxml::ORptFilter::isOldFormat | ( | ) | const |
Definition at line 745 of file xmlfilter.cxx.
References u.
void rptxml::ORptFilter::removeFunction | ( | const OUString & | _sFunctionName | ) |
Definition at line 723 of file xmlfilter.cxx.
References m_aFunctions.
|
overridevirtual |
Definition at line 696 of file xmlfilter.cxx.
References reportdesign::OReportDefinition::getSdrModel(), m_pReportModel, and m_xReportDefinition.
|
private |
Definition at line 59 of file xmlfilter.hxx.
Referenced by getFunctions(), insertFunction(), and removeFunction().
|
private |
Definition at line 67 of file xmlfilter.hxx.
Referenced by startDocument().
|
private |
Definition at line 62 of file xmlfilter.hxx.
Referenced by GetCellStylesPropertySetMapper(), and ORptFilter().
|
private |
Definition at line 63 of file xmlfilter.hxx.
Referenced by GetColumnStylesPropertySetMapper(), and ORptFilter().
|
private |
Definition at line 61 of file xmlfilter.hxx.
Referenced by ORptFilter().
|
private |
Definition at line 66 of file xmlfilter.hxx.
Referenced by getReportDefinition(), implImport(), and startDocument().
|
private |
Definition at line 64 of file xmlfilter.hxx.
Referenced by GetRowStylesPropertySetMapper(), and ORptFilter().