coloreffect.py revision b97c841ca6aa0a4f8ff56e7760e85b2d57d95b15
'''
Copyright (C) 2006 Jos Hirth, kaioa.com
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
color_props_stroke=('stroke:',)
else:
if node.hasChildNodes():
if node.hasAttributes():
if style!='':
#inkex.debug('old style:'+style)
#inkex.debug('new style:'+';'.join(styles))
'''
def changeStyle(self,node):
if node.hasAttributes():
sa=node.getAttribute('style')
if sa!='':
debug(sa)
styles=simplestyle.parseStyle(sa)
for c in range(len(colortags)):
if colortags[c] in styles.keys():
styles[colortags[c]]=self.process_prop(styles[colortags[c]])
node.setAttribute('style',simplestyle.formatStyle(styles))
'''
#debug('got:'+col)
#debug('made:'+col)
#inkex.debug('ID:' + id )
return col
if node.hasChildNodes():
if node.hasAttributes():
#inkex.debug('ID:' + id )
pass