summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav-neon/webdavcontent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/webdav-neon/webdavcontent.cxx')
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx274
1 files changed, 137 insertions, 137 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index 6a3cb7b2d6cc..4ad76c4727e2 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -332,20 +332,20 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
//=========================================================================
// virtual
-rtl::OUString SAL_CALL Content::getImplementationName()
+OUString SAL_CALL Content::getImplementationName()
throw( uno::RuntimeException )
{
- return rtl::OUString( "com.sun.star.comp.ucb.WebDAVContent" );
+ return OUString( "com.sun.star.comp.ucb.WebDAVContent" );
}
//=========================================================================
// virtual
-uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
+uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
throw( uno::RuntimeException )
{
- uno::Sequence< rtl::OUString > aSNS( 1 );
+ uno::Sequence< OUString > aSNS( 1 );
aSNS.getArray()[ 0 ]
- = rtl::OUString( WEBDAV_CONTENT_SERVICE_NAME );
+ = OUString( WEBDAV_CONTENT_SERVICE_NAME );
return aSNS;
}
@@ -356,7 +356,7 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames()
//=========================================================================
// virtual
-rtl::OUString SAL_CALL Content::getContentType()
+OUString SAL_CALL Content::getContentType()
throw( uno::RuntimeException )
{
sal_Bool bFolder = sal_False;
@@ -374,9 +374,9 @@ rtl::OUString SAL_CALL Content::getContentType()
}
if ( bFolder )
- return rtl::OUString( WEBDAV_COLLECTION_TYPE );
+ return OUString( WEBDAV_COLLECTION_TYPE );
- return rtl::OUString( WEBDAV_CONTENT_TYPE );
+ return OUString( WEBDAV_CONTENT_TYPE );
}
//=========================================================================
@@ -411,7 +411,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -431,7 +431,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -442,7 +442,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "No properties!" ),
+ OUString( "No properties!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -482,7 +482,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -516,7 +516,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -579,7 +579,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -599,7 +599,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -635,7 +635,7 @@ uno::Any SAL_CALL Content::execute(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( lang::IllegalArgumentException(
- rtl::OUString( "Wrong argument type!" ),
+ OUString( "Wrong argument type!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 ) ),
Environment );
@@ -659,7 +659,7 @@ uno::Any SAL_CALL Content::execute(
}
OSL_TRACE( "<<<<< Content::execute: end: command: %s",
- rtl::OUStringToOString( aCommand.Name,
+ OUStringToOString( aCommand.Name,
RTL_TEXTENCODING_UTF8 ).getStr() );
return aRet;
@@ -698,7 +698,7 @@ void SAL_CALL Content::abort( sal_Int32 /*CommandId*/ )
//=========================================================================
// virtual
-void SAL_CALL Content::addProperty( const rtl::OUString& Name,
+void SAL_CALL Content::addProperty( const OUString& Name,
sal_Int16 Attributes,
const uno::Any& DefaultValue )
throw( beans::PropertyExistException,
@@ -824,7 +824,7 @@ void SAL_CALL Content::addProperty( const rtl::OUString& Name,
//=========================================================================
// virtual
-void SAL_CALL Content::removeProperty( const rtl::OUString& Name )
+void SAL_CALL Content::removeProperty( const OUString& Name )
throw( beans::UnknownPropertyException,
beans::NotRemoveableException,
uno::RuntimeException )
@@ -933,14 +933,14 @@ Content::queryCreatableContentsInfo()
// document.
aSeq.getArray()[ 0 ].Type
- = rtl::OUString( WEBDAV_CONTENT_TYPE );
+ = OUString( WEBDAV_CONTENT_TYPE );
aSeq.getArray()[ 0 ].Attributes
= ucb::ContentInfoAttribute::INSERT_WITH_INPUTSTREAM
| ucb::ContentInfoAttribute::KIND_DOCUMENT;
beans::Property aProp;
m_pProvider->getProperty(
- rtl::OUString( "Title" ), aProp );
+ OUString( "Title" ), aProp );
uno::Sequence< beans::Property > aDocProps( 1 );
aDocProps.getArray()[ 0 ] = aProp;
@@ -948,7 +948,7 @@ Content::queryCreatableContentsInfo()
// folder.
aSeq.getArray()[ 1 ].Type
- = rtl::OUString( WEBDAV_COLLECTION_TYPE );
+ = OUString( WEBDAV_COLLECTION_TYPE );
aSeq.getArray()[ 1 ].Attributes
= ucb::ContentInfoAttribute::KIND_FOLDER;
@@ -972,23 +972,23 @@ Content::createNewContent( const ucb::ContentInfo& Info )
if ( ( Info.Type != WEBDAV_COLLECTION_TYPE ) && ( Info.Type != WEBDAV_CONTENT_TYPE ) )
return uno::Reference< ucb::XContent >();
- rtl::OUString aURL = m_xIdentifier->getContentIdentifier();
+ OUString aURL = m_xIdentifier->getContentIdentifier();
OSL_ENSURE( !aURL.isEmpty(),
"WebdavContent::createNewContent - empty identifier!" );
if ( ( aURL.lastIndexOf( '/' ) + 1 ) != aURL.getLength() )
- aURL += rtl::OUString("/");
+ aURL += OUString("/");
sal_Bool isCollection;
if ( Info.Type == WEBDAV_COLLECTION_TYPE )
{
- aURL += rtl::OUString("New_Collection");
+ aURL += OUString("New_Collection");
isCollection = sal_True;
}
else
{
- aURL += rtl::OUString("New_Content");
+ aURL += OUString("New_Content");
isCollection = sal_False;
}
@@ -1012,7 +1012,7 @@ Content::createNewContent( const ucb::ContentInfo& Info )
//=========================================================================
// virtual
-rtl::OUString Content::getParentURL()
+OUString Content::getParentURL()
{
// <scheme>:// -> ""
// <scheme>://foo -> ""
@@ -1021,7 +1021,7 @@ rtl::OUString Content::getParentURL()
// <scheme>://foo/bar/ -> <scheme>://foo/
// <scheme>://foo/bar/abc -> <scheme>://foo/bar/
- rtl::OUString aURL = m_xIdentifier->getContentIdentifier();
+ OUString aURL = m_xIdentifier->getContentIdentifier();
sal_Int32 nPos = aURL.lastIndexOf( '/' );
if ( nPos == ( aURL.getLength() - 1 ) )
@@ -1035,9 +1035,9 @@ rtl::OUString Content::getParentURL()
nPos1 = aURL.lastIndexOf( '/', nPos1 );
if ( nPos1 == -1 )
- return rtl::OUString();
+ return OUString();
- return rtl::OUString( aURL.copy( 0, nPos + 1 ) );
+ return OUString( aURL.copy( 0, nPos + 1 ) );
}
//=========================================================================
@@ -1052,7 +1052,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Sequence< beans::Property >& rProperties,
const ContentProperties& rData,
const rtl::Reference< ::ucbhelper::ContentProviderImplHelper >& rProvider,
- const rtl::OUString& rContentId )
+ const OUString& rContentId )
{
// Note: Empty sequence means "get values of all supported properties".
@@ -1142,7 +1142,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
std::auto_ptr< ContentProperties > xCachedProps;
std::auto_ptr< DAVResourceAccess > xResAccess;
SAL_WNODEPRECATED_DECLARATIONS_POP
- rtl::OUString aUnescapedTitle;
+ OUString aUnescapedTitle;
bool bHasAll = false;
uno::Reference< ucb::XContentIdentifier > xIdentifier;
rtl::Reference< ::ucbhelper::ContentProviderImplHelper > xProvider;
@@ -1160,7 +1160,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
{
xCachedProps.reset( new ContentProperties( *m_xCachedProps.get() ) );
- std::vector< rtl::OUString > aMissingProps;
+ std::vector< OUString > aMissingProps;
if ( xCachedProps->containsAllNames( rProperties, aMissingProps ) )
{
// All properties are already in cache! No server access needed.
@@ -1192,7 +1192,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
xCachedProps.reset(
new ContentProperties( *m_xCachedProps.get() ) );
- std::vector< rtl::OUString > aMissingProps;
+ std::vector< OUString > aMissingProps;
if ( xCachedProps->containsAllNames(
rProperties, aMissingProps ) )
{
@@ -1208,7 +1208,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( !bHasAll )
{
// Only DAV resources support PROPFIND
- std::vector< rtl::OUString > aPropNames;
+ std::vector< OUString > aPropNames;
uno::Sequence< beans::Property > aProperties(
rProperties.getLength() );
@@ -1219,11 +1219,11 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
sal_Int32 nCount = rProperties.getLength();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
- const rtl::OUString & rName = rProperties[ n ].Name;
+ const OUString & rName = rProperties[ n ].Name;
- std::vector< rtl::OUString >::const_iterator it
+ std::vector< OUString >::const_iterator it
= m_aFailedPropNames.begin();
- std::vector< rtl::OUString >::const_iterator end
+ std::vector< OUString >::const_iterator end
= m_aFailedPropNames.end();
while ( it != end )
@@ -1289,7 +1289,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
if ( bNetworkAccessAllowed )
{
// All properties obtained already?
- std::vector< rtl::OUString > aMissingProps;
+ std::vector< OUString > aMissingProps;
if ( !( xProps.get()
&& xProps->containsAllNames(
rProperties, aMissingProps ) )
@@ -1298,7 +1298,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
// Possibly the missing props can be obtained using a HEAD
// request.
- std::vector< rtl::OUString > aHeaderNames;
+ std::vector< OUString > aHeaderNames;
ContentProperties::UCBNamesToHTTPNames(
rProperties,
aHeaderNames,
@@ -1358,7 +1358,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
//xProps.reset(
// new ContentProperties( aUnescapedTitle ) );
xProps->addProperty(
- rtl::OUString( "Title" ),
+ OUString( "Title" ),
uno::makeAny( aUnescapedTitle ),
true );
}
@@ -1368,16 +1368,16 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
xProps.reset( new ContentProperties( aUnescapedTitle, false ) );
else
xProps->addProperty(
- rtl::OUString( "Title" ),
+ OUString( "Title" ),
uno::makeAny( aUnescapedTitle ),
true );
xProps->addProperty(
- rtl::OUString( "IsFolder" ),
+ OUString( "IsFolder" ),
uno::makeAny( false ),
true );
xProps->addProperty(
- rtl::OUString( "IsDocument" ),
+ OUString( "IsDocument" ),
uno::makeAny( true ),
true );
}
@@ -1394,12 +1394,12 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
sal_Int32 nCount = rProperties.getLength();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
- const rtl::OUString rName = rProperties[ n ].Name;
+ const OUString rName = rProperties[ n ].Name;
if ( rName == "BaseURI" )
{
// Add BaseURI property, if requested.
xProps->addProperty(
- rtl::OUString( "BaseURI" ),
+ OUString( "BaseURI" ),
uno::makeAny( getBaseURI( xResAccess ) ),
true );
}
@@ -1408,10 +1408,10 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
// Add CreatableContentsInfo property, if requested.
sal_Bool bFolder = sal_False;
xProps->getValue(
- rtl::OUString( "IsFolder" ) )
+ OUString( "IsFolder" ) )
>>= bFolder;
xProps->addProperty(
- rtl::OUString( "CreatableContentsInfo" ),
+ OUString( "CreatableContentsInfo" ),
uno::makeAny( bFolder
? queryCreatableContentsInfo()
: uno::Sequence< ucb::ContentInfo >() ),
@@ -1482,8 +1482,8 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
sal_Bool bTriedToGetAdditonalPropSet = sal_False;
sal_Bool bExchange = sal_False;
- rtl::OUString aNewTitle;
- rtl::OUString aOldTitle;
+ OUString aNewTitle;
+ OUString aOldTitle;
sal_Int32 nTitlePos = -1;
uno::Reference< beans::XPropertySetInfo > xInfo;
@@ -1493,7 +1493,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const beans::PropertyValue& rValue = pValues[ n ];
- const rtl::OUString & rName = rValue.Name;
+ const OUString & rName = rValue.Name;
beans::Property aTmpProp;
xProvider->getProperty( rName, aTmpProp );
@@ -1502,7 +1502,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
continue;
}
@@ -1515,26 +1515,26 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "IsDocument" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "IsFolder" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "Title" )
{
- rtl::OUString aNewValue;
+ OUString aNewValue;
if ( rValue.Value >>= aNewValue )
{
// No empty titles!
@@ -1562,7 +1562,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
catch ( DAVException const & )
{
aRet[ n ] <<= lang::IllegalArgumentException(
- rtl::OUString( "Invalid content identifier!" ),
+ OUString( "Invalid content identifier!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 );
}
@@ -1570,7 +1570,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
else
{
aRet[ n ] <<= lang::IllegalArgumentException(
- rtl::OUString( "Empty title not allowed!" ),
+ OUString( "Empty title not allowed!" ),
static_cast< cppu::OWeakObject * >( this ),
-1 );
}
@@ -1578,7 +1578,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
else
{
aRet[ n ] <<= beans::IllegalTypeException(
- rtl::OUString( "Property value has wrong type!" ),
+ OUString( "Property value has wrong type!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
}
@@ -1598,7 +1598,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
// PROPPATCH::set would add the property automatically, which
// is not allowed for "setPropertyValues" command!
aRet[ n ] <<= beans::UnknownPropertyException(
- rtl::OUString( "Property is unknown!" ),
+ OUString( "Property is unknown!" ),
static_cast< cppu::OWeakObject * >( this ) );
continue;
}
@@ -1607,21 +1607,21 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "DateCreated" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "DateModified" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else if ( rName == "MediaType" )
@@ -1629,14 +1629,14 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
// Read-only property!
// (but could be writable, if 'getcontenttype' would be)
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
if ( rName == "CreatableContentsInfo" )
{
// Read-only property!
aRet[ n ] <<= lang::IllegalAccessException(
- rtl::OUString( "Property is read-only!" ),
+ OUString( "Property is read-only!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
else
@@ -1701,7 +1701,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
else
{
aRet[ n ] <<= uno::Exception(
- rtl::OUString( "No property set for storing the value!" ),
+ OUString( "No property set for storing the value!" ),
static_cast< cppu::OWeakObject * >( this ) );
}
}
@@ -1746,9 +1746,9 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
// Assemble new content identifier...
- rtl::OUString aNewURL = getParentURL();
+ OUString aNewURL = getParentURL();
if ( aNewURL.lastIndexOf( '/' ) != ( aNewURL.getLength() - 1 ) )
- aNewURL += rtl::OUString("/");
+ aNewURL += OUString("/");
aNewURL += NeonUri::escapeSegment( aNewTitle );
@@ -1787,18 +1787,18 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
else
{
// Do not set new title!
- aNewTitle = rtl::OUString();
+ aNewTitle = OUString();
// Set error .
aRet[ nTitlePos ] <<= uno::Exception(
- rtl::OUString("Exchange failed!"),
+ OUString("Exchange failed!"),
static_cast< cppu::OWeakObject * >( this ) );
}
}
catch ( DAVException const & e )
{
// Do not set new title!
- aNewTitle = rtl::OUString();
+ aNewTitle = OUString();
// Set error .
aRet[ nTitlePos ] <<= MapDAVException( e, sal_True );
@@ -1809,7 +1809,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
- aEvent.PropertyName = rtl::OUString("Title");
+ aEvent.PropertyName = OUString("Title");
aEvent.OldValue = uno::makeAny( aOldTitle );
aEvent.NewValue = uno::makeAny( aNewTitle );
@@ -1858,7 +1858,7 @@ uno::Any Content::open(
{
// Error: Not a folder!
- rtl::OUStringBuffer aMsg;
+ OUStringBuffer aMsg;
if ( getResourceType( xEnv ) == FTP )
{
// #114653#
@@ -1893,7 +1893,7 @@ uno::Any Content::open(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::UnsupportedOpenModeException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
sal_Int16( rArg.Mode ) ) ),
xEnv );
@@ -1920,7 +1920,7 @@ uno::Any Content::open(
xResAccess->setFlags( rArg.OpeningFlags );
DAVResource aResource;
- std::vector< rtl::OUString > aHeaders;
+ std::vector< OUString > aHeaders;
xResAccess->GET( xOut, aHeaders, aResource, xEnv );
m_bDidGetOrHead = true;
@@ -1969,7 +1969,7 @@ uno::Any Content::open(
// fill inputsream sync; return if all data present
DAVResource aResource;
- std::vector< rtl::OUString > aHeaders;
+ std::vector< OUString > aHeaders;
uno::Reference< io::XInputStream > xIn
= xResAccess->GET( aHeaders, aResource, xEnv );
@@ -2006,7 +2006,7 @@ uno::Any Content::open(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::UnsupportedDataSinkException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
rArg.Sink ) ),
xEnv );
@@ -2097,7 +2097,7 @@ void Content::post(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::UnsupportedDataSinkException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
rArg.Sink ) ),
xEnv );
@@ -2116,13 +2116,13 @@ void Content::queryChildren( ContentRefList& rChildren )
::ucbhelper::ContentRefList aAllContents;
m_xProvider->queryExistingContents( aAllContents );
- rtl::OUString aURL = m_xIdentifier->getContentIdentifier();
+ OUString aURL = m_xIdentifier->getContentIdentifier();
sal_Int32 nURLPos = aURL.lastIndexOf( '/' );
if ( nURLPos != ( aURL.getLength() - 1 ) )
{
// No trailing slash found. Append.
- aURL += rtl::OUString("/");
+ aURL += OUString("/");
}
sal_Int32 nLen = aURL.getLength();
@@ -2133,7 +2133,7 @@ void Content::queryChildren( ContentRefList& rChildren )
while ( it != end )
{
::ucbhelper::ContentImplHelperRef xChild = (*it);
- rtl::OUString aChildURL
+ OUString aChildURL
= xChild->getIdentifier()->getContentIdentifier();
// Is aURL a prefix of aChildURL?
@@ -2165,7 +2165,7 @@ void Content::insert(
throw( uno::Exception )
{
sal_Bool bTransient, bCollection;
- rtl::OUString aEscapedTitle;
+ OUString aEscapedTitle;
SAL_WNODEPRECATED_DECLARATIONS_PUSH
std::auto_ptr< DAVResourceAccess > xResAccess;
SAL_WNODEPRECATED_DECLARATIONS_POP
@@ -2185,11 +2185,11 @@ void Content::insert(
{
OSL_FAIL( "Content::insert - Title missing!" );
- uno::Sequence< rtl::OUString > aProps( 1 );
- aProps[ 0 ] = rtl::OUString("Title");
+ uno::Sequence< OUString > aProps( 1 );
+ aProps[ 0 ] = OUString("Title");
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::MissingPropertiesException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
aProps ) ),
Environment );
@@ -2217,7 +2217,7 @@ void Content::insert(
if ( !bTransient || ( bTransient && !bCollection ) )
{
ucb::UnsupportedNameClashException aEx(
- rtl::OUString( "Unable to write without overwrite!" ),
+ OUString( "Unable to write without overwrite!" ),
static_cast< cppu::OWeakObject * >( this ),
ucb::NameClash::ERROR );
@@ -2254,7 +2254,7 @@ void Content::insert(
case ucbhelper::CONTINUATION_DISAPPROVE:
// Abort.
throw ucb::CommandFailedException(
- rtl::OUString(),
+ OUString(),
uno::Reference< uno::XInterface >(),
aExAsAny );
// break;
@@ -2263,7 +2263,7 @@ void Content::insert(
OSL_FAIL( "Content::insert - "
"Unknown interaction selection!" );
throw ucb::CommandFailedException(
- rtl::OUString( "Unknown interaction selection!" ),
+ OUString( "Unknown interaction selection!" ),
uno::Reference< uno::XInterface >(),
aExAsAny );
// break;
@@ -2280,9 +2280,9 @@ void Content::insert(
if ( bTransient )
{
// Assemble new content identifier...
- rtl::OUString aURL = getParentURL();
+ OUString aURL = getParentURL();
if ( aURL.lastIndexOf( '/' ) != ( aURL.getLength() - 1 ) )
- aURL += rtl::OUString("/");
+ aURL += OUString("/");
aURL += aEscapedTitle;
@@ -2332,7 +2332,7 @@ void Content::insert(
}
else
{
- rtl::OUString aTitle;
+ OUString aTitle;
try
{
NeonUri aURI( aURL );
@@ -2345,7 +2345,7 @@ void Content::insert(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::NameClashException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aTitle ) ),
@@ -2378,7 +2378,7 @@ void Content::insert(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::MissingInputStreamException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ) ) ),
Environment );
// Unreachable
@@ -2421,7 +2421,7 @@ void Content::transfer(
xResAccess.reset( new DAVResourceAccess( *m_xResAccess.get() ) );
}
- rtl::OUString aTargetURI;
+ OUString aTargetURI;
try
{
NeonUri sourceURI( rArgs.SourceURL );
@@ -2430,21 +2430,21 @@ void Content::transfer(
// Check source's and target's URL scheme
//
- const rtl::OUString aScheme = sourceURI.GetScheme().toAsciiLowerCase();
+ const OUString aScheme = sourceURI.GetScheme().toAsciiLowerCase();
if ( aScheme == WEBDAV_URL_SCHEME )
{
sourceURI.SetScheme(
- rtl::OUString( HTTP_URL_SCHEME ) );
+ OUString( HTTP_URL_SCHEME ) );
}
else if ( aScheme == DAV_URL_SCHEME )
{
sourceURI.SetScheme(
- rtl::OUString( HTTP_URL_SCHEME ) );
+ OUString( HTTP_URL_SCHEME ) );
}
else if ( aScheme == DAVS_URL_SCHEME )
{
sourceURI.SetScheme(
- rtl::OUString( HTTPS_URL_SCHEME ) );
+ OUString( HTTPS_URL_SCHEME ) );
}
else
{
@@ -2453,7 +2453,7 @@ void Content::transfer(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::InteractiveBadTransferURLException(
- rtl::OUString( "Unsupported URL scheme!" ),
+ OUString( "Unsupported URL scheme!" ),
static_cast< cppu::OWeakObject * >( this ) ) ),
Environment );
// Unreachable
@@ -2462,10 +2462,10 @@ void Content::transfer(
if ( targetURI.GetScheme().toAsciiLowerCase() == WEBDAV_URL_SCHEME )
targetURI.SetScheme(
- rtl::OUString( HTTP_URL_SCHEME ) );
+ OUString( HTTP_URL_SCHEME ) );
else if ( targetURI.GetScheme().toAsciiLowerCase() == DAV_URL_SCHEME )
targetURI.SetScheme(
- rtl::OUString( HTTP_URL_SCHEME ) );
+ OUString( HTTP_URL_SCHEME ) );
// @@@ This implementation of 'transfer' only works
// if the source and target are located at same host.
@@ -2478,13 +2478,13 @@ void Content::transfer(
{
ucbhelper::cancelCommandExecution(
uno::makeAny( ucb::InteractiveBadTransferURLException(
- rtl::OUString( "Different hosts!" ),
+ OUString( "Different hosts!" ),
static_cast< cppu::OWeakObject * >( this ) ) ),
Environment );
// Unreachable
}
- rtl::OUString aTitle = rArgs.NewTitle;
+ OUString aTitle = rArgs.NewTitle;
if ( aTitle.isEmpty() )
aTitle = sourceURI.GetPathBaseNameUnescaped();
@@ -2492,15 +2492,15 @@ void Content::transfer(
if ( aTitle == "/" )
{
// kso: ???
- aTitle = rtl::OUString();
+ aTitle = OUString();
}
targetURI.AppendPath( aTitle );
- rtl::OUString aTargetURL = xIdentifier->getContentIdentifier();
+ OUString aTargetURL = xIdentifier->getContentIdentifier();
if ( ( aTargetURL.lastIndexOf( '/' ) + 1 )
!= aTargetURL.getLength() )
- aTargetURL += rtl::OUString("/");
+ aTargetURL += OUString("/");
aTargetURL += aTitle;
@@ -2599,7 +2599,7 @@ void Content::transfer(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::NameClashException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aTargetURI ) ),
@@ -2618,7 +2618,7 @@ void Content::transfer(
ucbhelper::cancelCommandExecution(
uno::makeAny(
ucb::UnsupportedNameClashException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
rArgs.NameClash ) ),
Environment );
@@ -2706,7 +2706,7 @@ void Content::lock(
uno::Any aOwnerAny;
aOwnerAny
- <<= rtl::OUString("http://ucb.openoffice.org");
+ <<= OUString("http://ucb.openoffice.org");
ucb::Lock aLock(
ucb::LockScope_EXCLUSIVE,
@@ -2715,7 +2715,7 @@ void Content::lock(
aOwnerAny,
180, // lock timeout in secs
//-1, // infinite lock
- uno::Sequence< ::rtl::OUString >() );
+ uno::Sequence< OUString >() );
xResAccess->LOCK( aLock, Environment );
@@ -2783,7 +2783,7 @@ sal_Bool Content::exchangeIdentity(
// Fail, if a content with given id already exists.
// if ( !hasData( xNewId ) )
{
- rtl::OUString aOldURL = m_xIdentifier->getContentIdentifier();
+ OUString aOldURL = m_xIdentifier->getContentIdentifier();
aGuard.clear();
if ( exchange( xNewId ) )
@@ -2803,9 +2803,9 @@ sal_Bool Content::exchangeIdentity(
// Create new content identifier for the child...
uno::Reference< ucb::XContentIdentifier >
xOldChildId = xChild->getIdentifier();
- rtl::OUString aOldChildURL
+ OUString aOldChildURL
= xOldChildId->getContentIdentifier();
- rtl::OUString aNewChildURL
+ OUString aNewChildURL
= aOldChildURL.replaceAt(
0,
aOldURL.getLength(),
@@ -2840,7 +2840,7 @@ sal_Bool Content::isFolder(
}
uno::Sequence< beans::Property > aProperties( 1 );
- aProperties[ 0 ].Name = rtl::OUString("IsFolder");
+ aProperties[ 0 ].Name = OUString("IsFolder");
aProperties[ 0 ].Handle = -1;
uno::Reference< sdbc::XRow > xRow( getPropertyValues( aProperties, xEnv ) );
if ( xRow.is() )
@@ -2863,12 +2863,12 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
// Map DAVException...
uno::Any aException;
- rtl::OUString aURL;
+ OUString aURL;
if ( m_bTransient )
{
aURL = getParentURL();
if ( aURL.lastIndexOf('/') != ( aURL.getLength() - 1 ) )
- aURL += rtl::OUString(static_cast<sal_Unicode>('/'));
+ aURL += OUString(static_cast<sal_Unicode>('/'));
aURL += m_aEscapedTitle;
}
@@ -2883,13 +2883,13 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
{
uno::Sequence< uno::Any > aArgs( 1 );
aArgs[ 0 ] <<= beans::PropertyValue(
- rtl::OUString("Uri"), -1,
+ OUString("Uri"), -1,
uno::makeAny(aURL),
beans::PropertyState_DIRECT_VALUE);
aException <<=
ucb::InteractiveAugmentedIOException(
- rtl::OUString("Not found!"),
+ OUString("Not found!"),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
ucb::IOErrorCode_NOT_EXISTING,
@@ -2924,7 +2924,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_HTTP_LOOKUP:
aException <<=
ucb::InteractiveNetworkResolveNameException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
e.getData() );
@@ -2941,7 +2941,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_HTTP_CONNECT:
aException <<=
ucb::InteractiveNetworkConnectException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
e.getData() );
@@ -2962,7 +2962,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_INVALID_ARG:
aException <<=
lang::IllegalArgumentException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
-1 );
break;
@@ -2970,7 +2970,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_LOCKED:
aException <<=
ucb::InteractiveLockingLockedException(
- rtl::OUString("Locked!"),
+ OUString("Locked!"),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aURL,
@@ -2980,7 +2980,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_LOCKED_SELF:
aException <<=
ucb::InteractiveLockingLockedException(
- rtl::OUString("Locked (self!)"),
+ OUString("Locked (self!)"),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aURL,
@@ -2990,7 +2990,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_NOT_LOCKED:
aException <<=
ucb::InteractiveLockingNotLockedException(
- rtl::OUString("Not locked!"),
+ OUString("Not locked!"),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aURL );
@@ -2999,7 +2999,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
case DAVException::DAV_LOCK_EXPIRED:
aException <<=
ucb::InteractiveLockingLockExpiredException(
- rtl::OUString("Lock expired!"),
+ OUString("Lock expired!"),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR,
aURL );
@@ -3008,7 +3008,7 @@ uno::Any Content::MapDAVException( const DAVException & e, sal_Bool bWrite )
default:
aException <<=
ucb::InteractiveNetworkGeneralException(
- rtl::OUString(),
+ OUString(),
static_cast< cppu::OWeakObject * >( this ),
task::InteractionClassification_ERROR );
break;
@@ -3044,7 +3044,7 @@ void Content::cancelCommandExecution(
//=========================================================================
SAL_WNODEPRECATED_DECLARATIONS_PUSH
-const rtl::OUString
+const OUString
Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
{
osl::Guard< osl::Mutex > aGuard( m_aMutex );
@@ -3052,8 +3052,8 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
// First, try to obtain value of response header "Content-Location".
if ( m_xCachedProps.get() )
{
- rtl::OUString aLocation;
- m_xCachedProps->getValue( rtl::OUString( "Content-Location" ) ) >>= aLocation;
+ OUString aLocation;
+ m_xCachedProps->getValue( OUString( "Content-Location" ) ) >>= aLocation;
if ( !aLocation.isEmpty() )
{
try
@@ -3070,7 +3070,7 @@ Content::getBaseURI( const std::auto_ptr< DAVResourceAccess > & rResAccess )
}
}
- return rtl::OUString( rResAccess->getURL() );
+ return OUString( rResAccess->getURL() );
}
//=========================================================================
@@ -3089,8 +3089,8 @@ Content::ResourceType Content::getResourceType(
ResourceType eResourceType = UNKNOWN;
- const rtl::OUString & rURL = rResAccess->getURL();
- const rtl::OUString aScheme(
+ const OUString & rURL = rResAccess->getURL();
+ const OUString aScheme(
rURL.copy( 0, rURL.indexOf( ':' ) ).toAsciiLowerCase() );
if ( aScheme == FTP_URL_SCHEME )
@@ -3105,12 +3105,12 @@ Content::ResourceType Content::getResourceType(
// used when loading documents... along with identifying whether
// this is a DAV resource.
std::vector< DAVResource > resources;
- std::vector< rtl::OUString > aPropNames;
+ std::vector< OUString > aPropNames;
uno::Sequence< beans::Property > aProperties( 5 );
- aProperties[ 0 ].Name = rtl::OUString("IsFolder");
- aProperties[ 1 ].Name = rtl::OUString("IsDocument");
- aProperties[ 2 ].Name = rtl::OUString("IsReadOnly");
- aProperties[ 3 ].Name = rtl::OUString("MediaType");
+ aProperties[ 0 ].Name = OUString("IsFolder");
+ aProperties[ 1 ].Name = OUString("IsDocument");
+ aProperties[ 2 ].Name = OUString("IsReadOnly");
+ aProperties[ 3 ].Name = OUString("MediaType");
aProperties[ 4 ].Name = DAVProperties::SUPPORTEDLOCK;
ContentProperties::UCBNamesToDAVNames( aProperties, aPropNames );