diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 12:43:30 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 12:43:30 +0000 |
commit | 6a16df3d8f4b76c442497142dbbd10942978234f (patch) | |
tree | 79611cbb56e82aa25f94b46f2865a259b4e34b59 /extensions/source/propctrlr/formcontroller.cxx | |
parent | 216ef1bece4c7fac60fb6ea96151607d966fd6a5 (diff) |
INTEGRATION: CWS dba09 (1.58.48); FILE MERGED
2004/04/29 08:37:18 fs 1.58.48.9: LineEndFormat also depends on TextType
2004/04/29 08:34:59 fs 1.58.48.8: copying the changes which happend on the cws_src680_frmcontrols03 branch to the cws_src680_dba09 branch - this is since both CWS' have some interdependencies
2004/04/26 15:00:28 fs 1.58.48.7: RESYNC: (1.59-1.61); FILE MERGED
2004/04/26 13:55:07 fs 1.58.48.6: #i27779# properly extract the list source for combo boxes
2004/04/26 13:50:11 fs 1.58.48.5: #i27779# properly extract the list source for combo boxes
2004/03/29 09:12:31 fs 1.58.48.4: #i26871# unique ids for the event browse buttons
2004/03/29 08:44:35 fs 1.58.48.3: #i13497# disable line end format when no multi line
2004/03/24 09:21:54 fs 1.58.48.2: RESYNC: (1.58-1.59); FILE MERGED
2004/03/19 15:26:34 fs 1.58.48.1: #i13497# #i14649#
Diffstat (limited to 'extensions/source/propctrlr/formcontroller.cxx')
-rw-r--r-- | extensions/source/propctrlr/formcontroller.cxx | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx index a3c53c03bbe3..139228af0c48 100644 --- a/extensions/source/propctrlr/formcontroller.cxx +++ b/extensions/source/propctrlr/formcontroller.cxx @@ -2,9 +2,9 @@ * * $RCSfile: formcontroller.cxx,v $ * - * $Revision: 1.62 $ + * $Revision: 1.63 $ * - * last change: $Author: rt $ $Date: 2004-05-07 16:03:52 $ + * last change: $Author: hr $ $Date: 2004-05-10 13:43:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -296,6 +296,9 @@ #ifndef _EXTENSIONS_FORMCTRLR_FORMHELPID_HRC_ #include "formhelpid.hrc" #endif +#ifndef __EXTENSIONS_INC_EXTENSIO_HRC__ +#include "extensio.hrc" +#endif #ifndef _COMPHELPER_STLTYPES_HXX_ #include <comphelper/stl_types.hxx> #endif @@ -588,6 +591,10 @@ namespace pcr sal_Int32 nIntValue = -1; if ( ::cppu::enum2int( nIntValue, rValue ) ) { + if ( PROPERTY_ID_LINEEND_FORMAT == _nPropId ) + // for the LineEndFormat, we do not have a UI corresponding to the value "0" + --nIntValue; + ::std::vector< String > aEnumStrings = m_pPropertyInfo->getPropertyEnumRepresentations( _nPropId ); if ( ( nIntValue >= 0 ) && ( nIntValue < (sal_Int32)aEnumStrings.size() ) ) { @@ -798,6 +805,10 @@ namespace pcr sal_Int32 nPos = GetStringPos( _rString, aEnumStrings ); if ( -1 != nPos ) { + if ( PROPERTY_ID_LINEEND_FORMAT == _nPropId ) + // for the LineEndFormat, we do not have a UI corresponding to the value "0" + ++nPos; + switch ( aPropertyType.getTypeClass() ) { case TypeClass_ENUM: @@ -1794,7 +1805,7 @@ namespace pcr { aProperty.sTitle = pEventDescription->sDisplayName; aProperty.nHelpId = pEventDescription->nHelpId; - aProperty.nUniqueButtonId = UID_EVT_MACRODLG; + aProperty.nUniqueButtonId = pEventDescription->nUniqueBrowseId; aProperty.nMinValue = pEventDescription->nIndex; // misuse for sorting aEventLines.insert(aProperty); } @@ -3296,6 +3307,8 @@ namespace pcr getPropertyBox()->EnablePropertyLine( PROPERTY_DEFAULT_TEXT, nTextType != TEXTTYPE_RICHTEXT ); getPropertyBox()->EnablePropertyLine( ::rtl::OUString::createFromAscii( "Font" ), nTextType != TEXTTYPE_RICHTEXT ); getPropertyBox()->EnablePropertyLine( PROPERTY_SHOW_SCROLLBARS, nTextType != TEXTTYPE_SINGLELINE ); + getPropertyBox()->EnablePropertyLine( PROPERTY_LINEEND_FORMAT, nTextType != TEXTTYPE_SINGLELINE ); + getPropertyBox()->ShowPropertyPage( m_nDataPageId, nTextType != TEXTTYPE_RICHTEXT ); } break; @@ -3433,6 +3446,7 @@ namespace pcr getPropertyBox()->EnablePropertyLine( PROPERTY_SHOW_SCROLLBARS, bIsMultiline ); getPropertyBox()->EnablePropertyLine( PROPERTY_ECHO_CHAR, !bIsMultiline ); + getPropertyBox()->EnablePropertyLine( PROPERTY_LINEEND_FORMAT, bIsMultiline ); } break; @@ -3549,9 +3563,14 @@ namespace pcr { Sequence< ::rtl::OUString > aListSource; - OSL_VERIFY( GetUnoPropertyValue( PROPERTY_LISTSOURCE ) >>= aListSource ); - if ( aListSource.getLength() ) - sStringValue = aListSource[0]; + Any aListSourceValue( GetUnoPropertyValue( PROPERTY_LISTSOURCE ) ); + if ( aListSourceValue >>= aListSource ) + { + if ( aListSource.getLength() ) + sStringValue = aListSource[0]; + } + else + OSL_VERIFY( aListSourceValue >>= sStringValue ); } bIsEnabled = ( !xSource.is() ) |