Tag: cws_src680_dba201c
User: oj      
Date: 05/08/26 00:03:33

Modified:
 /dba/dbaccess/source/ui/querydesign/
  SelectionBrowseBox.cxx, query.src

Log:
 #i53660# use strings from parse context

File Changes:

Directory: /dba/dbaccess/source/ui/querydesign/
===============================================

File [changed]: SelectionBrowseBox.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx?r1=1.61&r2=1.61.90.1
Delta lines:  +18 -3
--------------------
--- SelectionBrowseBox.cxx      10 Mar 2005 16:53:16 -0000      1.61
+++ SelectionBrowseBox.cxx      26 Aug 2005 07:03:28 -0000      1.61.90.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: SelectionBrowseBox.cxx,v $
  *
- *  $Revision: 1.61 $
+ *  $Revision: 1.61.90.1 $
  *
- *  last change: $Author: vg $ $Date: 2005/03/10 16:53:16 $
+ *  last change: $Author: oj $ $Date: 2005/08/26 07:03:28 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -272,6 +272,21 @@
        Reference< XConnection> xConnection = 
static_cast<OQueryController*>(getDesignView()->getController())->getConnection();
        if(xConnection.is())
        {
+               const IParseContext& rContext = 
static_cast<OQueryController*>(getDesignView()->getController())->getParser()->getContext();
+               IParseContext::InternationalKeyCode eFunctions[] = { 
IParseContext::KEY_AVG,IParseContext::KEY_COUNT,IParseContext::KEY_MAX,IParseContext::KEY_MIN,IParseContext::KEY_SUM
 };
+               
+               String sGroup = 
m_aFunctionStrings.GetToken(m_aFunctionStrings.GetTokenCount() - 1);
+               m_aFunctionStrings = m_aFunctionStrings.GetToken(0);
+               
+               for (sal_Int32 i = 0; i < 
sizeof(eFunctions)/sizeof(eFunctions[0]) ; ++i)
+               {
+                       m_aFunctionStrings += 
String(RTL_CONSTASCII_USTRINGPARAM(";"));
+                       m_aFunctionStrings += 
String(ByteString(rContext.getIntlKeywordAscii(eFunctions[i])),RTL_TEXTENCODING_UTF8);
+                       
+               } // for (sal_Int32 i = 0; i < 
sizeof(eFunctions)/sizeof(eFunctions[0]) ; ++i)
+               m_aFunctionStrings += String(RTL_CONSTASCII_USTRINGPARAM(";"));
+               m_aFunctionStrings += sGroup;
+               
                // Diese Funktionen stehen nur unter CORE zur Verfügung
                if ( lcl_SupportsCoreSQLGrammar(xConnection) )
                {

File [changed]: query.src
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/query.src?r1=1.92&r2=1.92.180.1
Delta lines:  +5 -6
-------------------
--- query.src   9 Sep 2004 09:49:22 -0000       1.92
+++ query.src   26 Aug 2005 07:03:30 -0000      1.92.180.1
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: query.src,v $
  *
- *  $Revision: 1.92 $
+ *  $Revision: 1.92.180.1 $
  *
- *  last change: $Author: rt $ $Date: 2004/09/09 09:49:22 $
+ *  last change: $Author: oj $ $Date: 2005/08/26 07:03:30 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -263,9 +263,8 @@
 
 String STR_QUERY_FUNCTIONS
 {
-       /* Gleiche Textreihenfolge fuer die Funtkionen wie in common.src */
-       Text [ de ] = "(keine 
Funktion);Durchschnitt;Anzahl;Maximum;Minimum;Summe;Gruppierung";
-       Text [ en-US ] = "(no 
function);Average;Count;Maximum;Minimum;Sum;Group";
+       Text [ de ] = "(keine Funktion);Gruppierung";
+       Text [ en-US ] = "(no function);Group";
        Text [ x-comment ] = " ";
 };
 String STR_QUERY_NOTABLE




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

Reply via email to