File: //usr/share/inkscape/extensions/synfig_prepare.pyo
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l Z d d l Z d d l
Z
d e f d � � YZ y d d l
m Z m Z e Z Wn
e Z n Xd e f d � � YZ d e f d
� � YZ d � Z d � Z i d
d d g d d
d g g d � Z d d � Z d e j f d � � YZ e d k r�y e � Z e j � Wq�e k
r�Z e e � q�Xn d S( s
synfig_prepare.py
Simplifies SVG files in preparation for sif export.
Copyright (C) 2011 Nikita Kitaev
This program is free software; you can redistribute it and/or modify
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
i����N( t NSSt addNSt etreet errormsgt MalformedSVGErrorc B s e Z d Z d � Z d � Z RS( sH Raised when the SVG document is invalid or contains unsupported featuresc C s
| | _ d S( N( t value( t selfR ( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyt __init__! s c C s d t | j � S( Ns SVG document is invalid or contains unsupported features
Error message: %s
The SVG to Synfig converter is designed to handle SVG files that were created using Inkscape. Unsupported features are most likely to occur in SVG files written by other programs.
( t reprR ( R ( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyt __str__# s ( t __name__t
__module__t __doc__R R ( ( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyR s ( t Popent PIPEt InkscapeActionGroupc B s� e Z d Z d
d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z e d � Z
d
� Z d � Z d � Z RS( s@ A class for calling Inkscape to perform operations on a documentc C s1 d | _ d | _ t | _ t | _ | | _ d S( Nt ( t commandt init_argst Falset
has_selectiont
has_actiont svg_document( R R ( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyR 3 s
c C s
| | _ d S( s2 Set the SVG document that Inkscape will operate onN( R ( R R ( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyt set_svg_document: s c C s
| | _ d S( s� Set the initial arguments to Inkscape subprocess
Can be used to pass additional arguments to Inkscape, or an initializer
command (e.g. unlock all objects before proceeding).
N( R ( R t cmd( ( s0 /usr/share/inkscape/extensions/synfig_prepare.pyt
set_init_args>