Kaydet (Commit) fa200e7b authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS dba09 (1.13.44); FILE MERGED

2004/04/27 06:09:19 fs 1.13.44.4: RESYNC: (1.14-1.16); FILE MERGED
2004/03/24 08:36:37 fs 1.13.44.3: RESYNC: (1.13-1.14); FILE MERGED
2004/03/22 10:20:20 fs 1.13.44.2: #i14649# don't allow RichText property for grid columns
2004/03/17 11:51:03 fs 1.13.44.1: #92831# at runtime, don't use 'stardiv.one.form.control.*' service names - translate when writing old (binary) format
üst b97d8a0e
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: Columns.cxx,v $ * $RCSfile: Columns.cxx,v $
* *
* $Revision: 1.17 $ * $Revision: 1.18 $
* *
* last change: $Author: rt $ $Date: 2004-05-07 16:06:29 $ * last change: $Author: hr $ $Date: 2004-05-10 12:44:07 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -390,43 +390,59 @@ void OGridColumn::disposing() ...@@ -390,43 +390,59 @@ void OGridColumn::disposing()
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void OGridColumn::clearAggregateProperties(Sequence<Property>& seqProps, sal_Bool bAllowDropDown) void OGridColumn::clearAggregateProperties( Sequence< Property >& _rProps, sal_Bool bAllowDropDown )
{ {
RemoveProperty(seqProps, PROPERTY_ALIGN); // some properties are not to be exposed to the outer world
RemoveProperty(seqProps, PROPERTY_AUTOCOMPLETE); ::std::set< ::rtl::OUString > aForbiddenProperties;
RemoveProperty(seqProps, PROPERTY_BACKGROUNDCOLOR); aForbiddenProperties.insert( PROPERTY_ALIGN );
RemoveProperty(seqProps, PROPERTY_BORDER); aForbiddenProperties.insert( PROPERTY_AUTOCOMPLETE );
if (!bAllowDropDown) aForbiddenProperties.insert( PROPERTY_BACKGROUNDCOLOR );
RemoveProperty(seqProps, PROPERTY_DROPDOWN); aForbiddenProperties.insert( PROPERTY_BORDER );
RemoveProperty(seqProps, PROPERTY_ECHO_CHAR); aForbiddenProperties.insert( PROPERTY_ECHO_CHAR );
RemoveProperty(seqProps, PROPERTY_FILLCOLOR); aForbiddenProperties.insert( PROPERTY_FILLCOLOR );
RemoveProperty(seqProps, PROPERTY_FONT); aForbiddenProperties.insert( PROPERTY_FONT );
RemoveProperty(seqProps, PROPERTY_FONT_NAME); aForbiddenProperties.insert( PROPERTY_FONT_NAME );
RemoveProperty(seqProps, PROPERTY_FONT_STYLENAME); aForbiddenProperties.insert( PROPERTY_FONT_STYLENAME );
RemoveProperty(seqProps, PROPERTY_FONT_FAMILY); aForbiddenProperties.insert( PROPERTY_FONT_FAMILY );
RemoveProperty(seqProps, PROPERTY_FONT_CHARSET); aForbiddenProperties.insert( PROPERTY_FONT_CHARSET );
RemoveProperty(seqProps, PROPERTY_FONT_HEIGHT); aForbiddenProperties.insert( PROPERTY_FONT_HEIGHT );
RemoveProperty(seqProps, PROPERTY_FONT_WEIGHT); aForbiddenProperties.insert( PROPERTY_FONT_WEIGHT );
RemoveProperty(seqProps, PROPERTY_FONT_SLANT); aForbiddenProperties.insert( PROPERTY_FONT_SLANT );
RemoveProperty(seqProps, PROPERTY_FONT_UNDERLINE); aForbiddenProperties.insert( PROPERTY_FONT_UNDERLINE );
RemoveProperty(seqProps, PROPERTY_FONT_STRIKEOUT); aForbiddenProperties.insert( PROPERTY_FONT_STRIKEOUT );
RemoveProperty(seqProps, PROPERTY_FONT_WORDLINEMODE); aForbiddenProperties.insert( PROPERTY_FONT_WORDLINEMODE );
RemoveProperty(seqProps, PROPERTY_TEXTLINECOLOR); aForbiddenProperties.insert( PROPERTY_TEXTLINECOLOR );
RemoveProperty(seqProps, PROPERTY_FONTEMPHASISMARK); aForbiddenProperties.insert( PROPERTY_FONTEMPHASISMARK );
RemoveProperty(seqProps, PROPERTY_FONTRELIEF); aForbiddenProperties.insert( PROPERTY_FONTRELIEF );
RemoveProperty(seqProps, PROPERTY_HARDLINEBREAKS); aForbiddenProperties.insert( PROPERTY_HARDLINEBREAKS );
RemoveProperty(seqProps, PROPERTY_HSCROLL); aForbiddenProperties.insert( PROPERTY_HSCROLL );
RemoveProperty(seqProps, PROPERTY_LABEL); aForbiddenProperties.insert( PROPERTY_LABEL );
RemoveProperty(seqProps, PROPERTY_LINECOLOR); aForbiddenProperties.insert( PROPERTY_LINECOLOR );
RemoveProperty(seqProps, PROPERTY_MULTILINE); aForbiddenProperties.insert( PROPERTY_MULTISELECTION );
RemoveProperty(seqProps, PROPERTY_MULTISELECTION); aForbiddenProperties.insert( PROPERTY_PRINTABLE );
RemoveProperty(seqProps, PROPERTY_PRINTABLE); aForbiddenProperties.insert( PROPERTY_TABINDEX );
RemoveProperty(seqProps, PROPERTY_TABINDEX); aForbiddenProperties.insert( PROPERTY_TABSTOP );
RemoveProperty(seqProps, PROPERTY_TABSTOP); aForbiddenProperties.insert( PROPERTY_TEXTCOLOR );
RemoveProperty(seqProps, PROPERTY_TEXTCOLOR); aForbiddenProperties.insert( PROPERTY_TRISTATE );
RemoveProperty(seqProps, PROPERTY_TRISTATE); aForbiddenProperties.insert( PROPERTY_VSCROLL );
RemoveProperty(seqProps, PROPERTY_VSCROLL); aForbiddenProperties.insert( PROPERTY_CONTROLLABEL );
RemoveProperty(seqProps, PROPERTY_CONTROLLABEL); aForbiddenProperties.insert( PROPERTY_RICH_TEXT );
if ( !bAllowDropDown )
aForbiddenProperties.insert( PROPERTY_DROPDOWN );
Sequence< Property > aNewProps( _rProps.getLength() );
Property* pNewProps = aNewProps.getArray();
const Property* pProps = _rProps.getConstArray();
const Property* pPropsEnd = pProps + _rProps.getLength();
for ( ; pProps != pPropsEnd; ++pProps )
{
if ( aForbiddenProperties.find( pProps->Name ) == aForbiddenProperties.end() )
*pNewProps++ = *pProps;
}
aNewProps.realloc( pNewProps - aNewProps.getArray() );
_rProps = aNewProps;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment