summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-06-05 13:55:18 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-06-05 13:55:18 +0000
commitdd715bd0f69ef0d7189f02210463c9be3d80f632 (patch)
treef935831afd96ce3588f95f76ddecef44ba745e19 /ucbhelper
parentda073eb90b637baffeb85be3e9b77f38c2ca95f1 (diff)
INTEGRATION: CWS bgdlremove (1.5.28); FILE MERGED
2007/05/18 11:38:08 kso 1.5.28.1: #i77419# - cleanup of ucbhelper namespaces.
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/provconf.cxx34
1 files changed, 7 insertions, 27 deletions
diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx
index 67c6a28a6c46..6eeb18e14c46 100644
--- a/ucbhelper/source/provider/provconf.cxx
+++ b/ucbhelper/source/provider/provconf.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: provconf.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 17:22:55 $
+ * last change: $Author: ihi $ $Date: 2007-06-05 14:55:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -74,7 +74,7 @@ using namespace com::sun::star;
//=========================================================================
-namespace ucb {
+namespace ucbhelper {
void makeAndAppendXMLName(
rtl::OUStringBuffer & rBuffer, const rtl::OUString & rIn )
@@ -142,19 +142,11 @@ bool getContentProviderData(
}
rtl::OUStringBuffer aFullPath;
-#if SUPD<638
- aFullPath.appendAscii( CONFIG_CONTENTPROVIDERS_KEY "/" );
- aFullPath.append( rKey1 );
- aFullPath.appendAscii( "/SecondaryKeys/" );
- aFullPath.append( rKey2 );
- aFullPath.appendAscii( "/ProviderData" );
-#else
aFullPath.appendAscii( CONFIG_CONTENTPROVIDERS_KEY "/['" );
makeAndAppendXMLName( aFullPath, rKey1 );
aFullPath.appendAscii( "']/SecondaryKeys/['" );
makeAndAppendXMLName( aFullPath, rKey2 );
aFullPath.appendAscii( "']/ProviderData" );
-#endif
uno::Sequence< uno::Any > aArguments( 1 );
beans::PropertyValue aProperty;
@@ -207,23 +199,17 @@ bool getContentProviderData(
for ( sal_Int32 n = 0; n < nCount; ++n )
{
rtl::OUStringBuffer aElemBuffer;
-#if SUPD<638
- aElemBuffer.append( pElems[ n ] );
-#else
aElemBuffer.appendAscii( "['" );
makeAndAppendXMLName( aElemBuffer, pElems[ n ] );
-#endif
+
try
{
ContentProviderData aInfo;
// Obtain service name.
rtl::OUStringBuffer aKeyBuffer = aElemBuffer;
-#if SUPD<638
- aKeyBuffer.appendAscii( "/ServiceName" );
-#else
aKeyBuffer.appendAscii( "']/ServiceName" );
-#endif
+
rtl::OUString aValue;
if ( !( xHierNameAccess->getByHierarchicalName(
aKeyBuffer.makeStringAndClear() ) >>= aValue ) )
@@ -238,11 +224,8 @@ bool getContentProviderData(
// Obtain URL Template.
aKeyBuffer = aElemBuffer;
-#if SUPD<638
- aKeyBuffer.appendAscii( "/URLTemplate" );
-#else
aKeyBuffer.appendAscii( "']/URLTemplate" );
-#endif
+
if ( !( xHierNameAccess->getByHierarchicalName(
aKeyBuffer.makeStringAndClear() ) >>= aValue ) )
{
@@ -256,11 +239,8 @@ bool getContentProviderData(
// Obtain Arguments.
aKeyBuffer = aElemBuffer;
-#if SUPD<638
- aKeyBuffer.appendAscii( "/Arguments" );
-#else
aKeyBuffer.appendAscii( "']/Arguments" );
-#endif
+
if ( !( xHierNameAccess->getByHierarchicalName(
aKeyBuffer.makeStringAndClear() ) >>= aValue ) )
{