[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/filters/karbon/oodraw
From: Rob Buis <rwlbuis () xs4all ! nl>
Date: 2003-03-31 20:40:54
[Download RAW message or body]
CVS commit by buis:
Handling draw:border, still needs work...
M +6 -2 oodrawimport.cc 1.14
--- koffice/filters/karbon/oodraw/oodrawimport.cc #1.13:1.14
@@ -415,4 +415,5 @@ OoDrawImport::appendBrush( VObject &obj
VGradient gradient;
gradient.clearStops();
+ gradient.setRepeatMethod( VGradient::none );
QString style = m_styleStack.attribute( \
"draw:fill-gradient-name" );
@@ -420,12 +421,15 @@ OoDrawImport::appendBrush( VObject &obj
if( draw )
{
+ double border = 1.0;
+ if( draw->hasAttribute( "draw:border" ) )
+ border -= draw->attribute( "draw:cx" \
).remove( '%' ).toDouble() / 100.0; VColor c;
parseColor( c, draw->attribute( "draw:start-color" ) \
); gradient.addStop( c, 0.0, 0.5 );
parseColor( c, draw->attribute( "draw:end-color" ) \
);
- gradient.addStop( c, 1.0, 0.5 );
+ gradient.addStop( c, border * 1.0, 0.5 );
QString type = draw->attribute( "draw:style" );
- if( type == "linear" )
+ if( type == "linear" || type == "axial" )
{
gradient.setType( VGradient::linear );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic