setup_typography_canvas.py revision 6c97635ad1185cbd08910ee5042001e243496503
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoCopyright (C) 2011 Felipe Correa da Silva Sanches
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoThis program is free software; you can redistribute it and/or modify
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoit under the terms of the GNU General Public License as published by
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicothe Free Software Foundation; either version 2 of the License, or
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico(at your option) any later version.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoThis program is distributed in the hope that it will be useful,
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicobut WITHOUT ANY WARRANTY; without even the implied warranty of
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoGNU General Public License for more details.
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoYou should have received a copy of the GNU General Public License
1ef3c8b1b935901dd133c337031a7300334db424JazzyNicoalong with this program; if not, write to the Free Software
107e00c8104649437b9520d0ba298dba659e7cd7JazzyNicoFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
040e298be5b23e77e33309d65449072183c82d5cacspike def create_horizontal_guideline(self, name, position):
12a239f8730c2bb6e3738d5e75b3237877594d07Martin Owens def create_vertical_guideline(self, name, position):
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico def create_guideline(self, label, orientation, x,y):
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico namedview = self.svg.find(inkex.addNS('namedview', 'sodipodi'))
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi'))
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico guide.set(inkex.addNS('label', 'inkscape'), label)
1ef3c8b1b935901dd133c337031a7300334db424JazzyNico # Get all the options
e = SetupTypographyCanvas()
e.affect()