summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-07 10:19:20 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-07 10:19:20 +0000
commit08b35a464b27c40a6922b3b3c7081ee6aa358290 (patch)
tree7e2c5f16b71d8b3d81d9bd21dd1437caad10fd74 /sc/source/ui/formdlg
parent8da8250360ed0e11eb586ad79001e435260db489 (diff)
INTEGRATION: CWS odff02 (1.13.266); FILE MERGED
2008/02/28 16:19:47 er 1.13.266.1: #i86514# preparation for additional functions and parameters not yet implemented but to be added as string resources, suppress in UI
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx25
1 files changed, 15 insertions, 10 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 162da572181d..6b33e4db0b9c 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dwfunctr.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 09:53:11 $
+ * last change: $Author: kz $ $Date: 2008-03-07 11:19:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -918,22 +918,27 @@ void ScFunctionDockWin::DoEnter(BOOL /* bOk */) //@@ ???
nArgs = pDesc->nArgCount;
if(nArgs>0)
{
- aFirstArgStr = *(pDesc->aDefArgNames[0]);
+ // NOTE: Theoretically the first parameter could have the
+ // suppress flag as well, but practically it doesn't.
+ aFirstArgStr = *(pDesc->ppDefArgNames[0]);
aFirstArgStr.EraseLeadingAndTrailingChars();
aFirstArgStr.SearchAndReplaceAll(' ', '_');
aArgStr = aFirstArgStr;
if ( nArgs != VAR_ARGS )
- { // keine VarArgs oder Fix plus VarArgs, aber nicht nur VarArgs
+ { // no VarArgs or Fix plus VarArgs, but not VarArgs only
String aArgSep = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM( "; " ));
USHORT nFix = ( nArgs < VAR_ARGS ? nArgs : nArgs - VAR_ARGS + 1 );
for ( USHORT nArg = 1;
- nArg < nFix && !pDesc->aDefArgOpt[nArg]; nArg++ )
+ nArg < nFix && !pDesc->pDefArgFlags[nArg].bOptional; nArg++ )
{
- aArgStr += aArgSep;
- String sTmp(*(pDesc->aDefArgNames[nArg]));
- sTmp.EraseLeadingAndTrailingChars();
- sTmp.SearchAndReplaceAll(' ', '_');
- aArgStr += sTmp;
+ if (!pDesc->pDefArgFlags[nArg].bSuppress)
+ {
+ aArgStr += aArgSep;
+ String sTmp(*(pDesc->ppDefArgNames[nArg]));
+ sTmp.EraseLeadingAndTrailingChars();
+ sTmp.SearchAndReplaceAll(' ', '_');
+ aArgStr += sTmp;
+ }
}
}
}