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

#include <RDFaImportHelper.hxx>

Collaboration diagram for xmloff::RDFaImportHelper:
[legend]

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 SvXMLImportGetImport () const
 

Private Attributes

const SvXMLImportm_rImport
 
::std::vector< RDFaEntrym_RDFaEntries
 

Detailed Description

Definition at line 42 of file RDFaImportHelper.hxx.

Constructor & Destructor Documentation

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

Definition at line 360 of file RDFaImportHelper.cxx.

xmloff::RDFaImportHelper::~RDFaImportHelper ( )

Definition at line 365 of file RDFaImportHelper.cxx.

Member Function Documentation

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 400 of file RDFaImportHelper.cxx.

References m_RDFaEntries, and SAL_WARN.

Referenced by ParseAndAddRDFa().

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

Definition at line 50 of file RDFaImportHelper.hxx.

References m_rImport.

Referenced by InsertRDFa(), and ParseRDFa().

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 433 of file RDFaImportHelper.cxx.

References GetImport(), m_RDFaEntries, and SAL_WARN_IF.

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 418 of file RDFaImportHelper.cxx.

References AddRDFa(), and ParseRDFa().

Referenced by SvXMLImport::AddRDFa().

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 370 of file RDFaImportHelper.cxx.

References GetImport(), and SAL_INFO.

Referenced by ParseAndAddRDFa().

Member Data Documentation

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

Definition at line 48 of file RDFaImportHelper.hxx.

Referenced by AddRDFa(), and InsertRDFa().

const SvXMLImport& xmloff::RDFaImportHelper::m_rImport
private

Definition at line 46 of file RDFaImportHelper.hxx.

Referenced by GetImport().


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