diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-25 15:17:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-06 10:59:41 +0200 |
commit | dc28e90d200a839d4017d548217ee5ce8a23f848 (patch) | |
tree | a6ae872fb19a046292d96d280da286a20a397def /reportdesign | |
parent | 465356ecc81e23016b4289ab16e99084f2a7b84e (diff) |
fdo#84938: convert IMPORT_ constants to 'enum class'
Change-Id: Idaa8f07c62b3ba93c27ca5fe286720254baac10d
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.cxx | 16 | ||||
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.hxx | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx index 776a60e000dd..84e53dca4be9 100644 --- a/reportdesign/source/filter/xml/xmlfilter.cxx +++ b/reportdesign/source/filter/xml/xmlfilter.cxx @@ -283,7 +283,7 @@ sal_Int32 ReadThroughComponent( uno::Reference< uno::XInterface > ORptImportHelper::create(uno::Reference< uno::XComponentContext > const & xContext) { - return static_cast< XServiceInfo* >(new ORptFilter(xContext, IMPORT_SETTINGS )); + return static_cast< XServiceInfo* >(new ORptFilter(xContext, SvXMLImportFlags::SETTINGS )); } OUString ORptImportHelper::getImplementationName_Static( ) throw (RuntimeException) @@ -300,8 +300,8 @@ Sequence< OUString > ORptImportHelper::getSupportedServiceNames_Static( ) throw Reference< XInterface > ORptContentImportHelper::create(const Reference< XComponentContext > & xContext) { - return static_cast< XServiceInfo* >(new ORptFilter(xContext,IMPORT_AUTOSTYLES | IMPORT_CONTENT | IMPORT_SCRIPTS | - IMPORT_FONTDECLS )); + return static_cast< XServiceInfo* >(new ORptFilter(xContext, SvXMLImportFlags::AUTOSTYLES | SvXMLImportFlags::CONTENT | SvXMLImportFlags::SCRIPTS | + SvXMLImportFlags::FONTDECLS )); } OUString ORptContentImportHelper::getImplementationName_Static( ) throw (RuntimeException) @@ -320,8 +320,8 @@ Sequence< OUString > ORptContentImportHelper::getSupportedServiceNames_Static( Reference< XInterface > ORptStylesImportHelper::create(Reference< XComponentContext > const & xContext) { return static_cast< XServiceInfo* >(new ORptFilter(xContext, - IMPORT_STYLES | IMPORT_MASTERSTYLES | IMPORT_AUTOSTYLES | - IMPORT_FONTDECLS )); + SvXMLImportFlags::STYLES | SvXMLImportFlags::MASTERSTYLES | SvXMLImportFlags::AUTOSTYLES | + SvXMLImportFlags::FONTDECLS )); } OUString ORptStylesImportHelper::getImplementationName_Static( ) throw (RuntimeException) @@ -340,7 +340,7 @@ Sequence< OUString > ORptStylesImportHelper::getSupportedServiceNames_Static( ) Reference< XInterface > ORptMetaImportHelper::create(Reference< XComponentContext > const & xContext) { return static_cast< XServiceInfo* >(new ORptFilter(xContext, - IMPORT_META)); + SvXMLImportFlags::META)); } OUString ORptMetaImportHelper::getImplementationName_Static( ) throw (RuntimeException) @@ -358,7 +358,7 @@ Sequence< OUString > ORptMetaImportHelper::getSupportedServiceNames_Static( ) t // - ORptFilter - -ORptFilter::ORptFilter( const uno::Reference< XComponentContext >& _rxContext,sal_uInt16 nImportFlags ) +ORptFilter::ORptFilter( const uno::Reference< XComponentContext >& _rxContext, SvXMLImportFlags nImportFlags ) :SvXMLImport(_rxContext, getImplementationName_Static(), nImportFlags) { GetMM100UnitConverter().SetCoreMeasureUnit(util::MeasureUnit::MM_100TH); @@ -1033,7 +1033,7 @@ SvXMLImportContext* ORptFilter::CreateMetaContext(const OUString& rLocalName,con { SvXMLImportContext* pContext = NULL; - if ( (getImportFlags() & IMPORT_META) ) + if ( (getImportFlags() & SvXMLImportFlags::META) ) { uno::Reference<document::XDocumentPropertiesSupplier> xDPS(GetModel(), uno::UNO_QUERY_THROW); pContext = new SvXMLMetaDocumentContext(*this,XML_NAMESPACE_OFFICE, rLocalName,xDPS->getDocumentProperties()); diff --git a/reportdesign/source/filter/xml/xmlfilter.hxx b/reportdesign/source/filter/xml/xmlfilter.hxx index e5448f86c5eb..662b01365df1 100644 --- a/reportdesign/source/filter/xml/xmlfilter.hxx +++ b/reportdesign/source/filter/xml/xmlfilter.hxx @@ -117,7 +117,7 @@ protected: virtual ~ORptFilter() throw(); public: - ORptFilter( const Reference< XComponentContext >& _rxContext, sal_uInt16 nImportFlags = IMPORT_ALL ); + ORptFilter( const Reference< XComponentContext >& _rxContext, SvXMLImportFlags nImportFlags = SvXMLImportFlags::ALL ); // XFilter virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(RuntimeException, std::exception) SAL_OVERRIDE; |