diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-07-23 09:46:12 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-07-23 09:46:12 +0000 |
commit | 1e6e414b584132e3544f52d4878b1338f3f579d8 (patch) | |
tree | a35147392c566389ff193c81a425105d8126cf54 /extensions/source/propctrlr/formcontroller.cxx | |
parent | 4ee20afa7f23a466faa4c58ad4a4d77d76331e44 (diff) |
INTEGRATION: CWS dba14 (1.70.8); FILE MERGED
2004/07/15 13:41:41 fs 1.70.8.1: #i30912#
Diffstat (limited to 'extensions/source/propctrlr/formcontroller.cxx')
-rw-r--r-- | extensions/source/propctrlr/formcontroller.cxx | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index 3620a6f46..3e6319996 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formcontroller.cxx,v $ * - * $Revision: 1.70 $ + * $Revision: 1.71 $ * - * last change: $Author: obo $ $Date: 2004-07-06 16:47:12 $ + * last change: $Author: rt $ $Date: 2004-07-23 10:46:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -508,7 +508,16 @@ class EventsNameReplace_Impl: // booleans case TypeClass_BOOLEAN: { - String aEntries( ModuleRes( RID_STR_BOOL ) ); + String aEntries; + if ( _nPropId == PROPERTY_ID_SHOW_POSITION + || _nPropId == PROPERTY_ID_SHOW_NAVIGATION + || _nPropId == PROPERTY_ID_SHOW_RECORDACTIONS + || _nPropId == PROPERTY_ID_SHOW_FILTERSORT + ) + aEntries = String( ModuleRes( RID_STR_SHOW_HIDE ) ); + else + aEntries = String( ModuleRes( RID_STR_BOOL ) ); + sReturn = ::comphelper::getBOOL( rValue ) ? aEntries.GetToken( 1 ) : aEntries.GetToken( 0 ); } break; @@ -745,7 +754,16 @@ class EventsNameReplace_Impl: case TypeClass_BOOLEAN: { - String sBooleanValues(ModuleRes(RID_STR_BOOL)); + String sBooleanValues; + if ( _nPropId == PROPERTY_ID_SHOW_POSITION + || _nPropId == PROPERTY_ID_SHOW_NAVIGATION + || _nPropId == PROPERTY_ID_SHOW_RECORDACTIONS + || _nPropId == PROPERTY_ID_SHOW_FILTERSORT + ) + sBooleanValues = String( ModuleRes( RID_STR_SHOW_HIDE ) ); + else + sBooleanValues = String( ModuleRes( RID_STR_BOOL ) ); + if (sBooleanValues.GetToken(0) == String(_rString)) aReturn <<= (sal_Bool)sal_False; else @@ -2457,7 +2475,16 @@ class EventsNameReplace_Impl: // sal_Bool-Werte if (eType == TypeClass_BOOLEAN ) { - String aEntries(ModuleRes(RID_STR_BOOL)); + String aEntries; + if ( nPropId == PROPERTY_ID_SHOW_POSITION + || nPropId == PROPERTY_ID_SHOW_NAVIGATION + || nPropId == PROPERTY_ID_SHOW_RECORDACTIONS + || nPropId == PROPERTY_ID_SHOW_FILTERSORT + ) + aEntries = String( ModuleRes( RID_STR_SHOW_HIDE ) ); + else + aEntries = String( ModuleRes( RID_STR_BOOL ) ); + for ( xub_StrLen i=0; i<2; ++i ) pProperty->aListValues.push_back( aEntries.GetToken(i) ); |