summaryrefslogtreecommitdiff
path: root/unoxml/source/rdf
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-04-07 12:06:47 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-04-07 14:23:11 +0200
commit1946794ae09ba732022fe6a74ea45e304ab70b84 (patch)
treee32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /unoxml/source/rdf
parent5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff)
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'unoxml/source/rdf')
-rw-r--r--unoxml/source/rdf/CBlankNode.cxx32
-rw-r--r--unoxml/source/rdf/CLiteral.cxx54
-rw-r--r--unoxml/source/rdf/CNodes.hxx12
-rw-r--r--unoxml/source/rdf/CURI.cxx58
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx190
-rw-r--r--unoxml/source/rdf/librdf_repository.hxx4
6 files changed, 175 insertions, 175 deletions
diff --git a/unoxml/source/rdf/CBlankNode.cxx b/unoxml/source/rdf/CBlankNode.cxx
index 1ddbbbce8900..f4540cfd1d0f 100644
--- a/unoxml/source/rdf/CBlankNode.cxx
+++ b/unoxml/source/rdf/CBlankNode.cxx
@@ -41,15 +41,15 @@ public:
virtual ~CBlankNode() {}
// ::com::sun::star::lang::XServiceInfo:
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
- virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString & ServiceName) throw (css::uno::RuntimeException);
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
+ virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException);
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
// ::com::sun::star::lang::XInitialization:
virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception);
// ::com::sun::star::rdf::XNode:
- virtual ::rtl::OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
private:
CBlankNode(const CBlankNode &); // not defined
@@ -57,7 +57,7 @@ private:
css::uno::Reference< css::uno::XComponentContext > m_xContext;
- ::rtl::OUString m_NodeID;
+ OUString m_NodeID;
};
CBlankNode::CBlankNode(css::uno::Reference< css::uno::XComponentContext > const & context) :
@@ -65,14 +65,14 @@ CBlankNode::CBlankNode(css::uno::Reference< css::uno::XComponentContext > const
{}
// com.sun.star.uno.XServiceInfo:
-::rtl::OUString SAL_CALL CBlankNode::getImplementationName() throw (css::uno::RuntimeException)
+OUString SAL_CALL CBlankNode::getImplementationName() throw (css::uno::RuntimeException)
{
return comp_CBlankNode::_getImplementationName();
}
-::sal_Bool SAL_CALL CBlankNode::supportsService(::rtl::OUString const & serviceName) throw (css::uno::RuntimeException)
+::sal_Bool SAL_CALL CBlankNode::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException)
{
- css::uno::Sequence< ::rtl::OUString > serviceNames = comp_CBlankNode::_getSupportedServiceNames();
+ css::uno::Sequence< OUString > serviceNames = comp_CBlankNode::_getSupportedServiceNames();
for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
if (serviceNames[i] == serviceName)
return sal_True;
@@ -80,7 +80,7 @@ CBlankNode::CBlankNode(css::uno::Reference< css::uno::XComponentContext > const
return sal_False;
}
-css::uno::Sequence< ::rtl::OUString > SAL_CALL CBlankNode::getSupportedServiceNames() throw (css::uno::RuntimeException)
+css::uno::Sequence< OUString > SAL_CALL CBlankNode::getSupportedServiceNames() throw (css::uno::RuntimeException)
{
return comp_CBlankNode::_getSupportedServiceNames();
}
@@ -90,14 +90,14 @@ void SAL_CALL CBlankNode::initialize(const css::uno::Sequence< ::com::sun::star:
{
if (aArguments.getLength() != 1) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CBlankNode::initialize: "
+ OUString("CBlankNode::initialize: "
"must give exactly 1 argument"), *this, 1);
}
- ::rtl::OUString arg;
+ OUString arg;
if (!(aArguments[0] >>= arg)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CBlankNode::initialize: "
+ OUString("CBlankNode::initialize: "
"argument must be string"), *this, 0);
}
@@ -106,13 +106,13 @@ void SAL_CALL CBlankNode::initialize(const css::uno::Sequence< ::com::sun::star:
m_NodeID = arg;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CBlankNode::initialize: "
+ OUString("CBlankNode::initialize: "
"argument is not valid blank node ID"), *this, 0);
}
}
// ::com::sun::star::rdf::XNode:
-::rtl::OUString SAL_CALL CBlankNode::getStringValue() throw (css::uno::RuntimeException)
+OUString SAL_CALL CBlankNode::getStringValue() throw (css::uno::RuntimeException)
{
return m_NodeID;
}
@@ -124,8 +124,8 @@ void SAL_CALL CBlankNode::initialize(const css::uno::Sequence< ::com::sun::star:
// component helper namespace
namespace comp_CBlankNode {
-::rtl::OUString SAL_CALL _getImplementationName() {
- return ::rtl::OUString( "CBlankNode");
+OUString SAL_CALL _getImplementationName() {
+ return OUString( "CBlankNode");
}
css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index 272f6d207cd9..14c3fca88d95 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -43,19 +43,19 @@ public:
virtual ~CLiteral() {}
// ::com::sun::star::lang::XServiceInfo:
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
- virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString & ServiceName) throw (css::uno::RuntimeException);
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
+ virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException);
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
// ::com::sun::star::lang::XInitialization:
virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception);
// ::com::sun::star::rdf::XNode:
- virtual ::rtl::OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
// ::com::sun::star::rdf::XLiteral:
- virtual ::rtl::OUString SAL_CALL getValue() throw (css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getLanguage() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getValue() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getLanguage() throw (css::uno::RuntimeException);
virtual css::uno::Reference< css::rdf::XURI > SAL_CALL getDatatype() throw (css::uno::RuntimeException);
private:
@@ -64,8 +64,8 @@ private:
css::uno::Reference< css::uno::XComponentContext > m_xContext;
- ::rtl::OUString m_Value;
- ::rtl::OUString m_Language;
+ OUString m_Value;
+ OUString m_Language;
css::uno::Reference< css::rdf::XURI > m_xDatatype;
};
@@ -74,14 +74,14 @@ CLiteral::CLiteral(css::uno::Reference< css::uno::XComponentContext > const & co
{}
// com.sun.star.uno.XServiceInfo:
-::rtl::OUString SAL_CALL CLiteral::getImplementationName() throw (css::uno::RuntimeException)
+OUString SAL_CALL CLiteral::getImplementationName() throw (css::uno::RuntimeException)
{
return comp_CLiteral::_getImplementationName();
}
-::sal_Bool SAL_CALL CLiteral::supportsService(::rtl::OUString const & serviceName) throw (css::uno::RuntimeException)
+::sal_Bool SAL_CALL CLiteral::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException)
{
- css::uno::Sequence< ::rtl::OUString > serviceNames = comp_CLiteral::_getSupportedServiceNames();
+ css::uno::Sequence< OUString > serviceNames = comp_CLiteral::_getSupportedServiceNames();
for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
if (serviceNames[i] == serviceName)
return sal_True;
@@ -89,7 +89,7 @@ CLiteral::CLiteral(css::uno::Reference< css::uno::XComponentContext > const & co
return sal_False;
}
-css::uno::Sequence< ::rtl::OUString > SAL_CALL CLiteral::getSupportedServiceNames() throw (css::uno::RuntimeException)
+css::uno::Sequence< OUString > SAL_CALL CLiteral::getSupportedServiceNames() throw (css::uno::RuntimeException)
{
return comp_CLiteral::_getSupportedServiceNames();
}
@@ -100,14 +100,14 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u
const sal_Int32 len( aArguments.getLength() );
if (len < 1 || len > 2) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"must give 1 or 2 argument(s)"), *this, 2);
}
- ::rtl::OUString arg0;
+ OUString arg0;
if (!(aArguments[0] >>= arg0)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"argument must be string"), *this, 0);
}
//FIXME: what is legal?
@@ -115,19 +115,19 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u
m_Value = arg0;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"argument is not valid literal value"), *this, 0);
}
if (len > 1) {
- ::rtl::OUString arg1;
+ OUString arg1;
css::uno::Reference< css::rdf::XURI > xURI;
if ((aArguments[1] >>= arg1)) {
if (!arg1.isEmpty()) {
m_Language = arg1;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"argument is not valid language"), *this, 1);
}
} else if ((aArguments[1] >>= xURI)) {
@@ -135,27 +135,27 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u
m_xDatatype = xURI;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"argument is null"), *this, 1);
}
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CLiteral::initialize: "
+ OUString("CLiteral::initialize: "
"argument must be string or URI"), *this, 1);
}
}
}
// ::com::sun::star::rdf::XNode:
-::rtl::OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException)
+OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException)
{
if (!m_Language.isEmpty()) {
- ::rtl::OUStringBuffer buf(m_Value);
+ OUStringBuffer buf(m_Value);
buf.appendAscii("@");
buf.append(m_Language);
return buf.makeStringAndClear();
} else if (m_xDatatype.is()) {
- ::rtl::OUStringBuffer buf(m_Value);
+ OUStringBuffer buf(m_Value);
buf.appendAscii("^^");
buf.append(m_xDatatype->getStringValue());
return buf.makeStringAndClear();
@@ -165,12 +165,12 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u
}
// ::com::sun::star::rdf::XLiteral:
-::rtl::OUString SAL_CALL CLiteral::getValue() throw (css::uno::RuntimeException)
+OUString SAL_CALL CLiteral::getValue() throw (css::uno::RuntimeException)
{
return m_Value;
}
-::rtl::OUString SAL_CALL CLiteral::getLanguage() throw (css::uno::RuntimeException)
+OUString SAL_CALL CLiteral::getLanguage() throw (css::uno::RuntimeException)
{
return m_Language;
}
@@ -187,8 +187,8 @@ css::uno::Reference< css::rdf::XURI > SAL_CALL CLiteral::getDatatype() throw (cs
// component helper namespace
namespace comp_CLiteral {
-::rtl::OUString SAL_CALL _getImplementationName() {
- return ::rtl::OUString( "CLiteral");
+OUString SAL_CALL _getImplementationName() {
+ return OUString( "CLiteral");
}
css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
diff --git a/unoxml/source/rdf/CNodes.hxx b/unoxml/source/rdf/CNodes.hxx
index 87e1344c7282..37ea5283fb2e 100644
--- a/unoxml/source/rdf/CNodes.hxx
+++ b/unoxml/source/rdf/CNodes.hxx
@@ -28,8 +28,8 @@
namespace comp_CBlankNode {
// component and service helper functions:
-::rtl::OUString SAL_CALL _getImplementationName();
-css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
+OUString SAL_CALL _getImplementationName();
+css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Reference< css::uno::XComponentContext > const & context );
} // closing component helper namespace
@@ -39,8 +39,8 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Referenc
namespace comp_CURI {
// component and service helper functions:
-::rtl::OUString SAL_CALL _getImplementationName();
-css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
+OUString SAL_CALL _getImplementationName();
+css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Reference< css::uno::XComponentContext > const & context );
} // closing component helper namespace
@@ -50,8 +50,8 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Referenc
namespace comp_CLiteral {
// component and service helper functions:
-::rtl::OUString SAL_CALL _getImplementationName();
-css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
+OUString SAL_CALL _getImplementationName();
+css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Reference< css::uno::XComponentContext > const & context );
} // closing component helper namespace
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx
index c275b6861b3f..e7aa311ebb75 100644
--- a/unoxml/source/rdf/CURI.cxx
+++ b/unoxml/source/rdf/CURI.cxx
@@ -42,19 +42,19 @@ public:
virtual ~CURI() {}
// ::com::sun::star::lang::XServiceInfo:
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
- virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString & ServiceName) throw (css::uno::RuntimeException);
- virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException);
+ virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException);
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException);
// ::com::sun::star::lang::XInitialization:
virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception);
// ::com::sun::star::rdf::XNode:
- virtual ::rtl::OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getStringValue() throw (css::uno::RuntimeException);
// ::com::sun::star::rdf::XURI:
- virtual ::rtl::OUString SAL_CALL getLocalName() throw (css::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getNamespace() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getLocalName() throw (css::uno::RuntimeException);
+ virtual OUString SAL_CALL getNamespace() throw (css::uno::RuntimeException);
private:
CURI(const CURI &); // not defined
@@ -65,8 +65,8 @@ private:
css::uno::Reference< css::uno::XComponentContext > m_xContext;
- ::rtl::OUString m_Namespace;
- ::rtl::OUString m_LocalName;
+ OUString m_Namespace;
+ OUString m_LocalName;
};
CURI::CURI(css::uno::Reference< css::uno::XComponentContext > const & context) :
@@ -74,14 +74,14 @@ CURI::CURI(css::uno::Reference< css::uno::XComponentContext > const & context) :
{}
// com.sun.star.uno.XServiceInfo:
-::rtl::OUString SAL_CALL CURI::getImplementationName() throw (css::uno::RuntimeException)
+OUString SAL_CALL CURI::getImplementationName() throw (css::uno::RuntimeException)
{
return comp_CURI::_getImplementationName();
}
-::sal_Bool SAL_CALL CURI::supportsService(::rtl::OUString const & serviceName) throw (css::uno::RuntimeException)
+::sal_Bool SAL_CALL CURI::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException)
{
- css::uno::Sequence< ::rtl::OUString > serviceNames = comp_CURI::_getSupportedServiceNames();
+ css::uno::Sequence< OUString > serviceNames = comp_CURI::_getSupportedServiceNames();
for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
if (serviceNames[i] == serviceName)
return sal_True;
@@ -89,7 +89,7 @@ CURI::CURI(css::uno::Reference< css::uno::XComponentContext > const & context) :
return sal_False;
}
-css::uno::Sequence< ::rtl::OUString > SAL_CALL CURI::getSupportedServiceNames() throw (css::uno::RuntimeException)
+css::uno::Sequence< OUString > SAL_CALL CURI::getSupportedServiceNames() throw (css::uno::RuntimeException)
{
return comp_CURI::_getSupportedServiceNames();
}
@@ -708,11 +708,11 @@ void SAL_CALL CURI::initFromConstant(const sal_Int16 i_Constant)
default:
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"invalid URIs constant argument"), *this, 0);
}
- m_Namespace = ::rtl::OUString::createFromAscii(ns).intern();
- m_LocalName = ::rtl::OUString::createFromAscii(ln).intern();
+ m_Namespace = OUString::createFromAscii(ns).intern();
+ m_LocalName = OUString::createFromAscii(ln).intern();
return;
}
@@ -722,18 +722,18 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
sal_Int32 len = aArguments.getLength();
if ((len < 1) || (len > 2)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"must give 1 or 2 argument(s)"), *this, 2);
}
sal_Int16 arg(0);
- ::rtl::OUString arg0;
- ::rtl::OUString arg1;
+ OUString arg0;
+ OUString arg1;
if ((aArguments[0] >>= arg)) {
// integer argument: constant from rdf::URIs
if (len != 1) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"must give 1 int argument"), *this, 1);
}
initFromConstant(arg);
@@ -741,13 +741,13 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
}
if (!(aArguments[0] >>= arg0)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"argument must be string or short"), *this, 0);
}
if (len > 1) {
if (!(aArguments[1] >>= arg1)) {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"argument must be string"), *this, 1);
}
// just append the parameters and then split them again; seems simplest
@@ -768,7 +768,7 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
}
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"argument not splittable: no separator [#/:]"), *this, 0);
}
@@ -777,7 +777,7 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
m_Namespace = arg0;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"argument is not valid namespace"), *this, 0);
}
//FIXME: what is legal?
@@ -785,24 +785,24 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
m_LocalName = arg1;
} else {
throw css::lang::IllegalArgumentException(
- ::rtl::OUString("CURI::initialize: "
+ OUString("CURI::initialize: "
"argument is not valid local name"), *this, 1);
}
}
// ::com::sun::star::rdf::XNode:
-::rtl::OUString SAL_CALL CURI::getStringValue() throw (css::uno::RuntimeException)
+OUString SAL_CALL CURI::getStringValue() throw (css::uno::RuntimeException)
{
return m_Namespace + m_LocalName;
}
// ::com::sun::star::rdf::XURI:
-::rtl::OUString SAL_CALL CURI::getNamespace() throw (css::uno::RuntimeException)
+OUString SAL_CALL CURI::getNamespace() throw (css::uno::RuntimeException)
{
return m_Namespace;
}
-::rtl::OUString SAL_CALL CURI::getLocalName() throw (css::uno::RuntimeException)
+OUString SAL_CALL CURI::getLocalName() throw (css::uno::RuntimeException)
{
return m_LocalName;
}
@@ -814,8 +814,8 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< ::com::sun::star::uno::
// component helper namespace
namespace comp_CURI {
-::rtl::OUString SAL_CALL _getImplementationName() {
- return ::rtl::OUString(
+OUString SAL_CALL _getImplementationName() {
+ return OUString(
"CURI");
}
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index be3e81f9dc12..eb1bb94c7b1a 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -85,7 +85,7 @@ class librdf_Repository;
using namespace ::com::sun::star;
-typedef std::map< ::rtl::OUString, ::rtl::Reference<librdf_NamedGraph> >
+typedef std::map< OUString, ::rtl::Reference<librdf_NamedGraph> >
NamedGraphMap_t;
const char s_sparql [] = "sparql";
@@ -233,11 +233,11 @@ public:
virtual ~librdf_Repository();
// ::com::sun::star::lang::XServiceInfo:
- virtual ::rtl::OUString SAL_CALL getImplementationName()
+ virtual OUString SAL_CALL getImplementationName()
throw (uno::RuntimeException);
virtual ::sal_Bool SAL_CALL supportsService(
- const ::rtl::OUString & ServiceName) throw (uno::RuntimeException);
- virtual uno::Sequence< ::rtl::OUString > SAL_CALL
+ const OUString & ServiceName) throw (uno::RuntimeException);
+ virtual uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames() throw (uno::RuntimeException);
// ::com::sun::star::rdf::XRepository:
@@ -281,14 +281,14 @@ public:
throw (uno::RuntimeException,
rdf::RepositoryException);
virtual uno::Reference< rdf::XQuerySelectResult > SAL_CALL
- querySelect(const ::rtl::OUString & i_rQuery)
+ querySelect(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException,
rdf::RepositoryException);
virtual uno::Reference< container::XEnumeration > SAL_CALL
- queryConstruct(const ::rtl::OUString & i_rQuery)
+ queryConstruct(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException,
rdf::RepositoryException);
- virtual ::sal_Bool SAL_CALL queryAsk(const ::rtl::OUString & i_rQuery)
+ virtual ::sal_Bool SAL_CALL queryAsk(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException,
rdf::RepositoryException);
@@ -297,7 +297,7 @@ public:
const uno::Reference< rdf::XResource > & i_xSubject,
const uno::Sequence< uno::Reference< rdf::XURI > > & i_rPredicates,
const uno::Reference< rdf::XMetadatable > & i_xObject,
- const ::rtl::OUString & i_rRDFaContent,
+ const OUString & i_rRDFaContent,
const uno::Reference< rdf::XURI > & i_xRDFaDatatype)
throw (uno::RuntimeException, lang::IllegalArgumentException,
rdf::RepositoryException);
@@ -386,7 +386,7 @@ private:
librdf_TypeConverter m_TypeConverter;
/// set of xml:ids of elements with xhtml:content
- ::std::set< ::rtl::OUString > m_RDFaXHTMLContentSet;
+ ::std::set< OUString > m_RDFaXHTMLContentSet;
};
@@ -512,7 +512,7 @@ public:
::osl::Mutex & i_rMutex,
boost::shared_ptr<librdf_query> const& i_pQuery,
boost::shared_ptr<librdf_query_results> const& i_pQueryResult,
- uno::Sequence< ::rtl::OUString > const& i_rBindingNames )
+ uno::Sequence< OUString > const& i_rBindingNames )
: m_xRep(i_pRepository)
, m_rMutex(i_rMutex)
, m_pQuery(i_pQuery)
@@ -530,7 +530,7 @@ public:
lang::WrappedTargetException);
// ::com::sun::star::rdf::XQuerySelectResult:
- virtual uno::Sequence< ::rtl::OUString > SAL_CALL getBindingNames()
+ virtual uno::Sequence< OUString > SAL_CALL getBindingNames()
throw (uno::RuntimeException);
private:
@@ -545,7 +545,7 @@ private:
// queries must be freed only after all the results are completely read
boost::shared_ptr<librdf_query> m_pQuery;
boost::shared_ptr<librdf_query_results> m_pQueryResult;
- uno::Sequence< ::rtl::OUString > m_BindingNames;
+ uno::Sequence< OUString > m_BindingNames;
};
@@ -609,7 +609,7 @@ throw (uno::RuntimeException, container::NoSuchElementException,
}
// ::com::sun::star::rdf::XQuerySelectResult:
-uno::Sequence< ::rtl::OUString > SAL_CALL
+uno::Sequence< OUString > SAL_CALL
librdf_QuerySelectResult::getBindingNames() throw (uno::RuntimeException)
{
return m_BindingNames;
@@ -636,13 +636,13 @@ public:
virtual ~librdf_NamedGraph() {}
// ::com::sun::star::rdf::XNode:
- virtual ::rtl::OUString SAL_CALL getStringValue()
+ virtual OUString SAL_CALL getStringValue()
throw (uno::RuntimeException);
// ::com::sun::star::rdf::XURI:
- virtual ::rtl::OUString SAL_CALL getNamespace()
+ virtual OUString SAL_CALL getNamespace()
throw (uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getLocalName()
+ virtual OUString SAL_CALL getLocalName()
throw (uno::RuntimeException);
// ::com::sun::star::rdf::XNamedGraph:
@@ -680,20 +680,20 @@ private:
// ::com::sun::star::rdf::XNode:
-::rtl::OUString SAL_CALL librdf_NamedGraph::getStringValue()
+OUString SAL_CALL librdf_NamedGraph::getStringValue()
throw (uno::RuntimeException)
{
return m_xName->getStringValue();
}
// ::com::sun::star::rdf::XURI:
-::rtl::OUString SAL_CALL librdf_NamedGraph::getNamespace()
+OUString SAL_CALL librdf_NamedGraph::getNamespace()
throw (uno::RuntimeException)
{
return m_xName->getNamespace();
}
-::rtl::OUString SAL_CALL librdf_NamedGraph::getLocalName()
+OUString SAL_CALL librdf_NamedGraph::getLocalName()
throw (uno::RuntimeException)
{
return m_xName->getLocalName();
@@ -811,16 +811,16 @@ librdf_Repository::~librdf_Repository()
}
// com.sun.star.uno.XServiceInfo:
-::rtl::OUString SAL_CALL librdf_Repository::getImplementationName()
+OUString SAL_CALL librdf_Repository::getImplementationName()
throw (uno::RuntimeException)
{
return comp_librdf_Repository::_getImplementationName();
}
::sal_Bool SAL_CALL librdf_Repository::supportsService(
- ::rtl::OUString const & serviceName) throw (uno::RuntimeException)
+ OUString const & serviceName) throw (uno::RuntimeException)
{
- uno::Sequence< ::rtl::OUString > serviceNames
+ uno::Sequence< OUString > serviceNames
= comp_librdf_Repository::_getSupportedServiceNames();
for (::sal_Int32 i = 0; i < serviceNames.getLength(); ++i) {
if (serviceNames[i] == serviceName)
@@ -829,7 +829,7 @@ throw (uno::RuntimeException)
return sal_False;
}
-uno::Sequence< ::rtl::OUString > SAL_CALL
+uno::Sequence< OUString > SAL_CALL
librdf_Repository::getSupportedServiceNames() throw (uno::RuntimeException)
{
return comp_librdf_Repository::_getSupportedServiceNames();
@@ -854,7 +854,7 @@ throw (uno::RuntimeException)
"librdf_Repository::createBlankNode: "
"librdf_node_get_blank_identifier failed", *this);
}
- const ::rtl::OUString nodeID(::rtl::OUString::createFromAscii(
+ const OUString nodeID(OUString::createFromAscii(
reinterpret_cast<const char *>(id)));
try {
return rdf::BlankNode::create(m_xContext, nodeID);
@@ -906,19 +906,19 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::importGraph: base URI is null", *this, 3);
}
OSL_ENSURE(i_xBaseURI.is(), "no base uri");
- const ::rtl::OUString baseURIU( i_xBaseURI->getStringValue() );
+ const OUString baseURIU( i_xBaseURI->getStringValue() );
if (baseURIU.indexOf('#') >= 0) {
throw lang::IllegalArgumentException(
"librdf_Repository::importGraph: base URI is not absolute", *this, 3);
}
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (m_NamedGraphs.find(contextU) != m_NamedGraphs.end()) {
throw container::ElementExistException(
"librdf_Repository::importGraph: graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -929,8 +929,8 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::importGraph: librdf_new_node_from_uri_string failed", *this);
}
- const ::rtl::OString baseURI(
- ::rtl::OUStringToOString(baseURIU, RTL_TEXTENCODING_UTF8) );
+ const OString baseURI(
+ OUStringToOString(baseURIU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_uri> pBaseURI(
librdf_new_uri(m_pWorld.get(),
reinterpret_cast<const unsigned char*> (baseURI.getStr())),
@@ -1007,7 +1007,7 @@ void addChaffWhenEncryptedStorage(const uno::Reference< io::XOutputStream > &rSt
reinterpret_cast<sal_Int8*>(pBuffer), preamblelen);
rStream->writeBytes(buf);
- rtl::OStringBuffer aComment;
+ OStringBuffer aComment;
aComment.append("<!--");
aComment.append(comphelper::xml::makeXMLChaff());
aComment.append("-->");
@@ -1055,21 +1055,21 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"base URI is null", *this, 3);
}
OSL_ENSURE(i_xBaseURI.is(), "no base uri");
- const ::rtl::OUString baseURIU( i_xBaseURI->getStringValue() );
+ const OUString baseURIU( i_xBaseURI->getStringValue() );
if (baseURIU.indexOf('#') >= 0) {
throw lang::IllegalArgumentException(
"librdf_Repository::exportGraph: "
"base URI is not absolute", *this, 3);
}
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (m_NamedGraphs.find(contextU) == m_NamedGraphs.end()) {
throw container::NoSuchElementException(
"librdf_Repository::exportGraph: "
"no graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -1080,8 +1080,8 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::exportGraph: "
"librdf_new_node_from_uri_string failed", *this);
}
- const ::rtl::OString baseURI(
- ::rtl::OUStringToOString(baseURIU, RTL_TEXTENCODING_UTF8) );
+ const OString baseURI(
+ OUStringToOString(baseURIU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_uri> pBaseURI(
librdf_new_uri(m_pWorld.get(),
reinterpret_cast<const unsigned char*> (baseURI.getStr())),
@@ -1215,7 +1215,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
// NB: librdf does not have a concept of graphs as such;
// a librdf named graph exists iff the model contains a statement with
// the graph name as context
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (m_NamedGraphs.find(contextU) != m_NamedGraphs.end()) {
throw container::ElementExistException(
"librdf_Repository::createGraph: graph with given URI exists", *this);
@@ -1282,12 +1282,12 @@ throw (uno::RuntimeException, rdf::RepositoryException)
uno::Reference< rdf::XQuerySelectResult > SAL_CALL
-librdf_Repository::querySelect(const ::rtl::OUString & i_rQuery)
+librdf_Repository::querySelect(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
{
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OString query(
- ::rtl::OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
+ const OString query(
+ OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_query> pQuery(
librdf_new_query(m_pWorld.get(), s_sparql, NULL,
reinterpret_cast<const unsigned char*> (query.getStr()), NULL),
@@ -1308,7 +1308,7 @@ throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
const int count( librdf_query_results_get_bindings_count(pResults.get()) );
if (count >= 0) {
- uno::Sequence< ::rtl::OUString > names(count);
+ uno::Sequence< OUString > names(count);
for (int i = 0; i < count; ++i) {
const char* name( librdf_query_results_get_binding_name(
pResults.get(), i) );
@@ -1317,7 +1317,7 @@ throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
"librdf_Repository::querySelect: binding is null", *this);
}
- names[i] = ::rtl::OUString::createFromAscii(name);
+ names[i] = OUString::createFromAscii(name);
}
return new librdf_QuerySelectResult(this, m_aMutex,
@@ -1331,12 +1331,12 @@ throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
}
uno::Reference< container::XEnumeration > SAL_CALL
-librdf_Repository::queryConstruct(const ::rtl::OUString & i_rQuery)
+librdf_Repository::queryConstruct(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
{
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OString query(
- ::rtl::OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
+ const OString query(
+ OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_query> pQuery(
librdf_new_query(m_pWorld.get(), s_sparql, NULL,
reinterpret_cast<const unsigned char*> (query.getStr()), NULL),
@@ -1368,13 +1368,13 @@ throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
}
::sal_Bool SAL_CALL
-librdf_Repository::queryAsk(const ::rtl::OUString & i_rQuery)
+librdf_Repository::queryAsk(const OUString & i_rQuery)
throw (uno::RuntimeException, rdf::QueryException, rdf::RepositoryException)
{
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OString query(
- ::rtl::OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
+ const OString query(
+ OUStringToOString(i_rQuery, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_query> pQuery(
librdf_new_query(m_pWorld.get(), s_sparql, NULL,
reinterpret_cast<const unsigned char*> (query.getStr()), NULL),
@@ -1401,16 +1401,16 @@ void SAL_CALL librdf_Repository::setStatementRDFa(
const uno::Reference< rdf::XResource > & i_xSubject,
const uno::Sequence< uno::Reference< rdf::XURI > > & i_rPredicates,
const uno::Reference< rdf::XMetadatable > & i_xObject,
- const ::rtl::OUString & i_rRDFaContent,
+ const OUString & i_rRDFaContent,
const uno::Reference< rdf::XURI > & i_xRDFaDatatype)
throw (uno::RuntimeException, lang::IllegalArgumentException,
rdf::RepositoryException)
{
- static const ::rtl::OUString s_cell("com.sun.star.table.Cell");
- static const ::rtl::OUString s_cellprops("com.sun.star.text.CellProperties"); // for writer
- static const ::rtl::OUString s_paragraph("com.sun.star.text.Paragraph");
- static const ::rtl::OUString s_bookmark("com.sun.star.text.Bookmark");
- static const ::rtl::OUString s_meta("com.sun.star.text.InContentMetadata");
+ static const OUString s_cell("com.sun.star.table.Cell");
+ static const OUString s_cellprops("com.sun.star.text.CellProperties"); // for writer
+ static const OUString s_paragraph("com.sun.star.text.Paragraph");
+ static const OUString s_bookmark("com.sun.star.text.Bookmark");
+ static const OUString s_meta("com.sun.star.text.InContentMetadata");
if (!i_xSubject.is()) {
throw lang::IllegalArgumentException(
@@ -1461,11 +1461,11 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::setStatementRDFa: "
"ensureMetadataReference did not", *this);
}
- ::rtl::OUString const sXmlId(mdref.First + "#" + mdref.Second);
+ OUString const sXmlId(mdref.First + "#" + mdref.Second);
uno::Reference<rdf::XURI> xXmlId;
try {
xXmlId.set( rdf::URI::create(m_xContext,
- ::rtl::OUString::createFromAscii(s_nsOOo) + sXmlId),
+ OUString::createFromAscii(s_nsOOo) + sXmlId),
uno::UNO_QUERY_THROW);
} catch (const lang::IllegalArgumentException & iae) {
throw lang::WrappedTargetRuntimeException(
@@ -1474,7 +1474,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
}
::osl::MutexGuard g(m_aMutex);
- ::rtl::OUString const content( (i_rRDFaContent.isEmpty())
+ OUString const content( (i_rRDFaContent.isEmpty())
? xTextRange->getString()
: i_rRDFaContent );
uno::Reference<rdf::XNode> xContent;
@@ -1522,7 +1522,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
uno::Reference<rdf::XURI> xXmlId;
try {
xXmlId.set( rdf::URI::create(m_xContext,
- ::rtl::OUString::createFromAscii(s_nsOOo)
+ OUString::createFromAscii(s_nsOOo)
+ mdref.First + "#"
+ mdref.Second),
uno::UNO_QUERY_THROW);
@@ -1549,11 +1549,11 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
if ((mdref.First.isEmpty()) || (mdref.Second.isEmpty())) {
return beans::Pair< uno::Sequence<rdf::Statement>, sal_Bool >();
}
- ::rtl::OUString const sXmlId(mdref.First + "#" + mdref.Second);
+ OUString const sXmlId(mdref.First + "#" + mdref.Second);
uno::Reference<rdf::XURI> xXmlId;
try {
xXmlId.set( rdf::URI::create(m_xContext,
- ::rtl::OUString::createFromAscii(s_nsOOo) + sXmlId),
+ OUString::createFromAscii(s_nsOOo) + sXmlId),
uno::UNO_QUERY_THROW);
} catch (const lang::IllegalArgumentException & iae) {
throw lang::WrappedTargetRuntimeException(
@@ -1666,15 +1666,15 @@ const NamedGraphMap_t::iterator SAL_CALL librdf_Repository::clearGraph(
"librdf_Repository::clearGraph: URI is null", *this, 0);
}
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
const NamedGraphMap_t::iterator iter( m_NamedGraphs.find(contextU) );
if (!i_Internal && iter == m_NamedGraphs.end()) {
throw container::NoSuchElementException(
"librdf_Repository::clearGraph: "
"no graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -1718,14 +1718,14 @@ void librdf_Repository::addStatementGraph(
}
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (!i_Internal && (m_NamedGraphs.find(contextU) == m_NamedGraphs.end())) {
throw container::NoSuchElementException(
"librdf_Repository::addStatement: "
"no graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -1778,14 +1778,14 @@ void librdf_Repository::removeStatementsGraph(
}
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (m_NamedGraphs.find(contextU) == m_NamedGraphs.end()) {
throw container::NoSuchElementException(
"librdf_Repository::removeStatements: "
"no graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -1854,14 +1854,14 @@ librdf_Repository::getStatementsGraph(
}
::osl::MutexGuard g(m_aMutex);
- const ::rtl::OUString contextU( i_xGraphName->getStringValue() );
+ const OUString contextU( i_xGraphName->getStringValue() );
if (!i_Internal && (m_NamedGraphs.find(contextU) == m_NamedGraphs.end())) {
throw container::NoSuchElementException(
"librdf_Repository::getStatements: "
"no graph with given URI exists", *this);
}
- const ::rtl::OString context(
- ::rtl::OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
+ const OString context(
+ OUStringToOString(contextU, RTL_TEXTENCODING_UTF8) );
const boost::shared_ptr<librdf_node> pContext(
librdf_new_node_from_uri_string(m_pWorld.get(),
@@ -1961,8 +1961,8 @@ librdf_model *librdf_TypeConverter::createModel(
librdf_uri* librdf_TypeConverter::mkURI( librdf_world* i_pWorld,
const uno::Reference< rdf::XURI > & i_xURI) const
{
- const ::rtl::OString uri(
- ::rtl::OUStringToOString(i_xURI->getStringValue(),
+ const OString uri(
+ OUStringToOString(i_xURI->getStringValue(),
RTL_TEXTENCODING_UTF8) );
librdf_uri *pURI( librdf_new_uri(i_pWorld,
reinterpret_cast<const unsigned char *>(uri.getStr())));
@@ -1980,8 +1980,8 @@ librdf_node* librdf_TypeConverter::mkResource( librdf_world* i_pWorld,
if (!i_xResource.is()) return 0;
uno::Reference< rdf::XBlankNode > xBlankNode(i_xResource, uno::UNO_QUERY);
if (xBlankNode.is()) {
- const ::rtl::OString label(
- ::rtl::OUStringToOString(xBlankNode->getStringValue(),
+ const OString label(
+ OUStringToOString(xBlankNode->getStringValue(),
RTL_TEXTENCODING_UTF8) );
librdf_node *pNode(
librdf_new_node_from_blank_identifier(i_pWorld,
@@ -1993,8 +1993,8 @@ librdf_node* librdf_TypeConverter::mkResource( librdf_world* i_pWorld,
}
return pNode;
} else { // assumption: everything else is URI
- const ::rtl::OString uri(
- ::rtl::OUStringToOString(i_xResource->getStringValue(),
+ const OString uri(
+ OUStringToOString(i_xResource->getStringValue(),
RTL_TEXTENCODING_UTF8) );
librdf_node *pNode(
librdf_new_node_from_uri_string(i_pWorld,
@@ -2021,11 +2021,11 @@ librdf_node* librdf_TypeConverter::mkNode( librdf_world* i_pWorld,
OSL_ENSURE(xLiteral.is(),
"mkNode: someone invented a new rdf.XNode and did not tell me");
if (!xLiteral.is()) return 0;
- const ::rtl::OString val(
- ::rtl::OUStringToOString(xLiteral->getValue(),
+ const OString val(
+ OUStringToOString(xLiteral->getValue(),
RTL_TEXTENCODING_UTF8) );
- const ::rtl::OString lang(
- ::rtl::OUStringToOString(xLiteral->getLanguage(),
+ const OString lang(
+ OUStringToOString(xLiteral->getLanguage(),
RTL_TEXTENCODING_UTF8) );
const uno::Reference< rdf::XURI > xType(xLiteral->getDatatype());
librdf_node * ret(0);
@@ -2102,8 +2102,8 @@ librdf_TypeConverter::convertToXURI(librdf_uri* i_pURI) const
"librdf_TypeConverter::convertToXURI: "
"librdf_uri_as_string failed", m_rRep);
}
- ::rtl::OUString uriU( ::rtl::OStringToOUString(
- ::rtl::OString(reinterpret_cast<const sal_Char*>(uri)),
+ OUString uriU( OStringToOUString(
+ OString(reinterpret_cast<const sal_Char*>(uri)),
RTL_TEXTENCODING_UTF8) );
try {
return rdf::URI::create(m_xContext, uriU);
@@ -2143,8 +2143,8 @@ librdf_TypeConverter::convertToXResource(librdf_node* i_pNode) const
"librdf_TypeConverter::convertToXResource: "
"blank node has no label", m_rRep);
}
- ::rtl::OUString labelU( ::rtl::OStringToOUString(
- ::rtl::OString(reinterpret_cast<const sal_Char*>(label)),
+ OUString labelU( OStringToOUString(
+ OString(reinterpret_cast<const sal_Char*>(label)),
RTL_TEXTENCODING_UTF8) );
try {
return uno::Reference<rdf::XResource>(
@@ -2178,12 +2178,12 @@ librdf_TypeConverter::convertToXNode(librdf_node* i_pNode) const
librdf_uri* pType(
librdf_node_get_literal_value_datatype_uri(i_pNode) );
OSL_ENSURE(!lang || !pType, "convertToXNode: invalid literal");
- const ::rtl::OUString valueU( ::rtl::OStringToOUString(
- ::rtl::OString(reinterpret_cast<const sal_Char*>(value)),
+ const OUString valueU( OStringToOUString(
+ OString(reinterpret_cast<const sal_Char*>(value)),
RTL_TEXTENCODING_UTF8) );
if (lang) {
- const ::rtl::OUString langU( ::rtl::OStringToOUString(
- ::rtl::OString(reinterpret_cast<const sal_Char*>(lang)),
+ const OUString langU( OStringToOUString(
+ OString(reinterpret_cast<const sal_Char*>(lang)),
RTL_TEXTENCODING_UTF8) );
return uno::Reference<rdf::XNode>(
rdf::Literal::createWithLanguage(m_xContext, valueU, langU),
@@ -2222,13 +2222,13 @@ librdf_TypeConverter::convertToStatement(librdf_statement* i_pStmt,
// component helper namespace
namespace comp_librdf_Repository {
-::rtl::OUString SAL_CALL _getImplementationName() {
- return rtl::OUString("librdf_Repository");
+OUString SAL_CALL _getImplementationName() {
+ return OUString("librdf_Repository");
}
-uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames()
+uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- uno::Sequence< ::rtl::OUString > s(1);
+ uno::Sequence< OUString > s(1);
s[0] = "com.sun.star.rdf.Repository";
return s;
}
diff --git a/unoxml/source/rdf/librdf_repository.hxx b/unoxml/source/rdf/librdf_repository.hxx
index 5cfe623b8999..c3effbabaf71 100644
--- a/unoxml/source/rdf/librdf_repository.hxx
+++ b/unoxml/source/rdf/librdf_repository.hxx
@@ -28,8 +28,8 @@
namespace comp_librdf_Repository {
// component and service helper functions:
-::rtl::OUString SAL_CALL _getImplementationName();
-css::uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames();
+OUString SAL_CALL _getImplementationName();
+css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames();
css::uno::Reference< css::uno::XInterface > SAL_CALL _create( css::uno::Reference< css::uno::XComponentContext > const & context );
} // closing component helper namespace