User: vg      
Date: 2008-08-19 10:06:48+0000
Modified:
   dba/reportdesign/source/core/api/ReportEngineJFree.cxx

Log:
 INTEGRATION: CWS dba31a (1.10.4); FILE MERGED
 2008/07/15 08:38:54 fs 1.10.4.1: remove unused code
 Issue number:  #i91592#
 Submitted by:  [EMAIL PROTECTED]
 Reviewed by:   [EMAIL PROTECTED]

File Changes:

Directory: /dba/reportdesign/source/core/api/
=============================================

File [changed]: ReportEngineJFree.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/source/core/api/ReportEngineJFree.cxx?r1=1.10&r2=1.11
Delta lines:  +0 -47
--------------------
--- ReportEngineJFree.cxx       2008-06-25 11:35:39+0000        1.10
+++ ReportEngineJFree.cxx       2008-08-19 10:06:46+0000        1.11
@@ -381,53 +381,6 @@
         throw lang::IllegalArgumentException();
        set(PROPERTY_ACTIVECONNECTION,_activeconnection,m_xActiveConnection);
 }
-// 
-----------------------------------------------------------------------------
-::rtl::OUString OReportEngineJFree::getOrderStatement() const
-{
-    
OSL_ENSURE(m_xActiveConnection.is(),"OReportEngineJFree::getOrderStatement: The 
ActiveConnection can not be NULL here!");
-    OSL_ENSURE(m_xReport.is(),"OReportEngineJFree::getOrderStatement: The 
ReportDefinition can not be NULL here!");
-
-    // retrieve columns of the object we're bound to
-    uno::Reference< lang::XComponent > xHoldAlive;
-    ::dbtools::SQLExceptionInfo aErrorInfo;
-    uno::Reference< container::XNameAccess> xColumns( 
::dbtools::getFieldsByCommandDescriptor(
-        m_xActiveConnection, m_xReport->getCommandType(), 
m_xReport->getCommand(), xHoldAlive, & aErrorInfo ) );
-    if ( aErrorInfo.isValid() )
-        aErrorInfo.doThrow();
-    if ( !xColumns.is() )
-    {
-        DBG_WARNING( "OReportEngineJFree::getOrderStatement: could not 
retrieve the columns for the ORDER statement!" );
-        return ::rtl::OUString();
-    }
-
-    // set order for groups
-    ::rtl::OUStringBuffer aOrder;
-
-    const ::rtl::OUString sQuote = 
m_xActiveConnection->getMetaData()->getIdentifierQuoteString();
-
-    uno::Reference< report::XGroups> xGroups = m_xReport->getGroups();
-    const sal_Int32 nCount = xGroups->getCount();
-    for (sal_Int32 i = 0; i < nCount; ++i )
-    {
-        uno::Reference< report::XGroup> 
xGroup(xGroups->getByIndex(i),uno::UNO_QUERY);
-        ::rtl::OUString sExpression = xGroup->getExpression();
-        if ( xColumns->hasByName(sExpression) )
-            sExpression = ::dbtools::quoteName( sQuote, sExpression );
-        sExpression = sExpression.trim(); // Trim away white spaces
-        if (sExpression.getLength() > 0)
-               {
-                       aOrder.append( sExpression );
-               if (aOrder.getLength() > 0) 
-                               aOrder.appendAscii( " " );
-               if ( !xGroup->getSortAscending() )
-                       aOrder.appendAscii( "DESC" );
-               if ( (i+1) < nCount )
-                       aOrder.appendAscii( "," );
-               }
-       }
-
-    return aOrder.makeStringAndClear();
-}
 // 
=============================================================================
 } // namespace reportdesign
 // 
=============================================================================




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to