LibreOffice Module reportdesign (master)  1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rptxml::ORptFilter Class Reference

#include <xmlfilter.hxx>

Inheritance diagram for rptxml::ORptFilter:
[legend]
Collaboration diagram for rptxml::ORptFilter:
[legend]

Public Types

typedef std::map< OUString, Sequence< PropertyValue > > TPropertyNameMap
 
typedef std::map< OUString, Reference< XFunction > > TGroupFunctionMap
 

Public Member Functions

SvXMLImportContextCreateStylesContext (bool bIsAutoStyle)
 
SvXMLImportContextCreateMetaContext (const sal_Int32 nElement)
 
SvXMLImportContextCreateFontDeclsContext ()
 
 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 SvXMLTokenMapGetReportElemTokenMap () const
 
const SvXMLTokenMapGetCellElemTokenMap () const
 
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 TGroupFunctionMapgetFunctions () const
 
bool isOldFormat () const
 
- Public Member Functions inherited from SvXMLImport
 SvXMLImport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString const &implementationName, SvXMLImportFlags nImportFlags=SvXMLImportFlags::ALL, const css::uno::Sequence< OUString > &sSupportedServiceNames={})
 
void cleanup ()
 
virtual ~SvXMLImport () override
 
virtual void SAL_CALL startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
 
virtual void SAL_CALL endElement (const OUString &aName) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
virtual void SAL_CALL ignorableWhitespace (const OUString &aWhitespaces) 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 startCDATA () override
 
virtual void SAL_CALL endCDATA () override
 
virtual void SAL_CALL comment (const OUString &sComment) override
 
virtual void SAL_CALL allowLineBreak () override
 
virtual void SAL_CALL unknown (const OUString &sString) 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 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
 
SvXMLNumFmtHelperGetDataStylesImport ()
 
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
 
XMLEventImportHelperGetEventImport ()
 
SvXMLNamespaceMapGetNamespaceMap ()
 
const SvXMLNamespaceMapGetNamespaceMap () const
 
const SvXMLUnitConverterGetMM100UnitConverter () const
 
SvXMLUnitConverterGetMM100UnitConverter ()
 
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, const OUString &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
 
ProgressBarHelperGetProgressBarHelper ()
 
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)
 
XMLFontStylesContextGetFontDecls ()
 
SvXMLStylesContextGetStyles ()
 
SvXMLStylesContextGetAutoStyles ()
 
const XMLFontStylesContextGetFontDecls () const
 
const SvXMLStylesContextGetStyles () const
 
const SvXMLStylesContextGetAutoStyles () 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 const & GetODFVersion () const
 
bool IsOOoXML () 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)
 
void SetError (sal_Int32 nId, const OUString &rMsg1)
 
void SetError (sal_Int32 nId, const OUString &rMsg1, const OUString &rMsg2)
 
virtual void DisposingModel ()
 
::comphelper::UnoInterfaceToUniqueIdentifierMappergetInterfaceToIdentifierMapper ()
 
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)
 
virtual void NotifyEmbeddedFontRead ()
 
void NotifyMacroEventRead ()
 
bool needFixPositionAfterZ () const
 

Static Public Member Functions

static const OUString & convertFormula (const OUString &_sFormula)
 
- Static Public Member Functions inherited from SvXMLImport
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
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 SvXMLImportContextCreateFastContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual XMLShapeImportHelperCreateShapeImport () override
 
virtual ~ORptFilter () override throw ()
 
- Protected Member Functions inherited from SvXMLImport
virtual SvXMLImportContextCreateFastContext (sal_Int32 Element, const ::css::uno::Reference< ::css::xml::sax::XFastAttributeList > &xAttrList)
 
virtual XMLTextImportHelperCreateTextImport ()
 
void ClearTextImport ()
 
bool HasShapeImport () const
 
void ClearShapeImport ()
 
::xmloff::OFormLayerXMLImportCreateFormImport ()
 
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
 
mutable::std::unique_ptr< SvXMLTokenMapm_pReportElemTokenMap
 
mutable::std::unique_ptr< SvXMLTokenMapm_pCellElemTokenMap
 
rtl::Reference< XMLPropertyHandlerFactorym_xPropHdlFactory
 
rtl::Reference< XMLPropertySetMapperm_xCellStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperm_xColumnStylesPropertySetMapper
 
rtl::Reference< XMLPropertySetMapperm_xRowStylesPropertySetMapper
 
Reference< XReportDefinition > m_xReportDefinition
 
std::shared_ptr< rptui::OReportModelm_pReportModel
 

Additional Inherited Members

- Static Public Attributes inherited from SvXMLImport
static constexpr OUStringLiteral aDefaultNamespace
 
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_7x
 
static const sal_uInt16 ProductVersionUnknown
 
- Static Protected Member Functions inherited from SvXMLImport
static SchXMLImportHelperCreateChartImport ()
 
- Protected Attributes inherited from SvXMLImport
bool mbIsFormsSupported
 
bool mbIsTableShapeSupported
 
bool mbNotifyMacroEventRead
 

Detailed Description

Definition at line 52 of file xmlfilter.hxx.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

rptxml::ORptFilter::~ORptFilter ( )
throw (
)
overrideprotectedvirtual

Definition at line 326 of file xmlfilter.cxx.

rptxml::ORptFilter::ORptFilter ( const Reference< XComponentContext > &  _rxContext,
OUString const &  rImplementationName,
SvXMLImportFlags  nImportFlags 
)

Member Function Documentation

const OUString & rptxml::ORptFilter::convertFormula ( const OUString &  _sFormula)
static

Definition at line 752 of file xmlfilter.cxx.

SvXMLImportContext * rptxml::ORptFilter::CreateFastContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overrideprotectedvirtual
SvXMLImportContext * rptxml::ORptFilter::CreateFontDeclsContext ( )

Definition at line 733 of file xmlfilter.cxx.

References SvXMLImport::SetFontDecls().

SvXMLImportContext * rptxml::ORptFilter::CreateMetaContext ( const sal_Int32  nElement)

Definition at line 794 of file xmlfilter.cxx.

References SvXMLImport::getImportFlags(), and SvXMLImport::GetModel().

Referenced by CreateFastContext().

XMLShapeImportHelper * rptxml::ORptFilter::CreateShapeImport ( )
overrideprotectedvirtual

Reimplemented from SvXMLImport.

Definition at line 741 of file xmlfilter.cxx.

References SvXMLImport::GetModel().

SvXMLImportContext * rptxml::ORptFilter::CreateStylesContext ( bool  bIsAutoStyle)
void rptxml::ORptFilter::endDocument ( )
overridevirtual
sal_Bool SAL_CALL rptxml::ORptFilter::filter ( const Sequence< PropertyValue > &  rDescriptor)
overridevirtual
void rptxml::ORptFilter::FinishStyles ( )

Definition at line 746 of file xmlfilter.cxx.

References SvXMLStylesContext::FinishStyles(), and SvXMLImport::GetStyles().

const SvXMLTokenMap & rptxml::ORptFilter::GetCellElemTokenMap ( ) const
const rtl::Reference< XMLPropertySetMapper >& rptxml::ORptFilter::GetCellStylesPropertySetMapper ( ) const
inline
const rtl::Reference< XMLPropertySetMapper >& rptxml::ORptFilter::GetColumnStylesPropertySetMapper ( ) const
inline
const TGroupFunctionMap& rptxml::ORptFilter::getFunctions ( ) const
inline

Definition at line 122 of file xmlfilter.hxx.

References m_aFunctions.

Referenced by rptxml::OXMLReport::endFastElement().

const Reference<XReportDefinition>& rptxml::ORptFilter::getReportDefinition ( ) const
inline
const SvXMLTokenMap & rptxml::ORptFilter::GetReportElemTokenMap ( ) const
const rtl::Reference< XMLPropertySetMapper >& rptxml::ORptFilter::GetRowStylesPropertySetMapper ( ) const
inline
bool rptxml::ORptFilter::implImport ( const Sequence< PropertyValue > &  rDescriptor)
private
void rptxml::ORptFilter::insertFunction ( const css::uno::Reference< css::report::XFunction > &  _xFunction)

inserts a new function

Parameters
_xFunction

Definition at line 789 of file xmlfilter.cxx.

References m_aFunctions.

Referenced by rptxml::OXMLFunction::endFastElement().

bool rptxml::ORptFilter::isOldFormat ( ) const

Definition at line 806 of file xmlfilter.cxx.

References SvXMLImport::getImportInfo().

Referenced by rptxml::OXMLFormatCondition::endFastElement().

void rptxml::ORptFilter::removeFunction ( const OUString &  _sFunctionName)

Definition at line 784 of file xmlfilter.cxx.

References m_aFunctions.

void SAL_CALL rptxml::ORptFilter::startDocument ( )
overridevirtual

Member Data Documentation

TGroupFunctionMap rptxml::ORptFilter::m_aFunctions
private

Definition at line 59 of file xmlfilter.hxx.

Referenced by getFunctions(), insertFunction(), and removeFunction().

mutable ::std::unique_ptr<SvXMLTokenMap> rptxml::ORptFilter::m_pCellElemTokenMap
private

Definition at line 62 of file xmlfilter.hxx.

Referenced by GetCellElemTokenMap().

mutable ::std::unique_ptr<SvXMLTokenMap> rptxml::ORptFilter::m_pReportElemTokenMap
private

Definition at line 61 of file xmlfilter.hxx.

Referenced by GetReportElemTokenMap().

std::shared_ptr<rptui::OReportModel> rptxml::ORptFilter::m_pReportModel
private

Definition at line 70 of file xmlfilter.hxx.

Referenced by startDocument().

rtl::Reference< XMLPropertySetMapper > rptxml::ORptFilter::m_xCellStylesPropertySetMapper
private

Definition at line 65 of file xmlfilter.hxx.

Referenced by GetCellStylesPropertySetMapper(), and ORptFilter().

rtl::Reference< XMLPropertySetMapper > rptxml::ORptFilter::m_xColumnStylesPropertySetMapper
private

Definition at line 66 of file xmlfilter.hxx.

Referenced by GetColumnStylesPropertySetMapper(), and ORptFilter().

rtl::Reference< XMLPropertyHandlerFactory > rptxml::ORptFilter::m_xPropHdlFactory
private

Definition at line 64 of file xmlfilter.hxx.

Referenced by ORptFilter().

Reference<XReportDefinition> rptxml::ORptFilter::m_xReportDefinition
private

Definition at line 69 of file xmlfilter.hxx.

Referenced by getReportDefinition(), implImport(), and startDocument().

rtl::Reference< XMLPropertySetMapper > rptxml::ORptFilter::m_xRowStylesPropertySetMapper
private

Definition at line 67 of file xmlfilter.hxx.

Referenced by GetRowStylesPropertySetMapper(), and ORptFilter().


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