LibreOffice Module xmloff (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
xmloff::RDFaImportHelper Class Reference

#include <RDFaImportHelper.hxx>

Public Member Functions

 RDFaImportHelper (const SvXMLImport &i_rImport)
 
 ~RDFaImportHelper ()
 
std::shared_ptr< ParsedRDFaAttributesParseRDFa (OUString const &i_rAbout, OUString const &i_rProperty, OUString const &i_rContent, OUString const &i_rDatatype)
 Parse RDFa attributes. More...
 
void AddRDFa (css::uno::Reference< css::rdf::XMetadatable > const &i_xObject, std::shared_ptr< ParsedRDFaAttributes > const &i_pRDFaAttributes)
 Add a RDFa statement; must have been parsed with ParseRDFa. More...
 
void ParseAndAddRDFa (css::uno::Reference< css::rdf::XMetadatable > const &i_xObject, OUString const &i_rAbout, OUString const &i_rProperty, OUString const &i_rContent, OUString const &i_rDatatype)
 Parse and add a RDFa statement; parameters are XML attribute values. More...
 
void InsertRDFa (css::uno::Reference< css::rdf::XRepositorySupplier > const &i_xModel)
 Insert all added statements into the RDF repository. More...
 

Private Member Functions

const SvXMLImport & GetImport () const
 

Private Attributes

const SvXMLImport & m_rImport
 
::std::vector< RDFaEntrym_RDFaEntries
 

Detailed Description

Definition at line 41 of file RDFaImportHelper.hxx.

Constructor & Destructor Documentation

◆ RDFaImportHelper()

xmloff::RDFaImportHelper::RDFaImportHelper ( const SvXMLImport &  i_rImport)

Definition at line 361 of file RDFaImportHelper.cxx.

◆ ~RDFaImportHelper()

xmloff::RDFaImportHelper::~RDFaImportHelper ( )

Definition at line 366 of file RDFaImportHelper.cxx.

Member Function Documentation

◆ AddRDFa()

void xmloff::RDFaImportHelper::AddRDFa ( css::uno::Reference< css::rdf::XMetadatable > const &  i_xObject,
std::shared_ptr< ParsedRDFaAttributes > const &  i_pRDFaAttributes 
)

Add a RDFa statement; must have been parsed with ParseRDFa.

Definition at line 401 of file RDFaImportHelper.cxx.

References m_RDFaEntries, and SAL_WARN.

Referenced by ParseAndAddRDFa().

◆ GetImport()

const SvXMLImport & xmloff::RDFaImportHelper::GetImport ( ) const
inlineprivate

Definition at line 49 of file RDFaImportHelper.hxx.

References m_rImport.

Referenced by InsertRDFa(), and ParseRDFa().

◆ InsertRDFa()

void xmloff::RDFaImportHelper::InsertRDFa ( css::uno::Reference< css::rdf::XRepositorySupplier > const &  i_xModel)

Insert all added statements into the RDF repository.

This is done after the input file has been read, to prevent collision between generated ids and ids in the file.

Definition at line 434 of file RDFaImportHelper.cxx.

References GetImport(), m_RDFaEntries, and SAL_WARN_IF.

◆ ParseAndAddRDFa()

void xmloff::RDFaImportHelper::ParseAndAddRDFa ( css::uno::Reference< css::rdf::XMetadatable > const &  i_xObject,
OUString const &  i_rAbout,
OUString const &  i_rProperty,
OUString const &  i_rContent,
OUString const &  i_rDatatype 
)

Parse and add a RDFa statement; parameters are XML attribute values.

Definition at line 419 of file RDFaImportHelper.cxx.

References AddRDFa(), and ParseRDFa().

◆ ParseRDFa()

std::shared_ptr< ParsedRDFaAttributes > xmloff::RDFaImportHelper::ParseRDFa ( OUString const &  i_rAbout,
OUString const &  i_rProperty,
OUString const &  i_rContent,
OUString const &  i_rDatatype 
)

Parse RDFa attributes.

Definition at line 371 of file RDFaImportHelper.cxx.

References GetImport(), and SAL_INFO.

Referenced by ParseAndAddRDFa().

Member Data Documentation

◆ m_RDFaEntries

::std::vector< RDFaEntry > xmloff::RDFaImportHelper::m_RDFaEntries
private

Definition at line 47 of file RDFaImportHelper.hxx.

Referenced by AddRDFa(), and InsertRDFa().

◆ m_rImport

const SvXMLImport& xmloff::RDFaImportHelper::m_rImport
private

Definition at line 45 of file RDFaImportHelper.hxx.

Referenced by GetImport().


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