[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kspread
From: Ariya Hidayat <ariya () kde ! org>
Date: 2004-04-01 0:00:27
Message-ID: 20040401000027.96B6C90E7 () office ! kde ! org
[Download RAW message or body]
CVS commit by ariya:
proper loading of boolean value
M +15 -1 kspread_cell.cc 1.540
--- koffice/kspread/kspread_cell.cc #1.539:1.540
@@ -5090,4 +5090,18 @@ bool KSpreadCell::loadOasis( const QDomE
}
+ // boolean value
+ if( element.hasAttribute( "table:value-type" ) )
+ if( element.attribute( "table:value-type" ) == "boolean" )
+ {
+ QString val = element.attribute( "table:boolean-value" );
+ if( ( val == "true" ) || ( val == "false" ) )
+ {
+ bool value = val == "true";
+ setValue( value );
+ setCellText( value ? i18n("True") : i18n("False" ) );
+ }
+ }
+
+ // cell comment/annotation
QDomElement annotationElement = element.namedItem( "office:annotation" ).toElement();
if ( !annotationElement.isNull() )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic