TL_CONSTASCII_USTRINGPARAM in libs core 19
This commit is contained in:
@@ -82,13 +82,13 @@ OPoolCollection::OPoolCollection(const Reference< XMultiServiceFactory >& _rxF
|
||||
:m_xServiceFactory(_rxFactory)
|
||||
{
|
||||
// bootstrap all objects supporting the .sdb.Driver service
|
||||
m_xManager = Reference< XDriverManager >(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("com.sun.star.sdbc.DriverManager") ), UNO_QUERY);
|
||||
m_xManager = Reference< XDriverManager >(m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.DriverManager")) ), UNO_QUERY);
|
||||
m_xDriverAccess = Reference< XDriverAccess >(m_xManager, UNO_QUERY);
|
||||
OSL_ENSURE(m_xDriverAccess.is(), "have no (or an invalid) driver manager!");
|
||||
|
||||
m_xProxyFactory = Reference< XProxyFactory >(
|
||||
m_xServiceFactory->createInstance(
|
||||
::rtl::OUString::createFromAscii("com.sun.star.reflection.ProxyFactory")),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.reflection.ProxyFactory"))),
|
||||
UNO_QUERY);
|
||||
OSL_ENSURE(m_xProxyFactory.is(), "OConnectionPool::OConnectionPool: could not create a proxy factory!");
|
||||
|
||||
@@ -99,7 +99,7 @@ OPoolCollection::OPoolCollection(const Reference< XMultiServiceFactory >& _rxF
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
{
|
||||
|
||||
m_xDesktop = Reference< ::com::sun::star::frame::XDesktop>( m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.Desktop") ), UNO_QUERY);
|
||||
m_xDesktop = Reference< ::com::sun::star::frame::XDesktop>( m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop")) ), UNO_QUERY);
|
||||
if ( m_xDesktop.is() )
|
||||
m_xDesktop->addTerminateListener(this);
|
||||
|
||||
@@ -182,14 +182,14 @@ Reference< XInterface > SAL_CALL OPoolCollection::CreateInstance(const Reference
|
||||
//--------------------------------------------------------------------------
|
||||
::rtl::OUString SAL_CALL OPoolCollection::getImplementationName_Static( ) throw(RuntimeException)
|
||||
{
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbc.OConnectionPool");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.OConnectionPool"));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
Sequence< ::rtl::OUString > SAL_CALL OPoolCollection::getSupportedServiceNames_Static( ) throw(RuntimeException)
|
||||
{
|
||||
Sequence< ::rtl::OUString > aSupported(1);
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbc.ConnectionPool");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.ConnectionPool"));
|
||||
return aSupported;
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -386,7 +386,7 @@ Reference< XInterface > OPoolCollection::createWithProvider(const Reference< XMu
|
||||
}
|
||||
else
|
||||
{
|
||||
OSL_ENSURE(xSI->supportsService(::rtl::OUString::createFromAscii("com.sun.star.configuration.ConfigurationProvider")),
|
||||
OSL_ENSURE(xSI->supportsService(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationProvider"))),
|
||||
"::createWithProvider: sure this is a provider? Missing the ConfigurationProvider service!");
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ sal_Bool SAL_CALL component_writeInfo(void* /*_pServiceManager*/, com::sun::star
|
||||
{
|
||||
::rtl::OUString sMainKeyName( RTL_CONSTASCII_USTRINGPARAM( "/" ));
|
||||
sMainKeyName += OPoolCollection::getImplementationName_Static();
|
||||
sMainKeyName += ::rtl::OUString::createFromAscii("/UNO/SERVICES");
|
||||
sMainKeyName += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES"));
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -59,7 +59,7 @@ using namespace ::com::sun::star::container;
|
||||
using namespace ::com::sun::star::logging;
|
||||
using namespace ::osl;
|
||||
|
||||
#define SERVICE_SDBC_DRIVER ::rtl::OUString::createFromAscii("com.sun.star.sdbc.Driver")
|
||||
#define SERVICE_SDBC_DRIVER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.Driver"))
|
||||
|
||||
void throwNoSuchElementException() throw(NoSuchElementException)
|
||||
{
|
||||
@@ -563,7 +563,7 @@ Reference< XInterface > SAL_CALL OSDBCDriverManager::Create( const Reference< XM
|
||||
//--------------------------------------------------------------------------
|
||||
::rtl::OUString SAL_CALL OSDBCDriverManager::getImplementationName_static( ) throw(RuntimeException)
|
||||
{
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.comp.sdbc.OSDBCDriverManager");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.sdbc.OSDBCDriverManager"));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
@@ -62,7 +62,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo(void* /*_pServiceMana
|
||||
{
|
||||
::rtl::OUString sMainKeyName( RTL_CONSTASCII_USTRINGPARAM( "/" ));
|
||||
sMainKeyName += ::drivermanager::OSDBCDriverManager::getImplementationName_static();
|
||||
sMainKeyName += ::rtl::OUString::createFromAscii("/UNO/SERVICES");
|
||||
sMainKeyName += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/UNO/SERVICES"));
|
||||
Reference< XRegistryKey > xMainKey = _pRegistryKey->createKey(sMainKeyName);
|
||||
if (xMainKey.is())
|
||||
{
|
||||
|
@@ -239,9 +239,9 @@ void OOrderColumn::construct()
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if ( m_bOrder )
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdb.OrderColumn");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.OrderColumn"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdb.GroupColumn");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdb.GroupColumn"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -904,7 +904,7 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo
|
||||
}
|
||||
else if(pDatatype && pDatatype->getNodeType() == SQL_NODE_KEYWORD)
|
||||
{
|
||||
aTypeName = ::rtl::OUString::createFromAscii("VARCHAR");
|
||||
aTypeName = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VARCHAR"));
|
||||
}
|
||||
|
||||
if (aTypeName.getLength())
|
||||
@@ -946,7 +946,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
|
||||
if (pSelectNode->getChild(2)->isRule() && SQL_ISPUNCTUATION(pSelectNode->getChild(2)->getChild(0),"*"))
|
||||
{
|
||||
// SELECT * ...
|
||||
setSelectColumnName(m_aSelectColumns,::rtl::OUString::createFromAscii("*"), aEmptyString,aEmptyString);
|
||||
setSelectColumnName(m_aSelectColumns,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("*")), aEmptyString,aEmptyString);
|
||||
}
|
||||
else if (SQL_ISRULE(pSelectNode->getChild(2),scalar_exp_commalist))
|
||||
{
|
||||
@@ -966,7 +966,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele
|
||||
// alle Spalten der Tabelle
|
||||
::rtl::OUString aTableRange;
|
||||
pColumnRef->getChild(0)->parseNodeToStr( aTableRange, m_pImpl->m_xConnection, NULL, sal_False, sal_False );
|
||||
setSelectColumnName(m_aSelectColumns,::rtl::OUString::createFromAscii("*"), aEmptyString,aTableRange);
|
||||
setSelectColumnName(m_aSelectColumns,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("*")), aEmptyString,aTableRange);
|
||||
continue;
|
||||
}
|
||||
else if (SQL_ISRULE(pColumnRef,derived_column))
|
||||
@@ -1475,7 +1475,7 @@ void OSQLParseTreeIterator::traverseParameter(const OSQLParseNode* _pParseNode
|
||||
? _rColumnAlias
|
||||
: _aColumnName.getLength()
|
||||
? _aColumnName
|
||||
: ::rtl::OUString::createFromAscii("?");
|
||||
: ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("?"));
|
||||
}
|
||||
else if (SQL_ISPUNCTUATION(pMark,":"))
|
||||
{
|
||||
@@ -1681,8 +1681,8 @@ OSQLTable OSQLParseTreeIterator::impl_createTableObject( const ::rtl::OUString&
|
||||
NULL,
|
||||
sal_False,
|
||||
rTableName,
|
||||
::rtl::OUString::createFromAscii("Table"),
|
||||
::rtl::OUString::createFromAscii("New Created Table"),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Table")),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("New Created Table")),
|
||||
rSchemaName,
|
||||
rCatalogName
|
||||
);
|
||||
@@ -1788,7 +1788,7 @@ void OSQLParseTreeIterator::setSelectColumnName(::rtl::Reference<OSQLColumns>& _
|
||||
// did not find a column with this name in any of the tables
|
||||
OParseColumn* pColumn = new OParseColumn(
|
||||
aNewColName,
|
||||
::rtl::OUString::createFromAscii( "VARCHAR" ),
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VARCHAR")),
|
||||
// TODO: does this match with _nType?
|
||||
// Or should be fill this from the getTypeInfo of the connection?
|
||||
::rtl::OUString(),
|
||||
@@ -2143,7 +2143,7 @@ void OSQLParseTreeIterator::impl_appendError( IParseContext::ErrorCode _eError,
|
||||
|
||||
sErrorMessage = sErrorMessage.replaceAt( sErrorMessage.indexOf( sPlaceHolder1 ), sPlaceHolder1.getLength(), *_pReplaceToken1 );
|
||||
if ( _pReplaceToken2 )
|
||||
sErrorMessage = sErrorMessage.replaceAt( sErrorMessage.indexOf( ::rtl::OUString::createFromAscii( "#2" ) ), 2, *_pReplaceToken2 );
|
||||
sErrorMessage = sErrorMessage.replaceAt( sErrorMessage.indexOf( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#2")) ), 2, *_pReplaceToken2 );
|
||||
}
|
||||
|
||||
impl_appendError( SQLException(
|
||||
|
@@ -422,7 +422,7 @@ void OSQLParseNode::impl_parseNodeToString_throw(::rtl::OUStringBuffer& rString,
|
||||
|
||||
case as:
|
||||
if ( rParam.aMetaData.generateASBeforeCorrelationName() )
|
||||
rString.append(::rtl::OUString::createFromAscii( " AS" ));
|
||||
rString.append(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" AS")));
|
||||
bHandled = true;
|
||||
break;
|
||||
|
||||
@@ -670,7 +670,7 @@ void OSQLParseNode::impl_parseTableRangeNodeToString_throw(::rtl::OUStringBuffer
|
||||
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "parse", "Ocke.Janssen@sun.com", "OSQLParseNode::impl_parseTableRangeNodeToString_throw" );
|
||||
OSL_PRECOND( ( count() == 2 ) || ( count() == 3 ) || ( count() == 5 ) ,"Illegal count");
|
||||
|
||||
// rString += ::rtl::OUString::createFromAscii(" ");
|
||||
// rString += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" "));
|
||||
::std::for_each(m_aChildren.begin(),m_aChildren.end(),
|
||||
boost::bind( &OSQLParseNode::impl_parseNodeToString_throw, _1, boost::ref( rString ), boost::cref( rParam ) ));
|
||||
}
|
||||
@@ -726,7 +726,7 @@ void OSQLParseNode::impl_parseLikeNodeToString_throw( ::rtl::OUStringBuffer& rSt
|
||||
{
|
||||
::rtl::OUString aStr = ConvertLikeToken(pParaNode, pEscNode, rParam.bInternational);
|
||||
rString.appendAscii(" ");
|
||||
rString.append(SetQuotation(aStr,::rtl::OUString::createFromAscii("\'"),::rtl::OUString::createFromAscii("\'\'")));
|
||||
rString.append(SetQuotation(aStr,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\'")),::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\'\'"))));
|
||||
}
|
||||
else
|
||||
pParaNode->impl_parseNodeToString_throw( rString, aNewParam );
|
||||
@@ -989,7 +989,7 @@ sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode*& pAppend, OSQLParseNode*& pLi
|
||||
sal_Int16 nScale = 0;
|
||||
try
|
||||
{
|
||||
Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, ::rtl::OUString::createFromAscii("Decimals") );
|
||||
Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Decimals")) );
|
||||
aValue >>= nScale;
|
||||
}
|
||||
catch( Exception& )
|
||||
@@ -1006,7 +1006,7 @@ sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode*& pAppend, OSQLParseNode*& pLi
|
||||
break;
|
||||
default:
|
||||
m_sErrorMessage = m_pContext->getErrorMessage(IParseContext::ERROR_VALUE_NO_LIKE);
|
||||
m_sErrorMessage = m_sErrorMessage.replaceAt(m_sErrorMessage.indexOf(::rtl::OUString::createFromAscii("#1")),2,pLiteral->getTokenValue());
|
||||
m_sErrorMessage = m_sErrorMessage.replaceAt(m_sErrorMessage.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#1"))),2,pLiteral->getTokenValue());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1022,10 +1022,10 @@ OSQLParseNode* OSQLParser::buildNode_Date(const double& fValue, sal_Int32 nType)
|
||||
{
|
||||
::rtl::OUString aEmptyString;
|
||||
OSQLParseNode* pNewNode = new OSQLInternalNode(aEmptyString, SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::set_fct_spec));
|
||||
pNewNode->append(new OSQLInternalNode(::rtl::OUString::createFromAscii("{"), SQL_NODE_PUNCTUATION));
|
||||
pNewNode->append(new OSQLInternalNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("{")), SQL_NODE_PUNCTUATION));
|
||||
OSQLParseNode* pDateNode = new OSQLInternalNode(aEmptyString, SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::odbc_fct_spec));
|
||||
pNewNode->append(pDateNode);
|
||||
pNewNode->append(new OSQLInternalNode(::rtl::OUString::createFromAscii("}"), SQL_NODE_PUNCTUATION));
|
||||
pNewNode->append(new OSQLInternalNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("}")), SQL_NODE_PUNCTUATION));
|
||||
|
||||
switch (nType)
|
||||
{
|
||||
@@ -1100,7 +1100,7 @@ OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral)
|
||||
{
|
||||
::rtl::OUString aValue;
|
||||
if(!m_xCharClass.is())
|
||||
m_xCharClass = Reference<XCharacterClassification>(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("com.sun.star.i18n.CharacterClassification")),UNO_QUERY);
|
||||
m_xCharClass = Reference<XCharacterClassification>(m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.CharacterClassification"))),UNO_QUERY);
|
||||
if(m_xCharClass.is() && s_xLocaleData.is())
|
||||
{
|
||||
try
|
||||
@@ -1109,10 +1109,10 @@ OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral)
|
||||
if((aResult.TokenType & KParseType::IDENTNAME) && aResult.EndPos == _rValue.getLength())
|
||||
{
|
||||
aValue = ::rtl::OUString::valueOf(aResult.Value);
|
||||
sal_Int32 nPos = aValue.lastIndexOf(::rtl::OUString::createFromAscii("."));
|
||||
sal_Int32 nPos = aValue.lastIndexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")));
|
||||
if((nPos+_nScale) < aValue.getLength())
|
||||
aValue = aValue.replaceAt(nPos+_nScale,aValue.getLength()-nPos-_nScale,::rtl::OUString());
|
||||
aValue = aValue.replaceAt(aValue.lastIndexOf(::rtl::OUString::createFromAscii(".")),1,s_xLocaleData->getLocaleItem(m_pData->aLocale).decimalSeparator);
|
||||
aValue = aValue.replaceAt(aValue.lastIndexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("."))),1,s_xLocaleData->getLocaleItem(m_pData->aLocale).decimalSeparator);
|
||||
return aValue;
|
||||
}
|
||||
}
|
||||
@@ -1319,7 +1319,7 @@ OSQLParser::OSQLParser(const ::com::sun::star::uno::Reference< ::com::sun::star:
|
||||
s_pGarbageCollector = new OSQLParseNodesGarbageCollector();
|
||||
|
||||
if(!s_xLocaleData.is())
|
||||
s_xLocaleData = Reference<XLocaleData>(m_xServiceFactory->createInstance(::rtl::OUString::createFromAscii("com.sun.star.i18n.LocaleData")),UNO_QUERY);
|
||||
s_xLocaleData = Reference<XLocaleData>(m_xServiceFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.LocaleData"))),UNO_QUERY);
|
||||
|
||||
// auf 0 zuruecksetzen
|
||||
memset(OSQLParser::s_nRuleIDs,0,sizeof(OSQLParser::s_nRuleIDs[0]) * (OSQLParseNode::rule_count+1));
|
||||
@@ -1484,7 +1484,7 @@ void OSQLParseNode::substituteParameterNames(OSQLParseNode* _pNode)
|
||||
OSQLParseNode* pChildNode = _pNode->getChild(i);
|
||||
if(SQL_ISRULE(pChildNode,parameter) && pChildNode->count() > 1)
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString::createFromAscii("?") ,SQL_NODE_PUNCTUATION,0);
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("?")) ,SQL_NODE_PUNCTUATION,0);
|
||||
delete pChildNode->replace(pChildNode->getChild(0),pNewNode);
|
||||
sal_Int32 nChildCount = pChildNode->count();
|
||||
for(sal_Int32 j=1;j < nChildCount;++j)
|
||||
@@ -1722,19 +1722,19 @@ sal_Bool OSQLParseNode::addDateValue(::rtl::OUStringBuffer& rString, const SQLPa
|
||||
SQL_ISTOKEN(pODBCNodeChild, T) ||
|
||||
SQL_ISTOKEN(pODBCNodeChild, TS) ))
|
||||
{
|
||||
::rtl::OUString suQuote(::rtl::OUString::createFromAscii("'"));
|
||||
::rtl::OUString suQuote(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("'")));
|
||||
if (rParam.bPredicate)
|
||||
{
|
||||
if (rParam.aMetaData.shouldEscapeDateTime())
|
||||
{
|
||||
suQuote = ::rtl::OUString::createFromAscii("#");
|
||||
suQuote = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("#"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (rParam.aMetaData.shouldEscapeDateTime())
|
||||
{
|
||||
// suQuote = ::rtl::OUString::createFromAscii("'");
|
||||
// suQuote = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("'"));
|
||||
return sal_False;
|
||||
}
|
||||
}
|
||||
@@ -1771,7 +1771,7 @@ void OSQLParseNode::replaceNodeValue(const ::rtl::OUString& rTableAlias,const ::
|
||||
{
|
||||
OSQLParseNode * pCol = removeAt((sal_uInt32)0);
|
||||
append(new OSQLParseNode(rTableAlias,SQL_NODE_NAME));
|
||||
append(new OSQLParseNode(::rtl::OUString::createFromAscii("."),SQL_NODE_PUNCTUATION));
|
||||
append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")),SQL_NODE_PUNCTUATION));
|
||||
append(pCol);
|
||||
}
|
||||
else
|
||||
@@ -1798,7 +1798,7 @@ OSQLParseNode* MakeANDNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_term));
|
||||
pNewNode->append(pLeftLeaf);
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii("AND"),SQL_NODE_KEYWORD,SQL_TOKEN_AND));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AND")),SQL_NODE_KEYWORD,SQL_TOKEN_AND));
|
||||
pNewNode->append(pRightLeaf);
|
||||
return pNewNode;
|
||||
}
|
||||
@@ -1807,7 +1807,7 @@ OSQLParseNode* MakeORNode(OSQLParseNode *pLeftLeaf,OSQLParseNode *pRightLeaf)
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::search_condition));
|
||||
pNewNode->append(pLeftLeaf);
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii("OR"),SQL_NODE_KEYWORD,SQL_TOKEN_OR));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OR")),SQL_NODE_KEYWORD,SQL_TOKEN_OR));
|
||||
pNewNode->append(pRightLeaf);
|
||||
return pNewNode;
|
||||
}
|
||||
@@ -1909,7 +1909,7 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition,sal_B
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_term));
|
||||
pNewNode->append(pSearchCondition->removeAt((sal_uInt32)0));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii("AND"),SQL_NODE_KEYWORD,SQL_TOKEN_AND));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AND")),SQL_NODE_KEYWORD,SQL_TOKEN_AND));
|
||||
pNewNode->append(pSearchCondition->removeAt((sal_uInt32)1));
|
||||
replaceAndReset(pSearchCondition,pNewNode);
|
||||
|
||||
@@ -1929,7 +1929,7 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition,sal_B
|
||||
{
|
||||
OSQLParseNode* pNewNode = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::search_condition));
|
||||
pNewNode->append(pSearchCondition->removeAt((sal_uInt32)0));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii("OR"),SQL_NODE_KEYWORD,SQL_TOKEN_OR));
|
||||
pNewNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OR")),SQL_NODE_KEYWORD,SQL_TOKEN_OR));
|
||||
pNewNode->append(pSearchCondition->removeAt((sal_uInt32)1));
|
||||
replaceAndReset(pSearchCondition,pNewNode);
|
||||
|
||||
@@ -1961,22 +1961,22 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition,sal_B
|
||||
switch(pComparison->getNodeType())
|
||||
{
|
||||
case SQL_NODE_EQUAL:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii("<>"),SQL_NODE_NOTEQUAL,SQL_NOTEQUAL);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("<>")),SQL_NODE_NOTEQUAL,SQL_NOTEQUAL);
|
||||
break;
|
||||
case SQL_NODE_LESS:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii(">="),SQL_NODE_GREATEQ,SQL_GREATEQ);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(">=")),SQL_NODE_GREATEQ,SQL_GREATEQ);
|
||||
break;
|
||||
case SQL_NODE_GREAT:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii("<="),SQL_NODE_LESSEQ,SQL_LESSEQ);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("<=")),SQL_NODE_LESSEQ,SQL_LESSEQ);
|
||||
break;
|
||||
case SQL_NODE_LESSEQ:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii(">"),SQL_NODE_GREAT,SQL_GREAT);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(">")),SQL_NODE_GREAT,SQL_GREAT);
|
||||
break;
|
||||
case SQL_NODE_GREATEQ:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii("<"),SQL_NODE_LESS,SQL_LESS);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("<")),SQL_NODE_LESS,SQL_LESS);
|
||||
break;
|
||||
case SQL_NODE_NOTEQUAL:
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString::createFromAscii("="),SQL_NODE_EQUAL,SQL_EQUAL);
|
||||
pNewComparison = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("=")),SQL_NODE_EQUAL,SQL_EQUAL);
|
||||
break;
|
||||
default:
|
||||
OSL_ENSURE( false, "OSQLParseNode::negateSearchCondition: unexpected node type!" );
|
||||
@@ -2001,7 +2001,7 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition,sal_B
|
||||
OSQLParseNode* pNot = pPart2->getChild(nNotPos);
|
||||
OSQLParseNode* pNotNot = NULL;
|
||||
if(pNot->isRule())
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString::createFromAscii("NOT"),SQL_NODE_KEYWORD,SQL_TOKEN_NOT);
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NOT")),SQL_NODE_KEYWORD,SQL_TOKEN_NOT);
|
||||
else
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::sql_not));
|
||||
pPart2->replace(pNot, pNotNot);
|
||||
@@ -2012,7 +2012,7 @@ void OSQLParseNode::negateSearchCondition(OSQLParseNode*& pSearchCondition,sal_B
|
||||
OSQLParseNode* pNot = pSearchCondition->getChild( 1 )->getChild( 0 );
|
||||
OSQLParseNode* pNotNot = NULL;
|
||||
if(pNot->isRule())
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString::createFromAscii("NOT"),SQL_NODE_KEYWORD,SQL_TOKEN_NOT);
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NOT")),SQL_NODE_KEYWORD,SQL_TOKEN_NOT);
|
||||
else
|
||||
pNotNot = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::sql_not));
|
||||
pSearchCondition->getChild( 1 )->replace(pNot, pNotNot);
|
||||
@@ -2104,9 +2104,9 @@ void OSQLParseNode::absorptions(OSQLParseNode*& pSearchCondition)
|
||||
OSQLParseNode* p2ndAnd = MakeANDNode(new OSQLParseNode(*pA),pC);
|
||||
pNewNode = MakeORNode(p1stAnd,p2ndAnd);
|
||||
OSQLParseNode* pNode = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
|
||||
pNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
|
||||
pNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("(")),SQL_NODE_PUNCTUATION));
|
||||
pNode->append(pNewNode);
|
||||
pNode->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));
|
||||
pNode->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(")")),SQL_NODE_PUNCTUATION));
|
||||
OSQLParseNode::eraseBraces(p1stAnd);
|
||||
OSQLParseNode::eraseBraces(p2ndAnd);
|
||||
replaceAndReset(pSearchCondition,pNode);
|
||||
@@ -2184,9 +2184,9 @@ void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
|
||||
OSQLParseNode* pNode = MakeORNode(pLeft,pRight);
|
||||
|
||||
OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("(")),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(pNode);
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(")")),SQL_NODE_PUNCTUATION));
|
||||
|
||||
OSQLParseNode::eraseBraces(pLeft);
|
||||
OSQLParseNode::eraseBraces(pRight);
|
||||
@@ -2201,9 +2201,9 @@ void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
|
||||
OSQLParseNode* pNode = MakeORNode(pLeft,pRight);
|
||||
|
||||
OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("(")),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(pNode);
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(")")),SQL_NODE_PUNCTUATION));
|
||||
|
||||
OSQLParseNode::eraseBraces(pLeft);
|
||||
OSQLParseNode::eraseBraces(pRight);
|
||||
@@ -2218,9 +2218,9 @@ void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
|
||||
OSQLParseNode* pNode = MakeORNode(pLeft,pRight);
|
||||
|
||||
OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("(")),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(pNode);
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(")")),SQL_NODE_PUNCTUATION));
|
||||
|
||||
OSQLParseNode::eraseBraces(pLeft);
|
||||
OSQLParseNode::eraseBraces(pRight);
|
||||
@@ -2235,9 +2235,9 @@ void OSQLParseNode::compress(OSQLParseNode *&pSearchCondition)
|
||||
OSQLParseNode* pNode = MakeORNode(pLeft,pRight);
|
||||
|
||||
OSQLParseNode* pNewRule = new OSQLParseNode(::rtl::OUString(),SQL_NODE_RULE,OSQLParser::RuleID(OSQLParseNode::boolean_primary));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii("("),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("(")),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(pNode);
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString::createFromAscii(")"),SQL_NODE_PUNCTUATION));
|
||||
pNewRule->append(new OSQLParseNode(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(")")),SQL_NODE_PUNCTUATION));
|
||||
|
||||
OSQLParseNode::eraseBraces(pLeft);
|
||||
OSQLParseNode::eraseBraces(pRight);
|
||||
@@ -2475,7 +2475,7 @@ void OSQLParseNode::parseLeaf(::rtl::OUStringBuffer& rString, const SQLParseNode
|
||||
case SQL_NODE_STRING:
|
||||
if (rString.getLength())
|
||||
rString.appendAscii(" ");
|
||||
rString.append(SetQuotation(m_aNodeValue,::rtl::OUString::createFromAscii("\'"),::rtl::OUString::createFromAscii("\'\'")));
|
||||
rString.append(SetQuotation(m_aNodeValue,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\'")),::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\'\'"))));
|
||||
break;
|
||||
case SQL_NODE_NAME:
|
||||
if (rString.getLength())
|
||||
|
@@ -47,17 +47,17 @@ using namespace ::com::sun::star::sdbc;
|
||||
::rtl::OUString SAL_CALL OColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VColumnDescription");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VColumn");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VColumnDescription"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VColumn"));
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL OColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.ColumnDescription");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.ColumnDescription"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Column");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Column"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -52,17 +52,17 @@ using namespace ::com::sun::star::lang;
|
||||
::rtl::OUString SAL_CALL OIndex::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VIndexDescriptor");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VIndex");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VIndexDescriptor"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VIndex"));
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL OIndex::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.IndexDescriptor");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.IndexDescriptor"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Index");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Index"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -39,17 +39,17 @@ using namespace ::com::sun::star::uno;
|
||||
::rtl::OUString SAL_CALL OIndexColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VIndexColumnDescription");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VIndex");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VIndexColumnDescription"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VIndex"));
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL OIndexColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.IndexDescription");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.IndexDescription"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Index");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Index"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -51,17 +51,17 @@ using namespace ::com::sun::star::lang;
|
||||
::rtl::OUString SAL_CALL OKey::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VKeyDescription");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VKey");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VKeyDescription"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VKey"));
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL OKey::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.KeyDescription");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.KeyDescription"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Key");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Key"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -40,17 +40,17 @@ using namespace cppu;
|
||||
::rtl::OUString SAL_CALL OKeyColumn::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VKeyColumnDescription");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VKeyColumn");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VKeyColumnDescription"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VKeyColumn"));
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL OKeyColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.KeyColumnDescription");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.KeyColumnDescription"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.KeyColumn");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.KeyColumn"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
@@ -54,8 +54,8 @@ using namespace ::com::sun::star::lang;
|
||||
::rtl::OUString SAL_CALL OTable::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException)
|
||||
{
|
||||
if(isNew())
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.VTableDescriptor");
|
||||
return ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Table");
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.VTableDescriptor"));
|
||||
return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Table"));
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -63,9 +63,9 @@ using namespace ::com::sun::star::lang;
|
||||
{
|
||||
::com::sun::star::uno::Sequence< ::rtl::OUString > aSupported(1);
|
||||
if(isNew())
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.TableDescriptor");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.TableDescriptor"));
|
||||
else
|
||||
aSupported[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbcx.Table");
|
||||
aSupported[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbcx.Table"));
|
||||
|
||||
return aSupported;
|
||||
}
|
||||
|
Reference in New Issue
Block a user