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 |
![]() | |
SvXMLImport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, SvXMLImportFlags nImportFlags=SvXMLImportFlags::ALL, const css::uno::Sequence< OUString > &sSupportedServiceNames={}) | |
void | cleanup () noexcept |
virtual | ~SvXMLImport () noexcept override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
virtual void SAL_CALL | processingInstruction (const OUString &aTarget, const OUString &aData) override |
virtual void SAL_CALL | setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override |
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< css::xml::sax::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 | parseStream (const css::xml::sax::InputSource &aInputSource) override |
virtual void SAL_CALL | setFastDocumentHandler (const css::uno::Reference< css::xml::sax::XFastDocumentHandler > &Handler) override |
virtual void SAL_CALL | setTokenHandler (const css::uno::Reference< css::xml::sax::XFastTokenHandler > &Handler) override |
virtual void SAL_CALL | registerNamespace (const OUString &NamespaceURL, sal_Int32 NamespaceToken) override |
virtual OUString SAL_CALL | getNamespaceURL (const OUString &rPrefix) override |
virtual void SAL_CALL | setErrorHandler (const css::uno::Reference< css::xml::sax::XErrorHandler > &Handler) override |
virtual void SAL_CALL | setEntityResolver (const css::uno::Reference< css::xml::sax::XEntityResolver > &Resolver) override |
virtual void SAL_CALL | setLocale (const css::lang::Locale &rLocale) override |
virtual void SAL_CALL | setNamespaceHandler (const css::uno::Reference< css::xml::sax::XFastNamespaceHandler > &Handler) override |
virtual void SAL_CALL | setCustomEntityNames (const ::css::uno::Sequence< ::css::beans::Pair<::rtl::OUString,::rtl::OUString > > &replacements) override |
virtual void SAL_CALL | setTargetDocument (const css::uno::Reference< css::lang::XComponent > &xDoc) override |
virtual sal_Bool SAL_CALL | filter (const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual sal_Int64 SAL_CALL | getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override |
virtual OUString SAL_CALL | getImplementationName () final override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) final override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () final override |
virtual void | SetStatistics (const css::uno::Sequence< css::beans::NamedValue > &i_rStats) |
rtl::Reference< XMLTextImportHelper > const & | GetTextImport () |
bool | HasTextImport () const |
SvXMLNumFmtHelper * | GetDataStylesImport () |
rtl::Reference< XMLShapeImportHelper > const & | GetShapeImport () |
rtl::Reference< SchXMLImportHelper > const & | GetChartImport () |
rtl::Reference< ::xmloff::OFormLayerXMLImport > const & | GetFormImport () |
const css::uno::Reference< css::beans::XPropertySet > & | getImportInfo () const |
XMLEventImportHelper & | GetEventImport () |
SvXMLNamespaceMap & | GetNamespaceMap () |
const SvXMLNamespaceMap & | GetNamespaceMap () const |
const SvXMLUnitConverter & | GetMM100UnitConverter () const |
SvXMLUnitConverter & | GetMM100UnitConverter () |
const css::uno::Reference< css::xml::sax::XLocator > & | GetLocator () const |
const css::uno::Reference< css::frame::XModel > & | GetModel () const |
const css::uno::Reference< css::container::XNameContainer > & | GetGradientHelper () |
const css::uno::Reference< css::container::XNameContainer > & | GetHatchHelper () |
const css::uno::Reference< css::container::XNameContainer > & | GetBitmapHelper () |
const css::uno::Reference< css::container::XNameContainer > & | GetTransGradientHelper () |
const css::uno::Reference< css::container::XNameContainer > & | GetMarkerHelper () |
const css::uno::Reference< css::container::XNameContainer > & | GetDashHelper () |
css::uno::Reference< css::util::XNumberFormatsSupplier > & | GetNumberFormatsSupplier () |
void | SetNumberFormatsSupplier (const css::uno::Reference< css::util::XNumberFormatsSupplier > &_xNumberFormatSupplier) |
css::uno::Reference< css::graphic::XGraphic > | loadGraphicByURL (OUString const &rURL) |
css::uno::Reference< css::graphic::XGraphic > | loadGraphicFromBase64 (css::uno::Reference< css::io::XOutputStream > const &rxOutputStream) |
css::uno::Reference< css::io::XOutputStream > | GetStreamForGraphicObjectURLFromBase64 () const |
bool | IsPackageURL (const OUString &rURL) const |
OUString | ResolveEmbeddedObjectURL (const OUString &rURL, std::u16string_view rClassId) |
css::uno::Reference< css::io::XOutputStream > | GetStreamForEmbeddedObjectURLFromBase64 () const |
OUString | ResolveEmbeddedObjectURLFromBase64 () |
css::uno::Reference< css::embed::XStorage > const & | GetSourceStorage () const |
void | AddStyleDisplayName (XmlStyleFamily nFamily, const OUString &rName, const OUString &rDisplayName) |
OUString | GetStyleDisplayName (XmlStyleFamily nFamily, const OUString &rName) const |
ProgressBarHelper * | GetProgressBarHelper () |
void | AddNumberStyle (sal_Int32 nKey, const OUString &sName) |
virtual void | SetViewSettings (const css::uno::Sequence< css::beans::PropertyValue > &aViewProps) |
virtual void | SetConfigurationSettings (const css::uno::Sequence< css::beans::PropertyValue > &aConfigProps) |
virtual void | SetDocumentSpecificSettings (const OUString &_rSettingsGroupName, const css::uno::Sequence< css::beans::PropertyValue > &_rSettings) |
XMLFontStylesContext * | GetFontDecls () |
SvXMLStylesContext * | GetStyles () |
SvXMLStylesContext * | GetAutoStyles () |
const XMLFontStylesContext * | GetFontDecls () const |
const SvXMLStylesContext * | GetStyles () const |
const SvXMLStylesContext * | GetAutoStyles () const |
SvXMLImportFlags | getImportFlags () const |
bool | IsFormsSupported () const |
OUString | GetAbsoluteReference (const OUString &rValue) const |
sal_Unicode | ConvStarBatsCharToStarSymbol (sal_Unicode c) |
sal_Unicode | ConvStarMathCharToStarSymbol (sal_Unicode c) |
bool | IsTableShapeSupported () const |
OUString | GetODFVersion () const |
bool | IsOOoXML () const |
bool | IsMSO () const |
void | SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator) |
void | SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams={}) |
void | SetError (sal_Int32 nId, const OUString &rMsg1) |
virtual void | DisposingModel () |
::comphelper::UnoInterfaceToUniqueIdentifierMapper & | getInterfaceToIdentifierMapper () |
css::uno::Reference< css::uno::XComponentContext > const & | GetComponentContext () const |
bool | IsShapePositionInHoriL2R () const |
bool | IsTextDocInOOoFileFormat () const |
OUString | GetBaseURL () const |
OUString | GetDocumentBase () const |
void | SetXmlId (css::uno::Reference< css::uno::XInterface > const &i_xIfc, OUString const &i_rXmlId) |
void | AddRDFa (const css::uno::Reference< css::rdf::XMetadatable > &i_xObject, OUString const &i_rAbout, OUString const &i_rProperty, OUString const &i_rContent, OUString const &i_rDatatype) |
SAL_DLLPRIVATE::xmloff::RDFaImportHelper & | GetRDFaImportHelper () |
virtual void | initXForms () |
bool | getBuildIds (sal_Int32 &rUPD, sal_Int32 &rBuild) const |
bool | isGeneratorVersionOlderThan (sal_uInt16 const nOOoVersion, sal_uInt16 const nLOVersion) |
sal_uInt16 | getGeneratorVersion () const |
bool | embeddedFontAlreadyProcessed (const OUString &url) |
bool | addEmbeddedFont (const css::uno::Reference< css::io::XInputStream > &stream, const OUString &fontName, const char *extra, std::vector< unsigned char > const &key, bool eot) |
virtual void | NotifyContainsEmbeddedFont () |
void | NotifyMacroEventRead () |
bool | needFixPositionAfterZ () const |
Static Public Member Functions | |
static const OUString & | convertFormula (const OUString &_sFormula) |
![]() | |
static std::optional< SvXMLNamespaceMap > | processNSAttributes (std::optional< SvXMLNamespaceMap > &rpNamespaceMap, SvXMLImport *const pImport, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) |
static const css::uno::Sequence< sal_Int8 > & | getUnoTunnelId () noexcept |
static const OUString & | getNameFromToken (sal_Int32 nToken) |
static OUString | getPrefixAndNameFromToken (sal_Int32 nToken) |
static OUString | getNamespacePrefixFromToken (sal_Int32 nToken, const SvXMLNamespaceMap *pMap) |
static OUString | getNamespaceURIFromToken (sal_Int32 nToken) |
static OUString | getNamespacePrefixFromURI (const OUString &rURI) |
static sal_Int32 | getTokenFromName (const OUString &sName) |
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 |
![]() | |
virtual SvXMLImportContext * | CreateFastContext (sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList) |
virtual XMLTextImportHelper * | CreateTextImport () |
void | ClearTextImport () |
bool | HasShapeImport () const |
void | ClearShapeImport () |
::xmloff::OFormLayerXMLImport * | CreateFormImport () |
void | SetFontDecls (XMLFontStylesContext *pFontDecls) |
void | SetStyles (SvXMLStylesContext *pStyles) |
void | SetAutoStyles (SvXMLStylesContext *pAutoStyles) |
void | SetMasterStyles (SvXMLStylesContext *pMasterStyles) |
bool | IsODFVersionConsistent (const OUString &aODFVersion) |
const css::uno::Reference< css::document::XEmbeddedObjectResolver > & | GetEmbeddedResolver () const |
void | SetEmbeddedResolver (css::uno::Reference< css::document::XEmbeddedObjectResolver > const &_xEmbeddedResolver) |
const css::uno::Reference< css::document::XGraphicStorageHandler > & | GetGraphicStorageHandler () const |
void | SetGraphicStorageHandler (css::uno::Reference< css::document::XGraphicStorageHandler > const &rxGraphicStorageHandler) |
void | CreateNumberFormatsSupplier_ () |
void | CreateDataStylesImport_ () |
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 |
Additional Inherited Members | |
![]() | |
static constexpr OUStringLiteral | aNamespaceSeparator |
static const sal_uInt16 | OOo_1x |
static const sal_uInt16 | OOo_2x |
static const sal_uInt16 | OOo_30x |
static const sal_uInt16 | OOo_31x |
static const sal_uInt16 | OOo_32x |
static const sal_uInt16 | OOo_33x |
static const sal_uInt16 | OOo_34x |
static const sal_uInt16 | AOO_40x |
static const sal_uInt16 | AOO_4x |
static const sal_uInt16 | LO_flag |
static const sal_uInt16 | LO_3x |
static const sal_uInt16 | LO_41x |
static const sal_uInt16 | LO_42x |
static const sal_uInt16 | LO_43x |
static const sal_uInt16 | LO_44x |
static const sal_uInt16 | LO_5x |
static const sal_uInt16 | LO_6x |
static const sal_uInt16 | LO_63x |
static const sal_uInt16 | LO_7x |
static const sal_uInt16 | ProductVersionUnknown |
![]() | |
static SchXMLImportHelper * | CreateChartImport () |
![]() | |
bool | mbIsFormsSupported |
bool | mbIsTableShapeSupported |
bool | mbNotifyMacroEventRead |
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 SvXMLNamespaceMap::Add(), rptxml::OXMLHelper::GetCellStylePropertyMap(), rptxml::OXMLHelper::GetColumnStyleProps(), SvXMLImport::GetMM100UnitConverter(), SvXMLImport::GetNamespaceMap(), rptxml::OXMLHelper::GetRowStyleProps(), GetXMLToken(), m_xCellStylesPropertySetMapper, m_xColumnStylesPropertySetMapper, m_xPropHdlFactory, m_xRowStylesPropertySetMapper, SvXMLUnitConverter::SetCoreMeasureUnit(), SvXMLUnitConverter::SetXMLMeasureUnit(), XML_N_RPT, XML_N_RPT_OASIS, and XML_NAMESPACE_REPORT.
|
static |
Definition at line 692 of file xmlfilter.cxx.
|
overrideprotectedvirtual |
Definition at line 634 of file xmlfilter.cxx.
References CreateMetaContext(), SvXMLImport::GetProgressBarHelper(), ProgressBarHelper::Increment(), 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 673 of file xmlfilter.cxx.
References SvXMLImport::SetFontDecls().
SvXMLImportContext * rptxml::ORptFilter::CreateMetaContext | ( | const sal_Int32 | nElement | ) |
Definition at line 734 of file xmlfilter.cxx.
References SvXMLImport::getImportFlags(), and SvXMLImport::GetModel().
Referenced by CreateFastContext().
|
overrideprotectedvirtual |
Reimplemented from SvXMLImport.
Definition at line 681 of file xmlfilter.cxx.
References SvXMLImport::GetModel().
SvXMLImportContext * rptxml::ORptFilter::CreateStylesContext | ( | bool | bIsAutoStyle | ) |
Definition at line 659 of file xmlfilter.cxx.
References SvXMLImport::GetAutoStyles(), SvXMLImport::GetStyles(), SvXMLImport::SetAutoStyles(), and SvXMLImport::SetStyles().
|
overridevirtual |
Reimplemented from SvXMLImport.
Definition at line 706 of file xmlfilter.cxx.
References SvXMLImport::ClearShapeImport(), SvXMLImport::endDocument(), SvXMLImport::GetModel(), and SvXMLImport::HasShapeImport().
|
overridevirtual |
Definition at line 328 of file xmlfilter.cxx.
References vcl::Window::EnterWait(), Application::GetFocusWindow(), SvXMLImport::GetModel(), implImport(), and vcl::Window::LeaveWait().
void rptxml::ORptFilter::FinishStyles | ( | ) |
Definition at line 686 of file xmlfilter.cxx.
References SvXMLStylesContext::FinishStyles(), and SvXMLImport::GetStyles().
|
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.
Referenced by rptxml::OXMLReport::endFastElement().
|
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< class >::get(), SvXMLImport::GetComponentContext(), SvXMLImport::GetModel(), SfxMedium::GetStorage(), ErrorHandler::HandleError(), tools::SvRef< T >::is(), ErrCode::IsWarning(), m_xReportDefinition, utl::MediaDescriptor::PROP_DOCUMENTBASEURL, rptxml::ReadThroughComponent(), SERVICE_CONTENTIMPORTER, SERVICE_METAIMPORTER, SERVICE_SETTINGSIMPORTER, SERVICE_STYLESIMPORTER, sHierarchicalDocumentName, u, void(), 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 729 of file xmlfilter.cxx.
References m_aFunctions.
Referenced by rptxml::OXMLFunction::endFastElement().
bool rptxml::ORptFilter::isOldFormat | ( | ) | const |
Definition at line 746 of file xmlfilter.cxx.
References SvXMLImport::getImportInfo(), and u.
Referenced by rptxml::OXMLFormatCondition::endFastElement().
void rptxml::ORptFilter::removeFunction | ( | const OUString & | _sFunctionName | ) |
Definition at line 724 of file xmlfilter.cxx.
References m_aFunctions.
|
overridevirtual |
Reimplemented from SvXMLImport.
Definition at line 697 of file xmlfilter.cxx.
References SvXMLImport::GetModel(), reportdesign::OReportDefinition::getSdrModel(), m_pReportModel, m_xReportDefinition, and SvXMLImport::startDocument().
|
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().