Tag: cws_src680_dba205b User: fs Date: 2006/08/06 13:16:03 Modified: dba/dbaccess/source/ui/browser/unodatbr.cxx
Log: oops, type (forgot to copy WIDTH) File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: unodatbr.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/unodatbr.cxx?r1=1.176.18.1&r2=1.176.18.2 Delta lines: +7 -12 -------------------- --- unodatbr.cxx 4 Aug 2006 12:57:05 -0000 1.176.18.1 +++ unodatbr.cxx 6 Aug 2006 20:16:00 -0000 1.176.18.2 @@ -4,9 +4,9 @@ * * $RCSfile: unodatbr.cxx,v $ * - * $Revision: 1.176.18.1 $ + * $Revision: 1.176.18.2 $ * - * last change: $Author: fs $ $Date: 2006/08/04 12:57:05 $ + * last change: $Author: fs $ $Date: 2006/08/06 20:16:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -655,7 +655,6 @@ { try { - Reference< ::com::sun::star::form::XGridColumnFactory > xColFactory(xGrid, UNO_QUERY); Reference< XNameContainer > xColContainer(xGrid, UNO_QUERY); clearGridColumns( xColContainer ); @@ -814,20 +813,16 @@ aInitialValues.push_back( NamedValue( sPropertyName, aDefault ) ); // transfer properties from the definition to the UNO-model : - // ... the hidden flag - aCopyProperties.push_back( PROPERTY_HIDDEN ); - - // ... the initial colum width aCopyProperties.push_back( PROPERTY_HIDDEN ); + aCopyProperties.push_back( PROPERTY_WIDTH ); - // ... horizontal justify - aInitialValues.push_back( NamedValue( PROPERTY_ALIGN, makeAny( sal_Int16( ::comphelper::getINT32( xColumn->getPropertyValue( PROPERTY_ALIGN ) ) ) ) ) ); - - // ... the 'comment' property as helptext (will usually be shown as header-tooltip) Any aDescription; aDescription <<= ::rtl::OUString(); if ( xColumn->getPropertySetInfo()->hasPropertyByName( PROPERTY_HELPTEXT ) ) - aDescription <<= comphelper::getString(xColumn->getPropertyValue(PROPERTY_HELPTEXT)); + aDescription <<= ::comphelper::getString( xColumn->getPropertyValue( PROPERTY_HELPTEXT ) ); aInitialValues.push_back( NamedValue( PROPERTY_HELPTEXT, aDescription ) ); + + // ... horizontal justify + aInitialValues.push_back( NamedValue( PROPERTY_ALIGN, makeAny( sal_Int16( ::comphelper::getINT32( xColumn->getPropertyValue( PROPERTY_ALIGN ) ) ) ) ) ); // now set all those values for ( ::std::vector< NamedValue >::const_iterator property = aInitialValues.begin(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
