coloreffect.py revision 8b759aa5de11522ffdd3be6663c538efe0239b69
'''
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.hasAttributes():
# prevent multiple processing of the same gradient if it is used by more than one selected object
#inkex.debug("already had: " + this_id)
return
#inkex.debug("visited: " + str(self.visited))
if node.hasChildNodes():
if node.hasAttributes():
#inkex.debug('ID:' + id )
pass